tencentcloud-sdk-cbs 1.0.237 → 1.0.241
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 +28 -0
- data/lib/v20170312/models.rb +45 -5
- 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: 1264acf265589fb0562ae5e9830100be5865ceb5
|
4
|
+
data.tar.gz: ea4bb689a988d2e5aa79b05db7c4deb32ab83a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ae05c6ed81fdf305bea454e5abee239aeeb5ec8a1d95869244512ded7e559e0062316a1012c6f65fe451efc6c3d72a0a439e1e24511483e5086e8a3b9173a3
|
7
|
+
data.tar.gz: 9d6df92dd194bdcf65483f09011885efa0ff17685dc59fc7538d07bbb0cfeabf311804c53f9eab97800cb2fdbe77ed0da30565feb2a8aab7b76a00501710823c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.241
|
data/lib/v20170312/client.rb
CHANGED
@@ -553,6 +553,34 @@ module TencentCloud
|
|
553
553
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
554
554
|
end
|
555
555
|
|
556
|
+
# 重新初始化云硬盘至云硬盘初始创建时的状态。使用云硬盘的重新初始化功能时需要注意以下4点:
|
557
|
+
# 1. 如果云硬盘是由快照创建的,则重新初始化会通过此快照重新回滚此云硬盘,即将云硬盘恢复为与快照一致的状态;
|
558
|
+
# 2. 如果云硬盘不是通过快照创建的,则重新初始化会清空此云硬盘的数据;请在重新初始化云硬盘前检查并备份必要的数据;
|
559
|
+
# 3. 当前仅未挂载的、非共享属性的数据盘云硬盘支持重新初始化;
|
560
|
+
# 4. 当创建此云硬盘的原始快照被删除时,不再支持重新初始化此云硬盘。
|
561
|
+
|
562
|
+
# @param request: Request instance for InitializeDisks.
|
563
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::InitializeDisksRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::InitializeDisksResponse`
|
565
|
+
def InitializeDisks(request)
|
566
|
+
body = send_request('InitializeDisks', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = InitializeDisksResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
556
584
|
# 本接口(InquirePriceModifyDiskExtraPerformance)用于调整云硬盘额外性能询价。
|
557
585
|
|
558
586
|
# @param request: Request instance for InquirePriceModifyDiskExtraPerformance.
|
data/lib/v20170312/models.rb
CHANGED
@@ -499,7 +499,7 @@ module TencentCloud
|
|
499
499
|
# @type DiskId: String
|
500
500
|
# @param SnapshotName: 快照名称,不传则新快照名称默认为“未命名”。
|
501
501
|
# @type SnapshotName: String
|
502
|
-
# @param Deadline:
|
502
|
+
# @param Deadline: 快照的到期时间,到期后该快照将会自动删除,需要传入UTC时间下的ISO-8601标准时间格式,例如:2022-01-08T09:47:55+00:00
|
503
503
|
# @type Deadline: String
|
504
504
|
|
505
505
|
attr_accessor :DiskId, :SnapshotName, :Deadline
|
@@ -1342,10 +1342,12 @@ module TencentCloud
|
|
1342
1342
|
# @type Shareable: Boolean
|
1343
1343
|
# @param CreateTime: 云硬盘的创建时间。
|
1344
1344
|
# @type CreateTime: String
|
1345
|
+
# @param DeleteSnapshot: 销毁云盘时删除关联的非永久保留快照。0 表示非永久快照不随云盘销毁而销毁,1表示非永久快照随云盘销毁而销毁,默认取0。快照是否永久保留可以通过DescribeSnapshots接口返回的快照详情的IsPermanent字段来判断,true表示永久快照,false表示非永久快照。
|
1346
|
+
# @type DeleteSnapshot: Integer
|
1345
1347
|
|
1346
|
-
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
|
1348
|
+
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
|
1347
1349
|
|
1348
|
-
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)
|
1350
|
+
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)
|
1349
1351
|
@DeleteWithInstance = deletewithinstance
|
1350
1352
|
@RenewFlag = renewflag
|
1351
1353
|
@DiskType = disktype
|
@@ -1381,6 +1383,7 @@ module TencentCloud
|
|
1381
1383
|
@ReturnFailCode = returnfailcode
|
1382
1384
|
@Shareable = shareable
|
1383
1385
|
@CreateTime = createtime
|
1386
|
+
@DeleteSnapshot = deletesnapshot
|
1384
1387
|
end
|
1385
1388
|
|
1386
1389
|
def deserialize(params)
|
@@ -1429,6 +1432,7 @@ module TencentCloud
|
|
1429
1432
|
@ReturnFailCode = params['ReturnFailCode']
|
1430
1433
|
@Shareable = params['Shareable']
|
1431
1434
|
@CreateTime = params['CreateTime']
|
1435
|
+
@DeleteSnapshot = params['DeleteSnapshot']
|
1432
1436
|
end
|
1433
1437
|
end
|
1434
1438
|
|
@@ -1637,6 +1641,38 @@ module TencentCloud
|
|
1637
1641
|
end
|
1638
1642
|
end
|
1639
1643
|
|
1644
|
+
# InitializeDisks请求参数结构体
|
1645
|
+
class InitializeDisksRequest < TencentCloud::Common::AbstractModel
|
1646
|
+
# @param DiskIds: 待重新初始化的云硬盘ID列表, 单次初始化限制20块以内
|
1647
|
+
# @type DiskIds: Array
|
1648
|
+
|
1649
|
+
attr_accessor :DiskIds
|
1650
|
+
|
1651
|
+
def initialize(diskids=nil)
|
1652
|
+
@DiskIds = diskids
|
1653
|
+
end
|
1654
|
+
|
1655
|
+
def deserialize(params)
|
1656
|
+
@DiskIds = params['DiskIds']
|
1657
|
+
end
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
# InitializeDisks返回参数结构体
|
1661
|
+
class InitializeDisksResponse < TencentCloud::Common::AbstractModel
|
1662
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1663
|
+
# @type RequestId: String
|
1664
|
+
|
1665
|
+
attr_accessor :RequestId
|
1666
|
+
|
1667
|
+
def initialize(requestid=nil)
|
1668
|
+
@RequestId = requestid
|
1669
|
+
end
|
1670
|
+
|
1671
|
+
def deserialize(params)
|
1672
|
+
@RequestId = params['RequestId']
|
1673
|
+
end
|
1674
|
+
end
|
1675
|
+
|
1640
1676
|
# InquirePriceModifyDiskExtraPerformance请求参数结构体
|
1641
1677
|
class InquirePriceModifyDiskExtraPerformanceRequest < TencentCloud::Common::AbstractModel
|
1642
1678
|
# @param DiskId: 云硬盘ID, 通过[DescribeDisks](/document/product/362/16315)接口查询。
|
@@ -2598,15 +2634,19 @@ module TencentCloud
|
|
2598
2634
|
class TerminateDisksRequest < TencentCloud::Common::AbstractModel
|
2599
2635
|
# @param DiskIds: 需退还的云盘ID列表。
|
2600
2636
|
# @type DiskIds: Array
|
2637
|
+
# @param DeleteSnapshot: 销毁云盘时删除关联的非永久保留快照。0 表示非永久快照不随云盘销毁而销毁,1表示非永久快照随云盘销毁而销毁,默认取0。快照是否永久保留可以通过DescribeSnapshots接口返回的快照详情的IsPermanent字段来判断,true表示永久快照,false表示非永久快照。
|
2638
|
+
# @type DeleteSnapshot: Integer
|
2601
2639
|
|
2602
|
-
attr_accessor :DiskIds
|
2640
|
+
attr_accessor :DiskIds, :DeleteSnapshot
|
2603
2641
|
|
2604
|
-
def initialize(diskids=nil)
|
2642
|
+
def initialize(diskids=nil, deletesnapshot=nil)
|
2605
2643
|
@DiskIds = diskids
|
2644
|
+
@DeleteSnapshot = deletesnapshot
|
2606
2645
|
end
|
2607
2646
|
|
2608
2647
|
def deserialize(params)
|
2609
2648
|
@DiskIds = params['DiskIds']
|
2649
|
+
@DeleteSnapshot = params['DeleteSnapshot']
|
2610
2650
|
end
|
2611
2651
|
end
|
2612
2652
|
|
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.241
|
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-01-
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|