Class: Azure::Profiles::Latest::Peering::Mgmt::PeeringManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/latest/modules/peering_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) ⇒ PeeringManagementClass

Returns a new instance of PeeringManagementClass.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/latest/modules/peering_profile_module.rb', line 75

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

  @client_0 = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringClient.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)
  @legacy_peerings = @client_0.legacy_peerings
  @operations = @client_0.operations
  @peer_asns = @client_0.peer_asns
  @peering_locations = @client_0.peering_locations
  @peerings = @client_0.peerings
  @peering_service_locations = @client_0.peering_service_locations
  @peering_service_prefixes = @client_0.peering_service_prefixes
  @prefixes = @client_0.prefixes
  @peering_service_providers = @client_0.peering_service_providers
  @peering_services = @client_0.peering_services

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



102
103
104
105
106
107
108
# File 'lib/latest/modules/peering_profile_module.rb', line 102

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

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def configurable
  @configurable
end

#legacy_peeringsObject (readonly)

Returns the value of attribute legacy_peerings.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def legacy_peerings
  @legacy_peerings
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def options
  @options
end

#peer_asnsObject (readonly)

Returns the value of attribute peer_asns.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def peer_asns
  @peer_asns
end

#peering_locationsObject (readonly)

Returns the value of attribute peering_locations.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def peering_locations
  @peering_locations
end

#peering_service_locationsObject (readonly)

Returns the value of attribute peering_service_locations.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def peering_service_locations
  @peering_service_locations
end

#peering_service_prefixesObject (readonly)

Returns the value of attribute peering_service_prefixes.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def peering_service_prefixes
  @peering_service_prefixes
end

#peering_service_providersObject (readonly)

Returns the value of attribute peering_service_providers.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def peering_service_providers
  @peering_service_providers
end

#peering_servicesObject (readonly)

Returns the value of attribute peering_services.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def peering_services
  @peering_services
end

#peeringsObject (readonly)

Returns the value of attribute peerings.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def peerings
  @peerings
end

#prefixesObject (readonly)

Returns the value of attribute prefixes.



73
74
75
# File 'lib/latest/modules/peering_profile_module.rb', line 73

def prefixes
  @prefixes
end

Instance Method Details

#add_telemetry(client) ⇒ Object



97
98
99
100
# File 'lib/latest/modules/peering_profile_module.rb', line 97

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