tencentcloud-sdk-mongodb 3.0.1161 → 3.0.1169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 904a86fd55b1160f86ed156c26c91e4d36146594
4
- data.tar.gz: d2af3318413ca6c94f270eb5678fa30489fef16e
3
+ metadata.gz: 122b793a6e3cd90c330ed5a9143e2eb1f94722e5
4
+ data.tar.gz: dfa911dc78e2631ae10006eb885271d7aeb03489
5
5
  SHA512:
6
- metadata.gz: 4f047cce1204a2b3a250aa69fae30f7c22baeedb8a070fbefbd1f6785b6dad786e2db29bd32a70ef740aac0916fd7236932b0a8501a335729a2e1d5ccef9d14b
7
- data.tar.gz: 0a09923bd4fbc6d6bef2a64514dfe173a8204f9d740648717dbb8f1f39ad13b0a61f7f7af760c43a2f37f16a047c27e94b6796ea660b3b35c71604b33b555316
6
+ metadata.gz: b2c2ad558a8f18238a87f7dfaad0f0f5924a9f191452abeea360d4678a449d73366943535a7a787626a0cc6d7b34ac8df10854cfd3a418e8855cc9b42885b0aa
7
+ data.tar.gz: 8b5c0294524c99bea8a3549bbf919753443abd09dd8b29820159ea6108f993a02690c4b097761c54d7f54d96862a0967fbd0bd7b50f89f270e7cb8247af191ed
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1161
1
+ 3.0.1169
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 本接口(CreateAuditLogFile)用于创建云数据库实例的审计日志文件。
81
+
82
+ # @param request: Request instance for CreateAuditLogFile.
83
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::CreateAuditLogFileRequest`
84
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::CreateAuditLogFileResponse`
85
+ def CreateAuditLogFile(request)
86
+ body = send_request('CreateAuditLogFile', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateAuditLogFileResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 本接口(CreateBackupDBInstance)用于备份实例。
81
105
 
82
106
  # @param request: Request instance for CreateBackupDBInstance.
@@ -246,6 +270,30 @@ module TencentCloud
246
270
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
247
271
  end
248
272
 
273
+ # 本接口(DeleteAuditLogFile)用于删除云数据库实例的审计日志文件。
274
+
275
+ # @param request: Request instance for DeleteAuditLogFile.
276
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::DeleteAuditLogFileRequest`
277
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::DeleteAuditLogFileResponse`
278
+ def DeleteAuditLogFile(request)
279
+ body = send_request('DeleteAuditLogFile', request.serialize)
280
+ response = JSON.parse(body)
281
+ if response['Response'].key?('Error') == false
282
+ model = DeleteAuditLogFileResponse.new
283
+ model.deserialize(response['Response'])
284
+ model
285
+ else
286
+ code = response['Response']['Error']['Code']
287
+ message = response['Response']['Error']['Message']
288
+ reqid = response['Response']['RequestId']
289
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
290
+ end
291
+ rescue TencentCloud::Common::TencentCloudSDKException => e
292
+ raise e
293
+ rescue StandardError => e
294
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
295
+ end
296
+
249
297
  # 删除日志下载任务
250
298
 
251
299
  # @param request: Request instance for DeleteLogDownloadTask.
@@ -318,6 +366,30 @@ module TencentCloud
318
366
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
319
367
  end
320
368
 
369
+ # 本接口(DescribeAuditInstanceList)用于查询开通或未开通数据库审计的实例列表。
370
+
371
+ # @param request: Request instance for DescribeAuditInstanceList.
372
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeAuditInstanceListRequest`
373
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeAuditInstanceListResponse`
374
+ def DescribeAuditInstanceList(request)
375
+ body = send_request('DescribeAuditInstanceList', request.serialize)
376
+ response = JSON.parse(body)
377
+ if response['Response'].key?('Error') == false
378
+ model = DescribeAuditInstanceListResponse.new
379
+ model.deserialize(response['Response'])
380
+ model
381
+ else
382
+ code = response['Response']['Error']['Code']
383
+ message = response['Response']['Error']['Message']
384
+ reqid = response['Response']['RequestId']
385
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
386
+ end
387
+ rescue TencentCloud::Common::TencentCloudSDKException => e
388
+ raise e
389
+ rescue StandardError => e
390
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
391
+ end
392
+
321
393
  # 本接口(DescribeBackupDownloadTask)用于查询备份下载任务信息。
322
394
 
323
395
  # @param request: Request instance for DescribeBackupDownloadTask.
@@ -1042,6 +1114,30 @@ module TencentCloud
1042
1114
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1043
1115
  end
1044
1116
 
1117
+ # 本接口(ModifyAuditService)用于修改云数据库审计策略的服务配置,包括审计日志保存时长等。
1118
+
1119
+ # @param request: Request instance for ModifyAuditService.
1120
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::ModifyAuditServiceRequest`
1121
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::ModifyAuditServiceResponse`
1122
+ def ModifyAuditService(request)
1123
+ body = send_request('ModifyAuditService', request.serialize)
1124
+ response = JSON.parse(body)
1125
+ if response['Response'].key?('Error') == false
1126
+ model = ModifyAuditServiceResponse.new
1127
+ model.deserialize(response['Response'])
1128
+ model
1129
+ else
1130
+ code = response['Response']['Error']['Code']
1131
+ message = response['Response']['Error']['Message']
1132
+ reqid = response['Response']['RequestId']
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1134
+ end
1135
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1136
+ raise e
1137
+ rescue StandardError => e
1138
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1139
+ end
1140
+
1045
1141
  # 本接口(ModifyDBInstanceNetworkAddress)用于修改云数据库实例的网络信息,支持基础网络切换为私有网络、私有网络切换私有网络。
1046
1142
 
1047
1143
  # @param request: Request instance for ModifyDBInstanceNetworkAddress.
@@ -1187,6 +1283,30 @@ module TencentCloud
1187
1283
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1188
1284
  end
1189
1285
 
1286
+ # 本接口(OpenAuditService)用于开通云数据库实例的审计。
1287
+
1288
+ # @param request: Request instance for OpenAuditService.
1289
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::OpenAuditServiceRequest`
1290
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::OpenAuditServiceResponse`
1291
+ def OpenAuditService(request)
1292
+ body = send_request('OpenAuditService', request.serialize)
1293
+ response = JSON.parse(body)
1294
+ if response['Response'].key?('Error') == false
1295
+ model = OpenAuditServiceResponse.new
1296
+ model.deserialize(response['Response'])
1297
+ model
1298
+ else
1299
+ code = response['Response']['Error']['Code']
1300
+ message = response['Response']['Error']['Message']
1301
+ reqid = response['Response']['RequestId']
1302
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1303
+ end
1304
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1305
+ raise e
1306
+ rescue StandardError => e
1307
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1308
+ end
1309
+
1190
1310
  # 本接口(RenameInstance)用于修改云数据库实例的名称。
1191
1311
 
1192
1312
  # @param request: Request instance for RenameInstance.
@@ -82,6 +82,152 @@ module TencentCloud
82
82
  end
83
83
  end
84
84
 
85
+ # 审计实例信息
86
+ class AuditInstance < TencentCloud::Common::AbstractModel
87
+ # @param InstanceId: 实例 ID。
88
+ # @type InstanceId: String
89
+ # @param AuditStatus: 审计状态。
90
+ # @type AuditStatus: String
91
+ # @param AuditTask: 是否存在审计任务,0:无任务,1:创建中,2:关闭中
92
+ # 注意:此字段可能返回 null,表示取不到有效值。
93
+ # @type AuditTask: Integer
94
+ # @param LogExpireDay: 审计日志过期时间
95
+ # 注意:此字段可能返回 null,表示取不到有效值。
96
+ # @type LogExpireDay: Integer
97
+ # @param HighLogExpireDay: 高频日志过期时间
98
+ # 注意:此字段可能返回 null,表示取不到有效值。
99
+ # @type HighLogExpireDay: Integer
100
+ # @param LowLogExpireDay: 低频日志过期时间
101
+ # 注意:此字段可能返回 null,表示取不到有效值。
102
+ # @type LowLogExpireDay: Integer
103
+ # @param BillingAmount: 费用信息。
104
+ # @type BillingAmount: Float
105
+ # @param HighRealStorage: 高频存储容量
106
+ # 注意:此字段可能返回 null,表示取不到有效值。
107
+ # @type HighRealStorage: Float
108
+ # @param LowRealStorage: 低频存储容量
109
+ # 注意:此字段可能返回 null,表示取不到有效值。
110
+ # @type LowRealStorage: Float
111
+ # @param InstanceInfo: 实例详情。
112
+ # 注意:此字段可能返回 null,表示取不到有效值。
113
+ # @type InstanceInfo: :class:`Tencentcloud::Mongodb.v20190725.models.InstanceInfo`
114
+ # @param PerformancesAnalyse: 性能分析
115
+ # 注意:此字段可能返回 null,表示取不到有效值。
116
+ # @type PerformancesAnalyse: Integer
117
+ # @param AuditAll: true表示全审计,false表示规则审计
118
+ # 注意:此字段可能返回 null,表示取不到有效值。
119
+ # @type AuditAll: Boolean
120
+ # @param CreateAt: 实例审计最近一次的开通时间
121
+ # 注意:此字段可能返回 null,表示取不到有效值。
122
+ # @type CreateAt: String
123
+ # @param RuleTemplateIds: 实例绑定的规则模版ID
124
+ # 注意:此字段可能返回 null,表示取不到有效值。
125
+ # @type RuleTemplateIds: Array
126
+ # @param Deliver: 是否开启投递:ON,OFF
127
+ # 注意:此字段可能返回 null,表示取不到有效值。
128
+ # @type Deliver: String
129
+ # @param DeliverSummary: 日志投递信息
130
+ # @type DeliverSummary: Array
131
+ # @param OldRule: 旧规则
132
+ # @type OldRule: Boolean
133
+ # @param RealStorage: 实际存储容量
134
+ # @type RealStorage: Float
135
+
136
+ attr_accessor :InstanceId, :AuditStatus, :AuditTask, :LogExpireDay, :HighLogExpireDay, :LowLogExpireDay, :BillingAmount, :HighRealStorage, :LowRealStorage, :InstanceInfo, :PerformancesAnalyse, :AuditAll, :CreateAt, :RuleTemplateIds, :Deliver, :DeliverSummary, :OldRule, :RealStorage
137
+
138
+ def initialize(instanceid=nil, auditstatus=nil, audittask=nil, logexpireday=nil, highlogexpireday=nil, lowlogexpireday=nil, billingamount=nil, highrealstorage=nil, lowrealstorage=nil, instanceinfo=nil, performancesanalyse=nil, auditall=nil, createat=nil, ruletemplateids=nil, deliver=nil, deliversummary=nil, oldrule=nil, realstorage=nil)
139
+ @InstanceId = instanceid
140
+ @AuditStatus = auditstatus
141
+ @AuditTask = audittask
142
+ @LogExpireDay = logexpireday
143
+ @HighLogExpireDay = highlogexpireday
144
+ @LowLogExpireDay = lowlogexpireday
145
+ @BillingAmount = billingamount
146
+ @HighRealStorage = highrealstorage
147
+ @LowRealStorage = lowrealstorage
148
+ @InstanceInfo = instanceinfo
149
+ @PerformancesAnalyse = performancesanalyse
150
+ @AuditAll = auditall
151
+ @CreateAt = createat
152
+ @RuleTemplateIds = ruletemplateids
153
+ @Deliver = deliver
154
+ @DeliverSummary = deliversummary
155
+ @OldRule = oldrule
156
+ @RealStorage = realstorage
157
+ end
158
+
159
+ def deserialize(params)
160
+ @InstanceId = params['InstanceId']
161
+ @AuditStatus = params['AuditStatus']
162
+ @AuditTask = params['AuditTask']
163
+ @LogExpireDay = params['LogExpireDay']
164
+ @HighLogExpireDay = params['HighLogExpireDay']
165
+ @LowLogExpireDay = params['LowLogExpireDay']
166
+ @BillingAmount = params['BillingAmount']
167
+ @HighRealStorage = params['HighRealStorage']
168
+ @LowRealStorage = params['LowRealStorage']
169
+ unless params['InstanceInfo'].nil?
170
+ @InstanceInfo = InstanceInfo.new
171
+ @InstanceInfo.deserialize(params['InstanceInfo'])
172
+ end
173
+ @PerformancesAnalyse = params['PerformancesAnalyse']
174
+ @AuditAll = params['AuditAll']
175
+ @CreateAt = params['CreateAt']
176
+ @RuleTemplateIds = params['RuleTemplateIds']
177
+ @Deliver = params['Deliver']
178
+ unless params['DeliverSummary'].nil?
179
+ @DeliverSummary = []
180
+ params['DeliverSummary'].each do |i|
181
+ deliversummary_tmp = DeliverSummary.new
182
+ deliversummary_tmp.deserialize(i)
183
+ @DeliverSummary << deliversummary_tmp
184
+ end
185
+ end
186
+ @OldRule = params['OldRule']
187
+ @RealStorage = params['RealStorage']
188
+ end
189
+ end
190
+
191
+ # 审计日志过滤条件
192
+ class AuditLogFilter < TencentCloud::Common::AbstractModel
193
+ # @param Host: 客户端地址。
194
+ # @type Host: Array
195
+ # @param User: 用户名。
196
+ # @type User: Array
197
+ # @param ExecTime: 执行时间。单位为:ms。表示筛选执行时间大于该值的审计日志。
198
+ # @type ExecTime: Integer
199
+ # @param AffectRows: 影响行数。表示筛选影响行数大于该值的审计日志。
200
+ # @type AffectRows: Integer
201
+ # @param Atype: 操作类型。
202
+ # @type Atype: Array
203
+ # @param Result: 执行结果。
204
+ # @type Result: Array
205
+ # @param Param: 根据此关键字过滤日志
206
+ # @type Param: Array
207
+
208
+ attr_accessor :Host, :User, :ExecTime, :AffectRows, :Atype, :Result, :Param
209
+
210
+ def initialize(host=nil, user=nil, exectime=nil, affectrows=nil, atype=nil, result=nil, param=nil)
211
+ @Host = host
212
+ @User = user
213
+ @ExecTime = exectime
214
+ @AffectRows = affectrows
215
+ @Atype = atype
216
+ @Result = result
217
+ @Param = param
218
+ end
219
+
220
+ def deserialize(params)
221
+ @Host = params['Host']
222
+ @User = params['User']
223
+ @ExecTime = params['ExecTime']
224
+ @AffectRows = params['AffectRows']
225
+ @Atype = params['Atype']
226
+ @Result = params['Result']
227
+ @Param = params['Param']
228
+ end
229
+ end
230
+
85
231
  # 用户权限
86
232
  class Auth < TencentCloud::Common::AbstractModel
87
233
  # @param Mask: 当前账号具有的权限信息。
@@ -370,6 +516,67 @@ module TencentCloud
370
516
  end
371
517
  end
372
518
 
519
+ # CreateAuditLogFile请求参数结构体
520
+ class CreateAuditLogFileRequest < TencentCloud::Common::AbstractModel
521
+ # @param InstanceId: 实例 ID,格式如:cmgo-xfts****,与云数据库控制台页面中显示的实例 ID 相同。
522
+ # @type InstanceId: String
523
+ # @param StartTime: 开始时间,格式为:"2021-07-12 10:29:20"。
524
+ # @type StartTime: String
525
+ # @param EndTime: 结束时间,格式为:"2021-07-12 10:39:20"。
526
+ # @type EndTime: String
527
+ # @param Order: 审计日志文件的排序方式。
528
+ # <ul><li>ASC:升序。</li><li>DESC:降序。</li></ul>
529
+ # @type Order: String
530
+ # @param OrderBy: 审计日志文件的排序字段。当前支持的取值包括:
531
+ # <ul><li>timestamp:时间戳。</li><li>affectRows:影响行数。</li><li>execTime:执行时间。</li></ul>
532
+ # @type OrderBy: String
533
+ # @param Filter: 过滤条件。可按设置的过滤条件过滤审计日志。
534
+ # @type Filter: :class:`Tencentcloud::Mongodb.v20190725.models.AuditLogFilter`
535
+
536
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter
537
+
538
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil)
539
+ @InstanceId = instanceid
540
+ @StartTime = starttime
541
+ @EndTime = endtime
542
+ @Order = order
543
+ @OrderBy = orderby
544
+ @Filter = filter
545
+ end
546
+
547
+ def deserialize(params)
548
+ @InstanceId = params['InstanceId']
549
+ @StartTime = params['StartTime']
550
+ @EndTime = params['EndTime']
551
+ @Order = params['Order']
552
+ @OrderBy = params['OrderBy']
553
+ unless params['Filter'].nil?
554
+ @Filter = AuditLogFilter.new
555
+ @Filter.deserialize(params['Filter'])
556
+ end
557
+ end
558
+ end
559
+
560
+ # CreateAuditLogFile返回参数结构体
561
+ class CreateAuditLogFileResponse < TencentCloud::Common::AbstractModel
562
+ # @param FileName: 审计日志文件名称。
563
+ # @type FileName: String
564
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
565
+ # @type RequestId: String
566
+
567
+ attr_accessor :FileName, :RequestId
568
+
569
+ def initialize(filename=nil, requestid=nil)
570
+ @FileName = filename
571
+ @RequestId = requestid
572
+ end
573
+
574
+ def deserialize(params)
575
+ @FileName = params['FileName']
576
+ @RequestId = params['RequestId']
577
+ end
578
+ end
579
+
373
580
  # CreateBackupDBInstance请求参数结构体
374
581
  class CreateBackupDBInstanceRequest < TencentCloud::Common::AbstractModel
375
582
  # @param InstanceId: 实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -1206,6 +1413,42 @@ module TencentCloud
1206
1413
  end
1207
1414
  end
1208
1415
 
1416
+ # DeleteAuditLogFile请求参数结构体
1417
+ class DeleteAuditLogFileRequest < TencentCloud::Common::AbstractModel
1418
+ # @param InstanceId: 实例ID,格式如:cmgo-test1234,与云数据库控制台页面中显示的实例 ID 相同。
1419
+ # @type InstanceId: String
1420
+ # @param FileName: 审计日志文件名称,须保证文件名的准确性。
1421
+ # @type FileName: String
1422
+
1423
+ attr_accessor :InstanceId, :FileName
1424
+
1425
+ def initialize(instanceid=nil, filename=nil)
1426
+ @InstanceId = instanceid
1427
+ @FileName = filename
1428
+ end
1429
+
1430
+ def deserialize(params)
1431
+ @InstanceId = params['InstanceId']
1432
+ @FileName = params['FileName']
1433
+ end
1434
+ end
1435
+
1436
+ # DeleteAuditLogFile返回参数结构体
1437
+ class DeleteAuditLogFileResponse < TencentCloud::Common::AbstractModel
1438
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1439
+ # @type RequestId: String
1440
+
1441
+ attr_accessor :RequestId
1442
+
1443
+ def initialize(requestid=nil)
1444
+ @RequestId = requestid
1445
+ end
1446
+
1447
+ def deserialize(params)
1448
+ @RequestId = params['RequestId']
1449
+ end
1450
+ end
1451
+
1209
1452
  # DeleteLogDownloadTask请求参数结构体
1210
1453
  class DeleteLogDownloadTaskRequest < TencentCloud::Common::AbstractModel
1211
1454
  # @param InstanceId: 实例 ID
@@ -1246,6 +1489,26 @@ module TencentCloud
1246
1489
  end
1247
1490
  end
1248
1491
 
1492
+ # 日志投递信息
1493
+ class DeliverSummary < TencentCloud::Common::AbstractModel
1494
+ # @param DeliverType: 投递类型,store(存储类),mq(消息通道)
1495
+ # @type DeliverType: String
1496
+ # @param DeliverSubType: 投递子类型:cls,ckafka。
1497
+ # @type DeliverSubType: String
1498
+
1499
+ attr_accessor :DeliverType, :DeliverSubType
1500
+
1501
+ def initialize(delivertype=nil, deliversubtype=nil)
1502
+ @DeliverType = delivertype
1503
+ @DeliverSubType = deliversubtype
1504
+ end
1505
+
1506
+ def deserialize(params)
1507
+ @DeliverType = params['DeliverType']
1508
+ @DeliverSubType = params['DeliverSubType']
1509
+ end
1510
+ end
1511
+
1249
1512
  # DescribeAccountUsers请求参数结构体
1250
1513
  class DescribeAccountUsersRequest < TencentCloud::Common::AbstractModel
1251
1514
  # @param InstanceId: 指定待获取账号的实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -1333,6 +1596,77 @@ module TencentCloud
1333
1596
  end
1334
1597
  end
1335
1598
 
1599
+ # DescribeAuditInstanceList请求参数结构体
1600
+ class DescribeAuditInstanceListRequest < TencentCloud::Common::AbstractModel
1601
+ # @param AuditSwitch: 指明待查询的实例为已开通审计或未开通审计。<ul><li>1:已开通审计功能。</li><li>0:未开通审计功能。</li></ul>
1602
+ # @type AuditSwitch: Integer
1603
+ # @param Filters: 筛选条件。
1604
+ # @type Filters: Array
1605
+ # @param AuditMode: 审计类型,不传 默认全部,0 全审计,1 规则审计
1606
+ # @type AuditMode: Integer
1607
+ # @param Limit: 每页显示数量。
1608
+ # @type Limit: Integer
1609
+ # @param Offset: 分页偏移量。
1610
+ # @type Offset: Integer
1611
+
1612
+ attr_accessor :AuditSwitch, :Filters, :AuditMode, :Limit, :Offset
1613
+
1614
+ def initialize(auditswitch=nil, filters=nil, auditmode=nil, limit=nil, offset=nil)
1615
+ @AuditSwitch = auditswitch
1616
+ @Filters = filters
1617
+ @AuditMode = auditmode
1618
+ @Limit = limit
1619
+ @Offset = offset
1620
+ end
1621
+
1622
+ def deserialize(params)
1623
+ @AuditSwitch = params['AuditSwitch']
1624
+ unless params['Filters'].nil?
1625
+ @Filters = []
1626
+ params['Filters'].each do |i|
1627
+ filters_tmp = Filters.new
1628
+ filters_tmp.deserialize(i)
1629
+ @Filters << filters_tmp
1630
+ end
1631
+ end
1632
+ @AuditMode = params['AuditMode']
1633
+ @Limit = params['Limit']
1634
+ @Offset = params['Offset']
1635
+ end
1636
+ end
1637
+
1638
+ # DescribeAuditInstanceList返回参数结构体
1639
+ class DescribeAuditInstanceListResponse < TencentCloud::Common::AbstractModel
1640
+ # @param TotalCount: 实例总数。
1641
+ # @type TotalCount: Integer
1642
+ # @param Items: 审计实例详情。
1643
+ # 注意:此字段可能返回 null,表示取不到有效值。
1644
+ # @type Items: Array
1645
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1646
+ # @type RequestId: String
1647
+
1648
+ attr_accessor :TotalCount, :Items, :RequestId
1649
+
1650
+ def initialize(totalcount=nil, items=nil, requestid=nil)
1651
+ @TotalCount = totalcount
1652
+ @Items = items
1653
+ @RequestId = requestid
1654
+ end
1655
+
1656
+ def deserialize(params)
1657
+ @TotalCount = params['TotalCount']
1658
+ unless params['Items'].nil?
1659
+ @Items = []
1660
+ params['Items'].each do |i|
1661
+ auditinstance_tmp = AuditInstance.new
1662
+ auditinstance_tmp.deserialize(i)
1663
+ @Items << auditinstance_tmp
1664
+ end
1665
+ end
1666
+ @RequestId = params['RequestId']
1667
+ end
1668
+ end
1669
+
1336
1670
  # DescribeBackupDownloadTask请求参数结构体
1337
1671
  class DescribeBackupDownloadTaskRequest < TencentCloud::Common::AbstractModel
1338
1672
  # @param InstanceId: 实例ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -2943,6 +3277,29 @@ module TencentCloud
2943
3277
  end
2944
3278
  end
2945
3279
 
3280
+ # 过滤条件
3281
+ class Filters < TencentCloud::Common::AbstractModel
3282
+ # @param Name: 搜索字段,目前支持:
3283
+ # "InstanceId":实例Id,例如:cmgo-****)
3284
+ # "InstanceName":实例名称
3285
+ # "ClusterId":实例组Id,例如:cmgo-****
3286
+ # @type Name: String
3287
+ # @param Values: 筛选值
3288
+ # @type Values: Array
3289
+
3290
+ attr_accessor :Name, :Values
3291
+
3292
+ def initialize(name=nil, values=nil)
3293
+ @Name = name
3294
+ @Values = values
3295
+ end
3296
+
3297
+ def deserialize(params)
3298
+ @Name = params['Name']
3299
+ @Values = params['Values']
3300
+ end
3301
+ end
3302
+
2946
3303
  # FlashBackDBInstance请求参数结构体
2947
3304
  class FlashBackDBInstanceRequest < TencentCloud::Common::AbstractModel
2948
3305
  # @param InstanceId: 开启按 Key 回档的实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制需开启按 Key 回档的实例 ID。
@@ -3656,6 +4013,90 @@ module TencentCloud
3656
4013
  end
3657
4014
  end
3658
4015
 
4016
+ # 实例信息详情
4017
+ class InstanceInfo < TencentCloud::Common::AbstractModel
4018
+ # @param AuditLogExpireDay: 审计日志保存时长。
4019
+ # 注意:此字段可能返回 null,表示取不到有效值。
4020
+ # @type AuditLogExpireDay: Integer
4021
+ # @param AuditStatus: 审计状态。
4022
+ # 注意:此字段可能返回 null,表示取不到有效值。
4023
+ # @type AuditStatus: String
4024
+ # @param InstanceId: 实例 ID。
4025
+ # 注意:此字段可能返回 null,表示取不到有效值。
4026
+ # @type InstanceId: String
4027
+ # @param InstanceName: 实例名。
4028
+ # 注意:此字段可能返回 null,表示取不到有效值。
4029
+ # @type InstanceName: String
4030
+ # @param InstanceRole: 实例角色。
4031
+ # 注意:此字段可能返回 null,表示取不到有效值。
4032
+ # @type InstanceRole: String
4033
+ # @param InstanceType: 实例类型。
4034
+ # 注意:此字段可能返回 null,表示取不到有效值。
4035
+ # @type InstanceType: String
4036
+ # @param MongodbVersion: 数据库版本。
4037
+ # 注意:此字段可能返回 null,表示取不到有效值。
4038
+ # @type MongodbVersion: String
4039
+ # @param ProjectId: 项目 ID。
4040
+ # 注意:此字段可能返回 null,表示取不到有效值。
4041
+ # @type ProjectId: Integer
4042
+ # @param Region: 地域。
4043
+ # 注意:此字段可能返回 null,表示取不到有效值。
4044
+ # @type Region: String
4045
+ # @param Status: 实例状态。
4046
+ # 注意:此字段可能返回 null,表示取不到有效值。
4047
+ # @type Status: String
4048
+ # @param SupportAudit: 是否支持审计。
4049
+ # 注意:此字段可能返回 null,表示取不到有效值。
4050
+ # @type SupportAudit: Boolean
4051
+ # @param Zone: 可用区。
4052
+ # 注意:此字段可能返回 null,表示取不到有效值。
4053
+ # @type Zone: String
4054
+ # @param TagList: 标签信息
4055
+ # 注意:此字段可能返回 null,表示取不到有效值。
4056
+ # @type TagList: Array
4057
+
4058
+ attr_accessor :AuditLogExpireDay, :AuditStatus, :InstanceId, :InstanceName, :InstanceRole, :InstanceType, :MongodbVersion, :ProjectId, :Region, :Status, :SupportAudit, :Zone, :TagList
4059
+
4060
+ def initialize(auditlogexpireday=nil, auditstatus=nil, instanceid=nil, instancename=nil, instancerole=nil, instancetype=nil, mongodbversion=nil, projectid=nil, region=nil, status=nil, supportaudit=nil, zone=nil, taglist=nil)
4061
+ @AuditLogExpireDay = auditlogexpireday
4062
+ @AuditStatus = auditstatus
4063
+ @InstanceId = instanceid
4064
+ @InstanceName = instancename
4065
+ @InstanceRole = instancerole
4066
+ @InstanceType = instancetype
4067
+ @MongodbVersion = mongodbversion
4068
+ @ProjectId = projectid
4069
+ @Region = region
4070
+ @Status = status
4071
+ @SupportAudit = supportaudit
4072
+ @Zone = zone
4073
+ @TagList = taglist
4074
+ end
4075
+
4076
+ def deserialize(params)
4077
+ @AuditLogExpireDay = params['AuditLogExpireDay']
4078
+ @AuditStatus = params['AuditStatus']
4079
+ @InstanceId = params['InstanceId']
4080
+ @InstanceName = params['InstanceName']
4081
+ @InstanceRole = params['InstanceRole']
4082
+ @InstanceType = params['InstanceType']
4083
+ @MongodbVersion = params['MongodbVersion']
4084
+ @ProjectId = params['ProjectId']
4085
+ @Region = params['Region']
4086
+ @Status = params['Status']
4087
+ @SupportAudit = params['SupportAudit']
4088
+ @Zone = params['Zone']
4089
+ unless params['TagList'].nil?
4090
+ @TagList = []
4091
+ params['TagList'].each do |i|
4092
+ taginfo_tmp = TagInfo.new
4093
+ taginfo_tmp.deserialize(i)
4094
+ @TagList << taginfo_tmp
4095
+ end
4096
+ end
4097
+ end
4098
+ end
4099
+
3659
4100
  # 实例可修改参数 Integer 类型集合。
3660
4101
  class InstanceIntegerParam < TencentCloud::Common::AbstractModel
3661
4102
  # @param CurrentValue: 参数当前值。
@@ -3927,6 +4368,30 @@ module TencentCloud
3927
4368
  end
3928
4369
  end
3929
4370
 
4371
+ # 过滤条件
4372
+ class LogFilter < TencentCloud::Common::AbstractModel
4373
+ # @param Type: 过滤条件名称
4374
+ # @type Type: String
4375
+ # @param Compare: 过滤条件匹配类型,注意:此参数取值只能等于EQ
4376
+ # @type Compare: String
4377
+ # @param Value: 过滤条件匹配值
4378
+ # @type Value: Array
4379
+
4380
+ attr_accessor :Type, :Compare, :Value
4381
+
4382
+ def initialize(type=nil, compare=nil, value=nil)
4383
+ @Type = type
4384
+ @Compare = compare
4385
+ @Value = value
4386
+ end
4387
+
4388
+ def deserialize(params)
4389
+ @Type = params['Type']
4390
+ @Compare = params['Compare']
4391
+ @Value = params['Value']
4392
+ end
4393
+ end
4394
+
3930
4395
  # 日志详情
3931
4396
  class LogInfo < TencentCloud::Common::AbstractModel
3932
4397
  # @param LogComponent: 日志类别
@@ -3969,6 +4434,57 @@ module TencentCloud
3969
4434
  end
3970
4435
  end
3971
4436
 
4437
+ # ModifyAuditService请求参数结构体
4438
+ class ModifyAuditServiceRequest < TencentCloud::Common::AbstractModel
4439
+ # @param InstanceId: 实例ID,格式如:cmgo-xfts****,与云数据库控制台页面中显示的实例 ID 相同。
4440
+ # @type InstanceId: String
4441
+ # @param LogExpireDay: 审计日志保存时长。单位为:天。当前支持的取值包括: 7: 一周。 30: 一个月。 90: 三个月。 180 : 六个月。 365 : 一年。 1095 : 三年。 1825 : 五年。
4442
+ # @type LogExpireDay: Integer
4443
+ # @param AuditAll: true-全审计,false-规则审计,注意:AuditAll=true 时,RuleFilters 无需填参
4444
+ # @type AuditAll: Boolean
4445
+ # @param RuleFilters: 审计过滤规则,Type的范围【SrcIp、DB、Collection、User、SqlType】,注意:Type=SqlType时,Value必须在这个范围 ["query", "insert", "update", "delete", "command"]
4446
+ # @type RuleFilters: Array
4447
+
4448
+ attr_accessor :InstanceId, :LogExpireDay, :AuditAll, :RuleFilters
4449
+
4450
+ def initialize(instanceid=nil, logexpireday=nil, auditall=nil, rulefilters=nil)
4451
+ @InstanceId = instanceid
4452
+ @LogExpireDay = logexpireday
4453
+ @AuditAll = auditall
4454
+ @RuleFilters = rulefilters
4455
+ end
4456
+
4457
+ def deserialize(params)
4458
+ @InstanceId = params['InstanceId']
4459
+ @LogExpireDay = params['LogExpireDay']
4460
+ @AuditAll = params['AuditAll']
4461
+ unless params['RuleFilters'].nil?
4462
+ @RuleFilters = []
4463
+ params['RuleFilters'].each do |i|
4464
+ logfilter_tmp = LogFilter.new
4465
+ logfilter_tmp.deserialize(i)
4466
+ @RuleFilters << logfilter_tmp
4467
+ end
4468
+ end
4469
+ end
4470
+ end
4471
+
4472
+ # ModifyAuditService返回参数结构体
4473
+ class ModifyAuditServiceResponse < TencentCloud::Common::AbstractModel
4474
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4475
+ # @type RequestId: String
4476
+
4477
+ attr_accessor :RequestId
4478
+
4479
+ def initialize(requestid=nil)
4480
+ @RequestId = requestid
4481
+ end
4482
+
4483
+ def deserialize(params)
4484
+ @RequestId = params['RequestId']
4485
+ end
4486
+ end
4487
+
3972
4488
  # ModifyDBInstanceNetworkAddress请求参数结构体
3973
4489
  class ModifyDBInstanceNetworkAddressRequest < TencentCloud::Common::AbstractModel
3974
4490
  # @param InstanceId: 指定需修改网络的实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -4462,6 +4978,57 @@ module TencentCloud
4462
4978
  end
4463
4979
  end
4464
4980
 
4981
+ # OpenAuditService请求参数结构体
4982
+ class OpenAuditServiceRequest < TencentCloud::Common::AbstractModel
4983
+ # @param InstanceId: 实例 ID,格式如:cmgo-xfts****,与云数据库控制台页面中显示的实例 ID 相同。
4984
+ # @type InstanceId: String
4985
+ # @param LogExpireDay: 审计日志保存时长。单位为:天。当前支持的取值包括: 7: 一周。 30: 一个月。 90: 三个月。 180 : 六个月。 365 : 一年。 1095 : 三年。 1825 : 五年。
4986
+ # @type LogExpireDay: Integer
4987
+ # @param AuditAll: true-全审计,false-规则审计,注意:AuditAll=true 时,RuleFilters 无需填参
4988
+ # @type AuditAll: Boolean
4989
+ # @param RuleFilters: 审计过滤规则,Type的范围【SrcIp、DB、Collection、User、SqlType】,注意:Type=SqlType时,Value必须在这个范围 ["query", "insert", "update", "delete", "command"]
4990
+ # @type RuleFilters: Array
4991
+
4992
+ attr_accessor :InstanceId, :LogExpireDay, :AuditAll, :RuleFilters
4993
+
4994
+ def initialize(instanceid=nil, logexpireday=nil, auditall=nil, rulefilters=nil)
4995
+ @InstanceId = instanceid
4996
+ @LogExpireDay = logexpireday
4997
+ @AuditAll = auditall
4998
+ @RuleFilters = rulefilters
4999
+ end
5000
+
5001
+ def deserialize(params)
5002
+ @InstanceId = params['InstanceId']
5003
+ @LogExpireDay = params['LogExpireDay']
5004
+ @AuditAll = params['AuditAll']
5005
+ unless params['RuleFilters'].nil?
5006
+ @RuleFilters = []
5007
+ params['RuleFilters'].each do |i|
5008
+ logfilter_tmp = LogFilter.new
5009
+ logfilter_tmp.deserialize(i)
5010
+ @RuleFilters << logfilter_tmp
5011
+ end
5012
+ end
5013
+ end
5014
+ end
5015
+
5016
+ # OpenAuditService返回参数结构体
5017
+ class OpenAuditServiceResponse < TencentCloud::Common::AbstractModel
5018
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5019
+ # @type RequestId: String
5020
+
5021
+ attr_accessor :RequestId
5022
+
5023
+ def initialize(requestid=nil)
5024
+ @RequestId = requestid
5025
+ end
5026
+
5027
+ def deserialize(params)
5028
+ @RequestId = params['RequestId']
5029
+ end
5030
+ end
5031
+
4465
5032
  # 需要终止的操作。
4466
5033
  class Operation < TencentCloud::Common::AbstractModel
4467
5034
  # @param ReplicaSetName: 操作所在的分片名称。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询分片名称。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mongodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1161
4
+ version: 3.0.1169
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-04 00:00:00.000000000 Z
11
+ date: 2025-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common