Class: Azure::Peering::Profiles::Latest::Mgmt::PeeringManagementClass
- Inherits:
-
Object
- Object
- Azure::Peering::Profiles::Latest::Mgmt::PeeringManagementClass
- Defined in:
- lib/profiles/latest/modules/peering_profile_module.rb
Overview
PeeringManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#legacy_peerings ⇒ Object
readonly
Returns the value of attribute legacy_peerings.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#peer_asns ⇒ Object
readonly
Returns the value of attribute peer_asns.
-
#peering_locations ⇒ Object
readonly
Returns the value of attribute peering_locations.
-
#peering_service_locations ⇒ Object
readonly
Returns the value of attribute peering_service_locations.
-
#peering_service_prefixes ⇒ Object
readonly
Returns the value of attribute peering_service_prefixes.
-
#peering_service_providers ⇒ Object
readonly
Returns the value of attribute peering_service_providers.
-
#peering_services ⇒ Object
readonly
Returns the value of attribute peering_services.
-
#peerings ⇒ Object
readonly
Returns the value of attribute peerings.
-
#prefixes ⇒ Object
readonly
Returns the value of attribute prefixes.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ PeeringManagementClass
constructor
A new instance of PeeringManagementClass.
- #method_missing(method, *args) ⇒ Object
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( = {}) if .is_a?(Hash) && .length == 0 = else = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:options[:base_url] = [:options].nil? ? nil:options[:options] @client_0 = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringClient.new(configurable.credentials, base_url, ) 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_url ⇒ Object (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 |
#configurable ⇒ Object (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_peerings ⇒ Object (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_classes ⇒ Object (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 |
#operations ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
75 76 77 |
# File 'lib/profiles/latest/modules/peering_profile_module.rb', line 75 def end |
#peer_asns ⇒ Object (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_locations ⇒ Object (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_locations ⇒ Object (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_prefixes ⇒ Object (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_providers ⇒ Object (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_services ⇒ Object (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 |
#peerings ⇒ Object (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 |
#prefixes ⇒ Object (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 |