Class: TencentCloud::Thpc::V20230321::ComputeNode
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20230321::ComputeNode
- Defined in:
- lib/v20230321/models.rb
Overview
计算节点信息。
Instance Attribute Summary collapse
-
#DataDisks ⇒ Object
最多支持60个字符。</li>.
-
#InstanceChargePrepaid ⇒ Object
最多支持60个字符。</li>.
-
#InstanceChargeType ⇒ Object
最多支持60个字符。</li>.
-
#InstanceName ⇒ Object
最多支持60个字符。</li>.
-
#InstanceType ⇒ Object
最多支持60个字符。</li>.
-
#InternetAccessible ⇒ Object
最多支持60个字符。</li>.
-
#ProjectId ⇒ Object
最多支持60个字符。</li>.
-
#ResourceType ⇒ Object
最多支持60个字符。</li>.
-
#SystemDisk ⇒ Object
最多支持60个字符。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instancechargetype = nil, instancechargeprepaid = nil, instancetype = nil, systemdisk = nil, datadisks = nil, internetaccessible = nil, instancename = nil, projectid = nil, resourcetype = nil) ⇒ ComputeNode
constructor
A new instance of ComputeNode.
Constructor Details
#initialize(instancechargetype = nil, instancechargeprepaid = nil, instancetype = nil, systemdisk = nil, datadisks = nil, internetaccessible = nil, instancename = nil, projectid = nil, resourcetype = nil) ⇒ ComputeNode
Returns a new instance of ComputeNode.
550 551 552 553 554 555 556 557 558 559 560 |
# File 'lib/v20230321/models.rb', line 550 def initialize(instancechargetype=nil, instancechargeprepaid=nil, instancetype=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, instancename=nil, projectid=nil, resourcetype=nil) @InstanceChargeType = instancechargetype @InstanceChargePrepaid = instancechargeprepaid @InstanceType = instancetype @SystemDisk = systemdisk @DataDisks = datadisks @InternetAccessible = internetaccessible @InstanceName = instancename @ProjectId = projectid @ResourceType = resourcetype end |
Instance Attribute Details
#DataDisks ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def DataDisks @DataDisks end |
#InstanceChargePrepaid ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def InstanceChargePrepaid @InstanceChargePrepaid end |
#InstanceChargeType ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def InstanceChargeType @InstanceChargeType end |
#InstanceName ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def InstanceName @InstanceName end |
#InstanceType ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def InstanceType @InstanceType end |
#InternetAccessible ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def InternetAccessible @InternetAccessible end |
#ProjectId ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def ProjectId @ProjectId end |
#ResourceType ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def ResourceType @ResourceType end |
#SystemDisk ⇒ Object
最多支持60个字符。</li>
548 549 550 |
# File 'lib/v20230321/models.rb', line 548 def SystemDisk @SystemDisk end |
Instance Method Details
#deserialize(params) ⇒ Object
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'lib/v20230321/models.rb', line 562 def deserialize(params) @InstanceChargeType = params['InstanceChargeType'] unless params['InstanceChargePrepaid'].nil? @InstanceChargePrepaid = InstanceChargePrepaid.new @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid']) end @InstanceType = params['InstanceType'] unless params['SystemDisk'].nil? @SystemDisk = SystemDisk.new @SystemDisk.deserialize(params['SystemDisk']) end unless params['DataDisks'].nil? @DataDisks = [] params['DataDisks'].each do |i| datadisk_tmp = DataDisk.new datadisk_tmp.deserialize(i) @DataDisks << datadisk_tmp end end unless params['InternetAccessible'].nil? @InternetAccessible = InternetAccessible.new @InternetAccessible.deserialize(params['InternetAccessible']) end @InstanceName = params['InstanceName'] @ProjectId = params['ProjectId'] @ResourceType = params['ResourceType'] end |