tencentcloud-sdk-cbs 3.0.512 → 3.0.514
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/models.rb +63 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52e030efcf906df51d5c65b52d5dffda370404d4
|
4
|
+
data.tar.gz: d73cb8551ffd894f41aba59829ada9288220ea42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b0e2e9164c3ce63be7b5bf0fa6871058a8ee77afdde9d90b2affcd19bf56fac5ccb0b34d69a7e40585269caadc5583e3d8baf40004ed80e2210df765914915
|
7
|
+
data.tar.gz: d827d1dca531eee16f042784f58f4a2dbff70c126e17a255ae3d1724ecbab8b91e9bef9f8989ba3102826e0b77f22a58bc39b0f6f745f9807a9e831352a43dec
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.514
|
data/lib/v20170312/models.rb
CHANGED
@@ -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
|
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.
|
4
|
+
version: 3.0.514
|
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-
|
11
|
+
date: 2023-02-22 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:
|