class Azure::Peering::Profiles::Latest::Mgmt::PeeringManagementClass

PeeringManagementClass

Attributes

base_url[R]
configurable[R]
legacy_peerings[R]
model_classes[R]
operations[R]
options[R]
peer_asns[R]
peering_locations[R]
peering_service_locations[R]
peering_service_prefixes[R]
peering_service_providers[R]
peering_services[R]
peerings[R]
prefixes[R]

Public Class Methods

new(options = {}) click to toggle source
# 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

Public Instance Methods

add_telemetry(client) click to toggle source
# 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
method_missing(method, *args) click to toggle source
Calls superclass method
# 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