Class: TencentCloud::Batch::V20170312::DataDisk

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170312/models.rb

Overview

描述了数据盘的信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(disksize = nil, disktype = nil, diskid = nil, deletewithinstance = nil, snapshotid = nil, encrypt = nil, kmskeyid = nil, throughputperformance = nil, cdcid = nil, burstperformance = nil, diskname = nil) ⇒ DataDisk

Returns a new instance of DataDisk.



686
687
688
689
690
691
692
693
694
695
696
697
698
# File 'lib/v20170312/models.rb', line 686

def initialize(disksize=nil, disktype=nil, diskid=nil, deletewithinstance=nil, snapshotid=nil, encrypt=nil, kmskeyid=nil, throughputperformance=nil, cdcid=nil, burstperformance=nil, diskname=nil)
  @DiskSize = disksize
  @DiskType = disktype
  @DiskId = diskid
  @DeleteWithInstance = deletewithinstance
  @SnapshotId = snapshotid
  @Encrypt = encrypt
  @KmsKeyId = kmskeyid
  @ThroughputPerformance = throughputperformance
  @CdcId = cdcid
  @BurstPerformance = burstperformance
  @DiskName = diskname
end

Instance Attribute Details

#BurstPerformanceObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def BurstPerformance
  @BurstPerformance
end

#CdcIdObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def CdcId
  @CdcId
end

#DeleteWithInstanceObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def DeleteWithInstance
  @DeleteWithInstance
end

#DiskIdObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def DiskId
  @DiskId
end

#DiskNameObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def DiskName
  @DiskName
end

#DiskSizeObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def DiskSize
  @DiskSize
end

#DiskTypeObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def DiskType
  @DiskType
end

#EncryptObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def Encrypt
  @Encrypt
end

#KmsKeyIdObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def KmsKeyId
  @KmsKeyId
end

#SnapshotIdObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def SnapshotId
  @SnapshotId
end

#ThroughputPerformanceObject

该参数目前仅用于 ‘RunInstances` 接口。注意:此字段可能返回 null,表示取不到有效值。当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ThroughputPerformance:

    云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。

  • CdcId:

    所属的独享集群ID。

  • BurstPerformance:

    突发性能注:内测中。

  • DiskName:

    磁盘名称,长度不超过128 个字符。



684
685
686
# File 'lib/v20170312/models.rb', line 684

def ThroughputPerformance
  @ThroughputPerformance
end

Instance Method Details

#deserialize(params) ⇒ Object



700
701
702
703
704
705
706
707
708
709
710
711
712
# File 'lib/v20170312/models.rb', line 700

def deserialize(params)
  @DiskSize = params['DiskSize']
  @DiskType = params['DiskType']
  @DiskId = params['DiskId']
  @DeleteWithInstance = params['DeleteWithInstance']
  @SnapshotId = params['SnapshotId']
  @Encrypt = params['Encrypt']
  @KmsKeyId = params['KmsKeyId']
  @ThroughputPerformance = params['ThroughputPerformance']
  @CdcId = params['CdcId']
  @BurstPerformance = params['BurstPerformance']
  @DiskName = params['DiskName']
end