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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82a14f846a258a308fb9143cdefbcdedf09383b5
4
- data.tar.gz: 5b9f637a2aa0af01ee45a91a44c94bdccbe56879
3
+ metadata.gz: 70907516977a2946fb29cdc473ef16972f749332
4
+ data.tar.gz: 7d620640ce1059ef62d66af1615efbef0e60c971
5
5
  SHA512:
6
- metadata.gz: 8d9d8a0fafdf8058205d8d7c5653fde7c047dc15f802f8df4e2201dddbcb6c368a8466d1b5e67a48521b1fc4cf230bb715b8d9390729418cad26b0a1b81c7ba4
7
- data.tar.gz: 056dcd666bb8586350b9431422e5e783db0e9d89d8e532151c22ccd7ad8c47a127e8a22e5b4d1f29791620873158811eef38b1ce92dc06d50f158646b6268f6f
6
+ metadata.gz: b60f984238bd9ce9bb4650f234ee18e42c8f1f6d1d8089fd1a77098530b5f0cd6383c96ce92397f5e5ab3f9be246cf35d3e7cfa3cd824809267a42fcf3eb7079
7
+ data.tar.gz: e1adea152c536efed58306fdf053b9421878e53428f56b6c0d0d118c0982587b71389f57ac59b8ee1304cf4b4b62f95167729b26e17156a7a70c0307915d783a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.481
1
+ 3.0.483
@@ -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
  # * 预付费云盘的购买会预先扣除本次云盘购买所需金额,在调用本接口前请确保账户余额充足。
@@ -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.481
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-27 00:00:00.000000000 Z
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