tencentcloud-sdk-cbs 1.0.238 → 1.0.242

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: 42f8362b309b38d435730ae81ff25aa7d036e9c8
4
- data.tar.gz: 6cc3ec2db9955e5178a2e312fd5f42e693f396a0
3
+ metadata.gz: ffdc713c4ad45c302b75e3e61f6750aaa927a54e
4
+ data.tar.gz: 3520ac68f95b584f2293737ff9da9f5d8fee095f
5
5
  SHA512:
6
- metadata.gz: 80989e3373460814c4e36885803d33a2d232d5900db384de20aaa31fd1963be49f6f88dac61e47eb74538d4808d62653b5a6e3484c01fdd9cb5906d99ae7ae6c
7
- data.tar.gz: 155c9b246b5bb707084bc4bb75754bd30559d542a1f8cdd724e6f9a1e18fc08f557d4ba2154a84091336eac9f15927e3bccc01e6c0053ecfeceee6b9f0f1d380
6
+ metadata.gz: 06da8d0fe897cd9338b06a8e8f082382b455fbb4ae52edde8131850225a0f2fc7494d3d34677c7bea2a1db6876ef30f4c3e7002dd5dffb676f38063eaf1b3d92
7
+ data.tar.gz: 806e6deb7a5403642ebfb5604fbd13b20ab5d22c9ba3bcf7c568115500c20ceb9406322aa9a4e80e0399b41df5c558316b19b39d8f9479fff378998a76e2ba49
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.238
1
+ 1.0.242
@@ -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.
@@ -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.238
4
+ version: 1.0.242
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-10 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common