Class: Azure::Profiles::Latest::BatchAI::Mgmt::BatchAIManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/latest/modules/batchai_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) ⇒ BatchAIManagementClass

Returns a new instance of BatchAIManagementClass.



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

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::BatchAI::Mgmt::V2018_05_01::BatchAIManagementClient.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)
  @operations = @client_0.operations
  @usages = @client_0.usages
  @workspaces = @client_0.workspaces
  @experiments = @client_0.experiments
  @jobs = @client_0.jobs
  @file_servers = @client_0.file_servers
  @clusters = @client_0.clusters

  @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/latest/modules/batchai_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

#base_urlObject (readonly)

Returns the value of attribute base_url.



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

def base_url
  @base_url
end

#clustersObject (readonly)

Returns the value of attribute clusters.



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

def clusters
  @clusters
end

#configurableObject (readonly)

Returns the value of attribute configurable.



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

def configurable
  @configurable
end

#experimentsObject (readonly)

Returns the value of attribute experiments.



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

def experiments
  @experiments
end

#file_serversObject (readonly)

Returns the value of attribute file_servers.



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

def file_servers
  @file_servers
end

#jobsObject (readonly)

Returns the value of attribute jobs.



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

def jobs
  @jobs
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



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

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



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

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#usagesObject (readonly)

Returns the value of attribute usages.



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

def usages
  @usages
end

#workspacesObject (readonly)

Returns the value of attribute workspaces.



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

def workspaces
  @workspaces
end

Instance Method Details

#add_telemetry(client) ⇒ Object



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

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