Class: Azure::Profiles::V2017_03_09::Network::Mgmt::NetworkManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/v2017_03_09/modules/network_profile_module.rb

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ NetworkManagementClass

Returns a new instance of NetworkManagementClass.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 153

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::Network::Mgmt::V2015_06_15::NetworkManagementClient.new(configurable.credentials, base_url, options)
  if(@client_0.respond_to?(:subscription_id))
    @client_0.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_0)
  @application_gateways = @client_0.application_gateways
  @express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations
  @express_route_circuit_peerings = @client_0.express_route_circuit_peerings
  @express_route_circuits = @client_0.express_route_circuits
  @express_route_service_providers = @client_0.express_route_service_providers
  @load_balancers = @client_0.load_balancers
  @network_interfaces = @client_0.network_interfaces
  @network_security_groups = @client_0.network_security_groups
  @security_rules = @client_0.security_rules
  @public_ipaddresses = @client_0.public_ipaddresses
  @route_tables = @client_0.route_tables
  @routes = @client_0.routes
  @usages = @client_0.usages
  @virtual_networks = @client_0.virtual_networks
  @subnets = @client_0.subnets
  @virtual_network_gateways = @client_0.virtual_network_gateways
  @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections
  @local_network_gateways = @client_0.local_network_gateways

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



188
189
190
191
192
193
194
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 188

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#application_gatewaysObject (readonly)

Returns the value of attribute application_gateways.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def application_gateways
  @application_gateways
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def configurable
  @configurable
end

#express_route_circuit_authorizationsObject (readonly)

Returns the value of attribute express_route_circuit_authorizations.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def express_route_circuit_authorizations
  @express_route_circuit_authorizations
end

#express_route_circuit_peeringsObject (readonly)

Returns the value of attribute express_route_circuit_peerings.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def express_route_circuit_peerings
  @express_route_circuit_peerings
end

#express_route_circuitsObject (readonly)

Returns the value of attribute express_route_circuits.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def express_route_circuits
  @express_route_circuits
end

#express_route_service_providersObject (readonly)

Returns the value of attribute express_route_service_providers.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def express_route_service_providers
  @express_route_service_providers
end

#load_balancersObject (readonly)

Returns the value of attribute load_balancers.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def load_balancers
  @load_balancers
end

#local_network_gatewaysObject (readonly)

Returns the value of attribute local_network_gateways.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def local_network_gateways
  @local_network_gateways
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def model_classes
  @model_classes
end

#network_interfacesObject (readonly)

Returns the value of attribute network_interfaces.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def network_interfaces
  @network_interfaces
end

#network_security_groupsObject (readonly)

Returns the value of attribute network_security_groups.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def network_security_groups
  @network_security_groups
end

#optionsObject (readonly)

Returns the value of attribute options.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def options
  @options
end

#public_ipaddressesObject (readonly)

Returns the value of attribute public_ipaddresses.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def public_ipaddresses
  @public_ipaddresses
end

#route_tablesObject (readonly)

Returns the value of attribute route_tables.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def route_tables
  @route_tables
end

#routesObject (readonly)

Returns the value of attribute routes.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def routes
  @routes
end

#security_rulesObject (readonly)

Returns the value of attribute security_rules.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def security_rules
  @security_rules
end

#subnetsObject (readonly)

Returns the value of attribute subnets.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def subnets
  @subnets
end

#usagesObject (readonly)

Returns the value of attribute usages.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def usages
  @usages
end

#virtual_network_gateway_connectionsObject (readonly)

Returns the value of attribute virtual_network_gateway_connections.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def virtual_network_gateway_connections
  @virtual_network_gateway_connections
end

#virtual_network_gatewaysObject (readonly)

Returns the value of attribute virtual_network_gateways.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def virtual_network_gateways
  @virtual_network_gateways
end

#virtual_networksObject (readonly)

Returns the value of attribute virtual_networks.



151
152
153
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 151

def virtual_networks
  @virtual_networks
end

Instance Method Details

#add_telemetry(client) ⇒ Object



183
184
185
186
# File 'lib/v2017_03_09/modules/network_profile_module.rb', line 183

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2017_03_09/Network/Mgmt"
  client.add_user_agent_information(profile_information)
end