Class: Azure::Profiles::V2018_03_01::Network::Mgmt::NetworkManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/v2018_03_01/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.



352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 352

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

  @client_0 = Azure::Network::Mgmt::V2017_03_30::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)

  @client_1 = Azure::Network::Mgmt::V2017_10_01::NetworkManagementClient.new(configurable.credentials, base_url, options)
  if(@client_1.respond_to?(:subscription_id))
    @client_1.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_1)
  @application_gateways = @client_1.application_gateways
  @application_security_groups = @client_1.application_security_groups
  @available_endpoint_services = @client_1.available_endpoint_services
  @express_route_circuit_authorizations = @client_1.express_route_circuit_authorizations
  @express_route_circuit_peerings = @client_1.express_route_circuit_peerings
  @express_route_circuits = @client_1.express_route_circuits
  @express_route_service_providers = @client_1.express_route_service_providers
  @load_balancers = @client_1.load_balancers
  @load_balancer_backend_address_pools = @client_1.load_balancer_backend_address_pools
  @load_balancer_frontend_ipconfigurations = @client_1.load_balancer_frontend_ipconfigurations
  @inbound_nat_rules = @client_1.inbound_nat_rules
  @load_balancer_load_balancing_rules = @client_1.load_balancer_load_balancing_rules
  @load_balancer_network_interfaces = @client_1.load_balancer_network_interfaces
  @load_balancer_probes = @client_1.load_balancer_probes
  @network_interfaces = @client_1.network_interfaces
  @network_interface_ipconfigurations = @client_1.network_interface_ipconfigurations
  @network_interface_load_balancers = @client_1.network_interface_load_balancers
  @network_security_groups = @client_1.network_security_groups
  @security_rules = @client_1.security_rules
  @default_security_rules = @client_1.default_security_rules
  @network_watchers = @client_1.network_watchers
  @packet_captures = @client_1.packet_captures
  @connection_monitors = @client_1.connection_monitors
  @operations = @client_1.operations
  @public_ipaddresses = @client_1.public_ipaddresses
  @route_filters = @client_1.route_filters
  @route_filter_rules = @client_1.route_filter_rules
  @route_tables = @client_1.route_tables
  @routes = @client_1.routes
  @bgp_service_communities = @client_1.bgp_service_communities
  @usages = @client_1.usages
  @virtual_networks = @client_1.virtual_networks
  @subnets = @client_1.subnets
  @virtual_network_peerings = @client_1.virtual_network_peerings
  @virtual_network_gateways = @client_1.virtual_network_gateways
  @virtual_network_gateway_connections = @client_1.virtual_network_gateway_connections
  @local_network_gateways = @client_1.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



412
413
414
415
416
417
418
419
420
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 412

def method_missing(method, *args)
  if @client_1.respond_to?method
    @client_1.send(method, *args)
  elsif @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.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def application_gateways
  @application_gateways
end

#application_security_groupsObject (readonly)

Returns the value of attribute application_security_groups.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def application_security_groups
  @application_security_groups
end

#available_endpoint_servicesObject (readonly)

Returns the value of attribute available_endpoint_services.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def available_endpoint_services
  @available_endpoint_services
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def base_url
  @base_url
end

#bgp_service_communitiesObject (readonly)

Returns the value of attribute bgp_service_communities.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def bgp_service_communities
  @bgp_service_communities
end

#configurableObject (readonly)

Returns the value of attribute configurable.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def configurable
  @configurable
end

#connection_monitorsObject (readonly)

Returns the value of attribute connection_monitors.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def connection_monitors
  @connection_monitors
end

#default_security_rulesObject (readonly)

Returns the value of attribute default_security_rules.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def default_security_rules
  @default_security_rules
end

#express_route_circuit_authorizationsObject (readonly)

Returns the value of attribute express_route_circuit_authorizations.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def express_route_circuit_authorizations
  @express_route_circuit_authorizations
end

#express_route_circuit_peeringsObject (readonly)

Returns the value of attribute express_route_circuit_peerings.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def express_route_circuit_peerings
  @express_route_circuit_peerings
end

#express_route_circuitsObject (readonly)

Returns the value of attribute express_route_circuits.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def express_route_circuits
  @express_route_circuits
end

#express_route_service_providersObject (readonly)

Returns the value of attribute express_route_service_providers.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def express_route_service_providers
  @express_route_service_providers
end

#inbound_nat_rulesObject (readonly)

Returns the value of attribute inbound_nat_rules.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def inbound_nat_rules
  @inbound_nat_rules
end

#load_balancer_backend_address_poolsObject (readonly)

Returns the value of attribute load_balancer_backend_address_pools.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def load_balancer_backend_address_pools
  @load_balancer_backend_address_pools
end

#load_balancer_frontend_ipconfigurationsObject (readonly)

Returns the value of attribute load_balancer_frontend_ipconfigurations.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def load_balancer_frontend_ipconfigurations
  @load_balancer_frontend_ipconfigurations
end

#load_balancer_load_balancing_rulesObject (readonly)

Returns the value of attribute load_balancer_load_balancing_rules.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def load_balancer_load_balancing_rules
  @load_balancer_load_balancing_rules
end

#load_balancer_network_interfacesObject (readonly)

Returns the value of attribute load_balancer_network_interfaces.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def load_balancer_network_interfaces
  @load_balancer_network_interfaces
end

#load_balancer_probesObject (readonly)

Returns the value of attribute load_balancer_probes.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def load_balancer_probes
  @load_balancer_probes
end

#load_balancersObject (readonly)

Returns the value of attribute load_balancers.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def load_balancers
  @load_balancers
end

#local_network_gatewaysObject (readonly)

Returns the value of attribute local_network_gateways.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def local_network_gateways
  @local_network_gateways
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def model_classes
  @model_classes
end

#network_interface_ipconfigurationsObject (readonly)

Returns the value of attribute network_interface_ipconfigurations.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def network_interface_ipconfigurations
  @network_interface_ipconfigurations
end

#network_interface_load_balancersObject (readonly)

Returns the value of attribute network_interface_load_balancers.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def network_interface_load_balancers
  @network_interface_load_balancers
end

#network_interfacesObject (readonly)

Returns the value of attribute network_interfaces.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def network_interfaces
  @network_interfaces
end

#network_security_groupsObject (readonly)

Returns the value of attribute network_security_groups.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def network_security_groups
  @network_security_groups
end

#network_watchersObject (readonly)

Returns the value of attribute network_watchers.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def network_watchers
  @network_watchers
end

#operationsObject (readonly)

Returns the value of attribute operations.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def options
  @options
end

#packet_capturesObject (readonly)

Returns the value of attribute packet_captures.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def packet_captures
  @packet_captures
end

#public_ipaddressesObject (readonly)

Returns the value of attribute public_ipaddresses.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def public_ipaddresses
  @public_ipaddresses
end

#route_filter_rulesObject (readonly)

Returns the value of attribute route_filter_rules.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def route_filter_rules
  @route_filter_rules
end

#route_filtersObject (readonly)

Returns the value of attribute route_filters.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def route_filters
  @route_filters
end

#route_tablesObject (readonly)

Returns the value of attribute route_tables.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def route_tables
  @route_tables
end

#routesObject (readonly)

Returns the value of attribute routes.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def routes
  @routes
end

#security_rulesObject (readonly)

Returns the value of attribute security_rules.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def security_rules
  @security_rules
end

#subnetsObject (readonly)

Returns the value of attribute subnets.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def subnets
  @subnets
end

#usagesObject (readonly)

Returns the value of attribute usages.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def usages
  @usages
end

#virtual_network_gateway_connectionsObject (readonly)

Returns the value of attribute virtual_network_gateway_connections.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def virtual_network_gateway_connections
  @virtual_network_gateway_connections
end

#virtual_network_gatewaysObject (readonly)

Returns the value of attribute virtual_network_gateways.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def virtual_network_gateways
  @virtual_network_gateways
end

#virtual_network_peeringsObject (readonly)

Returns the value of attribute virtual_network_peerings.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def virtual_network_peerings
  @virtual_network_peerings
end

#virtual_networksObject (readonly)

Returns the value of attribute virtual_networks.



350
351
352
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 350

def virtual_networks
  @virtual_networks
end

Instance Method Details

#add_telemetry(client) ⇒ Object



407
408
409
410
# File 'lib/v2018_03_01/modules/network_profile_module.rb', line 407

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