Class: TencentCloud::Batch::V20170312::ComputeEnvView
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Batch::V20170312::ComputeEnvView
- Defined in:
- lib/v20170312/models.rb
Overview
计算环境信息
Instance Attribute Summary collapse
-
#AttachedComputeNodeCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ComputeNodeMetrics ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DesiredComputeNodeCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#EnvId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#EnvName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#EnvType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#NextAction ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Placement ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResourceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(envid = nil, envname = nil, placement = nil, createtime = nil, computenodemetrics = nil, envtype = nil, desiredcomputenodecount = nil, resourcetype = nil, nextaction = nil, attachedcomputenodecount = nil, tags = nil) ⇒ ComputeEnvView
constructor
A new instance of ComputeEnvView.
Constructor Details
#initialize(envid = nil, envname = nil, placement = nil, createtime = nil, computenodemetrics = nil, envtype = nil, desiredcomputenodecount = nil, resourcetype = nil, nextaction = nil, attachedcomputenodecount = nil, tags = nil) ⇒ ComputeEnvView
Returns a new instance of ComputeEnvView.
400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/v20170312/models.rb', line 400 def initialize(envid=nil, envname=nil, placement=nil, createtime=nil, computenodemetrics=nil, envtype=nil, desiredcomputenodecount=nil, resourcetype=nil, nextaction=nil, attachedcomputenodecount=nil, =nil) @EnvId = envid @EnvName = envname @Placement = placement @CreateTime = createtime @ComputeNodeMetrics = computenodemetrics @EnvType = envtype @DesiredComputeNodeCount = desiredcomputenodecount @ResourceType = resourcetype @NextAction = nextaction @AttachedComputeNodeCount = attachedcomputenodecount @Tags = end |
Instance Attribute Details
#AttachedComputeNodeCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def AttachedComputeNodeCount @AttachedComputeNodeCount end |
#ComputeNodeMetrics ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def ComputeNodeMetrics @ComputeNodeMetrics end |
#CreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def CreateTime @CreateTime end |
#DesiredComputeNodeCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def DesiredComputeNodeCount @DesiredComputeNodeCount end |
#EnvId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def EnvId @EnvId end |
#EnvName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def EnvName @EnvName end |
#EnvType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def EnvType @EnvType end |
#NextAction ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def NextAction @NextAction end |
#Placement ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def Placement @Placement end |
#ResourceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def ResourceType @ResourceType end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
398 399 400 |
# File 'lib/v20170312/models.rb', line 398 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 |
# File 'lib/v20170312/models.rb', line 414 def deserialize(params) @EnvId = params['EnvId'] @EnvName = params['EnvName'] unless params['Placement'].nil? @Placement = Placement.new @Placement.deserialize(params['Placement']) end @CreateTime = params['CreateTime'] unless params['ComputeNodeMetrics'].nil? @ComputeNodeMetrics = ComputeNodeMetrics.new @ComputeNodeMetrics.deserialize(params['ComputeNodeMetrics']) end @EnvType = params['EnvType'] @DesiredComputeNodeCount = params['DesiredComputeNodeCount'] @ResourceType = params['ResourceType'] @NextAction = params['NextAction'] @AttachedComputeNodeCount = params['AttachedComputeNodeCount'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |