Class: TencentCloud::Thpc::V20230321::Application
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20230321::Application
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/v20230321/models.rb
Overview
任务的应用环境配置信息。
Instance Attribute Summary collapse
-
#Commands ⇒ Object
默认参数为:Custom.
-
#Docker ⇒ Object
默认参数为:Custom.
-
#EnvVars ⇒ Object
默认参数为:Custom.
-
#JobType ⇒ Object
默认参数为:Custom.
-
#OutputRedirect ⇒ Object
默认参数为:Custom.
-
#StorageMounts ⇒ Object
默认参数为:Custom.
-
#TaskType ⇒ Object
默认参数为:Custom.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(commands = nil, storagemounts = nil, envvars = nil, docker = nil, outputredirect = nil, jobtype = nil, tasktype = nil) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(commands = nil, storagemounts = nil, envvars = nil, docker = nil, outputredirect = nil, jobtype = nil, tasktype = nil) ⇒ Application
Returns a new instance of Application.
264 265 266 267 268 269 270 271 272 |
# File 'lib/v20230321/models.rb', line 264 def initialize(commands=nil, storagemounts=nil, envvars=nil, docker=nil, outputredirect=nil, jobtype=nil, tasktype=nil) @Commands = commands @StorageMounts = storagemounts @EnvVars = envvars @Docker = docker @OutputRedirect = outputredirect @JobType = jobtype @TaskType = tasktype end |
Instance Attribute Details
#Commands ⇒ Object
默认参数为:Custom
259 260 261 |
# File 'lib/v20230321/models.rb', line 259 def Commands @Commands end |
#Docker ⇒ Object
默认参数为:Custom
259 260 261 |
# File 'lib/v20230321/models.rb', line 259 def Docker @Docker end |
#EnvVars ⇒ Object
默认参数为:Custom
259 260 261 |
# File 'lib/v20230321/models.rb', line 259 def EnvVars @EnvVars end |
#JobType ⇒ Object
默认参数为:Custom
259 260 261 |
# File 'lib/v20230321/models.rb', line 259 def JobType @JobType end |
#OutputRedirect ⇒ Object
默认参数为:Custom
259 260 261 |
# File 'lib/v20230321/models.rb', line 259 def OutputRedirect @OutputRedirect end |
#StorageMounts ⇒ Object
默认参数为:Custom
259 260 261 |
# File 'lib/v20230321/models.rb', line 259 def StorageMounts @StorageMounts end |
#TaskType ⇒ Object
默认参数为:Custom
259 260 261 |
# File 'lib/v20230321/models.rb', line 259 def TaskType @TaskType end |
Instance Method Details
#deserialize(params) ⇒ Object
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/v20230321/models.rb', line 274 def deserialize(params) unless params['Commands'].nil? @Commands = [] params['Commands'].each do |i| commanditem_tmp = CommandItem.new commanditem_tmp.deserialize(i) @Commands << commanditem_tmp end end unless params['StorageMounts'].nil? @StorageMounts = [] params['StorageMounts'].each do |i| storagemount_tmp = StorageMount.new storagemount_tmp.deserialize(i) @StorageMounts << storagemount_tmp end end unless params['EnvVars'].nil? @EnvVars = [] params['EnvVars'].each do |i| envvar_tmp = EnvVar.new envvar_tmp.deserialize(i) @EnvVars << envvar_tmp end end unless params['Docker'].nil? @Docker = Docker.new @Docker.deserialize(params['Docker']) end unless params['OutputRedirect'].nil? @OutputRedirect = OutputRedirect.new @OutputRedirect.deserialize(params['OutputRedirect']) end @JobType = params['JobType'] @TaskType = params['TaskType'] end |