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.



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
130
131
132
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 105

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::V2017_09_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)
   = @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



139
140
141
142
143
144
145
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 139

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.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def application_operations
  @application_operations
end

#application_package_operationsObject (readonly)

Returns the value of attribute application_package_operations.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def application_package_operations
  @application_package_operations
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def base_url
  @base_url
end

#batch_account_operationsObject (readonly)

Returns the value of attribute batch_account_operations.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def 
  
end

#certificate_operationsObject (readonly)

Returns the value of attribute certificate_operations.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def certificate_operations
  @certificate_operations
end

#configurableObject (readonly)

Returns the value of attribute configurable.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def configurable
  @configurable
end

#locationObject (readonly)

Returns the value of attribute location.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def location
  @location
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def options
  @options
end

#pool_operationsObject (readonly)

Returns the value of attribute pool_operations.



103
104
105
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103

def pool_operations
  @pool_operations
end

Instance Method Details

#add_telemetry(client) ⇒ Object



134
135
136
137
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 134

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