Class: TencentCloud::Tione::V20211111::GroupResource
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tione::V20211111::GroupResource
- Defined in:
- lib/v20211111/models.rb
Overview
资源信息
Instance Attribute Summary collapse
-
#Cpu ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Gpu ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#GpuDetailSet ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Memory ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(cpu = nil, memory = nil, gpu = nil, gpudetailset = nil) ⇒ GroupResource
constructor
A new instance of GroupResource.
Constructor Details
#initialize(cpu = nil, memory = nil, gpu = nil, gpudetailset = nil) ⇒ GroupResource
Returns a new instance of GroupResource.
4525 4526 4527 4528 4529 4530 |
# File 'lib/v20211111/models.rb', line 4525 def initialize(cpu=nil, memory=nil, gpu=nil, gpudetailset=nil) @Cpu = cpu @Memory = memory @Gpu = gpu @GpuDetailSet = gpudetailset end |
Instance Attribute Details
#Cpu ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
4523 4524 4525 |
# File 'lib/v20211111/models.rb', line 4523 def Cpu @Cpu end |
#Gpu ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
4523 4524 4525 |
# File 'lib/v20211111/models.rb', line 4523 def Gpu @Gpu end |
#GpuDetailSet ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
4523 4524 4525 |
# File 'lib/v20211111/models.rb', line 4523 def GpuDetailSet @GpuDetailSet end |
#Memory ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
4523 4524 4525 |
# File 'lib/v20211111/models.rb', line 4523 def Memory @Memory end |
Instance Method Details
#deserialize(params) ⇒ Object
4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 |
# File 'lib/v20211111/models.rb', line 4532 def deserialize(params) @Cpu = params['Cpu'] @Memory = params['Memory'] @Gpu = params['Gpu'] unless params['GpuDetailSet'].nil? @GpuDetailSet = [] params['GpuDetailSet'].each do |i| gpudetail_tmp = GpuDetail.new gpudetail_tmp.deserialize(i) @GpuDetailSet << gpudetail_tmp end end end |