Class: Azure::Hdinsight::Profiles::Latest::Mgmt::HdinsightManagementClass
- Inherits:
-
Object
- Object
- Azure::Hdinsight::Profiles::Latest::Mgmt::HdinsightManagementClass
- Defined in:
- lib/profiles/latest/modules/hdinsight_profile_module.rb
Overview
HdinsightManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#applications ⇒ Object
readonly
Returns the value of attribute applications.
-
#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.
-
#configurations ⇒ Object
readonly
Returns the value of attribute configurations.
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
-
#locations ⇒ Object
readonly
Returns the value of attribute locations.
-
#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.
-
#script_actions ⇒ Object
readonly
Returns the value of attribute script_actions.
-
#script_execution_history ⇒ Object
readonly
Returns the value of attribute script_execution_history.
-
#virtual_machines ⇒ Object
readonly
Returns the value of attribute virtual_machines.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ HdinsightManagementClass
constructor
A new instance of HdinsightManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ HdinsightManagementClass
Returns a new instance of HdinsightManagementClass.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 129 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::Hdinsight::Mgmt::V2018_06_01_preview::HDInsightManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @clusters = @client_0.clusters @applications = @client_0.applications @locations = @client_0.locations @configurations = @client_0.configurations @extensions = @client_0.extensions @script_actions = @client_0.script_actions @script_execution_history = @client_0.script_execution_history @operations = @client_0.operations @virtual_machines = @client_0.virtual_machines @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
165 166 167 168 169 170 171 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 165 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#applications ⇒ Object (readonly)
Returns the value of attribute applications.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def applications @applications end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def base_url @base_url end |
#clusters ⇒ Object (readonly)
Returns the value of attribute clusters.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def clusters @clusters end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def configurable @configurable end |
#configurations ⇒ Object (readonly)
Returns the value of attribute configurations.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def configurations @configurations end |
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def extensions @extensions end |
#locations ⇒ Object (readonly)
Returns the value of attribute locations.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def locations @locations end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def end |
#script_actions ⇒ Object (readonly)
Returns the value of attribute script_actions.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def script_actions @script_actions end |
#script_execution_history ⇒ Object (readonly)
Returns the value of attribute script_execution_history.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def script_execution_history @script_execution_history end |
#virtual_machines ⇒ Object (readonly)
Returns the value of attribute virtual_machines.
127 128 129 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 127 def virtual_machines @virtual_machines end |
Instance Method Details
#add_telemetry(client) ⇒ Object
160 161 162 163 |
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 160 def add_telemetry(client) profile_information = 'Profiles/Latest/Hdinsight/Mgmt' client.add_user_agent_information(profile_information) end |