tencentcloud-sdk-cbs 3.0.404 → 3.0.407
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 +127 -0
- data/lib/v20170312/models.rb +271 -0
- 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: e2e818fd132f9a5cd511ccd214f3f544133ef99f
|
4
|
+
data.tar.gz: de2fc0d0ba7c799f1456a9246cd94a61f37a334c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cff9d394e3566cc41e7edf57d0fe9b32f059ca35b8d628ee6c42f70e9080d41e3b4aebb4d86098e04cdd832ec7db00edb3bcfab4f7306a77d7f6268fefd6e03
|
7
|
+
data.tar.gz: aed818605d7dec4daf669f58f2550caf5f4ebb6486d33a0dd93bce30b8a74c9ffef84263a87baa79e5c9c2e78f5c669592095248b6e9bfcbe3dac0b76aa50e84
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.407
|
data/lib/v20170312/client.rb
CHANGED
@@ -29,6 +29,34 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 本接口(ApplyDiskBackup)用于回滚备份点到原云硬盘。
|
33
|
+
|
34
|
+
# * 仅支持回滚到原云硬盘上。对于数据盘备份点,如果您需要复制备份点数据到其它云硬盘上,请先使用 CreateSnapshot 将备份点转换为快照,然后使用 CreateDisks 接口创建新的弹性云硬盘,将快照数据复制到新购云硬盘上。
|
35
|
+
# * 用于回滚的备份点必须处于NORMAL状态。备份点状态可以通过DescribeDiskBackups接口查询,见输出参数中BackupState字段解释。
|
36
|
+
# * 如果是弹性云硬盘,则云硬盘必须处于未挂载状态,云硬盘挂载状态可以通过DescribeDisks接口查询,见Attached字段解释;如果是随实例一起购买的非弹性云硬盘,则实例必须处于关机状态,实例状态可以通过DescribeInstancesStatus接口查询。
|
37
|
+
|
38
|
+
# @param request: Request instance for ApplyDiskBackup.
|
39
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::ApplyDiskBackupRequest`
|
40
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::ApplyDiskBackupResponse`
|
41
|
+
def ApplyDiskBackup(request)
|
42
|
+
body = send_request('ApplyDiskBackup', request.serialize)
|
43
|
+
response = JSON.parse(body)
|
44
|
+
if response['Response'].key?('Error') == false
|
45
|
+
model = ApplyDiskBackupResponse.new
|
46
|
+
model.deserialize(response['Response'])
|
47
|
+
model
|
48
|
+
else
|
49
|
+
code = response['Response']['Error']['Code']
|
50
|
+
message = response['Response']['Error']['Message']
|
51
|
+
reqid = response['Response']['RequestId']
|
52
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
53
|
+
end
|
54
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
55
|
+
raise e
|
56
|
+
rescue StandardError => e
|
57
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
58
|
+
end
|
59
|
+
|
32
60
|
# 本接口(ApplySnapshot)用于回滚快照到原云硬盘。
|
33
61
|
|
34
62
|
# * 仅支持回滚到原云硬盘上。对于数据盘快照,如果您需要复制快照数据到其它云硬盘上,请使用[CreateDisks](/document/product/362/16312)接口创建新的弹性云盘,将快照数据复制到新购云盘上。
|
@@ -247,6 +275,30 @@ module TencentCloud
|
|
247
275
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
248
276
|
end
|
249
277
|
|
278
|
+
# 批量删除指定的云硬盘备份点。
|
279
|
+
|
280
|
+
# @param request: Request instance for DeleteDiskBackups.
|
281
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::DeleteDiskBackupsRequest`
|
282
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::DeleteDiskBackupsResponse`
|
283
|
+
def DeleteDiskBackups(request)
|
284
|
+
body = send_request('DeleteDiskBackups', request.serialize)
|
285
|
+
response = JSON.parse(body)
|
286
|
+
if response['Response'].key?('Error') == false
|
287
|
+
model = DeleteDiskBackupsResponse.new
|
288
|
+
model.deserialize(response['Response'])
|
289
|
+
model
|
290
|
+
else
|
291
|
+
code = response['Response']['Error']['Code']
|
292
|
+
message = response['Response']['Error']['Message']
|
293
|
+
reqid = response['Response']['RequestId']
|
294
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
295
|
+
end
|
296
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
297
|
+
raise e
|
298
|
+
rescue StandardError => e
|
299
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
300
|
+
end
|
301
|
+
|
250
302
|
# 本接口(DeleteSnapshots)用于删除快照。
|
251
303
|
|
252
304
|
# * 快照必须处于NORMAL状态,快照状态可以通过[DescribeSnapshots](/document/product/362/15647)接口查询,见输出参数中SnapshotState字段解释。
|
@@ -325,6 +377,33 @@ module TencentCloud
|
|
325
377
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
326
378
|
end
|
327
379
|
|
380
|
+
# 本接口(DescribeDiskBackups)用于查询备份点的详细信息。
|
381
|
+
|
382
|
+
# 根据备份点ID、创建备份点的云硬盘ID、创建备份点的云硬盘类型等对结果进行过滤,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器Filter。
|
383
|
+
# 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的备份点列表。
|
384
|
+
|
385
|
+
# @param request: Request instance for DescribeDiskBackups.
|
386
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::DescribeDiskBackupsRequest`
|
387
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::DescribeDiskBackupsResponse`
|
388
|
+
def DescribeDiskBackups(request)
|
389
|
+
body = send_request('DescribeDiskBackups', request.serialize)
|
390
|
+
response = JSON.parse(body)
|
391
|
+
if response['Response'].key?('Error') == false
|
392
|
+
model = DescribeDiskBackupsResponse.new
|
393
|
+
model.deserialize(response['Response'])
|
394
|
+
model
|
395
|
+
else
|
396
|
+
code = response['Response']['Error']['Code']
|
397
|
+
message = response['Response']['Error']['Message']
|
398
|
+
reqid = response['Response']['RequestId']
|
399
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
400
|
+
end
|
401
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
402
|
+
raise e
|
403
|
+
rescue StandardError => e
|
404
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
405
|
+
end
|
406
|
+
|
328
407
|
# 本接口(DescribeDiskConfigQuota)用于查询云硬盘配额。
|
329
408
|
|
330
409
|
# @param request: Request instance for DescribeDiskConfigQuota.
|
@@ -609,6 +688,30 @@ module TencentCloud
|
|
609
688
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
610
689
|
end
|
611
690
|
|
691
|
+
# 本接口(InquirePricePriceModifyDiskBackupQuota)用于修改云硬盘备份点配额询价。
|
692
|
+
|
693
|
+
# @param request: Request instance for InquirePriceModifyDiskBackupQuota.
|
694
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::InquirePriceModifyDiskBackupQuotaRequest`
|
695
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::InquirePriceModifyDiskBackupQuotaResponse`
|
696
|
+
def InquirePriceModifyDiskBackupQuota(request)
|
697
|
+
body = send_request('InquirePriceModifyDiskBackupQuota', request.serialize)
|
698
|
+
response = JSON.parse(body)
|
699
|
+
if response['Response'].key?('Error') == false
|
700
|
+
model = InquirePriceModifyDiskBackupQuotaResponse.new
|
701
|
+
model.deserialize(response['Response'])
|
702
|
+
model
|
703
|
+
else
|
704
|
+
code = response['Response']['Error']['Code']
|
705
|
+
message = response['Response']['Error']['Message']
|
706
|
+
reqid = response['Response']['RequestId']
|
707
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
708
|
+
end
|
709
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
710
|
+
raise e
|
711
|
+
rescue StandardError => e
|
712
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
713
|
+
end
|
714
|
+
|
612
715
|
# 本接口(InquirePriceModifyDiskExtraPerformance)用于调整云硬盘额外性能询价。
|
613
716
|
|
614
717
|
# @param request: Request instance for InquirePriceModifyDiskExtraPerformance.
|
@@ -766,6 +869,30 @@ module TencentCloud
|
|
766
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
767
870
|
end
|
768
871
|
|
872
|
+
# 此接口 (ModifyDiskBackupQuota) 用于修改云硬盘备份点配额。
|
873
|
+
|
874
|
+
# @param request: Request instance for ModifyDiskBackupQuota.
|
875
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::ModifyDiskBackupQuotaRequest`
|
876
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::ModifyDiskBackupQuotaResponse`
|
877
|
+
def ModifyDiskBackupQuota(request)
|
878
|
+
body = send_request('ModifyDiskBackupQuota', request.serialize)
|
879
|
+
response = JSON.parse(body)
|
880
|
+
if response['Response'].key?('Error') == false
|
881
|
+
model = ModifyDiskBackupQuotaResponse.new
|
882
|
+
model.deserialize(response['Response'])
|
883
|
+
model
|
884
|
+
else
|
885
|
+
code = response['Response']['Error']['Code']
|
886
|
+
message = response['Response']['Error']['Message']
|
887
|
+
reqid = response['Response']['RequestId']
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
+
end
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
+
raise e
|
892
|
+
rescue StandardError => e
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
+
end
|
895
|
+
|
769
896
|
# 本接口(ModifyDiskExtraPerformance)用于调整云硬盘额外的性能。
|
770
897
|
|
771
898
|
# * 目前仅支持极速型SSD云硬盘(CLOUD_TSSD)和高性能SSD云硬盘(CLOUD_HSSD)。
|
data/lib/v20170312/models.rb
CHANGED
@@ -17,6 +17,42 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Cbs
|
19
19
|
module V20170312
|
20
|
+
# ApplyDiskBackup请求参数结构体
|
21
|
+
class ApplyDiskBackupRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param DiskBackupId: 云硬盘备份点ID,可通过 DescribeDiskBackups 查询。
|
23
|
+
# @type DiskBackupId: String
|
24
|
+
# @param DiskId: 云硬盘备份点原云硬盘ID,可通过DescribeDisks接口查询。
|
25
|
+
# @type DiskId: String
|
26
|
+
|
27
|
+
attr_accessor :DiskBackupId, :DiskId
|
28
|
+
|
29
|
+
def initialize(diskbackupid=nil, diskid=nil)
|
30
|
+
@DiskBackupId = diskbackupid
|
31
|
+
@DiskId = diskid
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@DiskBackupId = params['DiskBackupId']
|
36
|
+
@DiskId = params['DiskId']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# ApplyDiskBackup返回参数结构体
|
41
|
+
class ApplyDiskBackupResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
43
|
+
# @type RequestId: String
|
44
|
+
|
45
|
+
attr_accessor :RequestId
|
46
|
+
|
47
|
+
def initialize(requestid=nil)
|
48
|
+
@RequestId = requestid
|
49
|
+
end
|
50
|
+
|
51
|
+
def deserialize(params)
|
52
|
+
@RequestId = params['RequestId']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
20
56
|
# ApplySnapshot请求参数结构体
|
21
57
|
class ApplySnapshotRequest < TencentCloud::Common::AbstractModel
|
22
58
|
# @param SnapshotId: 快照ID, 可通过[DescribeSnapshots](/document/product/362/15647)查询。
|
@@ -654,6 +690,38 @@ module TencentCloud
|
|
654
690
|
end
|
655
691
|
end
|
656
692
|
|
693
|
+
# DeleteDiskBackups请求参数结构体
|
694
|
+
class DeleteDiskBackupsRequest < TencentCloud::Common::AbstractModel
|
695
|
+
# @param DiskBackupIds: 待删除的云硬盘备份点ID。
|
696
|
+
# @type DiskBackupIds: Array
|
697
|
+
|
698
|
+
attr_accessor :DiskBackupIds
|
699
|
+
|
700
|
+
def initialize(diskbackupids=nil)
|
701
|
+
@DiskBackupIds = diskbackupids
|
702
|
+
end
|
703
|
+
|
704
|
+
def deserialize(params)
|
705
|
+
@DiskBackupIds = params['DiskBackupIds']
|
706
|
+
end
|
707
|
+
end
|
708
|
+
|
709
|
+
# DeleteDiskBackups返回参数结构体
|
710
|
+
class DeleteDiskBackupsResponse < TencentCloud::Common::AbstractModel
|
711
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
712
|
+
# @type RequestId: String
|
713
|
+
|
714
|
+
attr_accessor :RequestId
|
715
|
+
|
716
|
+
def initialize(requestid=nil)
|
717
|
+
@RequestId = requestid
|
718
|
+
end
|
719
|
+
|
720
|
+
def deserialize(params)
|
721
|
+
@RequestId = params['RequestId']
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
657
725
|
# DeleteSnapshots请求参数结构体
|
658
726
|
class DeleteSnapshotsRequest < TencentCloud::Common::AbstractModel
|
659
727
|
# @param SnapshotIds: 要删除的快照ID列表,可通过[DescribeSnapshots](/document/product/362/15647)查询。
|
@@ -811,6 +879,82 @@ module TencentCloud
|
|
811
879
|
end
|
812
880
|
end
|
813
881
|
|
882
|
+
# DescribeDiskBackups请求参数结构体
|
883
|
+
class DescribeDiskBackupsRequest < TencentCloud::Common::AbstractModel
|
884
|
+
# @param DiskBackupIds: 要查询备份点的ID列表。参数不支持同时指定 DiskBackupIds 和 Filters。
|
885
|
+
# @type DiskBackupIds: Array
|
886
|
+
# @param Filters: 过滤条件,参数不支持同时指定 DiskBackupIds 和 Filters。过滤条件:<br><li>disk-backup-id - Array of String - 是否必填:否 -(过滤条件)按照备份点的ID过滤。备份点ID形如:dbp-11112222。
|
887
|
+
# <br><li>disk-id - Array of String - 是否必填:否 -(过滤条件)按照创建备份点的云硬盘ID过滤。
|
888
|
+
# <br><li>disk-usage - Array of String - 是否必填:否 -(过滤条件)按创建备份点的云硬盘类型过滤。 (SYSTEM_DISK:代表系统盘 | DATA_DISK:代表数据盘。)
|
889
|
+
# @type Filters: Array
|
890
|
+
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/product/362/15633)中的相关小节。
|
891
|
+
# @type Offset: Integer
|
892
|
+
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。
|
893
|
+
# @type Limit: Integer
|
894
|
+
# @param Order: 输出云硬盘备份点列表的排列顺序。取值范围:<br><li>ASC:升序排列<br><li>DESC:降序排列。
|
895
|
+
# @type Order: String
|
896
|
+
# @param OrderField: 云硬盘备份点列表排序的依据字段。取值范围:<br><li>CREATE_TIME:依据云硬盘备份点的创建时间排序<br>默认按创建时间排序。
|
897
|
+
# @type OrderField: String
|
898
|
+
|
899
|
+
attr_accessor :DiskBackupIds, :Filters, :Offset, :Limit, :Order, :OrderField
|
900
|
+
|
901
|
+
def initialize(diskbackupids=nil, filters=nil, offset=nil, limit=nil, order=nil, orderfield=nil)
|
902
|
+
@DiskBackupIds = diskbackupids
|
903
|
+
@Filters = filters
|
904
|
+
@Offset = offset
|
905
|
+
@Limit = limit
|
906
|
+
@Order = order
|
907
|
+
@OrderField = orderfield
|
908
|
+
end
|
909
|
+
|
910
|
+
def deserialize(params)
|
911
|
+
@DiskBackupIds = params['DiskBackupIds']
|
912
|
+
unless params['Filters'].nil?
|
913
|
+
@Filters = []
|
914
|
+
params['Filters'].each do |i|
|
915
|
+
filter_tmp = Filter.new
|
916
|
+
filter_tmp.deserialize(i)
|
917
|
+
@Filters << filter_tmp
|
918
|
+
end
|
919
|
+
end
|
920
|
+
@Offset = params['Offset']
|
921
|
+
@Limit = params['Limit']
|
922
|
+
@Order = params['Order']
|
923
|
+
@OrderField = params['OrderField']
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
927
|
+
# DescribeDiskBackups返回参数结构体
|
928
|
+
class DescribeDiskBackupsResponse < TencentCloud::Common::AbstractModel
|
929
|
+
# @param TotalCount: 符合条件的云硬盘备份点数量。
|
930
|
+
# @type TotalCount: Integer
|
931
|
+
# @param DiskBackupSet: 云硬盘备份点的详细信息列表。
|
932
|
+
# @type DiskBackupSet: Array
|
933
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
934
|
+
# @type RequestId: String
|
935
|
+
|
936
|
+
attr_accessor :TotalCount, :DiskBackupSet, :RequestId
|
937
|
+
|
938
|
+
def initialize(totalcount=nil, diskbackupset=nil, requestid=nil)
|
939
|
+
@TotalCount = totalcount
|
940
|
+
@DiskBackupSet = diskbackupset
|
941
|
+
@RequestId = requestid
|
942
|
+
end
|
943
|
+
|
944
|
+
def deserialize(params)
|
945
|
+
@TotalCount = params['TotalCount']
|
946
|
+
unless params['DiskBackupSet'].nil?
|
947
|
+
@DiskBackupSet = []
|
948
|
+
params['DiskBackupSet'].each do |i|
|
949
|
+
diskbackup_tmp = DiskBackup.new
|
950
|
+
diskbackup_tmp.deserialize(i)
|
951
|
+
@DiskBackupSet << diskbackup_tmp
|
952
|
+
end
|
953
|
+
end
|
954
|
+
@RequestId = params['RequestId']
|
955
|
+
end
|
956
|
+
end
|
957
|
+
|
814
958
|
# DescribeDiskConfigQuota请求参数结构体
|
815
959
|
class DescribeDiskConfigQuotaRequest < TencentCloud::Common::AbstractModel
|
816
960
|
# @param InquiryType: 查询类别,取值范围。<br><li>INQUIRY_CBS_CONFIG:查询云盘配置列表<br><li>INQUIRY_CVM_CONFIG:查询云盘与实例搭配的配置列表。
|
@@ -1529,6 +1673,54 @@ module TencentCloud
|
|
1529
1673
|
end
|
1530
1674
|
end
|
1531
1675
|
|
1676
|
+
# 云硬盘备份点。
|
1677
|
+
class DiskBackup < TencentCloud::Common::AbstractModel
|
1678
|
+
# @param DiskBackupId: 云硬盘备份点的ID。
|
1679
|
+
# @type DiskBackupId: String
|
1680
|
+
# @param DiskId: 云硬盘备份点关联的云硬盘ID。
|
1681
|
+
# @type DiskId: String
|
1682
|
+
# @param DiskSize: 云硬盘大小,单位GB。
|
1683
|
+
# @type DiskSize: Integer
|
1684
|
+
# @param DiskUsage: 云硬盘类型。取值范围:<br><li>SYSTEM_DISK:系统盘<br><li>DATA_DISK:数据盘。
|
1685
|
+
# @type DiskUsage: String
|
1686
|
+
# @param DiskBackupName: 备份点名称。
|
1687
|
+
# @type DiskBackupName: String
|
1688
|
+
# @param DiskBackupState: 云硬盘备份点状态。取值范围:<br><li>NORMAL:正常<br><li>CREATING:创建中<br><li>ROLLBACKING:回滚中
|
1689
|
+
# @type DiskBackupState: String
|
1690
|
+
# @param Percent: 云硬盘创建进度百分比。
|
1691
|
+
# @type Percent: Integer
|
1692
|
+
# @param CreateTime: 云硬盘备份点的创建时间。
|
1693
|
+
# @type CreateTime: String
|
1694
|
+
# @param Encrypt: 云盘是否为加密盘。取值范围:<br><li>false:表示非加密盘<br><li>true:表示加密盘。
|
1695
|
+
# @type Encrypt: Boolean
|
1696
|
+
|
1697
|
+
attr_accessor :DiskBackupId, :DiskId, :DiskSize, :DiskUsage, :DiskBackupName, :DiskBackupState, :Percent, :CreateTime, :Encrypt
|
1698
|
+
|
1699
|
+
def initialize(diskbackupid=nil, diskid=nil, disksize=nil, diskusage=nil, diskbackupname=nil, diskbackupstate=nil, percent=nil, createtime=nil, encrypt=nil)
|
1700
|
+
@DiskBackupId = diskbackupid
|
1701
|
+
@DiskId = diskid
|
1702
|
+
@DiskSize = disksize
|
1703
|
+
@DiskUsage = diskusage
|
1704
|
+
@DiskBackupName = diskbackupname
|
1705
|
+
@DiskBackupState = diskbackupstate
|
1706
|
+
@Percent = percent
|
1707
|
+
@CreateTime = createtime
|
1708
|
+
@Encrypt = encrypt
|
1709
|
+
end
|
1710
|
+
|
1711
|
+
def deserialize(params)
|
1712
|
+
@DiskBackupId = params['DiskBackupId']
|
1713
|
+
@DiskId = params['DiskId']
|
1714
|
+
@DiskSize = params['DiskSize']
|
1715
|
+
@DiskUsage = params['DiskUsage']
|
1716
|
+
@DiskBackupName = params['DiskBackupName']
|
1717
|
+
@DiskBackupState = params['DiskBackupState']
|
1718
|
+
@Percent = params['Percent']
|
1719
|
+
@CreateTime = params['CreateTime']
|
1720
|
+
@Encrypt = params['Encrypt']
|
1721
|
+
end
|
1722
|
+
end
|
1723
|
+
|
1532
1724
|
# 描述了实例的计费模式
|
1533
1725
|
class DiskChargePrepaid < TencentCloud::Common::AbstractModel
|
1534
1726
|
# @param Period: 购买云盘的时长,默认单位为月,取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
|
@@ -1776,6 +1968,49 @@ module TencentCloud
|
|
1776
1968
|
end
|
1777
1969
|
end
|
1778
1970
|
|
1971
|
+
# InquirePriceModifyDiskBackupQuota请求参数结构体
|
1972
|
+
class InquirePriceModifyDiskBackupQuotaRequest < TencentCloud::Common::AbstractModel
|
1973
|
+
# @param DiskId: 云硬盘ID, 通过DescribeDisks(查询云硬盘信息)接口查询。
|
1974
|
+
# @type DiskId: String
|
1975
|
+
# @param DiskBackupQuota: 修改后的云硬盘备份点配额,即云盘可以拥有的备份点数量,单位为个。
|
1976
|
+
# @type DiskBackupQuota: Integer
|
1977
|
+
|
1978
|
+
attr_accessor :DiskId, :DiskBackupQuota
|
1979
|
+
|
1980
|
+
def initialize(diskid=nil, diskbackupquota=nil)
|
1981
|
+
@DiskId = diskid
|
1982
|
+
@DiskBackupQuota = diskbackupquota
|
1983
|
+
end
|
1984
|
+
|
1985
|
+
def deserialize(params)
|
1986
|
+
@DiskId = params['DiskId']
|
1987
|
+
@DiskBackupQuota = params['DiskBackupQuota']
|
1988
|
+
end
|
1989
|
+
end
|
1990
|
+
|
1991
|
+
# InquirePriceModifyDiskBackupQuota返回参数结构体
|
1992
|
+
class InquirePriceModifyDiskBackupQuotaResponse < TencentCloud::Common::AbstractModel
|
1993
|
+
# @param DiskPrice: 描述了修改云硬盘备份点之后的云盘价格。
|
1994
|
+
# @type DiskPrice: :class:`Tencentcloud::Cbs.v20170312.models.Price`
|
1995
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1996
|
+
# @type RequestId: String
|
1997
|
+
|
1998
|
+
attr_accessor :DiskPrice, :RequestId
|
1999
|
+
|
2000
|
+
def initialize(diskprice=nil, requestid=nil)
|
2001
|
+
@DiskPrice = diskprice
|
2002
|
+
@RequestId = requestid
|
2003
|
+
end
|
2004
|
+
|
2005
|
+
def deserialize(params)
|
2006
|
+
unless params['DiskPrice'].nil?
|
2007
|
+
@DiskPrice = Price.new
|
2008
|
+
@DiskPrice.deserialize(params['DiskPrice'])
|
2009
|
+
end
|
2010
|
+
@RequestId = params['RequestId']
|
2011
|
+
end
|
2012
|
+
end
|
2013
|
+
|
1779
2014
|
# InquirePriceModifyDiskExtraPerformance请求参数结构体
|
1780
2015
|
class InquirePriceModifyDiskExtraPerformanceRequest < TencentCloud::Common::AbstractModel
|
1781
2016
|
# @param DiskId: 云硬盘ID, 通过[DescribeDisks](/document/product/362/16315)接口查询。
|
@@ -2105,6 +2340,42 @@ module TencentCloud
|
|
2105
2340
|
end
|
2106
2341
|
end
|
2107
2342
|
|
2343
|
+
# ModifyDiskBackupQuota请求参数结构体
|
2344
|
+
class ModifyDiskBackupQuotaRequest < TencentCloud::Common::AbstractModel
|
2345
|
+
# @param DiskId: 云硬盘ID。
|
2346
|
+
# @type DiskId: String
|
2347
|
+
# @param DiskBackupQuota: 调整之后的云硬盘备份点配额。
|
2348
|
+
# @type DiskBackupQuota: Integer
|
2349
|
+
|
2350
|
+
attr_accessor :DiskId, :DiskBackupQuota
|
2351
|
+
|
2352
|
+
def initialize(diskid=nil, diskbackupquota=nil)
|
2353
|
+
@DiskId = diskid
|
2354
|
+
@DiskBackupQuota = diskbackupquota
|
2355
|
+
end
|
2356
|
+
|
2357
|
+
def deserialize(params)
|
2358
|
+
@DiskId = params['DiskId']
|
2359
|
+
@DiskBackupQuota = params['DiskBackupQuota']
|
2360
|
+
end
|
2361
|
+
end
|
2362
|
+
|
2363
|
+
# ModifyDiskBackupQuota返回参数结构体
|
2364
|
+
class ModifyDiskBackupQuotaResponse < TencentCloud::Common::AbstractModel
|
2365
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2366
|
+
# @type RequestId: String
|
2367
|
+
|
2368
|
+
attr_accessor :RequestId
|
2369
|
+
|
2370
|
+
def initialize(requestid=nil)
|
2371
|
+
@RequestId = requestid
|
2372
|
+
end
|
2373
|
+
|
2374
|
+
def deserialize(params)
|
2375
|
+
@RequestId = params['RequestId']
|
2376
|
+
end
|
2377
|
+
end
|
2378
|
+
|
2108
2379
|
# ModifyDiskExtraPerformance请求参数结构体
|
2109
2380
|
class ModifyDiskExtraPerformanceRequest < TencentCloud::Common::AbstractModel
|
2110
2381
|
# @param DiskId: 需要创建快照的云硬盘ID,可通过[DescribeDisks](/document/product/362/16315)接口查询。
|
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: 3.0.
|
4
|
+
version: 3.0.407
|
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-09-
|
11
|
+
date: 2022-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|