Class: Azure::Batch::Profiles::Latest::Mgmt::BatchManagementClass

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

Overview

BatchManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ BatchManagementClass

Returns a new instance of BatchManagementClass.



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 115

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::Batch::Mgmt::V2019_08_01::BatchManagementClient.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)
  @batch_account_operations = @client_0.
  @application_package_operations = @client_0.application_package_operations
  @application_operations = @client_0.application_operations
  @location = @client_0.location
  @operations = @client_0.operations
  @certificate_operations = @client_0.certificate_operations
  @pool_operations = @client_0.pool_operations

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



149
150
151
152
153
154
155
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 149

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

Instance Attribute Details

#application_operationsObject (readonly)

Returns the value of attribute application_operations.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def application_operations
  @application_operations
end

#application_package_operationsObject (readonly)

Returns the value of attribute application_package_operations.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def application_package_operations
  @application_package_operations
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def base_url
  @base_url
end

#batch_account_operationsObject (readonly)

Returns the value of attribute batch_account_operations.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def 
  @batch_account_operations
end

#certificate_operationsObject (readonly)

Returns the value of attribute certificate_operations.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def certificate_operations
  @certificate_operations
end

#configurableObject (readonly)

Returns the value of attribute configurable.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def configurable
  @configurable
end

#locationObject (readonly)

Returns the value of attribute location.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def location
  @location
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def options
  @options
end

#pool_operationsObject (readonly)

Returns the value of attribute pool_operations.



113
114
115
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113

def pool_operations
  @pool_operations
end

Instance Method Details

#add_telemetry(client) ⇒ Object



144
145
146
147
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 144

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