mirror of
https://github.com/inspec/inspec
synced 2025-01-01 15:58:59 +00:00
21 lines
648 B
Ruby
21 lines
648 B
Ruby
|
|
||
|
require 'azure_mgmt_network'
|
||
|
|
||
|
# Class to return a NetworkManagement client for use with NICs and Public IP Addresses
|
||
|
#
|
||
|
# @author Russell Seymour
|
||
|
# @attr_reader [Azure::ARM::Network::NetworkManagementClient] client Azure Network Management cient
|
||
|
class NetworkManagement
|
||
|
attr_reader :client
|
||
|
|
||
|
# Constructor for the class. Creates the new Network Management client object
|
||
|
#
|
||
|
# @author Russell Seymour
|
||
|
#
|
||
|
# @param [MsRest::TokenCredentials] azure Connection object for Azure
|
||
|
def initialize(azure)
|
||
|
@client = Azure::ARM::Network::NetworkManagementClient.new(azure.connection)
|
||
|
client.subscription_id = azure.subscription_id
|
||
|
end
|
||
|
end
|