Class: Azure::Hdinsight::Profiles::Latest::Mgmt::HdinsightManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/hdinsight_profile_module.rb

Overview

HdinsightManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ HdinsightManagementClass

Returns a new instance of HdinsightManagementClass.



122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 122

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



158
159
160
161
162
163
164
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 158

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#applicationsObject (readonly)

Returns the value of attribute applications.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def applications
  @applications
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def base_url
  @base_url
end

#clustersObject (readonly)

Returns the value of attribute clusters.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def clusters
  @clusters
end

#configurableObject (readonly)

Returns the value of attribute configurable.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def configurable
  @configurable
end

#configurationsObject (readonly)

Returns the value of attribute configurations.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def configurations
  @configurations
end

#extensionsObject (readonly)

Returns the value of attribute extensions.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def extensions
  @extensions
end

#locationsObject (readonly)

Returns the value of attribute locations.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def locations
  @locations
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def options
  @options
end

#script_actionsObject (readonly)

Returns the value of attribute script_actions.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def script_actions
  @script_actions
end

#script_execution_historyObject (readonly)

Returns the value of attribute script_execution_history.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def script_execution_history
  @script_execution_history
end

#virtual_machinesObject (readonly)

Returns the value of attribute virtual_machines.



120
121
122
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 120

def virtual_machines
  @virtual_machines
end

Instance Method Details

#add_telemetry(client) ⇒ Object



153
154
155
156
# File 'lib/profiles/latest/modules/hdinsight_profile_module.rb', line 153

def add_telemetry(client)
  profile_information = 'Profiles/Latest/Hdinsight/Mgmt'
  client.add_user_agent_information(profile_information)
end