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

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ BatchManagementClass

Returns a new instance of BatchManagementClass.



113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/latest/modules/batch_profile_module.rb', line 113

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, 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



137
138
139
140
141
142
143
# File 'lib/latest/modules/batch_profile_module.rb', line 137

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.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def application_operations
  @application_operations
end

#application_package_operationsObject (readonly)

Returns the value of attribute application_package_operations.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def application_package_operations
  @application_package_operations
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def base_url
  @base_url
end

#batch_account_operationsObject (readonly)

Returns the value of attribute batch_account_operations.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def 
  @batch_account_operations
end

#certificate_operationsObject (readonly)

Returns the value of attribute certificate_operations.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def certificate_operations
  @certificate_operations
end

#configurableObject (readonly)

Returns the value of attribute configurable.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def configurable
  @configurable
end

#locationObject (readonly)

Returns the value of attribute location.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def location
  @location
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def options
  @options
end

#pool_operationsObject (readonly)

Returns the value of attribute pool_operations.



111
112
113
# File 'lib/latest/modules/batch_profile_module.rb', line 111

def pool_operations
  @pool_operations
end

Instance Method Details

#add_telemetry(client) ⇒ Object



132
133
134
135
# File 'lib/latest/modules/batch_profile_module.rb', line 132

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Batch/Mgmt"
  client.add_user_agent_information(profile_information)
end