tencentcloud-sdk-tcaplusdb 3.0.548 → 3.0.550

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: ef453520066c148a73b3dbd7be0e5a68faa6a7f6
4
- data.tar.gz: 86f5e8aaa884b7da2c1488df44a16cd7e4d74233
3
+ metadata.gz: bf9e148cb32d579aa919f47304a5cc4606160237
4
+ data.tar.gz: 51e3bfcdb9442c55432730ab4a2e97ae24cebf25
5
5
  SHA512:
6
- metadata.gz: 422702a6ad1b21b295337d52384c289d938f0c66687a5752df1f6798a9077a663fd021b77ac5dea07b708fb3cba88fd9872e085ba37748fcb6f5817ee93b835d
7
- data.tar.gz: a186915aca776634d3eb78ff880a20a388f50eabeb59bf0a0d77f4e1db11a824f859da2e7ed9f6332c3a83f2d6b0db1db226b45f679b2096c9d05572fb27d406
6
+ metadata.gz: 139fb880a844df97721c3b83da537382e233441c2e6b608f5c6795df842f3e986b04e44c96fc6b9efe6b00b08c63450f202e34a1231240e7da6128db661f3e7e
7
+ data.tar.gz: f4fa22c4f3867c19daa6bb3d65354daa7558b0958cdf01bb616ae2346b8559a68ada6ca8daa4aa46119e091f794d331c0c64660ea31c5369fab65f447add49d7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.548
1
+ 3.0.550
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 删除手工备份
201
+
202
+ # @param request: Request instance for DeleteBackupRecords.
203
+ # @type request: :class:`Tencentcloud::tcaplusdb::V20190823::DeleteBackupRecordsRequest`
204
+ # @rtype: :class:`Tencentcloud::tcaplusdb::V20190823::DeleteBackupRecordsResponse`
205
+ def DeleteBackupRecords(request)
206
+ body = send_request('DeleteBackupRecords', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DeleteBackupRecordsResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
200
224
  # 删除TcaplusDB集群,必须在集群所属所有资源(包括表格组,表)都已经释放的情况下才会成功。
201
225
 
202
226
  # @param request: Request instance for DeleteCluster.
@@ -389,6 +413,34 @@ module TencentCloud
389
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
414
  end
391
415
 
416
+ # 查询备份记录
417
+
418
+ # 查询集群级别时, 将TableGroupId设置为"-1", 将TableName设置为"-1"
419
+ # 查询集群+表格组级别时, 将TableName设置为"-1"
420
+ # 查询集群+表格组+表格级别时, 都不能设置为“-1”
421
+
422
+ # @param request: Request instance for DescribeBackupRecords.
423
+ # @type request: :class:`Tencentcloud::tcaplusdb::V20190823::DescribeBackupRecordsRequest`
424
+ # @rtype: :class:`Tencentcloud::tcaplusdb::V20190823::DescribeBackupRecordsResponse`
425
+ def DescribeBackupRecords(request)
426
+ body = send_request('DescribeBackupRecords', request.serialize)
427
+ response = JSON.parse(body)
428
+ if response['Response'].key?('Error') == false
429
+ model = DescribeBackupRecordsResponse.new
430
+ model.deserialize(response['Response'])
431
+ model
432
+ else
433
+ code = response['Response']['Error']['Code']
434
+ message = response['Response']['Error']['Message']
435
+ reqid = response['Response']['RequestId']
436
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
437
+ end
438
+ rescue TencentCloud::Common::TencentCloudSDKException => e
439
+ raise e
440
+ rescue StandardError => e
441
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
442
+ end
443
+
392
444
  # 获取集群关联的标签列表
393
445
 
394
446
  # @param request: Request instance for DescribeClusterTags.
@@ -1133,6 +1185,30 @@ module TencentCloud
1133
1185
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
1186
  end
1135
1187
 
1188
+ # 新增、删除、修改备份过期策略, ClusterId必须为具体的集群Id(appid)
1189
+
1190
+ # @param request: Request instance for SetBackupExpireRule.
1191
+ # @type request: :class:`Tencentcloud::tcaplusdb::V20190823::SetBackupExpireRuleRequest`
1192
+ # @rtype: :class:`Tencentcloud::tcaplusdb::V20190823::SetBackupExpireRuleResponse`
1193
+ def SetBackupExpireRule(request)
1194
+ body = send_request('SetBackupExpireRule', request.serialize)
1195
+ response = JSON.parse(body)
1196
+ if response['Response'].key?('Error') == false
1197
+ model = SetBackupExpireRuleResponse.new
1198
+ model.deserialize(response['Response'])
1199
+ model
1200
+ else
1201
+ code = response['Response']['Error']['Code']
1202
+ message = response['Response']['Error']['Message']
1203
+ reqid = response['Response']['RequestId']
1204
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1205
+ end
1206
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1207
+ raise e
1208
+ rescue StandardError => e
1209
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1210
+ end
1211
+
1136
1212
  # 新增、修改表格数据订阅
1137
1213
 
1138
1214
  # @param request: Request instance for SetTableDataFlow.
@@ -170,6 +170,99 @@ module TencentCloud
170
170
  end
171
171
  end
172
172
 
173
+ # 备份保留策略详情
174
+ # 集群策略: ClueterId=集群Id, TableGroupId=-1, TableName="-1"
175
+ # 集群+表格组策略: ClueterId=集群Id, TableGroupId=表格组Id, TableName="-1"
176
+ # 集群+表格组+表格策略: ClueterId=集群Id, TableGroupId=表格组Id, TableName="表格名"
177
+
178
+ # FileTag=0 txh引擎文件, =1 ulog流水文件, 当要设置为=1时, 这两项不可变 TableGroupId=-1和TableName="-1"
179
+ # ExpireDay为大于等于1,小于999的整形数字
180
+ # OperType=0 代表动作为新增, =1 代表动作为删除, =2 代表动作为修改, 其中0和2可以混用,后端实现兼容
181
+ class BackupExpireRuleInfo < TencentCloud::Common::AbstractModel
182
+ # @param TableGroupId: 所属表格组ID
183
+ # @type TableGroupId: String
184
+ # @param TableName: 表名称
185
+ # @type TableName: String
186
+ # @param FileTag: 文件标签,见上面描述
187
+ # @type FileTag: Integer
188
+ # @param ExpireDay: 淘汰天数,见上面描述
189
+ # @type ExpireDay: Integer
190
+ # @param OperType: 操作类型,见上面描述
191
+ # @type OperType: Integer
192
+
193
+ attr_accessor :TableGroupId, :TableName, :FileTag, :ExpireDay, :OperType
194
+
195
+ def initialize(tablegroupid=nil, tablename=nil, filetag=nil, expireday=nil, opertype=nil)
196
+ @TableGroupId = tablegroupid
197
+ @TableName = tablename
198
+ @FileTag = filetag
199
+ @ExpireDay = expireday
200
+ @OperType = opertype
201
+ end
202
+
203
+ def deserialize(params)
204
+ @TableGroupId = params['TableGroupId']
205
+ @TableName = params['TableName']
206
+ @FileTag = params['FileTag']
207
+ @ExpireDay = params['ExpireDay']
208
+ @OperType = params['OperType']
209
+ end
210
+ end
211
+
212
+ # 备份记录
213
+ # 作为出参时,每个字段都会填充
214
+ # 作为入参时, 原封不动将每个字段填回结构体, 注意只有FIleTag=OSDATA才可以调用此接口
215
+ class BackupRecords < TencentCloud::Common::AbstractModel
216
+ # @param ZoneId: 表格组ID
217
+ # @type ZoneId: Integer
218
+ # @param TableName: 表名称
219
+ # @type TableName: String
220
+ # @param BackupType: 备份源
221
+ # @type BackupType: String
222
+ # @param FileTag: 文件标签:TCAPLUS_FULL或OSDATA
223
+ # @type FileTag: String
224
+ # @param ShardCount: 分片数量
225
+ # @type ShardCount: Integer
226
+ # @param BackupBatchTime: 备份批次日期
227
+ # @type BackupBatchTime: String
228
+ # @param BackupFileSize: 备份文件汇总大小
229
+ # @type BackupFileSize: Integer
230
+ # @param BackupSuccRate: 备份成功率
231
+ # @type BackupSuccRate: String
232
+ # @param BackupExpireTime: 备份文件过期时间
233
+ # @type BackupExpireTime: String
234
+ # @param AppId: 业务ID
235
+ # @type AppId: Integer
236
+
237
+ attr_accessor :ZoneId, :TableName, :BackupType, :FileTag, :ShardCount, :BackupBatchTime, :BackupFileSize, :BackupSuccRate, :BackupExpireTime, :AppId
238
+
239
+ def initialize(zoneid=nil, tablename=nil, backuptype=nil, filetag=nil, shardcount=nil, backupbatchtime=nil, backupfilesize=nil, backupsuccrate=nil, backupexpiretime=nil, appid=nil)
240
+ @ZoneId = zoneid
241
+ @TableName = tablename
242
+ @BackupType = backuptype
243
+ @FileTag = filetag
244
+ @ShardCount = shardcount
245
+ @BackupBatchTime = backupbatchtime
246
+ @BackupFileSize = backupfilesize
247
+ @BackupSuccRate = backupsuccrate
248
+ @BackupExpireTime = backupexpiretime
249
+ @AppId = appid
250
+ end
251
+
252
+ def deserialize(params)
253
+ @ZoneId = params['ZoneId']
254
+ @TableName = params['TableName']
255
+ @BackupType = params['BackupType']
256
+ @FileTag = params['FileTag']
257
+ @ShardCount = params['ShardCount']
258
+ @BackupBatchTime = params['BackupBatchTime']
259
+ @BackupFileSize = params['BackupFileSize']
260
+ @BackupSuccRate = params['BackupSuccRate']
261
+ @BackupExpireTime = params['BackupExpireTime']
262
+ @AppId = params['AppId']
263
+ end
264
+ end
265
+
173
266
  # ClearTables请求参数结构体
174
267
  class ClearTablesRequest < TencentCloud::Common::AbstractModel
175
268
  # @param ClusterId: 表所属集群实例ID
@@ -875,6 +968,54 @@ module TencentCloud
875
968
  end
876
969
  end
877
970
 
971
+ # DeleteBackupRecords请求参数结构体
972
+ class DeleteBackupRecordsRequest < TencentCloud::Common::AbstractModel
973
+ # @param ClusterId: 待删除备份记录的所在集群ID
974
+ # @type ClusterId: String
975
+ # @param BackupRecords: 待删除备份记录的详情
976
+ # @type BackupRecords: Array
977
+
978
+ attr_accessor :ClusterId, :BackupRecords
979
+
980
+ def initialize(clusterid=nil, backuprecords=nil)
981
+ @ClusterId = clusterid
982
+ @BackupRecords = backuprecords
983
+ end
984
+
985
+ def deserialize(params)
986
+ @ClusterId = params['ClusterId']
987
+ unless params['BackupRecords'].nil?
988
+ @BackupRecords = []
989
+ params['BackupRecords'].each do |i|
990
+ backuprecords_tmp = BackupRecords.new
991
+ backuprecords_tmp.deserialize(i)
992
+ @BackupRecords << backuprecords_tmp
993
+ end
994
+ end
995
+ end
996
+ end
997
+
998
+ # DeleteBackupRecords返回参数结构体
999
+ class DeleteBackupRecordsResponse < TencentCloud::Common::AbstractModel
1000
+ # @param TaskId: TaskId由 AppInstanceId-taskId 组成,以区分不同集群的任务
1001
+ # 注意:此字段可能返回 null,表示取不到有效值。
1002
+ # @type TaskId: String
1003
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1004
+ # @type RequestId: String
1005
+
1006
+ attr_accessor :TaskId, :RequestId
1007
+
1008
+ def initialize(taskid=nil, requestid=nil)
1009
+ @TaskId = taskid
1010
+ @RequestId = requestid
1011
+ end
1012
+
1013
+ def deserialize(params)
1014
+ @TaskId = params['TaskId']
1015
+ @RequestId = params['RequestId']
1016
+ end
1017
+ end
1018
+
878
1019
  # DeleteCluster请求参数结构体
879
1020
  class DeleteClusterRequest < TencentCloud::Common::AbstractModel
880
1021
  # @param ClusterId: 待删除的集群ID
@@ -1316,6 +1457,69 @@ module TencentCloud
1316
1457
  end
1317
1458
  end
1318
1459
 
1460
+ # DescribeBackupRecords请求参数结构体
1461
+ class DescribeBackupRecordsRequest < TencentCloud::Common::AbstractModel
1462
+ # @param ClusterId: 集群ID,用于获取指定集群的单据
1463
+ # @type ClusterId: String
1464
+ # @param Limit: 分页
1465
+ # @type Limit: Integer
1466
+ # @param Offset: 分页
1467
+ # @type Offset: Integer
1468
+ # @param TableGroupId: 表格组id,用于过滤
1469
+ # @type TableGroupId: String
1470
+ # @param TableName: 表格名,用于过滤
1471
+ # @type TableName: String
1472
+
1473
+ attr_accessor :ClusterId, :Limit, :Offset, :TableGroupId, :TableName
1474
+
1475
+ def initialize(clusterid=nil, limit=nil, offset=nil, tablegroupid=nil, tablename=nil)
1476
+ @ClusterId = clusterid
1477
+ @Limit = limit
1478
+ @Offset = offset
1479
+ @TableGroupId = tablegroupid
1480
+ @TableName = tablename
1481
+ end
1482
+
1483
+ def deserialize(params)
1484
+ @ClusterId = params['ClusterId']
1485
+ @Limit = params['Limit']
1486
+ @Offset = params['Offset']
1487
+ @TableGroupId = params['TableGroupId']
1488
+ @TableName = params['TableName']
1489
+ end
1490
+ end
1491
+
1492
+ # DescribeBackupRecords返回参数结构体
1493
+ class DescribeBackupRecordsResponse < TencentCloud::Common::AbstractModel
1494
+ # @param BackupRecords: 备份记录详情
1495
+ # @type BackupRecords: Array
1496
+ # @param TotalCount: 返回记录条数
1497
+ # @type TotalCount: Integer
1498
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1499
+ # @type RequestId: String
1500
+
1501
+ attr_accessor :BackupRecords, :TotalCount, :RequestId
1502
+
1503
+ def initialize(backuprecords=nil, totalcount=nil, requestid=nil)
1504
+ @BackupRecords = backuprecords
1505
+ @TotalCount = totalcount
1506
+ @RequestId = requestid
1507
+ end
1508
+
1509
+ def deserialize(params)
1510
+ unless params['BackupRecords'].nil?
1511
+ @BackupRecords = []
1512
+ params['BackupRecords'].each do |i|
1513
+ backuprecords_tmp = BackupRecords.new
1514
+ backuprecords_tmp.deserialize(i)
1515
+ @BackupRecords << backuprecords_tmp
1516
+ end
1517
+ end
1518
+ @TotalCount = params['TotalCount']
1519
+ @RequestId = params['RequestId']
1520
+ end
1521
+ end
1522
+
1319
1523
  # DescribeClusterTags请求参数结构体
1320
1524
  class DescribeClusterTagsRequest < TencentCloud::Common::AbstractModel
1321
1525
  # @param ClusterIds: 集群ID列表
@@ -3817,6 +4021,54 @@ module TencentCloud
3817
4021
  end
3818
4022
  end
3819
4023
 
4024
+ # SetBackupExpireRule请求参数结构体
4025
+ class SetBackupExpireRuleRequest < TencentCloud::Common::AbstractModel
4026
+ # @param ClusterId: 表所属集群实例ID
4027
+ # @type ClusterId: String
4028
+ # @param BackupExpireRules: 淘汰策略数组
4029
+ # @type BackupExpireRules: Array
4030
+
4031
+ attr_accessor :ClusterId, :BackupExpireRules
4032
+
4033
+ def initialize(clusterid=nil, backupexpirerules=nil)
4034
+ @ClusterId = clusterid
4035
+ @BackupExpireRules = backupexpirerules
4036
+ end
4037
+
4038
+ def deserialize(params)
4039
+ @ClusterId = params['ClusterId']
4040
+ unless params['BackupExpireRules'].nil?
4041
+ @BackupExpireRules = []
4042
+ params['BackupExpireRules'].each do |i|
4043
+ backupexpireruleinfo_tmp = BackupExpireRuleInfo.new
4044
+ backupexpireruleinfo_tmp.deserialize(i)
4045
+ @BackupExpireRules << backupexpireruleinfo_tmp
4046
+ end
4047
+ end
4048
+ end
4049
+ end
4050
+
4051
+ # SetBackupExpireRule返回参数结构体
4052
+ class SetBackupExpireRuleResponse < TencentCloud::Common::AbstractModel
4053
+ # @param TaskId: TaskId由 AppInstanceId-taskId 组成,以区分不同集群的任务
4054
+ # 注意:此字段可能返回 null,表示取不到有效值。
4055
+ # @type TaskId: String
4056
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4057
+ # @type RequestId: String
4058
+
4059
+ attr_accessor :TaskId, :RequestId
4060
+
4061
+ def initialize(taskid=nil, requestid=nil)
4062
+ @TaskId = taskid
4063
+ @RequestId = requestid
4064
+ end
4065
+
4066
+ def deserialize(params)
4067
+ @TaskId = params['TaskId']
4068
+ @RequestId = params['RequestId']
4069
+ end
4070
+ end
4071
+
3820
4072
  # SetTableDataFlow请求参数结构体
3821
4073
  class SetTableDataFlowRequest < TencentCloud::Common::AbstractModel
3822
4074
  # @param ClusterId: 表所属集群实例ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tcaplusdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.548
4
+ version: 3.0.550
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-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common