tencentcloud-sdk-cbs 3.0.481 → 3.0.483
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 +24 -0
- data/lib/v20170312/models.rb +40 -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: 70907516977a2946fb29cdc473ef16972f749332
|
4
|
+
data.tar.gz: 7d620640ce1059ef62d66af1615efbef0e60c971
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b60f984238bd9ce9bb4650f234ee18e42c8f1f6d1d8089fd1a77098530b5f0cd6383c96ce92397f5e5ab3f9be246cf35d3e7cfa3cd824809267a42fcf3eb7079
|
7
|
+
data.tar.gz: e1adea152c536efed58306fdf053b9421878e53428f56b6c0d0d118c0982587b71389f57ac59b8ee1304cf4b4b62f95167729b26e17156a7a70c0307915d783a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.483
|
data/lib/v20170312/client.rb
CHANGED
@@ -193,6 +193,30 @@ module TencentCloud
|
|
193
193
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
194
194
|
end
|
195
195
|
|
196
|
+
# 为云硬盘创建一个备份点。
|
197
|
+
|
198
|
+
# @param request: Request instance for CreateDiskBackup.
|
199
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::CreateDiskBackupRequest`
|
200
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::CreateDiskBackupResponse`
|
201
|
+
def CreateDiskBackup(request)
|
202
|
+
body = send_request('CreateDiskBackup', request.serialize)
|
203
|
+
response = JSON.parse(body)
|
204
|
+
if response['Response'].key?('Error') == false
|
205
|
+
model = CreateDiskBackupResponse.new
|
206
|
+
model.deserialize(response['Response'])
|
207
|
+
model
|
208
|
+
else
|
209
|
+
code = response['Response']['Error']['Code']
|
210
|
+
message = response['Response']['Error']['Message']
|
211
|
+
reqid = response['Response']['RequestId']
|
212
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
213
|
+
end
|
214
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
215
|
+
raise e
|
216
|
+
rescue StandardError => e
|
217
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
218
|
+
end
|
219
|
+
|
196
220
|
# 本接口(CreateDisks)用于创建云硬盘。
|
197
221
|
|
198
222
|
# * 预付费云盘的购买会预先扣除本次云盘购买所需金额,在调用本接口前请确保账户余额充足。
|
data/lib/v20170312/models.rb
CHANGED
@@ -487,6 +487,46 @@ module TencentCloud
|
|
487
487
|
end
|
488
488
|
end
|
489
489
|
|
490
|
+
# CreateDiskBackup请求参数结构体
|
491
|
+
class CreateDiskBackupRequest < TencentCloud::Common::AbstractModel
|
492
|
+
# @param DiskId: 要创建备份点的云硬盘名称。
|
493
|
+
# @type DiskId: String
|
494
|
+
# @param DiskBackupName: 云硬盘备份点名称。长度不能超过100个字符。
|
495
|
+
# @type DiskBackupName: String
|
496
|
+
|
497
|
+
attr_accessor :DiskId, :DiskBackupName
|
498
|
+
|
499
|
+
def initialize(diskid=nil, diskbackupname=nil)
|
500
|
+
@DiskId = diskid
|
501
|
+
@DiskBackupName = diskbackupname
|
502
|
+
end
|
503
|
+
|
504
|
+
def deserialize(params)
|
505
|
+
@DiskId = params['DiskId']
|
506
|
+
@DiskBackupName = params['DiskBackupName']
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
# CreateDiskBackup返回参数结构体
|
511
|
+
class CreateDiskBackupResponse < TencentCloud::Common::AbstractModel
|
512
|
+
# @param DiskBackupId: 云硬盘备份点的ID。
|
513
|
+
# @type DiskBackupId: String
|
514
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
515
|
+
# @type RequestId: String
|
516
|
+
|
517
|
+
attr_accessor :DiskBackupId, :RequestId
|
518
|
+
|
519
|
+
def initialize(diskbackupid=nil, requestid=nil)
|
520
|
+
@DiskBackupId = diskbackupid
|
521
|
+
@RequestId = requestid
|
522
|
+
end
|
523
|
+
|
524
|
+
def deserialize(params)
|
525
|
+
@DiskBackupId = params['DiskBackupId']
|
526
|
+
@RequestId = params['RequestId']
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
490
530
|
# CreateDisks请求参数结构体
|
491
531
|
class CreateDisksRequest < TencentCloud::Common::AbstractModel
|
492
532
|
# @param Placement: 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目。若不指定项目,将在默认项目下进行创建。
|
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.483
|
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-12-
|
11
|
+
date: 2022-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|