tencentcloud-sdk-mariadb 3.0.901 → 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: ff27801da046932898d99f5127a4864d370c90f5
4
- data.tar.gz: 06f409854651ba32aa7b37c7152a73946e5529dd
3
+ metadata.gz: 1bdd9b6d4519af0fc10c06e5f2694412c769761c
4
+ data.tar.gz: 00f26a63a25efe5a8951752f8755595643b5bdde
5
5
  SHA512:
6
- metadata.gz: 6d4e0ae5086022837db05b26a88625d8a2f415bfdeb3550325ddb1e8fbbf3296dab14dfa79d83268813b280b0e11a25f1be83d5f6ae8103dc4f18c1a9d7cf206
7
- data.tar.gz: 22a8a50044c9ce8da05a8bd934847efc79fbdf07e1ddaa7ce1dae68a48a4914af5bf350621ab73dd75ab510c621dd0df6da765334c39e7f001d10e16fbecf699
6
+ metadata.gz: 2ead8877f565fc78cbe00ceefc33e33af49df09a6af377fa02d84ed15a8fb6911690236d653fe0e6d08778063d21d269837564f4c3878be500876ae221f20e8a
7
+ data.tar.gz: 5cd1de7bc0f1a66be0b462d14d8f0a2606e7c02114f5b2e152664cf0c15897b7a128a3769bdcb2049a803ead99673b6b042ea695496730f2ddd64ce5b4131914
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.901
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::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.
@@ -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
@@ -363,7 +412,7 @@ module TencentCloud
363
412
  # @type Host: String
364
413
  # @param Password: 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
365
414
  # @type Password: String
366
- # @param ReadOnly: 是否创建为只读账号,0:否:; 1:只读账号,该账号的sql请求优先选择备机执行,备机延迟时选择主机执行;2:只读账号,优先选择备机执行,备机延迟时操作报错;3:只读账号,优先选择备机执行,忽略备机延迟只读备机;
415
+ # @param ReadOnly: 是否创建为只读账号,0:否; 1:只读账号,该账号的sql请求优先选择备机执行,备机延迟时选择主机执行;2:只读账号,优先选择备机执行,备机延迟时操作报错;3:只读账号,优先选择备机执行,忽略备机延迟只读备机;
367
416
  # @type ReadOnly: Integer
368
417
  # @param Description: 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
369
418
  # @type Description: String
@@ -373,10 +422,12 @@ module TencentCloud
373
422
  # @type SlaveConst: Integer
374
423
  # @param MaxUserConnections: 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。
375
424
  # @type MaxUserConnections: Integer
425
+ # @param EncryptedPassword: 使用GetPublicKey返回的RSA2048公钥加密后的密码
426
+ # @type EncryptedPassword: String
376
427
 
377
- attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh, :SlaveConst, :MaxUserConnections
428
+ attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh, :SlaveConst, :MaxUserConnections, :EncryptedPassword
378
429
 
379
- def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil, slaveconst=nil, maxuserconnections=nil)
430
+ def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil, slaveconst=nil, maxuserconnections=nil, encryptedpassword=nil)
380
431
  @InstanceId = instanceid
381
432
  @UserName = username
382
433
  @Host = host
@@ -386,6 +437,7 @@ module TencentCloud
386
437
  @DelayThresh = delaythresh
387
438
  @SlaveConst = slaveconst
388
439
  @MaxUserConnections = maxuserconnections
440
+ @EncryptedPassword = encryptedpassword
389
441
  end
390
442
 
391
443
  def deserialize(params)
@@ -398,6 +450,7 @@ module TencentCloud
398
450
  @DelayThresh = params['DelayThresh']
399
451
  @SlaveConst = params['SlaveConst']
400
452
  @MaxUserConnections = params['MaxUserConnections']
453
+ @EncryptedPassword = params['EncryptedPassword']
401
454
  end
402
455
  end
403
456
 
@@ -1726,6 +1779,73 @@ module TencentCloud
1726
1779
  end
1727
1780
  end
1728
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
+
1729
1849
  # DescribeBackupFiles请求参数结构体
1730
1850
  class DescribeBackupFilesRequest < TencentCloud::Common::AbstractModel
1731
1851
  # @param InstanceId: 按实例ID查询
@@ -4198,6 +4318,69 @@ module TencentCloud
4198
4318
  end
4199
4319
  end
4200
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
+
4201
4384
  # ModifyBackupTime请求参数结构体
4202
4385
  class ModifyBackupTimeRequest < TencentCloud::Common::AbstractModel
4203
4386
  # @param InstanceId: 实例ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
@@ -4744,6 +4927,55 @@ module TencentCloud
4744
4927
  end
4745
4928
  end
4746
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
+
4747
4979
  # 描述实例的各个DB节点信息
4748
4980
  class NodeInfo < TencentCloud::Common::AbstractModel
4749
4981
  # @param NodeId: DB节点ID
@@ -5062,14 +5294,17 @@ module TencentCloud
5062
5294
  # @type Host: String
5063
5295
  # @param Password: 新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。
5064
5296
  # @type Password: String
5297
+ # @param EncryptedPassword: 使用GetPublicKey返回的RSA2048公钥加密后的密码
5298
+ # @type EncryptedPassword: String
5065
5299
 
5066
- attr_accessor :InstanceId, :UserName, :Host, :Password
5300
+ attr_accessor :InstanceId, :UserName, :Host, :Password, :EncryptedPassword
5067
5301
 
5068
- def initialize(instanceid=nil, username=nil, host=nil, password=nil)
5302
+ def initialize(instanceid=nil, username=nil, host=nil, password=nil, encryptedpassword=nil)
5069
5303
  @InstanceId = instanceid
5070
5304
  @UserName = username
5071
5305
  @Host = host
5072
5306
  @Password = password
5307
+ @EncryptedPassword = encryptedpassword
5073
5308
  end
5074
5309
 
5075
5310
  def deserialize(params)
@@ -5077,6 +5312,7 @@ module TencentCloud
5077
5312
  @UserName = params['UserName']
5078
5313
  @Host = params['Host']
5079
5314
  @Password = params['Password']
5315
+ @EncryptedPassword = params['EncryptedPassword']
5080
5316
  end
5081
5317
  end
5082
5318
 
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.901
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-08 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