class Azure::Hdinsight::Profiles::Latest::Mgmt::HdinsightManagementClass
Attributes
applications[R]
base_url[R]
clusters[R]
configurable[R]
configurations[R]
extensions[R]
locations[R]
model_classes[R]
operations[R]
options[R]
script_actions[R]
script_execution_history[R]
virtual_machines[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/profiles/latest/modules/hdinsight_profile_module.rb, line 129 def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @options = setup_default_options else @options = options end reset!(options) @configurable = self @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] @client_0 = Azure::Hdinsight::Mgmt::V2018_06_01_preview::HDInsightManagementClient.new(configurable.credentials, base_url, options) 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
Public Instance Methods
add_telemetry(client)
click to toggle source
# 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
method_missing(method, *args)
click to toggle source
Calls superclass method
# 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