tencentcloud-sdk-cbs 3.0.480 → 3.0.482
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: 527cc25f92715c9e516f0abbf11d1d39511baa98
|
4
|
+
data.tar.gz: 8000e4baa6a246bffa6ac29c8265d7905fb61e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915fb2e16a47059f761071f5f119f55c3024cca42b00ab9e013b59a563d7b4b6a4c4590f32a0e9fc1f152db3366990d8603b7119531bf8a5770fd26b7c1f77da
|
7
|
+
data.tar.gz: 5e8a4971da92f66e6b4b794fe2503c50add81d952d36d76fdb1af24033efbc9fb9b02600446309b54035ffe3c6f4e48cd52330ea56ff1d78a982eabcd39a9bea
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.482
|
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.482
|
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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|