Class: Azure::Profiles::Latest::IotHub::Mgmt::IotHubManagementClass
- Inherits:
-
Object
- Object
- Azure::Profiles::Latest::IotHub::Mgmt::IotHubManagementClass
- Defined in:
- lib/latest/modules/iothub_profile_module.rb
Defined Under Namespace
Classes: ModelClasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#certificates ⇒ Object
readonly
Returns the value of attribute certificates.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#iot_hub ⇒ Object
readonly
Returns the value of attribute iot_hub.
-
#iot_hub_resource ⇒ Object
readonly
Returns the value of attribute iot_hub_resource.
-
#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.
-
#resource_provider_common ⇒ Object
readonly
Returns the value of attribute resource_provider_common.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(configurable, base_url = nil, options = nil) ⇒ IotHubManagementClass
constructor
A new instance of IotHubManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(configurable, base_url = nil, options = nil) ⇒ IotHubManagementClass
Returns a new instance of IotHubManagementClass.
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 102 def initialize(configurable, base_url=nil, =nil) @configurable, @base_url, @options = configurable, base_url, @client_0 = Azure::IotHub::Mgmt::V2019_03_22_preview::IotHubClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @operations = @client_0.operations @iot_hub_resource = @client_0.iot_hub_resource @resource_provider_common = @client_0.resource_provider_common @certificates = @client_0.certificates @iot_hub = @client_0.iot_hub @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
124 125 126 127 128 129 130 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 124 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.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def base_url @base_url end |
#certificates ⇒ Object (readonly)
Returns the value of attribute certificates.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def certificates @certificates end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def configurable @configurable end |
#iot_hub ⇒ Object (readonly)
Returns the value of attribute iot_hub.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def iot_hub @iot_hub end |
#iot_hub_resource ⇒ Object (readonly)
Returns the value of attribute iot_hub_resource.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def iot_hub_resource @iot_hub_resource end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def @options end |
#resource_provider_common ⇒ Object (readonly)
Returns the value of attribute resource_provider_common.
100 101 102 |
# File 'lib/latest/modules/iothub_profile_module.rb', line 100 def resource_provider_common @resource_provider_common end |