Class: TencentCloud::Emr::V20190103::PodSpec
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Emr::V20190103::PodSpec
- Defined in:
- lib/v20190103/models.rb
Overview
扩容容器资源时的资源描述
Instance Attribute Summary collapse
-
#Cpu ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CpuType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DataVolumes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DynamicPodSpec ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#IsDynamicSpec ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Memory ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#NodeType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PodName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PodVolumes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResourceProviderIdentifier ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResourceProviderType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#SubnetId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#VpcId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(resourceprovideridentifier = nil, resourceprovidertype = nil, nodetype = nil, cpu = nil, memory = nil, datavolumes = nil, cputype = nil, podvolumes = nil, isdynamicspec = nil, dynamicpodspec = nil, vpcid = nil, subnetid = nil, podname = nil) ⇒ PodSpec
constructor
A new instance of PodSpec.
Constructor Details
#initialize(resourceprovideridentifier = nil, resourceprovidertype = nil, nodetype = nil, cpu = nil, memory = nil, datavolumes = nil, cputype = nil, podvolumes = nil, isdynamicspec = nil, dynamicpodspec = nil, vpcid = nil, subnetid = nil, podname = nil) ⇒ PodSpec
Returns a new instance of PodSpec.
11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 |
# File 'lib/v20190103/models.rb', line 11391 def initialize(resourceprovideridentifier=nil, resourceprovidertype=nil, nodetype=nil, cpu=nil, memory=nil, datavolumes=nil, cputype=nil, podvolumes=nil, isdynamicspec=nil, dynamicpodspec=nil, vpcid=nil, subnetid=nil, podname=nil) @ResourceProviderIdentifier = resourceprovideridentifier @ResourceProviderType = resourceprovidertype @NodeType = nodetype @Cpu = cpu @Memory = memory @DataVolumes = datavolumes @CpuType = cputype @PodVolumes = podvolumes @IsDynamicSpec = isdynamicspec @DynamicPodSpec = dynamicpodspec @VpcId = vpcid @SubnetId = subnetid @PodName = podname end |
Instance Attribute Details
#Cpu ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def Cpu @Cpu end |
#CpuType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def CpuType @CpuType end |
#DataVolumes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def DataVolumes @DataVolumes end |
#DynamicPodSpec ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def DynamicPodSpec @DynamicPodSpec end |
#IsDynamicSpec ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def IsDynamicSpec @IsDynamicSpec end |
#Memory ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def Memory @Memory end |
#NodeType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def NodeType @NodeType end |
#PodName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def PodName @PodName end |
#PodVolumes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def PodVolumes @PodVolumes end |
#ResourceProviderIdentifier ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def ResourceProviderIdentifier @ResourceProviderIdentifier end |
#ResourceProviderType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def ResourceProviderType @ResourceProviderType end |
#SubnetId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def SubnetId @SubnetId end |
#VpcId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11389 11390 11391 |
# File 'lib/v20190103/models.rb', line 11389 def VpcId @VpcId end |
Instance Method Details
#deserialize(params) ⇒ Object
11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 |
# File 'lib/v20190103/models.rb', line 11407 def deserialize(params) @ResourceProviderIdentifier = params['ResourceProviderIdentifier'] @ResourceProviderType = params['ResourceProviderType'] @NodeType = params['NodeType'] @Cpu = params['Cpu'] @Memory = params['Memory'] @DataVolumes = params['DataVolumes'] @CpuType = params['CpuType'] unless params['PodVolumes'].nil? @PodVolumes = [] params['PodVolumes'].each do |i| podvolume_tmp = PodVolume.new podvolume_tmp.deserialize(i) @PodVolumes << podvolume_tmp end end @IsDynamicSpec = params['IsDynamicSpec'] unless params['DynamicPodSpec'].nil? @DynamicPodSpec = DynamicPodSpec.new @DynamicPodSpec.deserialize(params['DynamicPodSpec']) end @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @PodName = params['PodName'] end |