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

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/peering_profile_module.rb

Overview

PeeringManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PeeringManagementClass

Returns a new instance of PeeringManagementClass.



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 77

def initialize(options = {})
  if options.is_a?(Hash) && options.length == 0
    @options = setup_default_options
  else
    @options = options
  end

  reset!(options)

  @configurable = self
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
  @options = options[:options].nil? ? nil:options[: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



114
115
116
117
118
119
120
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 114

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.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def configurable
  @configurable
end

#legacy_peeringsObject (readonly)

Returns the value of attribute legacy_peerings.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def legacy_peerings
  @legacy_peerings
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def options
  @options
end

#peer_asnsObject (readonly)

Returns the value of attribute peer_asns.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def peer_asns
  @peer_asns
end

#peering_locationsObject (readonly)

Returns the value of attribute peering_locations.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def peering_locations
  @peering_locations
end

#peering_service_locationsObject (readonly)

Returns the value of attribute peering_service_locations.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def peering_service_locations
  @peering_service_locations
end

#peering_service_prefixesObject (readonly)

Returns the value of attribute peering_service_prefixes.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def peering_service_prefixes
  @peering_service_prefixes
end

#peering_service_providersObject (readonly)

Returns the value of attribute peering_service_providers.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def peering_service_providers
  @peering_service_providers
end

#peering_servicesObject (readonly)

Returns the value of attribute peering_services.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def peering_services
  @peering_services
end

#peeringsObject (readonly)

Returns the value of attribute peerings.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def peerings
  @peerings
end

#prefixesObject (readonly)

Returns the value of attribute prefixes.



75
76
77
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75

def prefixes
  @prefixes
end

Instance Method Details

#add_telemetry(client) ⇒ Object



109
110
111
112
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 109

def add_telemetry(client)
  profile_information = 'Profiles/Latest/Peering/Mgmt'
  client.add_user_agent_information(profile_information)
end