tencentcloud-sdk-cynosdb 3.0.484 → 3.0.485

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: 4d2d6ea7c5203fd8006101114deca9d6917077f8
4
- data.tar.gz: 0927f078044054ec0c1de2d0e48a191736592e86
3
+ metadata.gz: 5dc853fb5c413415c0e2ec3b673363a96ae1dc5a
4
+ data.tar.gz: 23fd634f418b9992d985a69f73933f881d502f9e
5
5
  SHA512:
6
- metadata.gz: 967c2dc17f6ccb3293853766cdb6e74845129ea2a05a49a66c8edb478ea93d3081cdc37245d4092a8d396f90e5d18a21c509814f9fe77960459ad77d0c6264f8
7
- data.tar.gz: 13c30b8cc3edb0798505fb98294c451cc52a629b01690bf18a9ff1b9006ae4a19f5cead021a65586f4c52b94845308de6bac876eb6af62c7f2c186670bce2359
6
+ metadata.gz: 90872c6ec69cd28e291615e8910bb39086cfc39aa08463add8b9c974afa2693d5b8300704f5706fbcba15a89b21e2cfdcd1774952b70cd56ac36573101de1aa1
7
+ data.tar.gz: 85a40577089cfe330bbc478cb2f8ca4eb7e4f7b72c9d480c10cb55218a211530a53309e400e305aef1464d30deff9a077bac9cc9595d0c45e6517c49e9ec18c2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.484
1
+ 3.0.485
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # TDSQL-C for MySQL实例关闭审计服务
129
+
130
+ # @param request: Request instance for CloseAuditService.
131
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CloseAuditServiceRequest`
132
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CloseAuditServiceResponse`
133
+ def CloseAuditService(request)
134
+ body = send_request('CloseAuditService', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CloseAuditServiceResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
128
152
  # 创建账号
129
153
 
130
154
  # @param request: Request instance for CreateAccounts.
@@ -173,6 +197,30 @@ module TencentCloud
173
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
198
  end
175
199
 
200
+ # 创建审计规则模版
201
+
202
+ # @param request: Request instance for CreateAuditRuleTemplate.
203
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateAuditRuleTemplateRequest`
204
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateAuditRuleTemplateResponse`
205
+ def CreateAuditRuleTemplate(request)
206
+ body = send_request('CreateAuditRuleTemplate', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CreateAuditRuleTemplateResponse.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
+
176
224
  # 为集群创建手动备份
177
225
 
178
226
  # @param request: Request instance for CreateBackup.
@@ -245,6 +293,30 @@ module TencentCloud
245
293
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
294
  end
247
295
 
296
+ # 删除审计规则模版
297
+
298
+ # @param request: Request instance for DeleteAuditRuleTemplates.
299
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DeleteAuditRuleTemplatesRequest`
300
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DeleteAuditRuleTemplatesResponse`
301
+ def DeleteAuditRuleTemplates(request)
302
+ body = send_request('DeleteAuditRuleTemplates', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DeleteAuditRuleTemplatesResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
248
320
  # 为集群删除手动备份,无法删除自动备份
249
321
 
250
322
  # @param request: Request instance for DeleteBackup.
@@ -365,6 +437,54 @@ module TencentCloud
365
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
438
  end
367
439
 
440
+ # 查询审计规则模版信息
441
+
442
+ # @param request: Request instance for DescribeAuditRuleTemplates.
443
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditRuleTemplatesRequest`
444
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditRuleTemplatesResponse`
445
+ def DescribeAuditRuleTemplates(request)
446
+ body = send_request('DescribeAuditRuleTemplates', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DescribeAuditRuleTemplatesResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
464
+ # 获取实例的审计规则
465
+
466
+ # @param request: Request instance for DescribeAuditRuleWithInstanceIds.
467
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditRuleWithInstanceIdsRequest`
468
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditRuleWithInstanceIdsResponse`
469
+ def DescribeAuditRuleWithInstanceIds(request)
470
+ body = send_request('DescribeAuditRuleWithInstanceIds', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = DescribeAuditRuleWithInstanceIdsResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
368
488
  # 获取指定集群的备份配置信息,包括全量备份时间段,备份文件保留时间
369
489
 
370
490
  # @param request: Request instance for DescribeBackupConfig.
@@ -533,7 +653,7 @@ module TencentCloud
533
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
654
  end
535
655
 
536
- # 本接口(DescribeClusterInstanceGrps)用于查询实例组
656
+ # 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。
537
657
 
538
658
  # @param request: Request instance for DescribeClusterInstanceGrps.
539
659
  # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterInstanceGrpsRequest`
@@ -1085,6 +1205,54 @@ module TencentCloud
1085
1205
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1086
1206
  end
1087
1207
 
1208
+ # 修改审计规则模版
1209
+
1210
+ # @param request: Request instance for ModifyAuditRuleTemplates.
1211
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyAuditRuleTemplatesRequest`
1212
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyAuditRuleTemplatesResponse`
1213
+ def ModifyAuditRuleTemplates(request)
1214
+ body = send_request('ModifyAuditRuleTemplates', request.serialize)
1215
+ response = JSON.parse(body)
1216
+ if response['Response'].key?('Error') == false
1217
+ model = ModifyAuditRuleTemplatesResponse.new
1218
+ model.deserialize(response['Response'])
1219
+ model
1220
+ else
1221
+ code = response['Response']['Error']['Code']
1222
+ message = response['Response']['Error']['Message']
1223
+ reqid = response['Response']['RequestId']
1224
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1225
+ end
1226
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1227
+ raise e
1228
+ rescue StandardError => e
1229
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
+ end
1231
+
1232
+ # 本接口(ModifyAuditService)用于修改云数据库审计日志保存时长、审计规则等服务配置。
1233
+
1234
+ # @param request: Request instance for ModifyAuditService.
1235
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyAuditServiceRequest`
1236
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyAuditServiceResponse`
1237
+ def ModifyAuditService(request)
1238
+ body = send_request('ModifyAuditService', request.serialize)
1239
+ response = JSON.parse(body)
1240
+ if response['Response'].key?('Error') == false
1241
+ model = ModifyAuditServiceResponse.new
1242
+ model.deserialize(response['Response'])
1243
+ model
1244
+ else
1245
+ code = response['Response']['Error']['Code']
1246
+ message = response['Response']['Error']['Message']
1247
+ reqid = response['Response']['RequestId']
1248
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1249
+ end
1250
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1251
+ raise e
1252
+ rescue StandardError => e
1253
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1254
+ end
1255
+
1088
1256
  # 修改指定集群的备份配置
1089
1257
 
1090
1258
  # @param request: Request instance for ModifyBackupConfig.
@@ -1349,6 +1517,30 @@ module TencentCloud
1349
1517
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
1518
  end
1351
1519
 
1520
+ # TDSQL-C for MySQL实例开通审计服务
1521
+
1522
+ # @param request: Request instance for OpenAuditService.
1523
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::OpenAuditServiceRequest`
1524
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::OpenAuditServiceResponse`
1525
+ def OpenAuditService(request)
1526
+ body = send_request('OpenAuditService', request.serialize)
1527
+ response = JSON.parse(body)
1528
+ if response['Response'].key?('Error') == false
1529
+ model = OpenAuditServiceResponse.new
1530
+ model.deserialize(response['Response'])
1531
+ model
1532
+ else
1533
+ code = response['Response']['Error']['Code']
1534
+ message = response['Response']['Error']['Message']
1535
+ reqid = response['Response']['RequestId']
1536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1537
+ end
1538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1539
+ raise e
1540
+ rescue StandardError => e
1541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
+ end
1543
+
1352
1544
  # 暂停serverless集群
1353
1545
 
1354
1546
  # @param request: Request instance for PauseServerless.
@@ -533,6 +533,69 @@ module TencentCloud
533
533
  end
534
534
  end
535
535
 
536
+ # 规则审计的过滤条件
537
+ class AuditRuleFilters < TencentCloud::Common::AbstractModel
538
+ # @param RuleFilters: 单条审计规则。
539
+ # @type RuleFilters: Array
540
+
541
+ attr_accessor :RuleFilters
542
+
543
+ def initialize(rulefilters=nil)
544
+ @RuleFilters = rulefilters
545
+ end
546
+
547
+ def deserialize(params)
548
+ unless params['RuleFilters'].nil?
549
+ @RuleFilters = []
550
+ params['RuleFilters'].each do |i|
551
+ rulefilters_tmp = RuleFilters.new
552
+ rulefilters_tmp.deserialize(i)
553
+ @RuleFilters << rulefilters_tmp
554
+ end
555
+ end
556
+ end
557
+ end
558
+
559
+ # 审计规则模版的详情
560
+ class AuditRuleTemplateInfo < TencentCloud::Common::AbstractModel
561
+ # @param RuleTemplateId: 规则模版ID。
562
+ # @type RuleTemplateId: String
563
+ # @param RuleTemplateName: 规则模版名称。
564
+ # @type RuleTemplateName: String
565
+ # @param RuleFilters: 规则模版的过滤条件
566
+ # @type RuleFilters: Array
567
+ # @param Description: 规则模版描述。
568
+ # 注意:此字段可能返回 null,表示取不到有效值。
569
+ # @type Description: String
570
+ # @param CreateAt: 规则模版创建时间。
571
+ # @type CreateAt: String
572
+
573
+ attr_accessor :RuleTemplateId, :RuleTemplateName, :RuleFilters, :Description, :CreateAt
574
+
575
+ def initialize(ruletemplateid=nil, ruletemplatename=nil, rulefilters=nil, description=nil, createat=nil)
576
+ @RuleTemplateId = ruletemplateid
577
+ @RuleTemplateName = ruletemplatename
578
+ @RuleFilters = rulefilters
579
+ @Description = description
580
+ @CreateAt = createat
581
+ end
582
+
583
+ def deserialize(params)
584
+ @RuleTemplateId = params['RuleTemplateId']
585
+ @RuleTemplateName = params['RuleTemplateName']
586
+ unless params['RuleFilters'].nil?
587
+ @RuleFilters = []
588
+ params['RuleFilters'].each do |i|
589
+ rulefilters_tmp = RuleFilters.new
590
+ rulefilters_tmp.deserialize(i)
591
+ @RuleFilters << rulefilters_tmp
592
+ end
593
+ end
594
+ @Description = params['Description']
595
+ @CreateAt = params['CreateAt']
596
+ end
597
+ end
598
+
536
599
  # 备份文件信息
537
600
  class BackupFileInfo < TencentCloud::Common::AbstractModel
538
601
  # @param SnapshotId: 快照文件ID,已废弃,请使用BackupId
@@ -652,6 +715,38 @@ module TencentCloud
652
715
  end
653
716
  end
654
717
 
718
+ # CloseAuditService请求参数结构体
719
+ class CloseAuditServiceRequest < TencentCloud::Common::AbstractModel
720
+ # @param InstanceId: 实例ID。
721
+ # @type InstanceId: String
722
+
723
+ attr_accessor :InstanceId
724
+
725
+ def initialize(instanceid=nil)
726
+ @InstanceId = instanceid
727
+ end
728
+
729
+ def deserialize(params)
730
+ @InstanceId = params['InstanceId']
731
+ end
732
+ end
733
+
734
+ # CloseAuditService返回参数结构体
735
+ class CloseAuditServiceResponse < TencentCloud::Common::AbstractModel
736
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
737
+ # @type RequestId: String
738
+
739
+ attr_accessor :RequestId
740
+
741
+ def initialize(requestid=nil)
742
+ @RequestId = requestid
743
+ end
744
+
745
+ def deserialize(params)
746
+ @RequestId = params['RequestId']
747
+ end
748
+ end
749
+
655
750
  # 集群实例信息
656
751
  class ClusterInstanceDetail < TencentCloud::Common::AbstractModel
657
752
  # @param InstanceId: 实例ID
@@ -849,6 +944,58 @@ module TencentCloud
849
944
  end
850
945
  end
851
946
 
947
+ # CreateAuditRuleTemplate请求参数结构体
948
+ class CreateAuditRuleTemplateRequest < TencentCloud::Common::AbstractModel
949
+ # @param RuleFilters: 审计规则。
950
+ # @type RuleFilters: Array
951
+ # @param RuleTemplateName: 规则模版名称。
952
+ # @type RuleTemplateName: String
953
+ # @param Description: 规则模版描述。
954
+ # @type Description: String
955
+
956
+ attr_accessor :RuleFilters, :RuleTemplateName, :Description
957
+
958
+ def initialize(rulefilters=nil, ruletemplatename=nil, description=nil)
959
+ @RuleFilters = rulefilters
960
+ @RuleTemplateName = ruletemplatename
961
+ @Description = description
962
+ end
963
+
964
+ def deserialize(params)
965
+ unless params['RuleFilters'].nil?
966
+ @RuleFilters = []
967
+ params['RuleFilters'].each do |i|
968
+ rulefilters_tmp = RuleFilters.new
969
+ rulefilters_tmp.deserialize(i)
970
+ @RuleFilters << rulefilters_tmp
971
+ end
972
+ end
973
+ @RuleTemplateName = params['RuleTemplateName']
974
+ @Description = params['Description']
975
+ end
976
+ end
977
+
978
+ # CreateAuditRuleTemplate返回参数结构体
979
+ class CreateAuditRuleTemplateResponse < TencentCloud::Common::AbstractModel
980
+ # @param RuleTemplateId: 生成的规则模版ID。
981
+ # 注意:此字段可能返回 null,表示取不到有效值。
982
+ # @type RuleTemplateId: String
983
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
984
+ # @type RequestId: String
985
+
986
+ attr_accessor :RuleTemplateId, :RequestId
987
+
988
+ def initialize(ruletemplateid=nil, requestid=nil)
989
+ @RuleTemplateId = ruletemplateid
990
+ @RequestId = requestid
991
+ end
992
+
993
+ def deserialize(params)
994
+ @RuleTemplateId = params['RuleTemplateId']
995
+ @RequestId = params['RequestId']
996
+ end
997
+ end
998
+
852
999
  # CreateBackup请求参数结构体
853
1000
  class CreateBackupRequest < TencentCloud::Common::AbstractModel
854
1001
  # @param ClusterId: 集群ID
@@ -2042,7 +2189,7 @@ module TencentCloud
2042
2189
 
2043
2190
  # 实例组信息
2044
2191
  class CynosdbInstanceGrp < TencentCloud::Common::AbstractModel
2045
- # @param AppId: appId
2192
+ # @param AppId: 用户appId
2046
2193
  # @type AppId: Integer
2047
2194
  # @param ClusterId: 集群ID
2048
2195
  # @type ClusterId: String
@@ -2072,10 +2219,25 @@ module TencentCloud
2072
2219
  # @type WanStatus: String
2073
2220
  # @param InstanceSet: 实例组包含实例信息
2074
2221
  # @type InstanceSet: Array
2222
+ # @param UniqVpcId: VPC的ID
2223
+ # 注意:此字段可能返回 null,表示取不到有效值。
2224
+ # @type UniqVpcId: String
2225
+ # @param UniqSubnetId: 子网ID
2226
+ # 注意:此字段可能返回 null,表示取不到有效值。
2227
+ # @type UniqSubnetId: String
2228
+ # @param OldAddrInfo: 正在回收IP信息
2229
+ # 注意:此字段可能返回 null,表示取不到有效值。
2230
+ # @type OldAddrInfo: :class:`Tencentcloud::Cynosdb.v20190107.models.OldAddrInfo`
2231
+ # @param ProcessingTasks: 正在进行的任务
2232
+ # @type ProcessingTasks: Array
2233
+ # @param Tasks: 任务列表
2234
+ # @type Tasks: Array
2235
+ # @param NetServiceId: biz_net_service表id
2236
+ # @type NetServiceId: Integer
2075
2237
 
2076
- attr_accessor :AppId, :ClusterId, :CreatedTime, :DeletedTime, :InstanceGrpId, :Status, :Type, :UpdatedTime, :Vip, :Vport, :WanDomain, :WanIP, :WanPort, :WanStatus, :InstanceSet
2238
+ attr_accessor :AppId, :ClusterId, :CreatedTime, :DeletedTime, :InstanceGrpId, :Status, :Type, :UpdatedTime, :Vip, :Vport, :WanDomain, :WanIP, :WanPort, :WanStatus, :InstanceSet, :UniqVpcId, :UniqSubnetId, :OldAddrInfo, :ProcessingTasks, :Tasks, :NetServiceId
2077
2239
 
2078
- def initialize(appid=nil, clusterid=nil, createdtime=nil, deletedtime=nil, instancegrpid=nil, status=nil, type=nil, updatedtime=nil, vip=nil, vport=nil, wandomain=nil, wanip=nil, wanport=nil, wanstatus=nil, instanceset=nil)
2240
+ def initialize(appid=nil, clusterid=nil, createdtime=nil, deletedtime=nil, instancegrpid=nil, status=nil, type=nil, updatedtime=nil, vip=nil, vport=nil, wandomain=nil, wanip=nil, wanport=nil, wanstatus=nil, instanceset=nil, uniqvpcid=nil, uniqsubnetid=nil, oldaddrinfo=nil, processingtasks=nil, tasks=nil, netserviceid=nil)
2079
2241
  @AppId = appid
2080
2242
  @ClusterId = clusterid
2081
2243
  @CreatedTime = createdtime
@@ -2091,6 +2253,12 @@ module TencentCloud
2091
2253
  @WanPort = wanport
2092
2254
  @WanStatus = wanstatus
2093
2255
  @InstanceSet = instanceset
2256
+ @UniqVpcId = uniqvpcid
2257
+ @UniqSubnetId = uniqsubnetid
2258
+ @OldAddrInfo = oldaddrinfo
2259
+ @ProcessingTasks = processingtasks
2260
+ @Tasks = tasks
2261
+ @NetServiceId = netserviceid
2094
2262
  end
2095
2263
 
2096
2264
  def deserialize(params)
@@ -2116,6 +2284,22 @@ module TencentCloud
2116
2284
  @InstanceSet << cynosdbinstance_tmp
2117
2285
  end
2118
2286
  end
2287
+ @UniqVpcId = params['UniqVpcId']
2288
+ @UniqSubnetId = params['UniqSubnetId']
2289
+ unless params['OldAddrInfo'].nil?
2290
+ @OldAddrInfo = OldAddrInfo.new
2291
+ @OldAddrInfo.deserialize(params['OldAddrInfo'])
2292
+ end
2293
+ @ProcessingTasks = params['ProcessingTasks']
2294
+ unless params['Tasks'].nil?
2295
+ @Tasks = []
2296
+ params['Tasks'].each do |i|
2297
+ objecttask_tmp = ObjectTask.new
2298
+ objecttask_tmp.deserialize(i)
2299
+ @Tasks << objecttask_tmp
2300
+ end
2301
+ end
2302
+ @NetServiceId = params['NetServiceId']
2119
2303
  end
2120
2304
  end
2121
2305
 
@@ -2217,6 +2401,38 @@ module TencentCloud
2217
2401
  end
2218
2402
  end
2219
2403
 
2404
+ # DeleteAuditRuleTemplates请求参数结构体
2405
+ class DeleteAuditRuleTemplatesRequest < TencentCloud::Common::AbstractModel
2406
+ # @param RuleTemplateIds: 审计规则模版ID。
2407
+ # @type RuleTemplateIds: Array
2408
+
2409
+ attr_accessor :RuleTemplateIds
2410
+
2411
+ def initialize(ruletemplateids=nil)
2412
+ @RuleTemplateIds = ruletemplateids
2413
+ end
2414
+
2415
+ def deserialize(params)
2416
+ @RuleTemplateIds = params['RuleTemplateIds']
2417
+ end
2418
+ end
2419
+
2420
+ # DeleteAuditRuleTemplates返回参数结构体
2421
+ class DeleteAuditRuleTemplatesResponse < TencentCloud::Common::AbstractModel
2422
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2423
+ # @type RequestId: String
2424
+
2425
+ attr_accessor :RequestId
2426
+
2427
+ def initialize(requestid=nil)
2428
+ @RequestId = requestid
2429
+ end
2430
+
2431
+ def deserialize(params)
2432
+ @RequestId = params['RequestId']
2433
+ end
2434
+ end
2435
+
2220
2436
  # DeleteBackup请求参数结构体
2221
2437
  class DeleteBackupRequest < TencentCloud::Common::AbstractModel
2222
2438
  # @param ClusterId: 集群ID
@@ -2541,6 +2757,114 @@ module TencentCloud
2541
2757
  end
2542
2758
  end
2543
2759
 
2760
+ # DescribeAuditRuleTemplates请求参数结构体
2761
+ class DescribeAuditRuleTemplatesRequest < TencentCloud::Common::AbstractModel
2762
+ # @param RuleTemplateIds: 规则模版ID。
2763
+ # @type RuleTemplateIds: Array
2764
+ # @param RuleTemplateNames: 规则模版名称
2765
+ # @type RuleTemplateNames: Array
2766
+ # @param Limit: 单次请求返回的数量。默认值20。
2767
+ # @type Limit: Integer
2768
+ # @param Offset: 偏移量,默认值为 0。
2769
+ # @type Offset: Integer
2770
+
2771
+ attr_accessor :RuleTemplateIds, :RuleTemplateNames, :Limit, :Offset
2772
+
2773
+ def initialize(ruletemplateids=nil, ruletemplatenames=nil, limit=nil, offset=nil)
2774
+ @RuleTemplateIds = ruletemplateids
2775
+ @RuleTemplateNames = ruletemplatenames
2776
+ @Limit = limit
2777
+ @Offset = offset
2778
+ end
2779
+
2780
+ def deserialize(params)
2781
+ @RuleTemplateIds = params['RuleTemplateIds']
2782
+ @RuleTemplateNames = params['RuleTemplateNames']
2783
+ @Limit = params['Limit']
2784
+ @Offset = params['Offset']
2785
+ end
2786
+ end
2787
+
2788
+ # DescribeAuditRuleTemplates返回参数结构体
2789
+ class DescribeAuditRuleTemplatesResponse < TencentCloud::Common::AbstractModel
2790
+ # @param TotalCount: 符合查询条件的实例总数。
2791
+ # @type TotalCount: Integer
2792
+ # @param Items: 规则模版详细信息列表。
2793
+ # 注意:此字段可能返回 null,表示取不到有效值。
2794
+ # @type Items: Array
2795
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2796
+ # @type RequestId: String
2797
+
2798
+ attr_accessor :TotalCount, :Items, :RequestId
2799
+
2800
+ def initialize(totalcount=nil, items=nil, requestid=nil)
2801
+ @TotalCount = totalcount
2802
+ @Items = items
2803
+ @RequestId = requestid
2804
+ end
2805
+
2806
+ def deserialize(params)
2807
+ @TotalCount = params['TotalCount']
2808
+ unless params['Items'].nil?
2809
+ @Items = []
2810
+ params['Items'].each do |i|
2811
+ auditruletemplateinfo_tmp = AuditRuleTemplateInfo.new
2812
+ auditruletemplateinfo_tmp.deserialize(i)
2813
+ @Items << auditruletemplateinfo_tmp
2814
+ end
2815
+ end
2816
+ @RequestId = params['RequestId']
2817
+ end
2818
+ end
2819
+
2820
+ # DescribeAuditRuleWithInstanceIds请求参数结构体
2821
+ class DescribeAuditRuleWithInstanceIdsRequest < TencentCloud::Common::AbstractModel
2822
+ # @param InstanceIds: 实例ID。目前仅支持单个实例的查询。
2823
+ # @type InstanceIds: Array
2824
+
2825
+ attr_accessor :InstanceIds
2826
+
2827
+ def initialize(instanceids=nil)
2828
+ @InstanceIds = instanceids
2829
+ end
2830
+
2831
+ def deserialize(params)
2832
+ @InstanceIds = params['InstanceIds']
2833
+ end
2834
+ end
2835
+
2836
+ # DescribeAuditRuleWithInstanceIds返回参数结构体
2837
+ class DescribeAuditRuleWithInstanceIdsResponse < TencentCloud::Common::AbstractModel
2838
+ # @param TotalCount: 无
2839
+ # @type TotalCount: Integer
2840
+ # @param Items: 实例审计规则信息。
2841
+ # 注意:此字段可能返回 null,表示取不到有效值。
2842
+ # @type Items: Array
2843
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2844
+ # @type RequestId: String
2845
+
2846
+ attr_accessor :TotalCount, :Items, :RequestId
2847
+
2848
+ def initialize(totalcount=nil, items=nil, requestid=nil)
2849
+ @TotalCount = totalcount
2850
+ @Items = items
2851
+ @RequestId = requestid
2852
+ end
2853
+
2854
+ def deserialize(params)
2855
+ @TotalCount = params['TotalCount']
2856
+ unless params['Items'].nil?
2857
+ @Items = []
2858
+ params['Items'].each do |i|
2859
+ instanceauditrule_tmp = InstanceAuditRule.new
2860
+ instanceauditrule_tmp.deserialize(i)
2861
+ @Items << instanceauditrule_tmp
2862
+ end
2863
+ end
2864
+ @RequestId = params['RequestId']
2865
+ end
2866
+ end
2867
+
2544
2868
  # DescribeBackupConfig请求参数结构体
2545
2869
  class DescribeBackupConfigRequest < TencentCloud::Common::AbstractModel
2546
2870
  # @param ClusterId: 集群ID
@@ -4138,6 +4462,39 @@ module TencentCloud
4138
4462
  end
4139
4463
  end
4140
4464
 
4465
+ # 实例的审计规则详情,DescribeAuditRuleWithInstanceIds接口的出参。
4466
+ class InstanceAuditRule < TencentCloud::Common::AbstractModel
4467
+ # @param InstanceId: 实例ID。
4468
+ # @type InstanceId: String
4469
+ # @param AuditRule: 是否是规则审计。true-规则审计,false-全审计。
4470
+ # 注意:此字段可能返回 null,表示取不到有效值。
4471
+ # @type AuditRule: Boolean
4472
+ # @param AuditRuleFilters: 审计规则详情。仅当AuditRule=true时有效。
4473
+ # 注意:此字段可能返回 null,表示取不到有效值。
4474
+ # @type AuditRuleFilters: Array
4475
+
4476
+ attr_accessor :InstanceId, :AuditRule, :AuditRuleFilters
4477
+
4478
+ def initialize(instanceid=nil, auditrule=nil, auditrulefilters=nil)
4479
+ @InstanceId = instanceid
4480
+ @AuditRule = auditrule
4481
+ @AuditRuleFilters = auditrulefilters
4482
+ end
4483
+
4484
+ def deserialize(params)
4485
+ @InstanceId = params['InstanceId']
4486
+ @AuditRule = params['AuditRule']
4487
+ unless params['AuditRuleFilters'].nil?
4488
+ @AuditRuleFilters = []
4489
+ params['AuditRuleFilters'].each do |i|
4490
+ auditrulefilters_tmp = AuditRuleFilters.new
4491
+ auditrulefilters_tmp.deserialize(i)
4492
+ @AuditRuleFilters << auditrulefilters_tmp
4493
+ end
4494
+ end
4495
+ end
4496
+ end
4497
+
4141
4498
  # 实例初始化配置信息
4142
4499
  class InstanceInitInfo < TencentCloud::Common::AbstractModel
4143
4500
  # @param Cpu: 实例cpu
@@ -4187,10 +4544,13 @@ module TencentCloud
4187
4544
  # @param ZoneStockInfos: 地域库存信息
4188
4545
  # 注意:此字段可能返回 null,表示取不到有效值。
4189
4546
  # @type ZoneStockInfos: Array
4547
+ # @param StockCount: 库存数量
4548
+ # 注意:此字段可能返回 null,表示取不到有效值。
4549
+ # @type StockCount: Integer
4190
4550
 
4191
- attr_accessor :Cpu, :Memory, :MaxStorageSize, :MinStorageSize, :HasStock, :MachineType, :MaxIops, :MaxIoBandWidth, :ZoneStockInfos
4551
+ attr_accessor :Cpu, :Memory, :MaxStorageSize, :MinStorageSize, :HasStock, :MachineType, :MaxIops, :MaxIoBandWidth, :ZoneStockInfos, :StockCount
4192
4552
 
4193
- def initialize(cpu=nil, memory=nil, maxstoragesize=nil, minstoragesize=nil, hasstock=nil, machinetype=nil, maxiops=nil, maxiobandwidth=nil, zonestockinfos=nil)
4553
+ def initialize(cpu=nil, memory=nil, maxstoragesize=nil, minstoragesize=nil, hasstock=nil, machinetype=nil, maxiops=nil, maxiobandwidth=nil, zonestockinfos=nil, stockcount=nil)
4194
4554
  @Cpu = cpu
4195
4555
  @Memory = memory
4196
4556
  @MaxStorageSize = maxstoragesize
@@ -4200,6 +4560,7 @@ module TencentCloud
4200
4560
  @MaxIops = maxiops
4201
4561
  @MaxIoBandWidth = maxiobandwidth
4202
4562
  @ZoneStockInfos = zonestockinfos
4563
+ @StockCount = stockcount
4203
4564
  end
4204
4565
 
4205
4566
  def deserialize(params)
@@ -4219,6 +4580,7 @@ module TencentCloud
4219
4580
  @ZoneStockInfos << zonestockinfo_tmp
4220
4581
  end
4221
4582
  end
4583
+ @StockCount = params['StockCount']
4222
4584
  end
4223
4585
  end
4224
4586
 
@@ -4378,6 +4740,116 @@ module TencentCloud
4378
4740
  end
4379
4741
  end
4380
4742
 
4743
+ # ModifyAuditRuleTemplates请求参数结构体
4744
+ class ModifyAuditRuleTemplatesRequest < TencentCloud::Common::AbstractModel
4745
+ # @param RuleTemplateIds: 审计规则模版ID。
4746
+ # @type RuleTemplateIds: Array
4747
+ # @param RuleFilters: 修改后的审计规则。
4748
+ # @type RuleFilters: Array
4749
+ # @param RuleTemplateName: 修改后的规则模版名称。
4750
+ # @type RuleTemplateName: String
4751
+ # @param Description: 修改后的规则模版描述。
4752
+ # @type Description: String
4753
+
4754
+ attr_accessor :RuleTemplateIds, :RuleFilters, :RuleTemplateName, :Description
4755
+
4756
+ def initialize(ruletemplateids=nil, rulefilters=nil, ruletemplatename=nil, description=nil)
4757
+ @RuleTemplateIds = ruletemplateids
4758
+ @RuleFilters = rulefilters
4759
+ @RuleTemplateName = ruletemplatename
4760
+ @Description = description
4761
+ end
4762
+
4763
+ def deserialize(params)
4764
+ @RuleTemplateIds = params['RuleTemplateIds']
4765
+ unless params['RuleFilters'].nil?
4766
+ @RuleFilters = []
4767
+ params['RuleFilters'].each do |i|
4768
+ rulefilters_tmp = RuleFilters.new
4769
+ rulefilters_tmp.deserialize(i)
4770
+ @RuleFilters << rulefilters_tmp
4771
+ end
4772
+ end
4773
+ @RuleTemplateName = params['RuleTemplateName']
4774
+ @Description = params['Description']
4775
+ end
4776
+ end
4777
+
4778
+ # ModifyAuditRuleTemplates返回参数结构体
4779
+ class ModifyAuditRuleTemplatesResponse < TencentCloud::Common::AbstractModel
4780
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4781
+ # @type RequestId: String
4782
+
4783
+ attr_accessor :RequestId
4784
+
4785
+ def initialize(requestid=nil)
4786
+ @RequestId = requestid
4787
+ end
4788
+
4789
+ def deserialize(params)
4790
+ @RequestId = params['RequestId']
4791
+ end
4792
+ end
4793
+
4794
+ # ModifyAuditService请求参数结构体
4795
+ class ModifyAuditServiceRequest < TencentCloud::Common::AbstractModel
4796
+ # @param InstanceId: 实例ID。
4797
+ # @type InstanceId: String
4798
+ # @param LogExpireDay: 日志保留时长。
4799
+ # @type LogExpireDay: Integer
4800
+ # @param HighLogExpireDay: 高频日志保留时长。
4801
+ # @type HighLogExpireDay: Integer
4802
+ # @param AuditAll: 修改实例审计规则为全审计。
4803
+ # @type AuditAll: Boolean
4804
+ # @param AuditRuleFilters: 规则审计。
4805
+ # @type AuditRuleFilters: Array
4806
+ # @param RuleTemplateIds: 规则模版ID。
4807
+ # @type RuleTemplateIds: Array
4808
+
4809
+ attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditAll, :AuditRuleFilters, :RuleTemplateIds
4810
+
4811
+ def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditall=nil, auditrulefilters=nil, ruletemplateids=nil)
4812
+ @InstanceId = instanceid
4813
+ @LogExpireDay = logexpireday
4814
+ @HighLogExpireDay = highlogexpireday
4815
+ @AuditAll = auditall
4816
+ @AuditRuleFilters = auditrulefilters
4817
+ @RuleTemplateIds = ruletemplateids
4818
+ end
4819
+
4820
+ def deserialize(params)
4821
+ @InstanceId = params['InstanceId']
4822
+ @LogExpireDay = params['LogExpireDay']
4823
+ @HighLogExpireDay = params['HighLogExpireDay']
4824
+ @AuditAll = params['AuditAll']
4825
+ unless params['AuditRuleFilters'].nil?
4826
+ @AuditRuleFilters = []
4827
+ params['AuditRuleFilters'].each do |i|
4828
+ auditrulefilters_tmp = AuditRuleFilters.new
4829
+ auditrulefilters_tmp.deserialize(i)
4830
+ @AuditRuleFilters << auditrulefilters_tmp
4831
+ end
4832
+ end
4833
+ @RuleTemplateIds = params['RuleTemplateIds']
4834
+ end
4835
+ end
4836
+
4837
+ # ModifyAuditService返回参数结构体
4838
+ class ModifyAuditServiceResponse < TencentCloud::Common::AbstractModel
4839
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4840
+ # @type RequestId: String
4841
+
4842
+ attr_accessor :RequestId
4843
+
4844
+ def initialize(requestid=nil)
4845
+ @RequestId = requestid
4846
+ end
4847
+
4848
+ def deserialize(params)
4849
+ @RequestId = params['RequestId']
4850
+ end
4851
+ end
4852
+
4381
4853
  # ModifyBackupConfig请求参数结构体
4382
4854
  class ModifyBackupConfigRequest < TencentCloud::Common::AbstractModel
4383
4855
  # @param ClusterId: 集群ID
@@ -5012,6 +5484,88 @@ module TencentCloud
5012
5484
  end
5013
5485
  end
5014
5486
 
5487
+ # 数据库地址
5488
+ class OldAddrInfo < TencentCloud::Common::AbstractModel
5489
+ # @param Vip: IP
5490
+ # 注意:此字段可能返回 null,表示取不到有效值。
5491
+ # @type Vip: String
5492
+ # @param Vport: 端口
5493
+ # 注意:此字段可能返回 null,表示取不到有效值。
5494
+ # @type Vport: Integer
5495
+ # @param ReturnTime: 期望执行回收时间
5496
+ # 注意:此字段可能返回 null,表示取不到有效值。
5497
+ # @type ReturnTime: String
5498
+
5499
+ attr_accessor :Vip, :Vport, :ReturnTime
5500
+
5501
+ def initialize(vip=nil, vport=nil, returntime=nil)
5502
+ @Vip = vip
5503
+ @Vport = vport
5504
+ @ReturnTime = returntime
5505
+ end
5506
+
5507
+ def deserialize(params)
5508
+ @Vip = params['Vip']
5509
+ @Vport = params['Vport']
5510
+ @ReturnTime = params['ReturnTime']
5511
+ end
5512
+ end
5513
+
5514
+ # OpenAuditService请求参数结构体
5515
+ class OpenAuditServiceRequest < TencentCloud::Common::AbstractModel
5516
+ # @param InstanceId: 实例ID。
5517
+ # @type InstanceId: String
5518
+ # @param LogExpireDay: 日志保留时长。
5519
+ # @type LogExpireDay: Integer
5520
+ # @param HighLogExpireDay: 高频日志保留时长。
5521
+ # @type HighLogExpireDay: Integer
5522
+ # @param AuditRuleFilters: 审计规则。同RuleTemplateIds都不填是全审计。
5523
+ # @type AuditRuleFilters: Array
5524
+ # @param RuleTemplateIds: 规则模版ID。同AuditRuleFilters都不填是全审计。
5525
+ # @type RuleTemplateIds: Array
5526
+
5527
+ attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds
5528
+
5529
+ def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil)
5530
+ @InstanceId = instanceid
5531
+ @LogExpireDay = logexpireday
5532
+ @HighLogExpireDay = highlogexpireday
5533
+ @AuditRuleFilters = auditrulefilters
5534
+ @RuleTemplateIds = ruletemplateids
5535
+ end
5536
+
5537
+ def deserialize(params)
5538
+ @InstanceId = params['InstanceId']
5539
+ @LogExpireDay = params['LogExpireDay']
5540
+ @HighLogExpireDay = params['HighLogExpireDay']
5541
+ unless params['AuditRuleFilters'].nil?
5542
+ @AuditRuleFilters = []
5543
+ params['AuditRuleFilters'].each do |i|
5544
+ auditrulefilters_tmp = AuditRuleFilters.new
5545
+ auditrulefilters_tmp.deserialize(i)
5546
+ @AuditRuleFilters << auditrulefilters_tmp
5547
+ end
5548
+ end
5549
+ @RuleTemplateIds = params['RuleTemplateIds']
5550
+ end
5551
+ end
5552
+
5553
+ # OpenAuditService返回参数结构体
5554
+ class OpenAuditServiceResponse < TencentCloud::Common::AbstractModel
5555
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5556
+ # @type RequestId: String
5557
+
5558
+ attr_accessor :RequestId
5559
+
5560
+ def initialize(requestid=nil)
5561
+ @RequestId = requestid
5562
+ end
5563
+
5564
+ def deserialize(params)
5565
+ @RequestId = params['RequestId']
5566
+ end
5567
+ end
5568
+
5015
5569
  # 参数信息
5016
5570
  class ParamInfo < TencentCloud::Common::AbstractModel
5017
5571
  # @param CurrentValue: 当前值
@@ -5615,6 +6169,30 @@ module TencentCloud
5615
6169
  end
5616
6170
  end
5617
6171
 
6172
+ # 审计规则的规则过滤条件
6173
+ class RuleFilters < TencentCloud::Common::AbstractModel
6174
+ # @param Type: 审计规则过滤条件的参数名称。可选值:host – 客户端 IP;user – 数据库账户;dbName – 数据库名称;sqlType-SQL类型;sql-sql语句。
6175
+ # @type Type: String
6176
+ # @param Compare: 审计规则过滤条件的匹配类型。可选值:INC – 包含;EXC – 不包含;EQS – 等于;NEQ – 不等于。
6177
+ # @type Compare: String
6178
+ # @param Value: 审计规则过滤条件的匹配值。
6179
+ # @type Value: Array
6180
+
6181
+ attr_accessor :Type, :Compare, :Value
6182
+
6183
+ def initialize(type=nil, compare=nil, value=nil)
6184
+ @Type = type
6185
+ @Compare = compare
6186
+ @Value = value
6187
+ end
6188
+
6189
+ def deserialize(params)
6190
+ @Type = params['Type']
6191
+ @Compare = params['Compare']
6192
+ @Value = params['Value']
6193
+ end
6194
+ end
6195
+
5618
6196
  # SearchClusterDatabases请求参数结构体
5619
6197
  class SearchClusterDatabasesRequest < TencentCloud::Common::AbstractModel
5620
6198
  # @param ClusterId: 集群id
@@ -6190,17 +6768,21 @@ module TencentCloud
6190
6768
  # @type Zone: String
6191
6769
  # @param HasStock: 是否有库存
6192
6770
  # @type HasStock: Boolean
6771
+ # @param StockCount: 库存数量
6772
+ # @type StockCount: Integer
6193
6773
 
6194
- attr_accessor :Zone, :HasStock
6774
+ attr_accessor :Zone, :HasStock, :StockCount
6195
6775
 
6196
- def initialize(zone=nil, hasstock=nil)
6776
+ def initialize(zone=nil, hasstock=nil, stockcount=nil)
6197
6777
  @Zone = zone
6198
6778
  @HasStock = hasstock
6779
+ @StockCount = stockcount
6199
6780
  end
6200
6781
 
6201
6782
  def deserialize(params)
6202
6783
  @Zone = params['Zone']
6203
6784
  @HasStock = params['HasStock']
6785
+ @StockCount = params['StockCount']
6204
6786
  end
6205
6787
  end
6206
6788
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.484
4
+ version: 3.0.485
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common