tencentcloud-sdk-mariadb 3.0.902 → 3.0.904
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/client.rb +50 -0
- data/lib/v20170312/models.rb +228 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8db74d6a601dda8ecf01c8a68299b352a365561
|
4
|
+
data.tar.gz: 535c9507a181fbe1d69043bb3694b4770b5e06f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 251cec175b940e7e0692e4ba2e1ad83d361922f44f6e60f28d78c75f8d0f6ffea33671dedc7683ba7fc9ee8fb5ff1e65bc36c7e7716a0f1e1e7f8eb788afa14f
|
7
|
+
data.tar.gz: 23bf674f239b3f6171a7c88c0f2f5125ab471720113d2a75e519444d60b5915e7aef7dd551851a0cda8b4109c87b655c2251c60aaab2fa8075d0d5d8ad1b4848
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.904
|
data/lib/v20170312/client.rb
CHANGED
@@ -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::mariadb::V20170312::DescribeBackupConfigsRequest`
|
374
|
+
# @rtype: :class:`Tencentcloud::mariadb::V20170312::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.
|
@@ -1287,6 +1311,32 @@ module TencentCloud
|
|
1287
1311
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1288
1312
|
end
|
1289
1313
|
|
1314
|
+
# 本接口(ModifyBackupConfigs)用于修改数据库备份配置信息。
|
1315
|
+
|
1316
|
+
# 1. 修改数据库超期备份配置,目前按年、按月、按日只支持一种,存在互斥关系,如当前策略按年备份,如果传入按月备份策略将会覆盖当前的按年备份策略,务必注意。
|
1317
|
+
|
1318
|
+
# @param request: Request instance for ModifyBackupConfigs.
|
1319
|
+
# @type request: :class:`Tencentcloud::mariadb::V20170312::ModifyBackupConfigsRequest`
|
1320
|
+
# @rtype: :class:`Tencentcloud::mariadb::V20170312::ModifyBackupConfigsResponse`
|
1321
|
+
def ModifyBackupConfigs(request)
|
1322
|
+
body = send_request('ModifyBackupConfigs', request.serialize)
|
1323
|
+
response = JSON.parse(body)
|
1324
|
+
if response['Response'].key?('Error') == false
|
1325
|
+
model = ModifyBackupConfigsResponse.new
|
1326
|
+
model.deserialize(response['Response'])
|
1327
|
+
model
|
1328
|
+
else
|
1329
|
+
code = response['Response']['Error']['Code']
|
1330
|
+
message = response['Response']['Error']['Message']
|
1331
|
+
reqid = response['Response']['RequestId']
|
1332
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1333
|
+
end
|
1334
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1335
|
+
raise e
|
1336
|
+
rescue StandardError => e
|
1337
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1338
|
+
end
|
1339
|
+
|
1290
1340
|
# 本接口(ModifyBackupTime)用于设置云数据库实例的备份时间。后台系统将根据此配置定期进行实例备份。
|
1291
1341
|
|
1292
1342
|
# @param request: Request instance for ModifyBackupTime.
|
data/lib/v20170312/models.rb
CHANGED
@@ -117,6 +117,55 @@ module TencentCloud
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
+
# 数据库超期备份配置
|
121
|
+
class BackupConfig < TencentCloud::Common::AbstractModel
|
122
|
+
# @param EnableBackupPolicy: 备份策略是否启用。
|
123
|
+
# @type EnableBackupPolicy: Boolean
|
124
|
+
# @param BeginDate: 超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。
|
125
|
+
# @type BeginDate: String
|
126
|
+
# @param MaxRetentionDays: 超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。
|
127
|
+
# @type MaxRetentionDays: Integer
|
128
|
+
# @param Frequency: 备份模式,可选择按年月周模式保存
|
129
|
+
# * 按年:annually
|
130
|
+
# * 按月:monthly
|
131
|
+
# * 按周:weekly
|
132
|
+
# @type Frequency: String
|
133
|
+
# @param WeekDays: Frequency等于weekly时生效。
|
134
|
+
# 表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:
|
135
|
+
# * 星期一 :Monday
|
136
|
+
# * 星期二 :Tuesday
|
137
|
+
# * 星期三:Wednesday
|
138
|
+
# * 星期四:Thursday
|
139
|
+
# * 星期五:Friday
|
140
|
+
# * 星期六:Saturday
|
141
|
+
# * 星期日:Sunday
|
142
|
+
# @type WeekDays: Array
|
143
|
+
# @param BackupCount: 保留备份个数,Frequency等于monthly或weekly时生效。
|
144
|
+
# 备份模式选择按月时,可填写1-28整数;
|
145
|
+
# 备份模式选择年时,可填写1-336整数。
|
146
|
+
# @type BackupCount: Integer
|
147
|
+
|
148
|
+
attr_accessor :EnableBackupPolicy, :BeginDate, :MaxRetentionDays, :Frequency, :WeekDays, :BackupCount
|
149
|
+
|
150
|
+
def initialize(enablebackuppolicy=nil, begindate=nil, maxretentiondays=nil, frequency=nil, weekdays=nil, backupcount=nil)
|
151
|
+
@EnableBackupPolicy = enablebackuppolicy
|
152
|
+
@BeginDate = begindate
|
153
|
+
@MaxRetentionDays = maxretentiondays
|
154
|
+
@Frequency = frequency
|
155
|
+
@WeekDays = weekdays
|
156
|
+
@BackupCount = backupcount
|
157
|
+
end
|
158
|
+
|
159
|
+
def deserialize(params)
|
160
|
+
@EnableBackupPolicy = params['EnableBackupPolicy']
|
161
|
+
@BeginDate = params['BeginDate']
|
162
|
+
@MaxRetentionDays = params['MaxRetentionDays']
|
163
|
+
@Frequency = params['Frequency']
|
164
|
+
@WeekDays = params['WeekDays']
|
165
|
+
@BackupCount = params['BackupCount']
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
120
169
|
# CancelDcnJob请求参数结构体
|
121
170
|
class CancelDcnJobRequest < TencentCloud::Common::AbstractModel
|
122
171
|
# @param InstanceId: 灾备实例ID
|
@@ -1730,6 +1779,73 @@ module TencentCloud
|
|
1730
1779
|
end
|
1731
1780
|
end
|
1732
1781
|
|
1782
|
+
# DescribeBackupConfigs请求参数结构体
|
1783
|
+
class DescribeBackupConfigsRequest < TencentCloud::Common::AbstractModel
|
1784
|
+
# @param InstanceId: 实例 ID,格式如:tdsql-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
1785
|
+
# @type InstanceId: String
|
1786
|
+
|
1787
|
+
attr_accessor :InstanceId
|
1788
|
+
|
1789
|
+
def initialize(instanceid=nil)
|
1790
|
+
@InstanceId = instanceid
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
def deserialize(params)
|
1794
|
+
@InstanceId = params['InstanceId']
|
1795
|
+
end
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
# DescribeBackupConfigs返回参数结构体
|
1799
|
+
class DescribeBackupConfigsResponse < TencentCloud::Common::AbstractModel
|
1800
|
+
# @param InstanceId: 实例 ID。
|
1801
|
+
# @type InstanceId: String
|
1802
|
+
# @param Days: 常规备份存储时长,范围[1, 3650]。
|
1803
|
+
# @type Days: Integer
|
1804
|
+
# @param StartBackupTime: 每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。
|
1805
|
+
# @type StartBackupTime: String
|
1806
|
+
# @param EndBackupTime: 每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。
|
1807
|
+
# @type EndBackupTime: String
|
1808
|
+
# @param WeekDays: 执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
|
1809
|
+
# @type WeekDays: Array
|
1810
|
+
# @param ArchiveDays: 沉降到归档存储时长,-1表示关闭归档设置。
|
1811
|
+
# @type ArchiveDays: Integer
|
1812
|
+
# @param BackupConfigSet: 超期备份配置。
|
1813
|
+
# @type BackupConfigSet: Array
|
1814
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1815
|
+
# @type RequestId: String
|
1816
|
+
|
1817
|
+
attr_accessor :InstanceId, :Days, :StartBackupTime, :EndBackupTime, :WeekDays, :ArchiveDays, :BackupConfigSet, :RequestId
|
1818
|
+
|
1819
|
+
def initialize(instanceid=nil, days=nil, startbackuptime=nil, endbackuptime=nil, weekdays=nil, archivedays=nil, backupconfigset=nil, requestid=nil)
|
1820
|
+
@InstanceId = instanceid
|
1821
|
+
@Days = days
|
1822
|
+
@StartBackupTime = startbackuptime
|
1823
|
+
@EndBackupTime = endbackuptime
|
1824
|
+
@WeekDays = weekdays
|
1825
|
+
@ArchiveDays = archivedays
|
1826
|
+
@BackupConfigSet = backupconfigset
|
1827
|
+
@RequestId = requestid
|
1828
|
+
end
|
1829
|
+
|
1830
|
+
def deserialize(params)
|
1831
|
+
@InstanceId = params['InstanceId']
|
1832
|
+
@Days = params['Days']
|
1833
|
+
@StartBackupTime = params['StartBackupTime']
|
1834
|
+
@EndBackupTime = params['EndBackupTime']
|
1835
|
+
@WeekDays = params['WeekDays']
|
1836
|
+
@ArchiveDays = params['ArchiveDays']
|
1837
|
+
unless params['BackupConfigSet'].nil?
|
1838
|
+
@BackupConfigSet = []
|
1839
|
+
params['BackupConfigSet'].each do |i|
|
1840
|
+
backupconfig_tmp = BackupConfig.new
|
1841
|
+
backupconfig_tmp.deserialize(i)
|
1842
|
+
@BackupConfigSet << backupconfig_tmp
|
1843
|
+
end
|
1844
|
+
end
|
1845
|
+
@RequestId = params['RequestId']
|
1846
|
+
end
|
1847
|
+
end
|
1848
|
+
|
1733
1849
|
# DescribeBackupFiles请求参数结构体
|
1734
1850
|
class DescribeBackupFilesRequest < TencentCloud::Common::AbstractModel
|
1735
1851
|
# @param InstanceId: 按实例ID查询
|
@@ -4202,6 +4318,69 @@ module TencentCloud
|
|
4202
4318
|
end
|
4203
4319
|
end
|
4204
4320
|
|
4321
|
+
# ModifyBackupConfigs请求参数结构体
|
4322
|
+
class ModifyBackupConfigsRequest < TencentCloud::Common::AbstractModel
|
4323
|
+
# @param InstanceId: 实例 ID,格式如:tdsql-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
4324
|
+
# @type InstanceId: String
|
4325
|
+
# @param Days: 常规备份存储时长,范围[1, 3650]。
|
4326
|
+
# @type Days: Integer
|
4327
|
+
# @param StartBackupTime: 每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。
|
4328
|
+
# @type StartBackupTime: String
|
4329
|
+
# @param EndBackupTime: 每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。
|
4330
|
+
# @type EndBackupTime: String
|
4331
|
+
# @param WeekDays: 执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
|
4332
|
+
# @type WeekDays: Array
|
4333
|
+
# @param ArchiveDays: 沉降到归档存储时长,-1表示关闭归档设置。
|
4334
|
+
# @type ArchiveDays: Integer
|
4335
|
+
# @param BackupConfigSet: 超期备份配置。
|
4336
|
+
# @type BackupConfigSet: Array
|
4337
|
+
|
4338
|
+
attr_accessor :InstanceId, :Days, :StartBackupTime, :EndBackupTime, :WeekDays, :ArchiveDays, :BackupConfigSet
|
4339
|
+
|
4340
|
+
def initialize(instanceid=nil, days=nil, startbackuptime=nil, endbackuptime=nil, weekdays=nil, archivedays=nil, backupconfigset=nil)
|
4341
|
+
@InstanceId = instanceid
|
4342
|
+
@Days = days
|
4343
|
+
@StartBackupTime = startbackuptime
|
4344
|
+
@EndBackupTime = endbackuptime
|
4345
|
+
@WeekDays = weekdays
|
4346
|
+
@ArchiveDays = archivedays
|
4347
|
+
@BackupConfigSet = backupconfigset
|
4348
|
+
end
|
4349
|
+
|
4350
|
+
def deserialize(params)
|
4351
|
+
@InstanceId = params['InstanceId']
|
4352
|
+
@Days = params['Days']
|
4353
|
+
@StartBackupTime = params['StartBackupTime']
|
4354
|
+
@EndBackupTime = params['EndBackupTime']
|
4355
|
+
@WeekDays = params['WeekDays']
|
4356
|
+
@ArchiveDays = params['ArchiveDays']
|
4357
|
+
unless params['BackupConfigSet'].nil?
|
4358
|
+
@BackupConfigSet = []
|
4359
|
+
params['BackupConfigSet'].each do |i|
|
4360
|
+
newbackupconfig_tmp = NewBackupConfig.new
|
4361
|
+
newbackupconfig_tmp.deserialize(i)
|
4362
|
+
@BackupConfigSet << newbackupconfig_tmp
|
4363
|
+
end
|
4364
|
+
end
|
4365
|
+
end
|
4366
|
+
end
|
4367
|
+
|
4368
|
+
# ModifyBackupConfigs返回参数结构体
|
4369
|
+
class ModifyBackupConfigsResponse < TencentCloud::Common::AbstractModel
|
4370
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4371
|
+
# @type RequestId: String
|
4372
|
+
|
4373
|
+
attr_accessor :RequestId
|
4374
|
+
|
4375
|
+
def initialize(requestid=nil)
|
4376
|
+
@RequestId = requestid
|
4377
|
+
end
|
4378
|
+
|
4379
|
+
def deserialize(params)
|
4380
|
+
@RequestId = params['RequestId']
|
4381
|
+
end
|
4382
|
+
end
|
4383
|
+
|
4205
4384
|
# ModifyBackupTime请求参数结构体
|
4206
4385
|
class ModifyBackupTimeRequest < TencentCloud::Common::AbstractModel
|
4207
4386
|
# @param InstanceId: 实例ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
|
@@ -4748,6 +4927,55 @@ module TencentCloud
|
|
4748
4927
|
end
|
4749
4928
|
end
|
4750
4929
|
|
4930
|
+
# 数据库超期备份配置
|
4931
|
+
class NewBackupConfig < TencentCloud::Common::AbstractModel
|
4932
|
+
# @param EnableBackupPolicy: 备份策略是否启用。
|
4933
|
+
# @type EnableBackupPolicy: Boolean
|
4934
|
+
# @param BeginDate: 超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。
|
4935
|
+
# @type BeginDate: String
|
4936
|
+
# @param MaxRetentionDays: 超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。
|
4937
|
+
# @type MaxRetentionDays: Integer
|
4938
|
+
# @param Frequency: 备份模式,可选择按年月周模式保存
|
4939
|
+
# * 按年:annually
|
4940
|
+
# * 按月:monthly
|
4941
|
+
# * 按周:weekly
|
4942
|
+
# @type Frequency: String
|
4943
|
+
# @param WeekDays: Frequency等于weekly时生效。
|
4944
|
+
# 表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:
|
4945
|
+
# * 星期一 :Monday
|
4946
|
+
# * 星期二 :Tuesday
|
4947
|
+
# * 星期三:Wednesday
|
4948
|
+
# * 星期四:Thursday
|
4949
|
+
# * 星期五:Friday
|
4950
|
+
# * 星期六:Saturday
|
4951
|
+
# * 星期日:Sunday
|
4952
|
+
# @type WeekDays: Array
|
4953
|
+
# @param BackupCount: 保留备份个数,Frequency等于monthly或weekly时生效。
|
4954
|
+
# 备份模式选择按月时,可填写1-28整数;
|
4955
|
+
# 备份模式选择年时,可填写1-336整数。
|
4956
|
+
# @type BackupCount: Integer
|
4957
|
+
|
4958
|
+
attr_accessor :EnableBackupPolicy, :BeginDate, :MaxRetentionDays, :Frequency, :WeekDays, :BackupCount
|
4959
|
+
|
4960
|
+
def initialize(enablebackuppolicy=nil, begindate=nil, maxretentiondays=nil, frequency=nil, weekdays=nil, backupcount=nil)
|
4961
|
+
@EnableBackupPolicy = enablebackuppolicy
|
4962
|
+
@BeginDate = begindate
|
4963
|
+
@MaxRetentionDays = maxretentiondays
|
4964
|
+
@Frequency = frequency
|
4965
|
+
@WeekDays = weekdays
|
4966
|
+
@BackupCount = backupcount
|
4967
|
+
end
|
4968
|
+
|
4969
|
+
def deserialize(params)
|
4970
|
+
@EnableBackupPolicy = params['EnableBackupPolicy']
|
4971
|
+
@BeginDate = params['BeginDate']
|
4972
|
+
@MaxRetentionDays = params['MaxRetentionDays']
|
4973
|
+
@Frequency = params['Frequency']
|
4974
|
+
@WeekDays = params['WeekDays']
|
4975
|
+
@BackupCount = params['BackupCount']
|
4976
|
+
end
|
4977
|
+
end
|
4978
|
+
|
4751
4979
|
# 描述实例的各个DB节点信息
|
4752
4980
|
class NodeInfo < TencentCloud::Common::AbstractModel
|
4753
4981
|
# @param NodeId: DB节点ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mariadb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.904
|
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-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|