tencentcloud-sdk-mongodb 3.0.1151 → 3.0.1161
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190725/client.rb +144 -0
- data/lib/v20190725/models.rb +446 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 904a86fd55b1160f86ed156c26c91e4d36146594
|
|
4
|
+
data.tar.gz: d2af3318413ca6c94f270eb5678fa30489fef16e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f047cce1204a2b3a250aa69fae30f7c22baeedb8a070fbefbd1f6785b6dad786e2db29bd32a70ef740aac0916fd7236932b0a8501a335729a2e1d5ccef9d14b
|
|
7
|
+
data.tar.gz: 0a09923bd4fbc6d6bef2a64514dfe173a8204f9d740648717dbb8f1f39ad13b0a61f7f7af760c43a2f37f16a047c27e94b6796ea660b3b35c71604b33b555316
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1161
|
data/lib/v20190725/client.rb
CHANGED
|
@@ -198,6 +198,30 @@ module TencentCloud
|
|
|
198
198
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
199
199
|
end
|
|
200
200
|
|
|
201
|
+
# 创建日志下载任务
|
|
202
|
+
|
|
203
|
+
# @param request: Request instance for CreateLogDownloadTask.
|
|
204
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::CreateLogDownloadTaskRequest`
|
|
205
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::CreateLogDownloadTaskResponse`
|
|
206
|
+
def CreateLogDownloadTask(request)
|
|
207
|
+
body = send_request('CreateLogDownloadTask', request.serialize)
|
|
208
|
+
response = JSON.parse(body)
|
|
209
|
+
if response['Response'].key?('Error') == false
|
|
210
|
+
model = CreateLogDownloadTaskResponse.new
|
|
211
|
+
model.deserialize(response['Response'])
|
|
212
|
+
model
|
|
213
|
+
else
|
|
214
|
+
code = response['Response']['Error']['Code']
|
|
215
|
+
message = response['Response']['Error']['Message']
|
|
216
|
+
reqid = response['Response']['RequestId']
|
|
217
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
218
|
+
end
|
|
219
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
220
|
+
raise e
|
|
221
|
+
rescue StandardError => e
|
|
222
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
223
|
+
end
|
|
224
|
+
|
|
201
225
|
# 本接口(DeleteAccountUser)用于删除实例的自定义账号。
|
|
202
226
|
|
|
203
227
|
# @param request: Request instance for DeleteAccountUser.
|
|
@@ -222,6 +246,30 @@ module TencentCloud
|
|
|
222
246
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
223
247
|
end
|
|
224
248
|
|
|
249
|
+
# 删除日志下载任务
|
|
250
|
+
|
|
251
|
+
# @param request: Request instance for DeleteLogDownloadTask.
|
|
252
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DeleteLogDownloadTaskRequest`
|
|
253
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DeleteLogDownloadTaskResponse`
|
|
254
|
+
def DeleteLogDownloadTask(request)
|
|
255
|
+
body = send_request('DeleteLogDownloadTask', request.serialize)
|
|
256
|
+
response = JSON.parse(body)
|
|
257
|
+
if response['Response'].key?('Error') == false
|
|
258
|
+
model = DeleteLogDownloadTaskResponse.new
|
|
259
|
+
model.deserialize(response['Response'])
|
|
260
|
+
model
|
|
261
|
+
else
|
|
262
|
+
code = response['Response']['Error']['Code']
|
|
263
|
+
message = response['Response']['Error']['Message']
|
|
264
|
+
reqid = response['Response']['RequestId']
|
|
265
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
266
|
+
end
|
|
267
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
268
|
+
raise e
|
|
269
|
+
rescue StandardError => e
|
|
270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
271
|
+
end
|
|
272
|
+
|
|
225
273
|
# 本接口(DescribeAccountUsers)用于获取当前实例的全部账号。
|
|
226
274
|
|
|
227
275
|
# @param request: Request instance for DescribeAccountUsers.
|
|
@@ -608,6 +656,54 @@ module TencentCloud
|
|
|
608
656
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
609
657
|
end
|
|
610
658
|
|
|
659
|
+
# 日志下载任务查询
|
|
660
|
+
|
|
661
|
+
# @param request: Request instance for DescribeLogDownloadTasks.
|
|
662
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeLogDownloadTasksRequest`
|
|
663
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeLogDownloadTasksResponse`
|
|
664
|
+
def DescribeLogDownloadTasks(request)
|
|
665
|
+
body = send_request('DescribeLogDownloadTasks', request.serialize)
|
|
666
|
+
response = JSON.parse(body)
|
|
667
|
+
if response['Response'].key?('Error') == false
|
|
668
|
+
model = DescribeLogDownloadTasksResponse.new
|
|
669
|
+
model.deserialize(response['Response'])
|
|
670
|
+
model
|
|
671
|
+
else
|
|
672
|
+
code = response['Response']['Error']['Code']
|
|
673
|
+
message = response['Response']['Error']['Message']
|
|
674
|
+
reqid = response['Response']['RequestId']
|
|
675
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
676
|
+
end
|
|
677
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
678
|
+
raise e
|
|
679
|
+
rescue StandardError => e
|
|
680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
# 该接口(DescribeMongodbLogs)用于查询运行日志。
|
|
684
|
+
|
|
685
|
+
# @param request: Request instance for DescribeMongodbLogs.
|
|
686
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeMongodbLogsRequest`
|
|
687
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeMongodbLogsResponse`
|
|
688
|
+
def DescribeMongodbLogs(request)
|
|
689
|
+
body = send_request('DescribeMongodbLogs', request.serialize)
|
|
690
|
+
response = JSON.parse(body)
|
|
691
|
+
if response['Response'].key?('Error') == false
|
|
692
|
+
model = DescribeMongodbLogsResponse.new
|
|
693
|
+
model.deserialize(response['Response'])
|
|
694
|
+
model
|
|
695
|
+
else
|
|
696
|
+
code = response['Response']['Error']['Code']
|
|
697
|
+
message = response['Response']['Error']['Message']
|
|
698
|
+
reqid = response['Response']['RequestId']
|
|
699
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
700
|
+
end
|
|
701
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
702
|
+
raise e
|
|
703
|
+
rescue StandardError => e
|
|
704
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
705
|
+
end
|
|
706
|
+
|
|
611
707
|
# 本接口(DescribeSecurityGroup)用于查询实例绑定的安全组。
|
|
612
708
|
|
|
613
709
|
# @param request: Request instance for DescribeSecurityGroup.
|
|
@@ -1307,6 +1403,54 @@ module TencentCloud
|
|
|
1307
1403
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1308
1404
|
end
|
|
1309
1405
|
|
|
1406
|
+
# 本接口(UpgradeDBInstanceKernelVersion)用于升级数据库实例内核版本。
|
|
1407
|
+
|
|
1408
|
+
# @param request: Request instance for UpgradeDBInstanceKernelVersion.
|
|
1409
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::UpgradeDBInstanceKernelVersionRequest`
|
|
1410
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::UpgradeDBInstanceKernelVersionResponse`
|
|
1411
|
+
def UpgradeDBInstanceKernelVersion(request)
|
|
1412
|
+
body = send_request('UpgradeDBInstanceKernelVersion', request.serialize)
|
|
1413
|
+
response = JSON.parse(body)
|
|
1414
|
+
if response['Response'].key?('Error') == false
|
|
1415
|
+
model = UpgradeDBInstanceKernelVersionResponse.new
|
|
1416
|
+
model.deserialize(response['Response'])
|
|
1417
|
+
model
|
|
1418
|
+
else
|
|
1419
|
+
code = response['Response']['Error']['Code']
|
|
1420
|
+
message = response['Response']['Error']['Message']
|
|
1421
|
+
reqid = response['Response']['RequestId']
|
|
1422
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1423
|
+
end
|
|
1424
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1425
|
+
raise e
|
|
1426
|
+
rescue StandardError => e
|
|
1427
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
# 本接口用于跨版本升级数据库内核。当前仅支持3.6版本升级为4.0版本、4.0版本升级为4.2版本、4.2版本升级为4.4版本及4.4版本升级为5.0版本。
|
|
1431
|
+
|
|
1432
|
+
# @param request: Request instance for UpgradeDbInstanceVersion.
|
|
1433
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::UpgradeDbInstanceVersionRequest`
|
|
1434
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::UpgradeDbInstanceVersionResponse`
|
|
1435
|
+
def UpgradeDbInstanceVersion(request)
|
|
1436
|
+
body = send_request('UpgradeDbInstanceVersion', request.serialize)
|
|
1437
|
+
response = JSON.parse(body)
|
|
1438
|
+
if response['Response'].key?('Error') == false
|
|
1439
|
+
model = UpgradeDbInstanceVersionResponse.new
|
|
1440
|
+
model.deserialize(response['Response'])
|
|
1441
|
+
model
|
|
1442
|
+
else
|
|
1443
|
+
code = response['Response']['Error']['Code']
|
|
1444
|
+
message = response['Response']['Error']['Message']
|
|
1445
|
+
reqid = response['Response']['RequestId']
|
|
1446
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1447
|
+
end
|
|
1448
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1449
|
+
raise e
|
|
1450
|
+
rescue StandardError => e
|
|
1451
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1452
|
+
end
|
|
1453
|
+
|
|
1310
1454
|
|
|
1311
1455
|
end
|
|
1312
1456
|
end
|
data/lib/v20190725/models.rb
CHANGED
|
@@ -958,6 +958,74 @@ module TencentCloud
|
|
|
958
958
|
end
|
|
959
959
|
end
|
|
960
960
|
|
|
961
|
+
# CreateLogDownloadTask请求参数结构体
|
|
962
|
+
class CreateLogDownloadTaskRequest < TencentCloud::Common::AbstractModel
|
|
963
|
+
# @param InstanceId: 实例ID
|
|
964
|
+
# @type InstanceId: String
|
|
965
|
+
# @param StartTime: 开始时间
|
|
966
|
+
# @type StartTime: String
|
|
967
|
+
# @param EndTime: 结束时间
|
|
968
|
+
# @type EndTime: String
|
|
969
|
+
# @param NodeNames: 节点名称
|
|
970
|
+
# @type NodeNames: Array
|
|
971
|
+
# @param LogComponents: 日志类别
|
|
972
|
+
# @type LogComponents: Array
|
|
973
|
+
# @param LogLevels: 日志等级
|
|
974
|
+
# @type LogLevels: Array
|
|
975
|
+
# @param LogIds: 日志ID
|
|
976
|
+
# @type LogIds: Array
|
|
977
|
+
# @param LogConnections: 日志连接信息
|
|
978
|
+
# @type LogConnections: Array
|
|
979
|
+
# @param LogDetailParams: 日志详情过滤字段
|
|
980
|
+
# @type LogDetailParams: Array
|
|
981
|
+
|
|
982
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :NodeNames, :LogComponents, :LogLevels, :LogIds, :LogConnections, :LogDetailParams
|
|
983
|
+
|
|
984
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, nodenames=nil, logcomponents=nil, loglevels=nil, logids=nil, logconnections=nil, logdetailparams=nil)
|
|
985
|
+
@InstanceId = instanceid
|
|
986
|
+
@StartTime = starttime
|
|
987
|
+
@EndTime = endtime
|
|
988
|
+
@NodeNames = nodenames
|
|
989
|
+
@LogComponents = logcomponents
|
|
990
|
+
@LogLevels = loglevels
|
|
991
|
+
@LogIds = logids
|
|
992
|
+
@LogConnections = logconnections
|
|
993
|
+
@LogDetailParams = logdetailparams
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
def deserialize(params)
|
|
997
|
+
@InstanceId = params['InstanceId']
|
|
998
|
+
@StartTime = params['StartTime']
|
|
999
|
+
@EndTime = params['EndTime']
|
|
1000
|
+
@NodeNames = params['NodeNames']
|
|
1001
|
+
@LogComponents = params['LogComponents']
|
|
1002
|
+
@LogLevels = params['LogLevels']
|
|
1003
|
+
@LogIds = params['LogIds']
|
|
1004
|
+
@LogConnections = params['LogConnections']
|
|
1005
|
+
@LogDetailParams = params['LogDetailParams']
|
|
1006
|
+
end
|
|
1007
|
+
end
|
|
1008
|
+
|
|
1009
|
+
# CreateLogDownloadTask返回参数结构体
|
|
1010
|
+
class CreateLogDownloadTaskResponse < TencentCloud::Common::AbstractModel
|
|
1011
|
+
# @param Status: 任务状态
|
|
1012
|
+
# @type Status: Integer
|
|
1013
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1014
|
+
# @type RequestId: String
|
|
1015
|
+
|
|
1016
|
+
attr_accessor :Status, :RequestId
|
|
1017
|
+
|
|
1018
|
+
def initialize(status=nil, requestid=nil)
|
|
1019
|
+
@Status = status
|
|
1020
|
+
@RequestId = requestid
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
def deserialize(params)
|
|
1024
|
+
@Status = params['Status']
|
|
1025
|
+
@RequestId = params['RequestId']
|
|
1026
|
+
end
|
|
1027
|
+
end
|
|
1028
|
+
|
|
961
1029
|
# 云数据库实例当前操作
|
|
962
1030
|
class CurrentOp < TencentCloud::Common::AbstractModel
|
|
963
1031
|
# @param OpId: 操作序号。
|
|
@@ -1138,6 +1206,46 @@ module TencentCloud
|
|
|
1138
1206
|
end
|
|
1139
1207
|
end
|
|
1140
1208
|
|
|
1209
|
+
# DeleteLogDownloadTask请求参数结构体
|
|
1210
|
+
class DeleteLogDownloadTaskRequest < TencentCloud::Common::AbstractModel
|
|
1211
|
+
# @param InstanceId: 实例 ID
|
|
1212
|
+
# @type InstanceId: String
|
|
1213
|
+
# @param TaskId: 任务ID
|
|
1214
|
+
# @type TaskId: String
|
|
1215
|
+
|
|
1216
|
+
attr_accessor :InstanceId, :TaskId
|
|
1217
|
+
|
|
1218
|
+
def initialize(instanceid=nil, taskid=nil)
|
|
1219
|
+
@InstanceId = instanceid
|
|
1220
|
+
@TaskId = taskid
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1223
|
+
def deserialize(params)
|
|
1224
|
+
@InstanceId = params['InstanceId']
|
|
1225
|
+
@TaskId = params['TaskId']
|
|
1226
|
+
end
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
# DeleteLogDownloadTask返回参数结构体
|
|
1230
|
+
class DeleteLogDownloadTaskResponse < TencentCloud::Common::AbstractModel
|
|
1231
|
+
# @param Status: 任务状态,0:成功
|
|
1232
|
+
# @type Status: Integer
|
|
1233
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1234
|
+
# @type RequestId: String
|
|
1235
|
+
|
|
1236
|
+
attr_accessor :Status, :RequestId
|
|
1237
|
+
|
|
1238
|
+
def initialize(status=nil, requestid=nil)
|
|
1239
|
+
@Status = status
|
|
1240
|
+
@RequestId = requestid
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
def deserialize(params)
|
|
1244
|
+
@Status = params['Status']
|
|
1245
|
+
@RequestId = params['RequestId']
|
|
1246
|
+
end
|
|
1247
|
+
end
|
|
1248
|
+
|
|
1141
1249
|
# DescribeAccountUsers请求参数结构体
|
|
1142
1250
|
class DescribeAccountUsersRequest < TencentCloud::Common::AbstractModel
|
|
1143
1251
|
# @param InstanceId: 指定待获取账号的实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
@@ -2300,6 +2408,166 @@ module TencentCloud
|
|
|
2300
2408
|
end
|
|
2301
2409
|
end
|
|
2302
2410
|
|
|
2411
|
+
# DescribeLogDownloadTasks请求参数结构体
|
|
2412
|
+
class DescribeLogDownloadTasksRequest < TencentCloud::Common::AbstractModel
|
|
2413
|
+
# @param InstanceId: 实例 ID
|
|
2414
|
+
# @type InstanceId: String
|
|
2415
|
+
# @param Limit: 查询条数
|
|
2416
|
+
# @type Limit: Integer
|
|
2417
|
+
# @param Offset: 页码
|
|
2418
|
+
# @type Offset: Integer
|
|
2419
|
+
# @param StartTime: 下载任务的开始时间
|
|
2420
|
+
# @type StartTime: String
|
|
2421
|
+
# @param EndTime: 下载任务的结束时间
|
|
2422
|
+
# @type EndTime: String
|
|
2423
|
+
|
|
2424
|
+
attr_accessor :InstanceId, :Limit, :Offset, :StartTime, :EndTime
|
|
2425
|
+
|
|
2426
|
+
def initialize(instanceid=nil, limit=nil, offset=nil, starttime=nil, endtime=nil)
|
|
2427
|
+
@InstanceId = instanceid
|
|
2428
|
+
@Limit = limit
|
|
2429
|
+
@Offset = offset
|
|
2430
|
+
@StartTime = starttime
|
|
2431
|
+
@EndTime = endtime
|
|
2432
|
+
end
|
|
2433
|
+
|
|
2434
|
+
def deserialize(params)
|
|
2435
|
+
@InstanceId = params['InstanceId']
|
|
2436
|
+
@Limit = params['Limit']
|
|
2437
|
+
@Offset = params['Offset']
|
|
2438
|
+
@StartTime = params['StartTime']
|
|
2439
|
+
@EndTime = params['EndTime']
|
|
2440
|
+
end
|
|
2441
|
+
end
|
|
2442
|
+
|
|
2443
|
+
# DescribeLogDownloadTasks返回参数结构体
|
|
2444
|
+
class DescribeLogDownloadTasksResponse < TencentCloud::Common::AbstractModel
|
|
2445
|
+
# @param TotalCount: 数量
|
|
2446
|
+
# @type TotalCount: Integer
|
|
2447
|
+
# @param Tasks: 任务列表
|
|
2448
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2449
|
+
# @type Tasks: Array
|
|
2450
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2451
|
+
# @type RequestId: String
|
|
2452
|
+
|
|
2453
|
+
attr_accessor :TotalCount, :Tasks, :RequestId
|
|
2454
|
+
|
|
2455
|
+
def initialize(totalcount=nil, tasks=nil, requestid=nil)
|
|
2456
|
+
@TotalCount = totalcount
|
|
2457
|
+
@Tasks = tasks
|
|
2458
|
+
@RequestId = requestid
|
|
2459
|
+
end
|
|
2460
|
+
|
|
2461
|
+
def deserialize(params)
|
|
2462
|
+
@TotalCount = params['TotalCount']
|
|
2463
|
+
unless params['Tasks'].nil?
|
|
2464
|
+
@Tasks = []
|
|
2465
|
+
params['Tasks'].each do |i|
|
|
2466
|
+
task_tmp = Task.new
|
|
2467
|
+
task_tmp.deserialize(i)
|
|
2468
|
+
@Tasks << task_tmp
|
|
2469
|
+
end
|
|
2470
|
+
end
|
|
2471
|
+
@RequestId = params['RequestId']
|
|
2472
|
+
end
|
|
2473
|
+
end
|
|
2474
|
+
|
|
2475
|
+
# DescribeMongodbLogs请求参数结构体
|
|
2476
|
+
class DescribeMongodbLogsRequest < TencentCloud::Common::AbstractModel
|
|
2477
|
+
# @param InstanceId: 实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb#/)在实例列表复制实例 ID。
|
|
2478
|
+
# @type InstanceId: String
|
|
2479
|
+
# @param StartTime: 查询日志的开启时间。
|
|
2480
|
+
# - 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。
|
|
2481
|
+
# - 查询时间范围:仅支持查询最近 7 天内的日志数据。
|
|
2482
|
+
# @type StartTime: String
|
|
2483
|
+
# @param EndTime: 查询日志的结束时间。
|
|
2484
|
+
# - 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。
|
|
2485
|
+
# - 查询时间范围:仅支持查询最近 7 天内的日志数据。
|
|
2486
|
+
# @type EndTime: String
|
|
2487
|
+
# @param NodeNames: 节点 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)的**节点管理**页面获取查询的节点 ID。
|
|
2488
|
+
# @type NodeNames: Array
|
|
2489
|
+
# @param LogComponents: 日志类别。
|
|
2490
|
+
# - 日志类别包括但不限于 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)。
|
|
2491
|
+
# - 登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,也可查看**日志类别**。
|
|
2492
|
+
# @type LogComponents: Array
|
|
2493
|
+
# @param LogLevels: 日志级别。
|
|
2494
|
+
# - 日志级别按严重性从高到低依次为:FATAL、ERROR、WARNING。
|
|
2495
|
+
# - 登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,可查看**日志级别**。
|
|
2496
|
+
# @type LogLevels: Array
|
|
2497
|
+
# @param LogIds: 日志 ID。登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,可查看**日志 ID**。
|
|
2498
|
+
# @type LogIds: Array
|
|
2499
|
+
# @param LogConnections: 日志连接信息。登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb),在**日志管理**页面的**错误日志**页签,可查看**日志连接信息**。
|
|
2500
|
+
# @type LogConnections: Array
|
|
2501
|
+
# @param LogDetailParams: 指定日志筛选的字段。
|
|
2502
|
+
# @type LogDetailParams: Array
|
|
2503
|
+
# @param Offset: 偏移量,最小值为0,最大值为10000,默认值为0。
|
|
2504
|
+
# @type Offset: Integer
|
|
2505
|
+
# @param Limit: 分页大小,最小值为1,最大值为100,默认值为20。
|
|
2506
|
+
# @type Limit: Integer
|
|
2507
|
+
|
|
2508
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :NodeNames, :LogComponents, :LogLevels, :LogIds, :LogConnections, :LogDetailParams, :Offset, :Limit
|
|
2509
|
+
|
|
2510
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, nodenames=nil, logcomponents=nil, loglevels=nil, logids=nil, logconnections=nil, logdetailparams=nil, offset=nil, limit=nil)
|
|
2511
|
+
@InstanceId = instanceid
|
|
2512
|
+
@StartTime = starttime
|
|
2513
|
+
@EndTime = endtime
|
|
2514
|
+
@NodeNames = nodenames
|
|
2515
|
+
@LogComponents = logcomponents
|
|
2516
|
+
@LogLevels = loglevels
|
|
2517
|
+
@LogIds = logids
|
|
2518
|
+
@LogConnections = logconnections
|
|
2519
|
+
@LogDetailParams = logdetailparams
|
|
2520
|
+
@Offset = offset
|
|
2521
|
+
@Limit = limit
|
|
2522
|
+
end
|
|
2523
|
+
|
|
2524
|
+
def deserialize(params)
|
|
2525
|
+
@InstanceId = params['InstanceId']
|
|
2526
|
+
@StartTime = params['StartTime']
|
|
2527
|
+
@EndTime = params['EndTime']
|
|
2528
|
+
@NodeNames = params['NodeNames']
|
|
2529
|
+
@LogComponents = params['LogComponents']
|
|
2530
|
+
@LogLevels = params['LogLevels']
|
|
2531
|
+
@LogIds = params['LogIds']
|
|
2532
|
+
@LogConnections = params['LogConnections']
|
|
2533
|
+
@LogDetailParams = params['LogDetailParams']
|
|
2534
|
+
@Offset = params['Offset']
|
|
2535
|
+
@Limit = params['Limit']
|
|
2536
|
+
end
|
|
2537
|
+
end
|
|
2538
|
+
|
|
2539
|
+
# DescribeMongodbLogs返回参数结构体
|
|
2540
|
+
class DescribeMongodbLogsResponse < TencentCloud::Common::AbstractModel
|
|
2541
|
+
# @param TotalCount: 日志总数。
|
|
2542
|
+
# @type TotalCount: Integer
|
|
2543
|
+
# @param LogList: 日志详情列表。
|
|
2544
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2545
|
+
# @type LogList: Array
|
|
2546
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2547
|
+
# @type RequestId: String
|
|
2548
|
+
|
|
2549
|
+
attr_accessor :TotalCount, :LogList, :RequestId
|
|
2550
|
+
|
|
2551
|
+
def initialize(totalcount=nil, loglist=nil, requestid=nil)
|
|
2552
|
+
@TotalCount = totalcount
|
|
2553
|
+
@LogList = loglist
|
|
2554
|
+
@RequestId = requestid
|
|
2555
|
+
end
|
|
2556
|
+
|
|
2557
|
+
def deserialize(params)
|
|
2558
|
+
@TotalCount = params['TotalCount']
|
|
2559
|
+
unless params['LogList'].nil?
|
|
2560
|
+
@LogList = []
|
|
2561
|
+
params['LogList'].each do |i|
|
|
2562
|
+
loginfo_tmp = LogInfo.new
|
|
2563
|
+
loginfo_tmp.deserialize(i)
|
|
2564
|
+
@LogList << loginfo_tmp
|
|
2565
|
+
end
|
|
2566
|
+
end
|
|
2567
|
+
@RequestId = params['RequestId']
|
|
2568
|
+
end
|
|
2569
|
+
end
|
|
2570
|
+
|
|
2303
2571
|
# DescribeSecurityGroup请求参数结构体
|
|
2304
2572
|
class DescribeSecurityGroupRequest < TencentCloud::Common::AbstractModel
|
|
2305
2573
|
# @param InstanceId: 实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
@@ -3659,6 +3927,48 @@ module TencentCloud
|
|
|
3659
3927
|
end
|
|
3660
3928
|
end
|
|
3661
3929
|
|
|
3930
|
+
# 日志详情
|
|
3931
|
+
class LogInfo < TencentCloud::Common::AbstractModel
|
|
3932
|
+
# @param LogComponent: 日志类别
|
|
3933
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3934
|
+
# @type LogComponent: String
|
|
3935
|
+
# @param LogLevel: 日志级别
|
|
3936
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3937
|
+
# @type LogLevel: String
|
|
3938
|
+
# @param LogTime: 日志产生时间
|
|
3939
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3940
|
+
# @type LogTime: String
|
|
3941
|
+
# @param LogDetail: 日志详情
|
|
3942
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3943
|
+
# @type LogDetail: String
|
|
3944
|
+
# @param LogConnection: 日志连接信息
|
|
3945
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3946
|
+
# @type LogConnection: String
|
|
3947
|
+
# @param LogId: 日志id
|
|
3948
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3949
|
+
# @type LogId: String
|
|
3950
|
+
|
|
3951
|
+
attr_accessor :LogComponent, :LogLevel, :LogTime, :LogDetail, :LogConnection, :LogId
|
|
3952
|
+
|
|
3953
|
+
def initialize(logcomponent=nil, loglevel=nil, logtime=nil, logdetail=nil, logconnection=nil, logid=nil)
|
|
3954
|
+
@LogComponent = logcomponent
|
|
3955
|
+
@LogLevel = loglevel
|
|
3956
|
+
@LogTime = logtime
|
|
3957
|
+
@LogDetail = logdetail
|
|
3958
|
+
@LogConnection = logconnection
|
|
3959
|
+
@LogId = logid
|
|
3960
|
+
end
|
|
3961
|
+
|
|
3962
|
+
def deserialize(params)
|
|
3963
|
+
@LogComponent = params['LogComponent']
|
|
3964
|
+
@LogLevel = params['LogLevel']
|
|
3965
|
+
@LogTime = params['LogTime']
|
|
3966
|
+
@LogDetail = params['LogDetail']
|
|
3967
|
+
@LogConnection = params['LogConnection']
|
|
3968
|
+
@LogId = params['LogId']
|
|
3969
|
+
end
|
|
3970
|
+
end
|
|
3971
|
+
|
|
3662
3972
|
# ModifyDBInstanceNetworkAddress请求参数结构体
|
|
3663
3973
|
class ModifyDBInstanceNetworkAddressRequest < TencentCloud::Common::AbstractModel
|
|
3664
3974
|
# @param InstanceId: 指定需修改网络的实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
@@ -3849,8 +4159,8 @@ module TencentCloud
|
|
|
3849
4159
|
|
|
3850
4160
|
attr_accessor :InstanceId, :Memory, :Volume, :OplogSize, :NodeNum, :ReplicateSetNum, :InMaintenance, :MongosMemory, :AddNodeList, :RemoveNodeList
|
|
3851
4161
|
extend Gem::Deprecate
|
|
3852
|
-
deprecate :OplogSize, :none, 2025,
|
|
3853
|
-
deprecate :OplogSize=, :none, 2025,
|
|
4162
|
+
deprecate :OplogSize, :none, 2025, 11
|
|
4163
|
+
deprecate :OplogSize=, :none, 2025, 11
|
|
3854
4164
|
|
|
3855
4165
|
def initialize(instanceid=nil, memory=nil, volume=nil, oplogsize=nil, nodenum=nil, replicatesetnum=nil, inmaintenance=nil, mongosmemory=nil, addnodelist=nil, removenodelist=nil)
|
|
3856
4166
|
@InstanceId = instanceid
|
|
@@ -5032,6 +5342,56 @@ module TencentCloud
|
|
|
5032
5342
|
end
|
|
5033
5343
|
end
|
|
5034
5344
|
|
|
5345
|
+
# 日志下载任务描述
|
|
5346
|
+
class Task < TencentCloud::Common::AbstractModel
|
|
5347
|
+
# @param TaskType: 下载任务类型,0:慢日志,1:错误日志
|
|
5348
|
+
# @type TaskType: Integer
|
|
5349
|
+
# @param TaskId: 任务ID
|
|
5350
|
+
# @type TaskId: String
|
|
5351
|
+
# @param CreateTime: 创建时间
|
|
5352
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5353
|
+
# @type CreateTime: String
|
|
5354
|
+
# @param UpdateTime: 更新时间
|
|
5355
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5356
|
+
# @type UpdateTime: String
|
|
5357
|
+
# @param FileSize: 文件大小
|
|
5358
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5359
|
+
# @type FileSize: Integer
|
|
5360
|
+
# @param Status: 任务状态,0:初始化,1:运行中,2:成功,3:失败
|
|
5361
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5362
|
+
# @type Status: Integer
|
|
5363
|
+
# @param Percent: 百分比
|
|
5364
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5365
|
+
# @type Percent: Integer
|
|
5366
|
+
# @param Url: 下载链接
|
|
5367
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5368
|
+
# @type Url: String
|
|
5369
|
+
|
|
5370
|
+
attr_accessor :TaskType, :TaskId, :CreateTime, :UpdateTime, :FileSize, :Status, :Percent, :Url
|
|
5371
|
+
|
|
5372
|
+
def initialize(tasktype=nil, taskid=nil, createtime=nil, updatetime=nil, filesize=nil, status=nil, percent=nil, url=nil)
|
|
5373
|
+
@TaskType = tasktype
|
|
5374
|
+
@TaskId = taskid
|
|
5375
|
+
@CreateTime = createtime
|
|
5376
|
+
@UpdateTime = updatetime
|
|
5377
|
+
@FileSize = filesize
|
|
5378
|
+
@Status = status
|
|
5379
|
+
@Percent = percent
|
|
5380
|
+
@Url = url
|
|
5381
|
+
end
|
|
5382
|
+
|
|
5383
|
+
def deserialize(params)
|
|
5384
|
+
@TaskType = params['TaskType']
|
|
5385
|
+
@TaskId = params['TaskId']
|
|
5386
|
+
@CreateTime = params['CreateTime']
|
|
5387
|
+
@UpdateTime = params['UpdateTime']
|
|
5388
|
+
@FileSize = params['FileSize']
|
|
5389
|
+
@Status = params['Status']
|
|
5390
|
+
@Percent = params['Percent']
|
|
5391
|
+
@Url = params['Url']
|
|
5392
|
+
end
|
|
5393
|
+
end
|
|
5394
|
+
|
|
5035
5395
|
# TerminateDBInstances请求参数结构体
|
|
5036
5396
|
class TerminateDBInstancesRequest < TencentCloud::Common::AbstractModel
|
|
5037
5397
|
# @param InstanceId: 指定预隔离实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制预隔离实例 ID。
|
|
@@ -5064,6 +5424,90 @@ module TencentCloud
|
|
|
5064
5424
|
end
|
|
5065
5425
|
end
|
|
5066
5426
|
|
|
5427
|
+
# UpgradeDBInstanceKernelVersion请求参数结构体
|
|
5428
|
+
class UpgradeDBInstanceKernelVersionRequest < TencentCloud::Common::AbstractModel
|
|
5429
|
+
# @param InstanceId: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
|
|
5430
|
+
# @type InstanceId: String
|
|
5431
|
+
# @param InMaintenance: 是否维护时间内升级。0-否,1-是
|
|
5432
|
+
# @type InMaintenance: Integer
|
|
5433
|
+
|
|
5434
|
+
attr_accessor :InstanceId, :InMaintenance
|
|
5435
|
+
|
|
5436
|
+
def initialize(instanceid=nil, inmaintenance=nil)
|
|
5437
|
+
@InstanceId = instanceid
|
|
5438
|
+
@InMaintenance = inmaintenance
|
|
5439
|
+
end
|
|
5440
|
+
|
|
5441
|
+
def deserialize(params)
|
|
5442
|
+
@InstanceId = params['InstanceId']
|
|
5443
|
+
@InMaintenance = params['InMaintenance']
|
|
5444
|
+
end
|
|
5445
|
+
end
|
|
5446
|
+
|
|
5447
|
+
# UpgradeDBInstanceKernelVersion返回参数结构体
|
|
5448
|
+
class UpgradeDBInstanceKernelVersionResponse < TencentCloud::Common::AbstractModel
|
|
5449
|
+
# @param FlowId: 异步流程任务ID
|
|
5450
|
+
# @type FlowId: Integer
|
|
5451
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5452
|
+
# @type RequestId: String
|
|
5453
|
+
|
|
5454
|
+
attr_accessor :FlowId, :RequestId
|
|
5455
|
+
|
|
5456
|
+
def initialize(flowid=nil, requestid=nil)
|
|
5457
|
+
@FlowId = flowid
|
|
5458
|
+
@RequestId = requestid
|
|
5459
|
+
end
|
|
5460
|
+
|
|
5461
|
+
def deserialize(params)
|
|
5462
|
+
@FlowId = params['FlowId']
|
|
5463
|
+
@RequestId = params['RequestId']
|
|
5464
|
+
end
|
|
5465
|
+
end
|
|
5466
|
+
|
|
5467
|
+
# UpgradeDbInstanceVersion请求参数结构体
|
|
5468
|
+
class UpgradeDbInstanceVersionRequest < TencentCloud::Common::AbstractModel
|
|
5469
|
+
# @param InstanceId: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同。
|
|
5470
|
+
# @type InstanceId: String
|
|
5471
|
+
# @param MongoVersion: 新升级的数据库版本,当前仅支持MONGO_40_WT(MongoDB 4.0 WiredTiger存储引擎版本)及MONGO_42_WT(MongoDB 4.0 WiredTiger存储引擎版本)。
|
|
5472
|
+
# @type MongoVersion: String
|
|
5473
|
+
# @param InMaintenance: 是否在维护时间内升级。0-立即升级 1-维护时间内升级
|
|
5474
|
+
# @type InMaintenance: Integer
|
|
5475
|
+
|
|
5476
|
+
attr_accessor :InstanceId, :MongoVersion, :InMaintenance
|
|
5477
|
+
|
|
5478
|
+
def initialize(instanceid=nil, mongoversion=nil, inmaintenance=nil)
|
|
5479
|
+
@InstanceId = instanceid
|
|
5480
|
+
@MongoVersion = mongoversion
|
|
5481
|
+
@InMaintenance = inmaintenance
|
|
5482
|
+
end
|
|
5483
|
+
|
|
5484
|
+
def deserialize(params)
|
|
5485
|
+
@InstanceId = params['InstanceId']
|
|
5486
|
+
@MongoVersion = params['MongoVersion']
|
|
5487
|
+
@InMaintenance = params['InMaintenance']
|
|
5488
|
+
end
|
|
5489
|
+
end
|
|
5490
|
+
|
|
5491
|
+
# UpgradeDbInstanceVersion返回参数结构体
|
|
5492
|
+
class UpgradeDbInstanceVersionResponse < TencentCloud::Common::AbstractModel
|
|
5493
|
+
# @param FlowId: 异步流程任务ID
|
|
5494
|
+
# @type FlowId: Integer
|
|
5495
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5496
|
+
# @type RequestId: String
|
|
5497
|
+
|
|
5498
|
+
attr_accessor :FlowId, :RequestId
|
|
5499
|
+
|
|
5500
|
+
def initialize(flowid=nil, requestid=nil)
|
|
5501
|
+
@FlowId = flowid
|
|
5502
|
+
@RequestId = requestid
|
|
5503
|
+
end
|
|
5504
|
+
|
|
5505
|
+
def deserialize(params)
|
|
5506
|
+
@FlowId = params['FlowId']
|
|
5507
|
+
@RequestId = params['RequestId']
|
|
5508
|
+
end
|
|
5509
|
+
end
|
|
5510
|
+
|
|
5067
5511
|
# 账户基本信息
|
|
5068
5512
|
class UserInfo < TencentCloud::Common::AbstractModel
|
|
5069
5513
|
# @param UserName: 账号名。
|
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.
|
|
4
|
+
version: 3.0.1161
|
|
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
|
+
date: 2025-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,11 +33,11 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
+
- lib/v20190725/client.rb
|
|
37
|
+
- lib/v20190725/models.rb
|
|
36
38
|
- lib/tencentcloud-sdk-mongodb.rb
|
|
37
39
|
- lib/v20180408/client.rb
|
|
38
40
|
- lib/v20180408/models.rb
|
|
39
|
-
- lib/v20190725/client.rb
|
|
40
|
-
- lib/v20190725/models.rb
|
|
41
41
|
- lib/VERSION
|
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
43
43
|
licenses:
|