tencentcloud-sdk-dcdb 3.0.902 → 3.0.903

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: 5fb9c4774a49ad9a6dd6e78eba061a7aaa1c4661
4
- data.tar.gz: 1a6fe693fd50bbd37cef8059b5fa980b4330fdbd
3
+ metadata.gz: 594b2d36858bc83b0a8dc5190de1800d70e389be
4
+ data.tar.gz: 471a17d0e0e434b6640d55f9b5f35154a4fad7dc
5
5
  SHA512:
6
- metadata.gz: 523026c0a45fb9c834773be78f5195c49e2b67b21d3803703e375e692b4afd66a1d712347a0a16bd00cc0918437e6bb061fe220428b2d37386140c07d683a79a
7
- data.tar.gz: 1dcefed0af9a4404441786558c4dd51d5014935b47fcdb58e6007d1d22d82e42a8f58682db31635b54d2fdbaa72068a65d3de30647ae2682f9a1db1562b678ef
6
+ metadata.gz: 1e73f9ea847d3547a945c4f3a2fb0ad45e0a9c94cc9b0d905bf33cb8fa816a7112a79f7f9c6882e626da82ea89f84a2a5eefc9375ee625c09e9ddaf1ab4a1b84
7
+ data.tar.gz: 578dc69d50c8461622c816735a144e9c5eb71c658f2d408d858e7f28814fce029724de1551e4a62868c6b0347c5061b3f80c55ce6918d2e6c88f4d9f5e271cca
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.902
1
+ 3.0.903
@@ -367,6 +367,30 @@ module TencentCloud
367
367
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
368
368
  end
369
369
 
370
+ # 本接口(DescribeBackupConfigs)用于查询数据库备份配置信息。
371
+
372
+ # @param request: Request instance for DescribeBackupConfigs.
373
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeBackupConfigsRequest`
374
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeBackupConfigsResponse`
375
+ def DescribeBackupConfigs(request)
376
+ body = send_request('DescribeBackupConfigs', request.serialize)
377
+ response = JSON.parse(body)
378
+ if response['Response'].key?('Error') == false
379
+ model = DescribeBackupConfigsResponse.new
380
+ model.deserialize(response['Response'])
381
+ model
382
+ else
383
+ code = response['Response']['Error']['Code']
384
+ message = response['Response']['Error']['Message']
385
+ reqid = response['Response']['RequestId']
386
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
387
+ end
388
+ rescue TencentCloud::Common::TencentCloudSDKException => e
389
+ raise e
390
+ rescue StandardError => e
391
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
392
+ end
393
+
370
394
  # 本接口(DescribeBackupFiles)用于查看备份文件列表。
371
395
 
372
396
  # @param request: Request instance for DescribeBackupFiles.
@@ -1383,6 +1407,32 @@ module TencentCloud
1383
1407
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1384
1408
  end
1385
1409
 
1410
+ # 本接口(ModifyBackupConfigs)用于修改数据库备份配置信息。
1411
+
1412
+ # 1. 修改数据库超期备份配置,目前按年、按月、按日只支持一种,存在互斥关系,如当前策略按年备份,如果传入按月备份策略将会覆盖当前的按年备份策略,务必注意。
1413
+
1414
+ # @param request: Request instance for ModifyBackupConfigs.
1415
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyBackupConfigsRequest`
1416
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyBackupConfigsResponse`
1417
+ def ModifyBackupConfigs(request)
1418
+ body = send_request('ModifyBackupConfigs', request.serialize)
1419
+ response = JSON.parse(body)
1420
+ if response['Response'].key?('Error') == false
1421
+ model = ModifyBackupConfigsResponse.new
1422
+ model.deserialize(response['Response'])
1423
+ model
1424
+ else
1425
+ code = response['Response']['Error']['Code']
1426
+ message = response['Response']['Error']['Message']
1427
+ reqid = response['Response']['RequestId']
1428
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1429
+ end
1430
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1431
+ raise e
1432
+ rescue StandardError => e
1433
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1434
+ end
1435
+
1386
1436
  # 本接口(ModifyDBEncryptAttributes)用于修改实例数据加密。
1387
1437
 
1388
1438
  # @param request: Request instance for ModifyDBEncryptAttributes.
@@ -141,6 +141,55 @@ module TencentCloud
141
141
  end
142
142
  end
143
143
 
144
+ # 数据库超期备份配置
145
+ class BackupConfig < TencentCloud::Common::AbstractModel
146
+ # @param EnableBackupPolicy: 备份策略是否启用。
147
+ # @type EnableBackupPolicy: Boolean
148
+ # @param BeginDate: 超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。
149
+ # @type BeginDate: String
150
+ # @param MaxRetentionDays: 超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。
151
+ # @type MaxRetentionDays: Integer
152
+ # @param Frequency: 备份模式,可选择按年月周模式保存
153
+ # * 按年:annually
154
+ # * 按月:monthly
155
+ # * 按周:weekly
156
+ # @type Frequency: String
157
+ # @param WeekDays: Frequency等于weekly时生效。
158
+ # 表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:
159
+ # * 星期一 :Monday
160
+ # * 星期二 :Tuesday
161
+ # * 星期三:Wednesday
162
+ # * 星期四:Thursday
163
+ # * 星期五:Friday
164
+ # * 星期六:Saturday
165
+ # * 星期日:Sunday
166
+ # @type WeekDays: Array
167
+ # @param BackupCount: 保留备份个数,Frequency等于monthly或weekly时生效。
168
+ # 备份模式选择按月时,可填写1-28整数;
169
+ # 备份模式选择年时,可填写1-336整数。
170
+ # @type BackupCount: Integer
171
+
172
+ attr_accessor :EnableBackupPolicy, :BeginDate, :MaxRetentionDays, :Frequency, :WeekDays, :BackupCount
173
+
174
+ def initialize(enablebackuppolicy=nil, begindate=nil, maxretentiondays=nil, frequency=nil, weekdays=nil, backupcount=nil)
175
+ @EnableBackupPolicy = enablebackuppolicy
176
+ @BeginDate = begindate
177
+ @MaxRetentionDays = maxretentiondays
178
+ @Frequency = frequency
179
+ @WeekDays = weekdays
180
+ @BackupCount = backupcount
181
+ end
182
+
183
+ def deserialize(params)
184
+ @EnableBackupPolicy = params['EnableBackupPolicy']
185
+ @BeginDate = params['BeginDate']
186
+ @MaxRetentionDays = params['MaxRetentionDays']
187
+ @Frequency = params['Frequency']
188
+ @WeekDays = params['WeekDays']
189
+ @BackupCount = params['BackupCount']
190
+ end
191
+ end
192
+
144
193
  # 描述分片DB节点信息
145
194
  class BriefNodeInfo < TencentCloud::Common::AbstractModel
146
195
  # @param NodeId: DB节点ID
@@ -1854,6 +1903,73 @@ module TencentCloud
1854
1903
  end
1855
1904
  end
1856
1905
 
1906
+ # DescribeBackupConfigs请求参数结构体
1907
+ class DescribeBackupConfigsRequest < TencentCloud::Common::AbstractModel
1908
+ # @param InstanceId: 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
1909
+ # @type InstanceId: String
1910
+
1911
+ attr_accessor :InstanceId
1912
+
1913
+ def initialize(instanceid=nil)
1914
+ @InstanceId = instanceid
1915
+ end
1916
+
1917
+ def deserialize(params)
1918
+ @InstanceId = params['InstanceId']
1919
+ end
1920
+ end
1921
+
1922
+ # DescribeBackupConfigs返回参数结构体
1923
+ class DescribeBackupConfigsResponse < TencentCloud::Common::AbstractModel
1924
+ # @param InstanceId: 实例 ID。
1925
+ # @type InstanceId: String
1926
+ # @param Days: 常规备份存储时长,范围[1, 3650]。
1927
+ # @type Days: Integer
1928
+ # @param StartBackupTime: 每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。
1929
+ # @type StartBackupTime: String
1930
+ # @param EndBackupTime: 每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。
1931
+ # @type EndBackupTime: String
1932
+ # @param WeekDays: 执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
1933
+ # @type WeekDays: Array
1934
+ # @param ArchiveDays: 沉降到归档存储时长,-1表示关闭归档设置。
1935
+ # @type ArchiveDays: Integer
1936
+ # @param BackupConfigSet: 超期备份配置。
1937
+ # @type BackupConfigSet: Array
1938
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1939
+ # @type RequestId: String
1940
+
1941
+ attr_accessor :InstanceId, :Days, :StartBackupTime, :EndBackupTime, :WeekDays, :ArchiveDays, :BackupConfigSet, :RequestId
1942
+
1943
+ def initialize(instanceid=nil, days=nil, startbackuptime=nil, endbackuptime=nil, weekdays=nil, archivedays=nil, backupconfigset=nil, requestid=nil)
1944
+ @InstanceId = instanceid
1945
+ @Days = days
1946
+ @StartBackupTime = startbackuptime
1947
+ @EndBackupTime = endbackuptime
1948
+ @WeekDays = weekdays
1949
+ @ArchiveDays = archivedays
1950
+ @BackupConfigSet = backupconfigset
1951
+ @RequestId = requestid
1952
+ end
1953
+
1954
+ def deserialize(params)
1955
+ @InstanceId = params['InstanceId']
1956
+ @Days = params['Days']
1957
+ @StartBackupTime = params['StartBackupTime']
1958
+ @EndBackupTime = params['EndBackupTime']
1959
+ @WeekDays = params['WeekDays']
1960
+ @ArchiveDays = params['ArchiveDays']
1961
+ unless params['BackupConfigSet'].nil?
1962
+ @BackupConfigSet = []
1963
+ params['BackupConfigSet'].each do |i|
1964
+ backupconfig_tmp = BackupConfig.new
1965
+ backupconfig_tmp.deserialize(i)
1966
+ @BackupConfigSet << backupconfig_tmp
1967
+ end
1968
+ end
1969
+ @RequestId = params['RequestId']
1970
+ end
1971
+ end
1972
+
1857
1973
  # DescribeBackupFiles请求参数结构体
1858
1974
  class DescribeBackupFilesRequest < TencentCloud::Common::AbstractModel
1859
1975
  # @param InstanceId: 按实例ID查询
@@ -4519,6 +4635,69 @@ module TencentCloud
4519
4635
  end
4520
4636
  end
4521
4637
 
4638
+ # ModifyBackupConfigs请求参数结构体
4639
+ class ModifyBackupConfigsRequest < TencentCloud::Common::AbstractModel
4640
+ # @param InstanceId: 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
4641
+ # @type InstanceId: String
4642
+ # @param Days: 常规备份存储时长,范围[1, 3650]。
4643
+ # @type Days: Integer
4644
+ # @param StartBackupTime: 每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。
4645
+ # @type StartBackupTime: String
4646
+ # @param EndBackupTime: 每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。
4647
+ # @type EndBackupTime: String
4648
+ # @param WeekDays: 执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
4649
+ # @type WeekDays: Array
4650
+ # @param ArchiveDays: 沉降到归档存储时长,-1表示关闭归档设置。
4651
+ # @type ArchiveDays: Integer
4652
+ # @param BackupConfigSet: 超期备份配置。
4653
+ # @type BackupConfigSet: Array
4654
+
4655
+ attr_accessor :InstanceId, :Days, :StartBackupTime, :EndBackupTime, :WeekDays, :ArchiveDays, :BackupConfigSet
4656
+
4657
+ def initialize(instanceid=nil, days=nil, startbackuptime=nil, endbackuptime=nil, weekdays=nil, archivedays=nil, backupconfigset=nil)
4658
+ @InstanceId = instanceid
4659
+ @Days = days
4660
+ @StartBackupTime = startbackuptime
4661
+ @EndBackupTime = endbackuptime
4662
+ @WeekDays = weekdays
4663
+ @ArchiveDays = archivedays
4664
+ @BackupConfigSet = backupconfigset
4665
+ end
4666
+
4667
+ def deserialize(params)
4668
+ @InstanceId = params['InstanceId']
4669
+ @Days = params['Days']
4670
+ @StartBackupTime = params['StartBackupTime']
4671
+ @EndBackupTime = params['EndBackupTime']
4672
+ @WeekDays = params['WeekDays']
4673
+ @ArchiveDays = params['ArchiveDays']
4674
+ unless params['BackupConfigSet'].nil?
4675
+ @BackupConfigSet = []
4676
+ params['BackupConfigSet'].each do |i|
4677
+ newbackupconfig_tmp = NewBackupConfig.new
4678
+ newbackupconfig_tmp.deserialize(i)
4679
+ @BackupConfigSet << newbackupconfig_tmp
4680
+ end
4681
+ end
4682
+ end
4683
+ end
4684
+
4685
+ # ModifyBackupConfigs返回参数结构体
4686
+ class ModifyBackupConfigsResponse < TencentCloud::Common::AbstractModel
4687
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4688
+ # @type RequestId: String
4689
+
4690
+ attr_accessor :RequestId
4691
+
4692
+ def initialize(requestid=nil)
4693
+ @RequestId = requestid
4694
+ end
4695
+
4696
+ def deserialize(params)
4697
+ @RequestId = params['RequestId']
4698
+ end
4699
+ end
4700
+
4522
4701
  # ModifyDBEncryptAttributes请求参数结构体
4523
4702
  class ModifyDBEncryptAttributesRequest < TencentCloud::Common::AbstractModel
4524
4703
  # @param InstanceId: 实例Id,形如:tdsqlshard-ow728lmc。
@@ -4945,6 +5124,55 @@ module TencentCloud
4945
5124
  end
4946
5125
  end
4947
5126
 
5127
+ # 数据库超期备份配置
5128
+ class NewBackupConfig < TencentCloud::Common::AbstractModel
5129
+ # @param EnableBackupPolicy: 备份策略是否启用。
5130
+ # @type EnableBackupPolicy: Boolean
5131
+ # @param BeginDate: 超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。
5132
+ # @type BeginDate: String
5133
+ # @param MaxRetentionDays: 超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。
5134
+ # @type MaxRetentionDays: Integer
5135
+ # @param Frequency: 备份模式,可选择按年月周模式保存
5136
+ # * 按年:annually
5137
+ # * 按月:monthly
5138
+ # * 按周:weekly
5139
+ # @type Frequency: String
5140
+ # @param WeekDays: Frequency等于weekly时生效。
5141
+ # 表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:
5142
+ # * 星期一 :Monday
5143
+ # * 星期二 :Tuesday
5144
+ # * 星期三:Wednesday
5145
+ # * 星期四:Thursday
5146
+ # * 星期五:Friday
5147
+ # * 星期六:Saturday
5148
+ # * 星期日:Sunday
5149
+ # @type WeekDays: Array
5150
+ # @param BackupCount: 保留备份个数,Frequency等于monthly或weekly时生效。
5151
+ # 备份模式选择按月时,可填写1-28整数;
5152
+ # 备份模式选择年时,可填写1-336整数。
5153
+ # @type BackupCount: Integer
5154
+
5155
+ attr_accessor :EnableBackupPolicy, :BeginDate, :MaxRetentionDays, :Frequency, :WeekDays, :BackupCount
5156
+
5157
+ def initialize(enablebackuppolicy=nil, begindate=nil, maxretentiondays=nil, frequency=nil, weekdays=nil, backupcount=nil)
5158
+ @EnableBackupPolicy = enablebackuppolicy
5159
+ @BeginDate = begindate
5160
+ @MaxRetentionDays = maxretentiondays
5161
+ @Frequency = frequency
5162
+ @WeekDays = weekdays
5163
+ @BackupCount = backupcount
5164
+ end
5165
+
5166
+ def deserialize(params)
5167
+ @EnableBackupPolicy = params['EnableBackupPolicy']
5168
+ @BeginDate = params['BeginDate']
5169
+ @MaxRetentionDays = params['MaxRetentionDays']
5170
+ @Frequency = params['Frequency']
5171
+ @WeekDays = params['WeekDays']
5172
+ @BackupCount = params['BackupCount']
5173
+ end
5174
+ end
5175
+
4948
5176
  # 描述DB节点信息
4949
5177
  class NodeInfo < TencentCloud::Common::AbstractModel
4950
5178
  # @param NodeId: DB节点ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dcdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.902
4
+ version: 3.0.903
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-09 00:00:00.000000000 Z
11
+ date: 2024-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common