Class: TencentCloud::Cvm::V20170312::DataDisk

Inherits:
TencentCloud::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.



1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
# File 'lib/v20170312/models.rb', line 1542

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

#BurstPerformance ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def BurstPerformance
  @BurstPerformance
end

#CdcId ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def CdcId
  @CdcId
end

#DeleteWithInstance ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def DeleteWithInstance
  @DeleteWithInstance
end

#DiskId ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def DiskId
  @DiskId
end

#DiskName ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def DiskName
  @DiskName
end

#DiskSize ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def DiskSize
  @DiskSize
end

#DiskType ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def DiskType
  @DiskType
end

#Encrypt ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def Encrypt
  @Encrypt
end

#KmsKeyId ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def KmsKeyId
  @KmsKeyId
end

#SnapshotId ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def SnapshotId
  @SnapshotId
end

#ThroughputPerformance ⇒ Object

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

Parameters:

  • ThroughputPerformance: —

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

  • CdcId: —

    所属的独享集群ID。

  • BurstPerformance: —

    突发性能 注:内测中。

  • DiskName: —

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



1540
1541
1542
# File 'lib/v20170312/models.rb', line 1540

def ThroughputPerformance
  @ThroughputPerformance
end

Instance Method Details

#deserialize(params) ⇒ Object



1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
# File 'lib/v20170312/models.rb', line 1556

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