Class: Azure::Profiles::V2020_09_01_Hybrid::EventHub::Mgmt::EventHubManagementClass
- Inherits:
-
Object
- Object
- Azure::Profiles::V2020_09_01_Hybrid::EventHub::Mgmt::EventHubManagementClass
- Defined in:
- lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb
Defined Under Namespace
Classes: ModelClasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#clusters ⇒ Object
readonly
Returns the value of attribute clusters.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#consumer_groups ⇒ Object
readonly
Returns the value of attribute consumer_groups.
-
#disaster_recovery_configs ⇒ Object
readonly
Returns the value of attribute disaster_recovery_configs.
-
#event_hubs ⇒ Object
readonly
Returns the value of attribute event_hubs.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#namespaces ⇒ Object
readonly
Returns the value of attribute namespaces.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#private_endpoint_connections ⇒ Object
readonly
Returns the value of attribute private_endpoint_connections.
-
#private_link_resources ⇒ Object
readonly
Returns the value of attribute private_link_resources.
-
#regions ⇒ Object
readonly
Returns the value of attribute regions.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(configurable, base_url = nil, options = nil) ⇒ EventHubManagementClass
constructor
A new instance of EventHubManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(configurable, base_url = nil, options = nil) ⇒ EventHubManagementClass
Returns a new instance of EventHubManagementClass.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 109 def initialize(configurable, base_url=nil, =nil) @configurable, @base_url, @options = configurable, base_url, @client_0 = Azure::EventHub::Mgmt::V2015_08_01::EventHubManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @client_1 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, ) if(@client_1.respond_to?(:subscription_id)) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) @disaster_recovery_configs = @client_1.disaster_recovery_configs @event_hubs = @client_1.event_hubs @consumer_groups = @client_1.consumer_groups @operations = @client_1.operations @regions = @client_1.regions @client_2 = Azure::EventHub::Mgmt::V2018_01_01_preview::EventHubManagementClient.new(configurable.credentials, base_url, ) if(@client_2.respond_to?(:subscription_id)) @client_2.subscription_id = configurable.subscription_id end add_telemetry(@client_2) @clusters = @client_2.clusters @namespaces = @client_2.namespaces @private_endpoint_connections = @client_2.private_endpoint_connections @private_link_resources = @client_2.private_link_resources @configuration = @client_2.configuration @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 148 def method_missing(method, *args) if @client_2.respond_to?method @client_2.send(method, *args) elsif @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
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def base_url @base_url end |
#clusters ⇒ Object (readonly)
Returns the value of attribute clusters.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def clusters @clusters end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def configurable @configurable end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def configuration @configuration end |
#consumer_groups ⇒ Object (readonly)
Returns the value of attribute consumer_groups.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def consumer_groups @consumer_groups end |
#disaster_recovery_configs ⇒ Object (readonly)
Returns the value of attribute disaster_recovery_configs.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def disaster_recovery_configs @disaster_recovery_configs end |
#event_hubs ⇒ Object (readonly)
Returns the value of attribute event_hubs.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def event_hubs @event_hubs end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def model_classes @model_classes end |
#namespaces ⇒ Object (readonly)
Returns the value of attribute namespaces.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def namespaces @namespaces end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def @options end |
#private_endpoint_connections ⇒ Object (readonly)
Returns the value of attribute private_endpoint_connections.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def private_endpoint_connections @private_endpoint_connections end |
#private_link_resources ⇒ Object (readonly)
Returns the value of attribute private_link_resources.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def private_link_resources @private_link_resources end |
#regions ⇒ Object (readonly)
Returns the value of attribute regions.
107 108 109 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 107 def regions @regions end |
Instance Method Details
#add_telemetry(client) ⇒ Object
143 144 145 146 |
# File 'lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb', line 143 def add_telemetry(client) profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2020_09_01_Hybrid/EventHub/Mgmt" client.add_user_agent_information(profile_information) end |