Class: Azure::IotHub::Profiles::Latest::Mgmt::IotHubManagementClass
- Inherits:
-
Object
- Object
- Azure::IotHub::Profiles::Latest::Mgmt::IotHubManagementClass
- Defined in:
- lib/profiles/latest/modules/iothub_profile_module.rb
Overview
IotHubManagementClass
Direct Known Subclasses
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(options = {}) ⇒ IotHubManagementClass
constructor
A new instance of IotHubManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ IotHubManagementClass
Returns a new instance of IotHubManagementClass.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 104 def initialize( = {}) if .is_a?(Hash) && .length == 0 @options = else @options = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:[:base_url] @options = [:options].nil? ? nil:[:options] @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
136 137 138 139 140 141 142 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 136 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.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def base_url @base_url end |
#certificates ⇒ Object (readonly)
Returns the value of attribute certificates.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def certificates @certificates end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def configurable @configurable end |
#iot_hub ⇒ Object (readonly)
Returns the value of attribute iot_hub.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def iot_hub @iot_hub end |
#iot_hub_resource ⇒ Object (readonly)
Returns the value of attribute iot_hub_resource.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def iot_hub_resource @iot_hub_resource end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def @options end |
#resource_provider_common ⇒ Object (readonly)
Returns the value of attribute resource_provider_common.
102 103 104 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 102 def resource_provider_common @resource_provider_common end |
Instance Method Details
#add_telemetry(client) ⇒ Object
131 132 133 134 |
# File 'lib/profiles/latest/modules/iothub_profile_module.rb', line 131 def add_telemetry(client) profile_information = 'Profiles/Latest/IotHub/Mgmt' client.add_user_agent_information(profile_information) end |