Class: TencentCloud::Emr::V20190103::PodNewSpec
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Emr::V20190103::PodNewSpec
- Defined in:
- lib/v20190103/models.rb
Overview
扩容容器资源时的资源描述
Instance Attribute Summary collapse
-
#Cpu ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#CpuType ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#DynamicPodSpec ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#EnableDynamicSpecFlag ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#Memory ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#NodeFlag ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#OtherAccountInfo ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#PodName ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#PodVolumes ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#ResourceProviderIdentifier ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#ResourceProviderType ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#SubnetId ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。. -
#VpcId ⇒ Object
- true:代表是
- false:代表否
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(resourceprovideridentifier = nil, resourceprovidertype = nil, nodeflag = nil, cpu = nil, memory = nil, cputype = nil, podvolumes = nil, enabledynamicspecflag = nil, dynamicpodspec = nil, vpcid = nil, subnetid = nil, podname = nil, otheraccountinfo = nil) ⇒ PodNewSpec
constructor
A new instance of PodNewSpec.
Constructor Details
#initialize(resourceprovideridentifier = nil, resourceprovidertype = nil, nodeflag = nil, cpu = nil, memory = nil, cputype = nil, podvolumes = nil, enabledynamicspecflag = nil, dynamicpodspec = nil, vpcid = nil, subnetid = nil, podname = nil, otheraccountinfo = nil) ⇒ PodNewSpec
Returns a new instance of PodNewSpec.
11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 |
# File 'lib/v20190103/models.rb', line 11153 def initialize(resourceprovideridentifier=nil, resourceprovidertype=nil, nodeflag=nil, cpu=nil, memory=nil, cputype=nil, podvolumes=nil, enabledynamicspecflag=nil, dynamicpodspec=nil, vpcid=nil, subnetid=nil, podname=nil, otheraccountinfo=nil) @ResourceProviderIdentifier = resourceprovideridentifier @ResourceProviderType = resourceprovidertype @NodeFlag = nodeflag @Cpu = cpu @Memory = memory @CpuType = cputype @PodVolumes = podvolumes @EnableDynamicSpecFlag = enabledynamicspecflag @DynamicPodSpec = dynamicpodspec @VpcId = vpcid @SubnetId = subnetid @PodName = podname @OtherAccountInfo = otheraccountinfo end |
Instance Attribute Details
#Cpu ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def Cpu @Cpu end |
#CpuType ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def CpuType @CpuType end |
#DynamicPodSpec ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def DynamicPodSpec @DynamicPodSpec end |
#EnableDynamicSpecFlag ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def EnableDynamicSpecFlag @EnableDynamicSpecFlag end |
#Memory ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def Memory @Memory end |
#NodeFlag ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def NodeFlag @NodeFlag end |
#OtherAccountInfo ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def OtherAccountInfo @OtherAccountInfo end |
#PodName ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def PodName @PodName end |
#PodVolumes ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def PodVolumes @PodVolumes end |
#ResourceProviderIdentifier ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def ResourceProviderIdentifier @ResourceProviderIdentifier end |
#ResourceProviderType ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def ResourceProviderType @ResourceProviderType end |
#SubnetId ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def SubnetId @SubnetId end |
#VpcId ⇒ Object
11151 11152 11153 |
# File 'lib/v20190103/models.rb', line 11151 def VpcId @VpcId end |
Instance Method Details
#deserialize(params) ⇒ Object
11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 |
# File 'lib/v20190103/models.rb', line 11169 def deserialize(params) @ResourceProviderIdentifier = params['ResourceProviderIdentifier'] @ResourceProviderType = params['ResourceProviderType'] @NodeFlag = params['NodeFlag'] @Cpu = params['Cpu'] @Memory = params['Memory'] @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 @EnableDynamicSpecFlag = params['EnableDynamicSpecFlag'] unless params['DynamicPodSpec'].nil? @DynamicPodSpec = DynamicPodSpec.new @DynamicPodSpec.deserialize(params['DynamicPodSpec']) end @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @PodName = params['PodName'] unless params['OtherAccountInfo'].nil? @OtherAccountInfo = OtherAccountInfo.new @OtherAccountInfo.deserialize(params['OtherAccountInfo']) end end |