tencentcloud-sdk-mongodb 3.0.1151 → 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.
@@ -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。
@@ -958,6 +1165,74 @@ module TencentCloud
958
1165
  end
959
1166
  end
960
1167
 
1168
+ # CreateLogDownloadTask请求参数结构体
1169
+ class CreateLogDownloadTaskRequest < TencentCloud::Common::AbstractModel
1170
+ # @param InstanceId: 实例ID
1171
+ # @type InstanceId: String
1172
+ # @param StartTime: 开始时间
1173
+ # @type StartTime: String
1174
+ # @param EndTime: 结束时间
1175
+ # @type EndTime: String
1176
+ # @param NodeNames: 节点名称
1177
+ # @type NodeNames: Array
1178
+ # @param LogComponents: 日志类别
1179
+ # @type LogComponents: Array
1180
+ # @param LogLevels: 日志等级
1181
+ # @type LogLevels: Array
1182
+ # @param LogIds: 日志ID
1183
+ # @type LogIds: Array
1184
+ # @param LogConnections: 日志连接信息
1185
+ # @type LogConnections: Array
1186
+ # @param LogDetailParams: 日志详情过滤字段
1187
+ # @type LogDetailParams: Array
1188
+
1189
+ attr_accessor :InstanceId, :StartTime, :EndTime, :NodeNames, :LogComponents, :LogLevels, :LogIds, :LogConnections, :LogDetailParams
1190
+
1191
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, nodenames=nil, logcomponents=nil, loglevels=nil, logids=nil, logconnections=nil, logdetailparams=nil)
1192
+ @InstanceId = instanceid
1193
+ @StartTime = starttime
1194
+ @EndTime = endtime
1195
+ @NodeNames = nodenames
1196
+ @LogComponents = logcomponents
1197
+ @LogLevels = loglevels
1198
+ @LogIds = logids
1199
+ @LogConnections = logconnections
1200
+ @LogDetailParams = logdetailparams
1201
+ end
1202
+
1203
+ def deserialize(params)
1204
+ @InstanceId = params['InstanceId']
1205
+ @StartTime = params['StartTime']
1206
+ @EndTime = params['EndTime']
1207
+ @NodeNames = params['NodeNames']
1208
+ @LogComponents = params['LogComponents']
1209
+ @LogLevels = params['LogLevels']
1210
+ @LogIds = params['LogIds']
1211
+ @LogConnections = params['LogConnections']
1212
+ @LogDetailParams = params['LogDetailParams']
1213
+ end
1214
+ end
1215
+
1216
+ # CreateLogDownloadTask返回参数结构体
1217
+ class CreateLogDownloadTaskResponse < TencentCloud::Common::AbstractModel
1218
+ # @param Status: 任务状态
1219
+ # @type Status: Integer
1220
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1221
+ # @type RequestId: String
1222
+
1223
+ attr_accessor :Status, :RequestId
1224
+
1225
+ def initialize(status=nil, requestid=nil)
1226
+ @Status = status
1227
+ @RequestId = requestid
1228
+ end
1229
+
1230
+ def deserialize(params)
1231
+ @Status = params['Status']
1232
+ @RequestId = params['RequestId']
1233
+ end
1234
+ end
1235
+
961
1236
  # 云数据库实例当前操作
962
1237
  class CurrentOp < TencentCloud::Common::AbstractModel
963
1238
  # @param OpId: 操作序号。
@@ -1138,6 +1413,102 @@ module TencentCloud
1138
1413
  end
1139
1414
  end
1140
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
+
1452
+ # DeleteLogDownloadTask请求参数结构体
1453
+ class DeleteLogDownloadTaskRequest < TencentCloud::Common::AbstractModel
1454
+ # @param InstanceId: 实例 ID
1455
+ # @type InstanceId: String
1456
+ # @param TaskId: 任务ID
1457
+ # @type TaskId: String
1458
+
1459
+ attr_accessor :InstanceId, :TaskId
1460
+
1461
+ def initialize(instanceid=nil, taskid=nil)
1462
+ @InstanceId = instanceid
1463
+ @TaskId = taskid
1464
+ end
1465
+
1466
+ def deserialize(params)
1467
+ @InstanceId = params['InstanceId']
1468
+ @TaskId = params['TaskId']
1469
+ end
1470
+ end
1471
+
1472
+ # DeleteLogDownloadTask返回参数结构体
1473
+ class DeleteLogDownloadTaskResponse < TencentCloud::Common::AbstractModel
1474
+ # @param Status: 任务状态,0:成功
1475
+ # @type Status: Integer
1476
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1477
+ # @type RequestId: String
1478
+
1479
+ attr_accessor :Status, :RequestId
1480
+
1481
+ def initialize(status=nil, requestid=nil)
1482
+ @Status = status
1483
+ @RequestId = requestid
1484
+ end
1485
+
1486
+ def deserialize(params)
1487
+ @Status = params['Status']
1488
+ @RequestId = params['RequestId']
1489
+ end
1490
+ end
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
+
1141
1512
  # DescribeAccountUsers请求参数结构体
1142
1513
  class DescribeAccountUsersRequest < TencentCloud::Common::AbstractModel
1143
1514
  # @param InstanceId: 指定待获取账号的实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -1225,6 +1596,77 @@ module TencentCloud
1225
1596
  end
1226
1597
  end
1227
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
+
1228
1670
  # DescribeBackupDownloadTask请求参数结构体
1229
1671
  class DescribeBackupDownloadTaskRequest < TencentCloud::Common::AbstractModel
1230
1672
  # @param InstanceId: 实例ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -2295,7 +2737,167 @@ module TencentCloud
2295
2737
  @InstanceMultiParam << instancemultiparam_tmp
2296
2738
  end
2297
2739
  end
2298
- @TotalCount = params['TotalCount']
2740
+ @TotalCount = params['TotalCount']
2741
+ @RequestId = params['RequestId']
2742
+ end
2743
+ end
2744
+
2745
+ # DescribeLogDownloadTasks请求参数结构体
2746
+ class DescribeLogDownloadTasksRequest < TencentCloud::Common::AbstractModel
2747
+ # @param InstanceId: 实例 ID
2748
+ # @type InstanceId: String
2749
+ # @param Limit: 查询条数
2750
+ # @type Limit: Integer
2751
+ # @param Offset: 页码
2752
+ # @type Offset: Integer
2753
+ # @param StartTime: 下载任务的开始时间
2754
+ # @type StartTime: String
2755
+ # @param EndTime: 下载任务的结束时间
2756
+ # @type EndTime: String
2757
+
2758
+ attr_accessor :InstanceId, :Limit, :Offset, :StartTime, :EndTime
2759
+
2760
+ def initialize(instanceid=nil, limit=nil, offset=nil, starttime=nil, endtime=nil)
2761
+ @InstanceId = instanceid
2762
+ @Limit = limit
2763
+ @Offset = offset
2764
+ @StartTime = starttime
2765
+ @EndTime = endtime
2766
+ end
2767
+
2768
+ def deserialize(params)
2769
+ @InstanceId = params['InstanceId']
2770
+ @Limit = params['Limit']
2771
+ @Offset = params['Offset']
2772
+ @StartTime = params['StartTime']
2773
+ @EndTime = params['EndTime']
2774
+ end
2775
+ end
2776
+
2777
+ # DescribeLogDownloadTasks返回参数结构体
2778
+ class DescribeLogDownloadTasksResponse < TencentCloud::Common::AbstractModel
2779
+ # @param TotalCount: 数量
2780
+ # @type TotalCount: Integer
2781
+ # @param Tasks: 任务列表
2782
+ # 注意:此字段可能返回 null,表示取不到有效值。
2783
+ # @type Tasks: Array
2784
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2785
+ # @type RequestId: String
2786
+
2787
+ attr_accessor :TotalCount, :Tasks, :RequestId
2788
+
2789
+ def initialize(totalcount=nil, tasks=nil, requestid=nil)
2790
+ @TotalCount = totalcount
2791
+ @Tasks = tasks
2792
+ @RequestId = requestid
2793
+ end
2794
+
2795
+ def deserialize(params)
2796
+ @TotalCount = params['TotalCount']
2797
+ unless params['Tasks'].nil?
2798
+ @Tasks = []
2799
+ params['Tasks'].each do |i|
2800
+ task_tmp = Task.new
2801
+ task_tmp.deserialize(i)
2802
+ @Tasks << task_tmp
2803
+ end
2804
+ end
2805
+ @RequestId = params['RequestId']
2806
+ end
2807
+ end
2808
+
2809
+ # DescribeMongodbLogs请求参数结构体
2810
+ class DescribeMongodbLogsRequest < TencentCloud::Common::AbstractModel
2811
+ # @param InstanceId: 实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb#/)在实例列表复制实例 ID。
2812
+ # @type InstanceId: String
2813
+ # @param StartTime: 查询日志的开启时间。
2814
+ # - 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。
2815
+ # - 查询时间范围:仅支持查询最近 7 天内的日志数据。
2816
+ # @type StartTime: String
2817
+ # @param EndTime: 查询日志的结束时间。
2818
+ # - 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。
2819
+ # - 查询时间范围:仅支持查询最近 7 天内的日志数据。
2820
+ # @type EndTime: String
2821
+ # @param NodeNames: 节点 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)的**节点管理**页面获取查询的节点 ID。
2822
+ # @type NodeNames: Array
2823
+ # @param LogComponents: 日志类别。
2824
+ # - 日志类别包括但不限于 COMMAND、ACCESS、CONTROL、FTDC、INDEX、NETWORK、QUERY、REPL、SHARDING、STORAGE、RECOVERY、JOURNAL 和 WRITE 等。具体支持的类别可能会因 MongoDB 的版本而存在差异。具体信息,请参见[日志消息](https://www.mongodb.com/zh-cn/docs/v5.0/reference/log-messages/#log-message-examples)。
2825
+ # - 登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,也可查看**日志类别**。
2826
+ # @type LogComponents: Array
2827
+ # @param LogLevels: 日志级别。
2828
+ # - 日志级别按严重性从高到低依次为:FATAL、ERROR、WARNING。
2829
+ # - 登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,可查看**日志级别**。
2830
+ # @type LogLevels: Array
2831
+ # @param LogIds: 日志 ID。登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,可查看**日志 ID**。
2832
+ # @type LogIds: Array
2833
+ # @param LogConnections: 日志连接信息。登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,可查看**日志连接信息**。
2834
+ # @type LogConnections: Array
2835
+ # @param LogDetailParams: 指定日志筛选的字段。
2836
+ # @type LogDetailParams: Array
2837
+ # @param Offset: 偏移量,最小值为0,最大值为10000,默认值为0。
2838
+ # @type Offset: Integer
2839
+ # @param Limit: 分页大小,最小值为1,最大值为100,默认值为20。
2840
+ # @type Limit: Integer
2841
+
2842
+ attr_accessor :InstanceId, :StartTime, :EndTime, :NodeNames, :LogComponents, :LogLevels, :LogIds, :LogConnections, :LogDetailParams, :Offset, :Limit
2843
+
2844
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, nodenames=nil, logcomponents=nil, loglevels=nil, logids=nil, logconnections=nil, logdetailparams=nil, offset=nil, limit=nil)
2845
+ @InstanceId = instanceid
2846
+ @StartTime = starttime
2847
+ @EndTime = endtime
2848
+ @NodeNames = nodenames
2849
+ @LogComponents = logcomponents
2850
+ @LogLevels = loglevels
2851
+ @LogIds = logids
2852
+ @LogConnections = logconnections
2853
+ @LogDetailParams = logdetailparams
2854
+ @Offset = offset
2855
+ @Limit = limit
2856
+ end
2857
+
2858
+ def deserialize(params)
2859
+ @InstanceId = params['InstanceId']
2860
+ @StartTime = params['StartTime']
2861
+ @EndTime = params['EndTime']
2862
+ @NodeNames = params['NodeNames']
2863
+ @LogComponents = params['LogComponents']
2864
+ @LogLevels = params['LogLevels']
2865
+ @LogIds = params['LogIds']
2866
+ @LogConnections = params['LogConnections']
2867
+ @LogDetailParams = params['LogDetailParams']
2868
+ @Offset = params['Offset']
2869
+ @Limit = params['Limit']
2870
+ end
2871
+ end
2872
+
2873
+ # DescribeMongodbLogs返回参数结构体
2874
+ class DescribeMongodbLogsResponse < TencentCloud::Common::AbstractModel
2875
+ # @param TotalCount: 日志总数。
2876
+ # @type TotalCount: Integer
2877
+ # @param LogList: 日志详情列表。
2878
+ # 注意:此字段可能返回 null,表示取不到有效值。
2879
+ # @type LogList: Array
2880
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2881
+ # @type RequestId: String
2882
+
2883
+ attr_accessor :TotalCount, :LogList, :RequestId
2884
+
2885
+ def initialize(totalcount=nil, loglist=nil, requestid=nil)
2886
+ @TotalCount = totalcount
2887
+ @LogList = loglist
2888
+ @RequestId = requestid
2889
+ end
2890
+
2891
+ def deserialize(params)
2892
+ @TotalCount = params['TotalCount']
2893
+ unless params['LogList'].nil?
2894
+ @LogList = []
2895
+ params['LogList'].each do |i|
2896
+ loginfo_tmp = LogInfo.new
2897
+ loginfo_tmp.deserialize(i)
2898
+ @LogList << loginfo_tmp
2899
+ end
2900
+ end
2299
2901
  @RequestId = params['RequestId']
2300
2902
  end
2301
2903
  end
@@ -2675,6 +3277,29 @@ module TencentCloud
2675
3277
  end
2676
3278
  end
2677
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
+
2678
3303
  # FlashBackDBInstance请求参数结构体
2679
3304
  class FlashBackDBInstanceRequest < TencentCloud::Common::AbstractModel
2680
3305
  # @param InstanceId: 开启按 Key 回档的实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制需开启按 Key 回档的实例 ID。
@@ -3388,6 +4013,90 @@ module TencentCloud
3388
4013
  end
3389
4014
  end
3390
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
+
3391
4100
  # 实例可修改参数 Integer 类型集合。
3392
4101
  class InstanceIntegerParam < TencentCloud::Common::AbstractModel
3393
4102
  # @param CurrentValue: 参数当前值。
@@ -3659,6 +4368,123 @@ module TencentCloud
3659
4368
  end
3660
4369
  end
3661
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
+
4395
+ # 日志详情
4396
+ class LogInfo < TencentCloud::Common::AbstractModel
4397
+ # @param LogComponent: 日志类别
4398
+ # 注意:此字段可能返回 null,表示取不到有效值。
4399
+ # @type LogComponent: String
4400
+ # @param LogLevel: 日志级别
4401
+ # 注意:此字段可能返回 null,表示取不到有效值。
4402
+ # @type LogLevel: String
4403
+ # @param LogTime: 日志产生时间
4404
+ # 注意:此字段可能返回 null,表示取不到有效值。
4405
+ # @type LogTime: String
4406
+ # @param LogDetail: 日志详情
4407
+ # 注意:此字段可能返回 null,表示取不到有效值。
4408
+ # @type LogDetail: String
4409
+ # @param LogConnection: 日志连接信息
4410
+ # 注意:此字段可能返回 null,表示取不到有效值。
4411
+ # @type LogConnection: String
4412
+ # @param LogId: 日志id
4413
+ # 注意:此字段可能返回 null,表示取不到有效值。
4414
+ # @type LogId: String
4415
+
4416
+ attr_accessor :LogComponent, :LogLevel, :LogTime, :LogDetail, :LogConnection, :LogId
4417
+
4418
+ def initialize(logcomponent=nil, loglevel=nil, logtime=nil, logdetail=nil, logconnection=nil, logid=nil)
4419
+ @LogComponent = logcomponent
4420
+ @LogLevel = loglevel
4421
+ @LogTime = logtime
4422
+ @LogDetail = logdetail
4423
+ @LogConnection = logconnection
4424
+ @LogId = logid
4425
+ end
4426
+
4427
+ def deserialize(params)
4428
+ @LogComponent = params['LogComponent']
4429
+ @LogLevel = params['LogLevel']
4430
+ @LogTime = params['LogTime']
4431
+ @LogDetail = params['LogDetail']
4432
+ @LogConnection = params['LogConnection']
4433
+ @LogId = params['LogId']
4434
+ end
4435
+ end
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
+
3662
4488
  # ModifyDBInstanceNetworkAddress请求参数结构体
3663
4489
  class ModifyDBInstanceNetworkAddressRequest < TencentCloud::Common::AbstractModel
3664
4490
  # @param InstanceId: 指定需修改网络的实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -3849,8 +4675,8 @@ module TencentCloud
3849
4675
 
3850
4676
  attr_accessor :InstanceId, :Memory, :Volume, :OplogSize, :NodeNum, :ReplicateSetNum, :InMaintenance, :MongosMemory, :AddNodeList, :RemoveNodeList
3851
4677
  extend Gem::Deprecate
3852
- deprecate :OplogSize, :none, 2025, 10
3853
- deprecate :OplogSize=, :none, 2025, 10
4678
+ deprecate :OplogSize, :none, 2025, 11
4679
+ deprecate :OplogSize=, :none, 2025, 11
3854
4680
 
3855
4681
  def initialize(instanceid=nil, memory=nil, volume=nil, oplogsize=nil, nodenum=nil, replicatesetnum=nil, inmaintenance=nil, mongosmemory=nil, addnodelist=nil, removenodelist=nil)
3856
4682
  @InstanceId = instanceid
@@ -4152,6 +4978,57 @@ module TencentCloud
4152
4978
  end
4153
4979
  end
4154
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
+
4155
5032
  # 需要终止的操作。
4156
5033
  class Operation < TencentCloud::Common::AbstractModel
4157
5034
  # @param ReplicaSetName: 操作所在的分片名称。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询分片名称。
@@ -5032,6 +5909,56 @@ module TencentCloud
5032
5909
  end
5033
5910
  end
5034
5911
 
5912
+ # 日志下载任务描述
5913
+ class Task < TencentCloud::Common::AbstractModel
5914
+ # @param TaskType: 下载任务类型,0:慢日志,1:错误日志
5915
+ # @type TaskType: Integer
5916
+ # @param TaskId: 任务ID
5917
+ # @type TaskId: String
5918
+ # @param CreateTime: 创建时间
5919
+ # 注意:此字段可能返回 null,表示取不到有效值。
5920
+ # @type CreateTime: String
5921
+ # @param UpdateTime: 更新时间
5922
+ # 注意:此字段可能返回 null,表示取不到有效值。
5923
+ # @type UpdateTime: String
5924
+ # @param FileSize: 文件大小
5925
+ # 注意:此字段可能返回 null,表示取不到有效值。
5926
+ # @type FileSize: Integer
5927
+ # @param Status: 任务状态,0:初始化,1:运行中,2:成功,3:失败
5928
+ # 注意:此字段可能返回 null,表示取不到有效值。
5929
+ # @type Status: Integer
5930
+ # @param Percent: 百分比
5931
+ # 注意:此字段可能返回 null,表示取不到有效值。
5932
+ # @type Percent: Integer
5933
+ # @param Url: 下载链接
5934
+ # 注意:此字段可能返回 null,表示取不到有效值。
5935
+ # @type Url: String
5936
+
5937
+ attr_accessor :TaskType, :TaskId, :CreateTime, :UpdateTime, :FileSize, :Status, :Percent, :Url
5938
+
5939
+ def initialize(tasktype=nil, taskid=nil, createtime=nil, updatetime=nil, filesize=nil, status=nil, percent=nil, url=nil)
5940
+ @TaskType = tasktype
5941
+ @TaskId = taskid
5942
+ @CreateTime = createtime
5943
+ @UpdateTime = updatetime
5944
+ @FileSize = filesize
5945
+ @Status = status
5946
+ @Percent = percent
5947
+ @Url = url
5948
+ end
5949
+
5950
+ def deserialize(params)
5951
+ @TaskType = params['TaskType']
5952
+ @TaskId = params['TaskId']
5953
+ @CreateTime = params['CreateTime']
5954
+ @UpdateTime = params['UpdateTime']
5955
+ @FileSize = params['FileSize']
5956
+ @Status = params['Status']
5957
+ @Percent = params['Percent']
5958
+ @Url = params['Url']
5959
+ end
5960
+ end
5961
+
5035
5962
  # TerminateDBInstances请求参数结构体
5036
5963
  class TerminateDBInstancesRequest < TencentCloud::Common::AbstractModel
5037
5964
  # @param InstanceId: 指定预隔离实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制预隔离实例 ID。
@@ -5064,6 +5991,90 @@ module TencentCloud
5064
5991
  end
5065
5992
  end
5066
5993
 
5994
+ # UpgradeDBInstanceKernelVersion请求参数结构体
5995
+ class UpgradeDBInstanceKernelVersionRequest < TencentCloud::Common::AbstractModel
5996
+ # @param InstanceId: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
5997
+ # @type InstanceId: String
5998
+ # @param InMaintenance: 是否维护时间内升级。0-否,1-是
5999
+ # @type InMaintenance: Integer
6000
+
6001
+ attr_accessor :InstanceId, :InMaintenance
6002
+
6003
+ def initialize(instanceid=nil, inmaintenance=nil)
6004
+ @InstanceId = instanceid
6005
+ @InMaintenance = inmaintenance
6006
+ end
6007
+
6008
+ def deserialize(params)
6009
+ @InstanceId = params['InstanceId']
6010
+ @InMaintenance = params['InMaintenance']
6011
+ end
6012
+ end
6013
+
6014
+ # UpgradeDBInstanceKernelVersion返回参数结构体
6015
+ class UpgradeDBInstanceKernelVersionResponse < TencentCloud::Common::AbstractModel
6016
+ # @param FlowId: 异步流程任务ID
6017
+ # @type FlowId: Integer
6018
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6019
+ # @type RequestId: String
6020
+
6021
+ attr_accessor :FlowId, :RequestId
6022
+
6023
+ def initialize(flowid=nil, requestid=nil)
6024
+ @FlowId = flowid
6025
+ @RequestId = requestid
6026
+ end
6027
+
6028
+ def deserialize(params)
6029
+ @FlowId = params['FlowId']
6030
+ @RequestId = params['RequestId']
6031
+ end
6032
+ end
6033
+
6034
+ # UpgradeDbInstanceVersion请求参数结构体
6035
+ class UpgradeDbInstanceVersionRequest < TencentCloud::Common::AbstractModel
6036
+ # @param InstanceId: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同。
6037
+ # @type InstanceId: String
6038
+ # @param MongoVersion: 新升级的数据库版本,当前仅支持MONGO_40_WT(MongoDB 4.0 WiredTiger存储引擎版本)及MONGO_42_WT(MongoDB 4.0 WiredTiger存储引擎版本)。
6039
+ # @type MongoVersion: String
6040
+ # @param InMaintenance: 是否在维护时间内升级。0-立即升级 1-维护时间内升级
6041
+ # @type InMaintenance: Integer
6042
+
6043
+ attr_accessor :InstanceId, :MongoVersion, :InMaintenance
6044
+
6045
+ def initialize(instanceid=nil, mongoversion=nil, inmaintenance=nil)
6046
+ @InstanceId = instanceid
6047
+ @MongoVersion = mongoversion
6048
+ @InMaintenance = inmaintenance
6049
+ end
6050
+
6051
+ def deserialize(params)
6052
+ @InstanceId = params['InstanceId']
6053
+ @MongoVersion = params['MongoVersion']
6054
+ @InMaintenance = params['InMaintenance']
6055
+ end
6056
+ end
6057
+
6058
+ # UpgradeDbInstanceVersion返回参数结构体
6059
+ class UpgradeDbInstanceVersionResponse < TencentCloud::Common::AbstractModel
6060
+ # @param FlowId: 异步流程任务ID
6061
+ # @type FlowId: Integer
6062
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6063
+ # @type RequestId: String
6064
+
6065
+ attr_accessor :FlowId, :RequestId
6066
+
6067
+ def initialize(flowid=nil, requestid=nil)
6068
+ @FlowId = flowid
6069
+ @RequestId = requestid
6070
+ end
6071
+
6072
+ def deserialize(params)
6073
+ @FlowId = params['FlowId']
6074
+ @RequestId = params['RequestId']
6075
+ end
6076
+ end
6077
+
5067
6078
  # 账户基本信息
5068
6079
  class UserInfo < TencentCloud::Common::AbstractModel
5069
6080
  # @param UserName: 账号名。