tencentcloud-sdk-cbs 1.0.294 → 1.0.295
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +1 -0
- data/lib/v20170312/models.rb +61 -41
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37823e967815fda47c7a0b72c62e2a772308d427
|
4
|
+
data.tar.gz: 345bd6cbb1f3c1108a7797f8c1af353312b0ad49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9d7ac7c5acac3d58ded8a59e0bb3ff10bbf314c9bf9d7de8e047b8760b42cc09cfafd931ee039fcb21f49b9469e2cef6898153fa09caafd1281db8faa7e8ed0
|
7
|
+
data.tar.gz: 246a7f128def1587af57979f032db14e26277781f568b15b1dcba397e96acfa09b603ed7bc06f29bd119ca711c864c90d46d96f570588a9e515ef511175d1737
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.295
|
data/lib/v20170312/client.rb
CHANGED
@@ -197,6 +197,7 @@ module TencentCloud
|
|
197
197
|
|
198
198
|
# * 只有具有快照能力的云硬盘才能创建快照。云硬盘是否具有快照能力可由[DescribeDisks](/document/product/362/16315)接口查询,见SnapshotAbility字段。
|
199
199
|
# * 可创建快照数量限制见[产品使用限制](https://cloud.tencent.com/doc/product/362/5145)。
|
200
|
+
# * 当前支持将备份点转化为普通快照,转化之后可能会收取快照使用费用,备份点不保留,其占用的备份点配额也将被释放。
|
200
201
|
|
201
202
|
# @param request: Request instance for CreateSnapshot.
|
202
203
|
# @type request: :class:`Tencentcloud::cbs::V20170312::CreateSnapshotRequest`
|
data/lib/v20170312/models.rb
CHANGED
@@ -468,10 +468,12 @@ module TencentCloud
|
|
468
468
|
# @type DeleteSnapshot: Integer
|
469
469
|
# @param AutoMountConfiguration: 创建云盘时指定自动挂载并初始化该数据盘。
|
470
470
|
# @type AutoMountConfiguration: :class:`Tencentcloud::Cbs.v20170312.models.AutoMountConfiguration`
|
471
|
+
# @param DiskBackupQuota: 指定云硬盘备份点配额。
|
472
|
+
# @type DiskBackupQuota: Integer
|
471
473
|
|
472
|
-
attr_accessor :Placement, :DiskChargeType, :DiskType, :DiskName, :Tags, :SnapshotId, :DiskCount, :ThroughputPerformance, :DiskSize, :Shareable, :ClientToken, :Encrypt, :DiskChargePrepaid, :DeleteSnapshot, :AutoMountConfiguration
|
474
|
+
attr_accessor :Placement, :DiskChargeType, :DiskType, :DiskName, :Tags, :SnapshotId, :DiskCount, :ThroughputPerformance, :DiskSize, :Shareable, :ClientToken, :Encrypt, :DiskChargePrepaid, :DeleteSnapshot, :AutoMountConfiguration, :DiskBackupQuota
|
473
475
|
|
474
|
-
def initialize(placement=nil, diskchargetype=nil, disktype=nil, diskname=nil, tags=nil, snapshotid=nil, diskcount=nil, throughputperformance=nil, disksize=nil, shareable=nil, clienttoken=nil, encrypt=nil, diskchargeprepaid=nil, deletesnapshot=nil, automountconfiguration=nil)
|
476
|
+
def initialize(placement=nil, diskchargetype=nil, disktype=nil, diskname=nil, tags=nil, snapshotid=nil, diskcount=nil, throughputperformance=nil, disksize=nil, shareable=nil, clienttoken=nil, encrypt=nil, diskchargeprepaid=nil, deletesnapshot=nil, automountconfiguration=nil, diskbackupquota=nil)
|
475
477
|
@Placement = placement
|
476
478
|
@DiskChargeType = diskchargetype
|
477
479
|
@DiskType = disktype
|
@@ -487,6 +489,7 @@ module TencentCloud
|
|
487
489
|
@DiskChargePrepaid = diskchargeprepaid
|
488
490
|
@DeleteSnapshot = deletesnapshot
|
489
491
|
@AutoMountConfiguration = automountconfiguration
|
492
|
+
@DiskBackupQuota = diskbackupquota
|
490
493
|
end
|
491
494
|
|
492
495
|
def deserialize(params)
|
@@ -521,6 +524,7 @@ module TencentCloud
|
|
521
524
|
@AutoMountConfiguration = AutoMountConfiguration.new
|
522
525
|
@AutoMountConfiguration.deserialize(params['AutoMountConfiguration'])
|
523
526
|
end
|
527
|
+
@DiskBackupQuota = params['DiskBackupQuota']
|
524
528
|
end
|
525
529
|
end
|
526
530
|
|
@@ -552,19 +556,23 @@ module TencentCloud
|
|
552
556
|
# @type SnapshotName: String
|
553
557
|
# @param Deadline: 快照的到期时间,到期后该快照将会自动删除,需要传入UTC时间下的ISO-8601标准时间格式,例如:2022-01-08T09:47:55+00:00
|
554
558
|
# @type Deadline: String
|
559
|
+
# @param DiskBackupId: 云硬盘备份点ID。传入此参数时,将通过备份点创建快照。
|
560
|
+
# @type DiskBackupId: String
|
555
561
|
|
556
|
-
attr_accessor :DiskId, :SnapshotName, :Deadline
|
562
|
+
attr_accessor :DiskId, :SnapshotName, :Deadline, :DiskBackupId
|
557
563
|
|
558
|
-
def initialize(diskid=nil, snapshotname=nil, deadline=nil)
|
564
|
+
def initialize(diskid=nil, snapshotname=nil, deadline=nil, diskbackupid=nil)
|
559
565
|
@DiskId = diskid
|
560
566
|
@SnapshotName = snapshotname
|
561
567
|
@Deadline = deadline
|
568
|
+
@DiskBackupId = diskbackupid
|
562
569
|
end
|
563
570
|
|
564
571
|
def deserialize(params)
|
565
572
|
@DiskId = params['DiskId']
|
566
573
|
@SnapshotName = params['SnapshotName']
|
567
574
|
@Deadline = params['Deadline']
|
575
|
+
@DiskBackupId = params['DiskBackupId']
|
568
576
|
end
|
569
577
|
end
|
570
578
|
|
@@ -1395,10 +1403,14 @@ module TencentCloud
|
|
1395
1403
|
# @type CreateTime: String
|
1396
1404
|
# @param DeleteSnapshot: 销毁云盘时删除关联的非永久保留快照。0 表示非永久快照不随云盘销毁而销毁,1表示非永久快照随云盘销毁而销毁,默认取0。快照是否永久保留可以通过DescribeSnapshots接口返回的快照详情的IsPermanent字段来判断,true表示永久快照,false表示非永久快照。
|
1397
1405
|
# @type DeleteSnapshot: Integer
|
1406
|
+
# @param DiskBackupCount: 云硬盘备份点已使用的数量。
|
1407
|
+
# @type DiskBackupCount: Integer
|
1408
|
+
# @param InstanceType: 云硬盘挂载实例的类型。取值范围:<br><li>CVM<br><li>EKS
|
1409
|
+
# @type InstanceType: String
|
1398
1410
|
|
1399
|
-
attr_accessor :DeleteWithInstance, :RenewFlag, :DiskType, :DiskState, :SnapshotCount, :AutoRenewFlagError, :Rollbacking, :InstanceIdList, :Encrypt, :DiskName, :BackupDisk, :Tags, :InstanceId, :AttachMode, :AutoSnapshotPolicyIds, :ThroughputPerformance, :Migrating, :DiskId, :SnapshotSize, :Placement, :IsReturnable, :DeadlineTime, :Attached, :DiskSize, :MigratePercent, :DiskUsage, :DiskChargeType, :Portable, :SnapshotAbility, :DeadlineError, :RollbackPercent, :DifferDaysOfDeadline, :ReturnFailCode, :Shareable, :CreateTime, :DeleteSnapshot
|
1411
|
+
attr_accessor :DeleteWithInstance, :RenewFlag, :DiskType, :DiskState, :SnapshotCount, :AutoRenewFlagError, :Rollbacking, :InstanceIdList, :Encrypt, :DiskName, :BackupDisk, :Tags, :InstanceId, :AttachMode, :AutoSnapshotPolicyIds, :ThroughputPerformance, :Migrating, :DiskId, :SnapshotSize, :Placement, :IsReturnable, :DeadlineTime, :Attached, :DiskSize, :MigratePercent, :DiskUsage, :DiskChargeType, :Portable, :SnapshotAbility, :DeadlineError, :RollbackPercent, :DifferDaysOfDeadline, :ReturnFailCode, :Shareable, :CreateTime, :DeleteSnapshot, :DiskBackupCount, :InstanceType
|
1400
1412
|
|
1401
|
-
def initialize(deletewithinstance=nil, renewflag=nil, disktype=nil, diskstate=nil, snapshotcount=nil, autorenewflagerror=nil, rollbacking=nil, instanceidlist=nil, encrypt=nil, diskname=nil, backupdisk=nil, tags=nil, instanceid=nil, attachmode=nil, autosnapshotpolicyids=nil, throughputperformance=nil, migrating=nil, diskid=nil, snapshotsize=nil, placement=nil, isreturnable=nil, deadlinetime=nil, attached=nil, disksize=nil, migratepercent=nil, diskusage=nil, diskchargetype=nil, portable=nil, snapshotability=nil, deadlineerror=nil, rollbackpercent=nil, differdaysofdeadline=nil, returnfailcode=nil, shareable=nil, createtime=nil, deletesnapshot=nil)
|
1413
|
+
def initialize(deletewithinstance=nil, renewflag=nil, disktype=nil, diskstate=nil, snapshotcount=nil, autorenewflagerror=nil, rollbacking=nil, instanceidlist=nil, encrypt=nil, diskname=nil, backupdisk=nil, tags=nil, instanceid=nil, attachmode=nil, autosnapshotpolicyids=nil, throughputperformance=nil, migrating=nil, diskid=nil, snapshotsize=nil, placement=nil, isreturnable=nil, deadlinetime=nil, attached=nil, disksize=nil, migratepercent=nil, diskusage=nil, diskchargetype=nil, portable=nil, snapshotability=nil, deadlineerror=nil, rollbackpercent=nil, differdaysofdeadline=nil, returnfailcode=nil, shareable=nil, createtime=nil, deletesnapshot=nil, diskbackupcount=nil, instancetype=nil)
|
1402
1414
|
@DeleteWithInstance = deletewithinstance
|
1403
1415
|
@RenewFlag = renewflag
|
1404
1416
|
@DiskType = disktype
|
@@ -1435,6 +1447,8 @@ module TencentCloud
|
|
1435
1447
|
@Shareable = shareable
|
1436
1448
|
@CreateTime = createtime
|
1437
1449
|
@DeleteSnapshot = deletesnapshot
|
1450
|
+
@DiskBackupCount = diskbackupcount
|
1451
|
+
@InstanceType = instancetype
|
1438
1452
|
end
|
1439
1453
|
|
1440
1454
|
def deserialize(params)
|
@@ -1484,6 +1498,8 @@ module TencentCloud
|
|
1484
1498
|
@Shareable = params['Shareable']
|
1485
1499
|
@CreateTime = params['CreateTime']
|
1486
1500
|
@DeleteSnapshot = params['DeleteSnapshot']
|
1501
|
+
@DiskBackupCount = params['DiskBackupCount']
|
1502
|
+
@InstanceType = params['InstanceType']
|
1487
1503
|
end
|
1488
1504
|
end
|
1489
1505
|
|
@@ -1769,44 +1785,48 @@ module TencentCloud
|
|
1769
1785
|
|
1770
1786
|
# InquiryPriceCreateDisks请求参数结构体
|
1771
1787
|
class InquiryPriceCreateDisksRequest < TencentCloud::Common::AbstractModel
|
1788
|
+
# @param DiskChargeType: 云硬盘计费类型。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费
|
1789
|
+
# @type DiskChargeType: String
|
1772
1790
|
# @param DiskType: 硬盘介质类型。取值范围:<br><li>CLOUD_BASIC:表示普通云硬盘<br><li>CLOUD_PREMIUM:表示高性能云硬盘<br><li>CLOUD_SSD:表示SSD云硬盘<br><li>CLOUD_HSSD:表示增强型SSD云硬盘<br><li>CLOUD_TSSD:表示极速型SSD云硬盘。
|
1773
1791
|
# @type DiskType: String
|
1774
1792
|
# @param DiskSize: 云硬盘大小,单位为GB。云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
|
1775
1793
|
# @type DiskSize: Integer
|
1776
|
-
# @param DiskChargeType: 云硬盘计费类型。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费
|
1777
|
-
# @type DiskChargeType: String
|
1778
|
-
# @param DiskChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数指定包年包月云盘的购买时长、是否设置自动续费等属性。<br>创建预付费云盘该参数必传,创建按小时后付费云盘无需传该参数。
|
1779
|
-
# @type DiskChargePrepaid: :class:`Tencentcloud::Cbs.v20170312.models.DiskChargePrepaid`
|
1780
|
-
# @param DiskCount: 购买云盘的数量。不填则默认为1。
|
1781
|
-
# @type DiskCount: Integer
|
1782
1794
|
# @param ProjectId: 云盘所属项目ID。
|
1783
1795
|
# @type ProjectId: Integer
|
1796
|
+
# @param DiskCount: 购买云盘的数量。不填则默认为1。
|
1797
|
+
# @type DiskCount: Integer
|
1784
1798
|
# @param ThroughputPerformance: 额外购买的云硬盘性能值,单位MB/s。<br>目前仅支持增强型SSD云硬盘(CLOUD_HSSD)和极速型SSD云硬盘(CLOUD_TSSD)
|
1785
1799
|
# @type ThroughputPerformance: Integer
|
1800
|
+
# @param DiskChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数指定包年包月云盘的购买时长、是否设置自动续费等属性。<br>创建预付费云盘该参数必传,创建按小时后付费云盘无需传该参数。
|
1801
|
+
# @type DiskChargePrepaid: :class:`Tencentcloud::Cbs.v20170312.models.DiskChargePrepaid`
|
1802
|
+
# @param DiskBackupQuota: 指定云硬盘备份点配额。
|
1803
|
+
# @type DiskBackupQuota: Integer
|
1786
1804
|
|
1787
|
-
attr_accessor :DiskType, :DiskSize, :
|
1805
|
+
attr_accessor :DiskChargeType, :DiskType, :DiskSize, :ProjectId, :DiskCount, :ThroughputPerformance, :DiskChargePrepaid, :DiskBackupQuota
|
1788
1806
|
|
1789
|
-
def initialize(disktype=nil, disksize=nil,
|
1807
|
+
def initialize(diskchargetype=nil, disktype=nil, disksize=nil, projectid=nil, diskcount=nil, throughputperformance=nil, diskchargeprepaid=nil, diskbackupquota=nil)
|
1808
|
+
@DiskChargeType = diskchargetype
|
1790
1809
|
@DiskType = disktype
|
1791
1810
|
@DiskSize = disksize
|
1792
|
-
@DiskChargeType = diskchargetype
|
1793
|
-
@DiskChargePrepaid = diskchargeprepaid
|
1794
|
-
@DiskCount = diskcount
|
1795
1811
|
@ProjectId = projectid
|
1812
|
+
@DiskCount = diskcount
|
1796
1813
|
@ThroughputPerformance = throughputperformance
|
1814
|
+
@DiskChargePrepaid = diskchargeprepaid
|
1815
|
+
@DiskBackupQuota = diskbackupquota
|
1797
1816
|
end
|
1798
1817
|
|
1799
1818
|
def deserialize(params)
|
1819
|
+
@DiskChargeType = params['DiskChargeType']
|
1800
1820
|
@DiskType = params['DiskType']
|
1801
1821
|
@DiskSize = params['DiskSize']
|
1802
|
-
@
|
1822
|
+
@ProjectId = params['ProjectId']
|
1823
|
+
@DiskCount = params['DiskCount']
|
1824
|
+
@ThroughputPerformance = params['ThroughputPerformance']
|
1803
1825
|
unless params['DiskChargePrepaid'].nil?
|
1804
1826
|
@DiskChargePrepaid = DiskChargePrepaid.new
|
1805
1827
|
@DiskChargePrepaid.deserialize(params['DiskChargePrepaid'])
|
1806
1828
|
end
|
1807
|
-
@
|
1808
|
-
@ProjectId = params['ProjectId']
|
1809
|
-
@ThroughputPerformance = params['ThroughputPerformance']
|
1829
|
+
@DiskBackupQuota = params['DiskBackupQuota']
|
1810
1830
|
end
|
1811
1831
|
end
|
1812
1832
|
|
@@ -2366,58 +2386,58 @@ module TencentCloud
|
|
2366
2386
|
|
2367
2387
|
# 描述预付费或后付费云盘的价格。
|
2368
2388
|
class Price < TencentCloud::Common::AbstractModel
|
2369
|
-
# @param
|
2389
|
+
# @param UnitPriceDiscount: 后付费云盘折扣单价,单位:元。
|
2370
2390
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2371
|
-
# @type
|
2391
|
+
# @type UnitPriceDiscount: Float
|
2372
2392
|
# @param DiscountPrice: 预付费云盘预支费用的折扣价,单位:元。
|
2373
2393
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2374
2394
|
# @type DiscountPrice: Float
|
2375
2395
|
# @param UnitPrice: 后付费云盘原单价,单位:元。
|
2376
2396
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2377
2397
|
# @type UnitPrice: Float
|
2378
|
-
# @param
|
2379
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2380
|
-
# @type ChargeUnit: String
|
2381
|
-
# @param UnitPriceDiscount: 后付费云盘折扣单价,单位:元。
|
2398
|
+
# @param UnitPriceHigh: 高精度后付费云盘原单价, 单位:元
|
2382
2399
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2383
|
-
# @type
|
2400
|
+
# @type UnitPriceHigh: String
|
2384
2401
|
# @param OriginalPriceHigh: 高精度预付费云盘预支费用的原价, 单位:元 。
|
2385
2402
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2386
2403
|
# @type OriginalPriceHigh: String
|
2404
|
+
# @param OriginalPrice: 预付费云盘预支费用的原价,单位:元。
|
2405
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2406
|
+
# @type OriginalPrice: Float
|
2387
2407
|
# @param DiscountPriceHigh: 高精度预付费云盘预支费用的折扣价, 单位:元
|
2388
2408
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2389
2409
|
# @type DiscountPriceHigh: String
|
2390
|
-
# @param UnitPriceHigh: 高精度后付费云盘原单价, 单位:元
|
2391
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2392
|
-
# @type UnitPriceHigh: String
|
2393
2410
|
# @param UnitPriceDiscountHigh: 高精度后付费云盘折扣单价, 单位:元
|
2394
2411
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2395
2412
|
# @type UnitPriceDiscountHigh: String
|
2413
|
+
# @param ChargeUnit: 后付费云盘的计价单元,取值范围:<br><li>HOUR:表示后付费云盘的计价单元是按小时计算。
|
2414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2415
|
+
# @type ChargeUnit: String
|
2396
2416
|
|
2397
|
-
attr_accessor :
|
2417
|
+
attr_accessor :UnitPriceDiscount, :DiscountPrice, :UnitPrice, :UnitPriceHigh, :OriginalPriceHigh, :OriginalPrice, :DiscountPriceHigh, :UnitPriceDiscountHigh, :ChargeUnit
|
2398
2418
|
|
2399
|
-
def initialize(
|
2400
|
-
@
|
2419
|
+
def initialize(unitpricediscount=nil, discountprice=nil, unitprice=nil, unitpricehigh=nil, originalpricehigh=nil, originalprice=nil, discountpricehigh=nil, unitpricediscounthigh=nil, chargeunit=nil)
|
2420
|
+
@UnitPriceDiscount = unitpricediscount
|
2401
2421
|
@DiscountPrice = discountprice
|
2402
2422
|
@UnitPrice = unitprice
|
2403
|
-
@
|
2404
|
-
@UnitPriceDiscount = unitpricediscount
|
2423
|
+
@UnitPriceHigh = unitpricehigh
|
2405
2424
|
@OriginalPriceHigh = originalpricehigh
|
2425
|
+
@OriginalPrice = originalprice
|
2406
2426
|
@DiscountPriceHigh = discountpricehigh
|
2407
|
-
@UnitPriceHigh = unitpricehigh
|
2408
2427
|
@UnitPriceDiscountHigh = unitpricediscounthigh
|
2428
|
+
@ChargeUnit = chargeunit
|
2409
2429
|
end
|
2410
2430
|
|
2411
2431
|
def deserialize(params)
|
2412
|
-
@
|
2432
|
+
@UnitPriceDiscount = params['UnitPriceDiscount']
|
2413
2433
|
@DiscountPrice = params['DiscountPrice']
|
2414
2434
|
@UnitPrice = params['UnitPrice']
|
2415
|
-
@
|
2416
|
-
@UnitPriceDiscount = params['UnitPriceDiscount']
|
2435
|
+
@UnitPriceHigh = params['UnitPriceHigh']
|
2417
2436
|
@OriginalPriceHigh = params['OriginalPriceHigh']
|
2437
|
+
@OriginalPrice = params['OriginalPrice']
|
2418
2438
|
@DiscountPriceHigh = params['DiscountPriceHigh']
|
2419
|
-
@UnitPriceHigh = params['UnitPriceHigh']
|
2420
2439
|
@UnitPriceDiscountHigh = params['UnitPriceDiscountHigh']
|
2440
|
+
@ChargeUnit = params['ChargeUnit']
|
2421
2441
|
end
|
2422
2442
|
end
|
2423
2443
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.295
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|