Class: TencentCloud::Batch::V20170312::ComputeEnvCreateInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Batch::V20170312::ComputeEnvCreateInfo
- Defined in:
- lib/v20170312/models.rb
Overview
计算环境创建信息。
Instance Attribute Summary collapse
- #Authentications ⇒ Object
- #DesiredComputeNodeCount ⇒ Object
- #EnvData ⇒ Object
- #EnvDescription ⇒ Object
- #EnvId ⇒ Object
- #EnvName ⇒ Object
- #EnvType ⇒ Object
- #InputMappings ⇒ Object
- #MountDataDisks ⇒ Object
- #Notifications ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(envid = nil, envname = nil, envdescription = nil, envtype = nil, envdata = nil, mountdatadisks = nil, inputmappings = nil, authentications = nil, notifications = nil, desiredcomputenodecount = nil, tags = nil) ⇒ ComputeEnvCreateInfo
constructor
A new instance of ComputeEnvCreateInfo.
Constructor Details
#initialize(envid = nil, envname = nil, envdescription = nil, envtype = nil, envdata = nil, mountdatadisks = nil, inputmappings = nil, authentications = nil, notifications = nil, desiredcomputenodecount = nil, tags = nil) ⇒ ComputeEnvCreateInfo
Returns a new instance of ComputeEnvCreateInfo.
289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/v20170312/models.rb', line 289 def initialize(envid=nil, envname=nil, envdescription=nil, envtype=nil, envdata=nil, mountdatadisks=nil, inputmappings=nil, authentications=nil, notifications=nil, desiredcomputenodecount=nil, =nil) @EnvId = envid @EnvName = envname @EnvDescription = envdescription @EnvType = envtype @EnvData = envdata @MountDataDisks = mountdatadisks @InputMappings = inputmappings @Authentications = authentications @Notifications = notifications @DesiredComputeNodeCount = desiredcomputenodecount @Tags = end |
Instance Attribute Details
#Authentications ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def Authentications @Authentications end |
#DesiredComputeNodeCount ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def DesiredComputeNodeCount @DesiredComputeNodeCount end |
#EnvData ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def EnvData @EnvData end |
#EnvDescription ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def EnvDescription @EnvDescription end |
#EnvId ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def EnvId @EnvId end |
#EnvName ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def EnvName @EnvName end |
#EnvType ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def EnvType @EnvType end |
#InputMappings ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def InputMappings @InputMappings end |
#MountDataDisks ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def MountDataDisks @MountDataDisks end |
#Notifications ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def Notifications @Notifications end |
#Tags ⇒ Object
287 288 289 |
# File 'lib/v20170312/models.rb', line 287 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/v20170312/models.rb', line 303 def deserialize(params) @EnvId = params['EnvId'] @EnvName = params['EnvName'] @EnvDescription = params['EnvDescription'] @EnvType = params['EnvType'] unless params['EnvData'].nil? @EnvData = EnvData.new @EnvData.deserialize(params['EnvData']) end unless params['MountDataDisks'].nil? @MountDataDisks = [] params['MountDataDisks'].each do |i| mountdatadisk_tmp = MountDataDisk.new mountdatadisk_tmp.deserialize(i) @MountDataDisks << mountdatadisk_tmp end end unless params['InputMappings'].nil? @InputMappings = [] params['InputMappings'].each do |i| inputmapping_tmp = InputMapping.new inputmapping_tmp.deserialize(i) @InputMappings << inputmapping_tmp end end unless params['Authentications'].nil? @Authentications = [] params['Authentications'].each do |i| authentication_tmp = Authentication.new authentication_tmp.deserialize(i) @Authentications << authentication_tmp end end unless params['Notifications'].nil? @Notifications = [] params['Notifications'].each do |i| notification_tmp = Notification.new notification_tmp.deserialize(i) @Notifications << notification_tmp end end @DesiredComputeNodeCount = params['DesiredComputeNodeCount'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |