tencentcloud-sdk-cbs 3.0.513 → 3.0.515

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20170312/models.rb +63 -5
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 602f14e79ff3b43ccd8c24a20761adae909c9d19
4
- data.tar.gz: bc98bacc9a751ea6dd8828d9a4701245b0286955
3
+ metadata.gz: c5b4596b647221d3e555485343b785363e641c46
4
+ data.tar.gz: d42e88500c3b98ed54a00a566d939d4939d9dbfb
5
5
  SHA512:
6
- metadata.gz: 0a5e9c0cc9e8ddd169b6b1a4db738946efc16df88f2ab47d2880ef02c4542929bc2134df2dccc7ac3cfde1611d37a8ac66aeb6034aadb2684b95c0ff6878d6d8
7
- data.tar.gz: 6a79d6c2c384a5f48e7c7ba57d89723353f8b46906bce85873fdf0b99cdf03a16371fba9d7b645f6259a3de9e291ee678dd39f2eb20d15f5f94df0402d962e12
6
+ metadata.gz: 58d0729d10f6e80ba503da8f9c6f6d46bb5c681168f28dbffd7ba208ba37314607987bbf5a72eed1cbf5df3eeedd0534bbcb965f36de0a5006e7383b13ab11bf
7
+ data.tar.gz: 79273281a1120f13d5d8387c904913d00dfadff798edf98d3e1bc353e99a3f26f662a15095b479445aee7cc7283735f36b2a5ee039965efebfd4179668480bfe
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.513
1
+ 3.0.515
@@ -17,6 +17,38 @@
17
17
  module TencentCloud
18
18
  module Cbs
19
19
  module V20170312
20
+ # 定期快照高级保留策略,四个参数都为必选参数
21
+ class AdvancedRetentionPolicy < TencentCloud::Common::AbstractModel
22
+ # @param Days: 保留最新快照Days天内的每天最新的一个快照,取值范围:[0, 100]
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Days: Integer
25
+ # @param Weeks: 保留最新快照Weeks周内的每周最新的一个快照,取值范围:[0, 100]
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type Weeks: Integer
28
+ # @param Months: 保留最新快照Months月内的每月最新的一个快照, 取值范围:[0, 100]
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type Months: Integer
31
+ # @param Years: 保留最新快照Years年内的每年最新的一个快照,取值范围:[0, 100]
32
+ # 注意:此字段可能返回 null,表示取不到有效值。
33
+ # @type Years: Integer
34
+
35
+ attr_accessor :Days, :Weeks, :Months, :Years
36
+
37
+ def initialize(days=nil, weeks=nil, months=nil, years=nil)
38
+ @Days = days
39
+ @Weeks = weeks
40
+ @Months = months
41
+ @Years = years
42
+ end
43
+
44
+ def deserialize(params)
45
+ @Days = params['Days']
46
+ @Weeks = params['Weeks']
47
+ @Months = params['Months']
48
+ @Years = params['Years']
49
+ end
50
+ end
51
+
20
52
  # ApplyDiskBackup请求参数结构体
21
53
  class ApplyDiskBackupRequest < TencentCloud::Common::AbstractModel
22
54
  # @param DiskBackupId: 云硬盘备份点ID,可通过 DescribeDiskBackups 查询。
@@ -220,10 +252,19 @@ module TencentCloud
220
252
  # @param InstanceIdSet: 已绑定当前定期快照策略的实例ID列表。
221
253
  # 注意:此字段可能返回 null,表示取不到有效值。
222
254
  # @type InstanceIdSet: Array
255
+ # @param RetentionMonths: 该定期快照创建的快照可以保留的月数。
256
+ # 注意:此字段可能返回 null,表示取不到有效值。
257
+ # @type RetentionMonths: Integer
258
+ # @param RetentionAmount: 该定期快照创建的快照最大保留数量。
259
+ # 注意:此字段可能返回 null,表示取不到有效值。
260
+ # @type RetentionAmount: Integer
261
+ # @param AdvancedRetentionPolicy: 定期快照高级保留策略。
262
+ # 注意:此字段可能返回 null,表示取不到有效值。
263
+ # @type AdvancedRetentionPolicy: :class:`Tencentcloud::Cbs.v20170312.models.AdvancedRetentionPolicy`
223
264
 
224
- attr_accessor :DiskIdSet, :IsActivated, :AutoSnapshotPolicyState, :IsCopyToRemote, :IsPermanent, :NextTriggerTime, :AutoSnapshotPolicyName, :AutoSnapshotPolicyId, :Policy, :CreateTime, :RetentionDays, :CopyToAccountUin, :InstanceIdSet
265
+ attr_accessor :DiskIdSet, :IsActivated, :AutoSnapshotPolicyState, :IsCopyToRemote, :IsPermanent, :NextTriggerTime, :AutoSnapshotPolicyName, :AutoSnapshotPolicyId, :Policy, :CreateTime, :RetentionDays, :CopyToAccountUin, :InstanceIdSet, :RetentionMonths, :RetentionAmount, :AdvancedRetentionPolicy
225
266
 
226
- def initialize(diskidset=nil, isactivated=nil, autosnapshotpolicystate=nil, iscopytoremote=nil, ispermanent=nil, nexttriggertime=nil, autosnapshotpolicyname=nil, autosnapshotpolicyid=nil, policy=nil, createtime=nil, retentiondays=nil, copytoaccountuin=nil, instanceidset=nil)
267
+ def initialize(diskidset=nil, isactivated=nil, autosnapshotpolicystate=nil, iscopytoremote=nil, ispermanent=nil, nexttriggertime=nil, autosnapshotpolicyname=nil, autosnapshotpolicyid=nil, policy=nil, createtime=nil, retentiondays=nil, copytoaccountuin=nil, instanceidset=nil, retentionmonths=nil, retentionamount=nil, advancedretentionpolicy=nil)
227
268
  @DiskIdSet = diskidset
228
269
  @IsActivated = isactivated
229
270
  @AutoSnapshotPolicyState = autosnapshotpolicystate
@@ -237,6 +278,9 @@ module TencentCloud
237
278
  @RetentionDays = retentiondays
238
279
  @CopyToAccountUin = copytoaccountuin
239
280
  @InstanceIdSet = instanceidset
281
+ @RetentionMonths = retentionmonths
282
+ @RetentionAmount = retentionamount
283
+ @AdvancedRetentionPolicy = advancedretentionpolicy
240
284
  end
241
285
 
242
286
  def deserialize(params)
@@ -260,6 +304,12 @@ module TencentCloud
260
304
  @RetentionDays = params['RetentionDays']
261
305
  @CopyToAccountUin = params['CopyToAccountUin']
262
306
  @InstanceIdSet = params['InstanceIdSet']
307
+ @RetentionMonths = params['RetentionMonths']
308
+ @RetentionAmount = params['RetentionAmount']
309
+ unless params['AdvancedRetentionPolicy'].nil?
310
+ @AdvancedRetentionPolicy = AdvancedRetentionPolicy.new
311
+ @AdvancedRetentionPolicy.deserialize(params['AdvancedRetentionPolicy'])
312
+ end
263
313
  end
264
314
  end
265
315
 
@@ -2658,23 +2708,31 @@ module TencentCloud
2658
2708
  end
2659
2709
  end
2660
2710
 
2661
- # 描述了定期快照的执行策略。可理解为在DayOfWeek/DayOfMonth指定的几天中,或者是IntervalDays设定的间隔的几天,在Hour指定的小时执行该条定期快照策略。注:DayOfWeek/DayOfMonth/IntervalDays为互斥规则,仅可设置其中一条策略规则。
2711
+ # 描述了定期快照的执行策略。可理解为在DayOfWeek/DayOfMonth指定的几天中,或者是IntervalDays设定的间隔的几天,在Hour指定的时刻点执行该条定期快照策。注:DayOfWeek/DayOfMonth/IntervalDays为互斥规则,仅可设置其中一条策略规则。
2662
2712
  class Policy < TencentCloud::Common::AbstractModel
2663
2713
  # @param Hour: 指定定期快照策略的触发时间。单位为小时,取值范围:[0, 23]。00:00 ~ 23:00 共 24 个时间点可选,1表示 01:00,依此类推。
2664
2714
  # @type Hour: Array
2665
2715
  # @param DayOfWeek: 指定每周从周一到周日需要触发定期快照的日期,取值范围:[0, 6]。0表示周日触发,1-6分别表示周一至周六。
2666
2716
  # @type DayOfWeek: Array
2717
+ # @param DayOfMonth: 指定每月从月初到月底需要触发定期快照的日期,取值范围:[1, 31],1-31分别表示每月的具体日期,比如5表示每月的5号。注:若设置29、30、31等部分月份不存在的日期,则对应不存在日期的月份会跳过不打定期快照。
2718
+ # @type DayOfMonth: Array
2719
+ # @param IntervalDays: 指定创建定期快照的间隔天数,取值范围:[1, 365],例如设置为5,则间隔5天即触发定期快照创建。注:当选择按天备份时,理论上第一次备份的时间为备份策略创建当天。如果当天备份策略创建的时间已经晚于设置的备份时间,那么将会等到第二个备份周期再进行第一次备份。
2720
+ # @type IntervalDays: Integer
2667
2721
 
2668
- attr_accessor :Hour, :DayOfWeek
2722
+ attr_accessor :Hour, :DayOfWeek, :DayOfMonth, :IntervalDays
2669
2723
 
2670
- def initialize(hour=nil, dayofweek=nil)
2724
+ def initialize(hour=nil, dayofweek=nil, dayofmonth=nil, intervaldays=nil)
2671
2725
  @Hour = hour
2672
2726
  @DayOfWeek = dayofweek
2727
+ @DayOfMonth = dayofmonth
2728
+ @IntervalDays = intervaldays
2673
2729
  end
2674
2730
 
2675
2731
  def deserialize(params)
2676
2732
  @Hour = params['Hour']
2677
2733
  @DayOfWeek = params['DayOfWeek']
2734
+ @DayOfMonth = params['DayOfMonth']
2735
+ @IntervalDays = params['IntervalDays']
2678
2736
  end
2679
2737
  end
2680
2738
 
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.513
4
+ version: 3.0.515
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-21 00:00:00.000000000 Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-cbs.rb
37
- - lib/v20170312/client.rb
38
37
  - lib/v20170312/models.rb
38
+ - lib/v20170312/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: