tencentcloud-sdk-mongodb 1.0.200

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.
@@ -0,0 +1,2523 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Mongodb
19
+ module V20190725
20
+ # AssignProject请求参数结构体
21
+ class AssignProjectRequest < TencentCloud::Common::AbstractModel
22
+ # @param InstanceIds: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
23
+ # @type InstanceIds: Array
24
+ # @param ProjectId: 项目ID
25
+ # @type ProjectId: Integer
26
+
27
+ attr_accessor :InstanceIds, :ProjectId
28
+
29
+ def initialize(instanceids=nil, projectid=nil)
30
+ @InstanceIds = instanceids
31
+ @ProjectId = projectid
32
+ end
33
+
34
+ def deserialize(params)
35
+ @InstanceIds = params['InstanceIds']
36
+ @ProjectId = params['ProjectId']
37
+ end
38
+ end
39
+
40
+ # AssignProject返回参数结构体
41
+ class AssignProjectResponse < TencentCloud::Common::AbstractModel
42
+ # @param FlowIds: 返回的异步任务ID列表
43
+ # @type FlowIds: Array
44
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
45
+ # @type RequestId: String
46
+
47
+ attr_accessor :FlowIds, :RequestId
48
+
49
+ def initialize(flowids=nil, requestid=nil)
50
+ @FlowIds = flowids
51
+ @RequestId = requestid
52
+ end
53
+
54
+ def deserialize(params)
55
+ @FlowIds = params['FlowIds']
56
+ @RequestId = params['RequestId']
57
+ end
58
+ end
59
+
60
+ # 备份下载任务
61
+ class BackupDownloadTask < TencentCloud::Common::AbstractModel
62
+ # @param CreateTime: 任务创建时间
63
+ # @type CreateTime: String
64
+ # @param BackupName: 备份文件名
65
+ # @type BackupName: String
66
+ # @param ReplicaSetId: 分片名称
67
+ # @type ReplicaSetId: String
68
+ # @param BackupSize: 备份数据大小,单位为字节
69
+ # @type BackupSize: Integer
70
+ # @param Status: 任务状态。0-等待执行,1-正在下载,2-下载完成,3-下载失败,4-等待重试
71
+ # @type Status: Integer
72
+ # @param Percent: 任务进度百分比
73
+ # @type Percent: Integer
74
+ # @param TimeSpend: 耗时,单位为秒
75
+ # @type TimeSpend: Integer
76
+ # @param Url: 备份数据下载链接
77
+ # @type Url: String
78
+
79
+ attr_accessor :CreateTime, :BackupName, :ReplicaSetId, :BackupSize, :Status, :Percent, :TimeSpend, :Url
80
+
81
+ def initialize(createtime=nil, backupname=nil, replicasetid=nil, backupsize=nil, status=nil, percent=nil, timespend=nil, url=nil)
82
+ @CreateTime = createtime
83
+ @BackupName = backupname
84
+ @ReplicaSetId = replicasetid
85
+ @BackupSize = backupsize
86
+ @Status = status
87
+ @Percent = percent
88
+ @TimeSpend = timespend
89
+ @Url = url
90
+ end
91
+
92
+ def deserialize(params)
93
+ @CreateTime = params['CreateTime']
94
+ @BackupName = params['BackupName']
95
+ @ReplicaSetId = params['ReplicaSetId']
96
+ @BackupSize = params['BackupSize']
97
+ @Status = params['Status']
98
+ @Percent = params['Percent']
99
+ @TimeSpend = params['TimeSpend']
100
+ @Url = params['Url']
101
+ end
102
+ end
103
+
104
+ # 创建备份下载任务结果
105
+ class BackupDownloadTaskStatus < TencentCloud::Common::AbstractModel
106
+ # @param ReplicaSetId: 分片名
107
+ # @type ReplicaSetId: String
108
+ # @param Status: 任务当前状态。0-等待执行,1-正在下载,2-下载完成,3-下载失败,4-等待重试
109
+ # @type Status: Integer
110
+
111
+ attr_accessor :ReplicaSetId, :Status
112
+
113
+ def initialize(replicasetid=nil, status=nil)
114
+ @ReplicaSetId = replicasetid
115
+ @Status = status
116
+ end
117
+
118
+ def deserialize(params)
119
+ @ReplicaSetId = params['ReplicaSetId']
120
+ @Status = params['Status']
121
+ end
122
+ end
123
+
124
+ # 备份文件存储信息
125
+ class BackupFile < TencentCloud::Common::AbstractModel
126
+ # @param ReplicateSetId: 备份文件所属的副本集/分片ID
127
+ # @type ReplicateSetId: String
128
+ # @param File: 备份文件保存路径
129
+ # @type File: String
130
+
131
+ attr_accessor :ReplicateSetId, :File
132
+
133
+ def initialize(replicatesetid=nil, file=nil)
134
+ @ReplicateSetId = replicatesetid
135
+ @File = file
136
+ end
137
+
138
+ def deserialize(params)
139
+ @ReplicateSetId = params['ReplicateSetId']
140
+ @File = params['File']
141
+ end
142
+ end
143
+
144
+ # 备份信息
145
+ class BackupInfo < TencentCloud::Common::AbstractModel
146
+ # @param InstanceId: 实例ID
147
+ # @type InstanceId: String
148
+ # @param BackupType: 备份方式,0-自动备份,1-手动备份
149
+ # @type BackupType: Integer
150
+ # @param BackupName: 备份名称
151
+ # @type BackupName: String
152
+ # @param BackupDesc: 备份备注
153
+ # 注意:此字段可能返回 null,表示取不到有效值。
154
+ # @type BackupDesc: String
155
+ # @param BackupSize: 备份文件大小,单位KB
156
+ # 注意:此字段可能返回 null,表示取不到有效值。
157
+ # @type BackupSize: Integer
158
+ # @param StartTime: 备份开始时间
159
+ # 注意:此字段可能返回 null,表示取不到有效值。
160
+ # @type StartTime: String
161
+ # @param EndTime: 备份结束时间
162
+ # 注意:此字段可能返回 null,表示取不到有效值。
163
+ # @type EndTime: String
164
+ # @param Status: 备份状态,1-备份中,2-备份成功
165
+ # @type Status: Integer
166
+ # @param BackupMethod: 备份方法,0-逻辑备份,1-物理备份
167
+ # @type BackupMethod: Integer
168
+
169
+ attr_accessor :InstanceId, :BackupType, :BackupName, :BackupDesc, :BackupSize, :StartTime, :EndTime, :Status, :BackupMethod
170
+
171
+ def initialize(instanceid=nil, backuptype=nil, backupname=nil, backupdesc=nil, backupsize=nil, starttime=nil, endtime=nil, status=nil, backupmethod=nil)
172
+ @InstanceId = instanceid
173
+ @BackupType = backuptype
174
+ @BackupName = backupname
175
+ @BackupDesc = backupdesc
176
+ @BackupSize = backupsize
177
+ @StartTime = starttime
178
+ @EndTime = endtime
179
+ @Status = status
180
+ @BackupMethod = backupmethod
181
+ end
182
+
183
+ def deserialize(params)
184
+ @InstanceId = params['InstanceId']
185
+ @BackupType = params['BackupType']
186
+ @BackupName = params['BackupName']
187
+ @BackupDesc = params['BackupDesc']
188
+ @BackupSize = params['BackupSize']
189
+ @StartTime = params['StartTime']
190
+ @EndTime = params['EndTime']
191
+ @Status = params['Status']
192
+ @BackupMethod = params['BackupMethod']
193
+ end
194
+ end
195
+
196
+ # 客户端连接信息,包括客户端IP和连接数
197
+ class ClientConnection < TencentCloud::Common::AbstractModel
198
+ # @param IP: 连接的客户端IP
199
+ # @type IP: String
200
+ # @param Count: 对应客户端IP的连接数
201
+ # @type Count: Integer
202
+
203
+ attr_accessor :IP, :Count
204
+
205
+ def initialize(ip=nil, count=nil)
206
+ @IP = ip
207
+ @Count = count
208
+ end
209
+
210
+ def deserialize(params)
211
+ @IP = params['IP']
212
+ @Count = params['Count']
213
+ end
214
+ end
215
+
216
+ # CreateBackupDBInstance请求参数结构体
217
+ class CreateBackupDBInstanceRequest < TencentCloud::Common::AbstractModel
218
+ # @param InstanceId: 实例id
219
+ # @type InstanceId: String
220
+ # @param BackupMethod: 0-逻辑备份,1-物理备份
221
+ # @type BackupMethod: Integer
222
+ # @param BackupRemark: 备份备注
223
+ # @type BackupRemark: String
224
+
225
+ attr_accessor :InstanceId, :BackupMethod, :BackupRemark
226
+
227
+ def initialize(instanceid=nil, backupmethod=nil, backupremark=nil)
228
+ @InstanceId = instanceid
229
+ @BackupMethod = backupmethod
230
+ @BackupRemark = backupremark
231
+ end
232
+
233
+ def deserialize(params)
234
+ @InstanceId = params['InstanceId']
235
+ @BackupMethod = params['BackupMethod']
236
+ @BackupRemark = params['BackupRemark']
237
+ end
238
+ end
239
+
240
+ # CreateBackupDBInstance返回参数结构体
241
+ class CreateBackupDBInstanceResponse < TencentCloud::Common::AbstractModel
242
+ # @param AsyncRequestId: 查询备份流程的状态
243
+ # @type AsyncRequestId: String
244
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
245
+ # @type RequestId: String
246
+
247
+ attr_accessor :AsyncRequestId, :RequestId
248
+
249
+ def initialize(asyncrequestid=nil, requestid=nil)
250
+ @AsyncRequestId = asyncrequestid
251
+ @RequestId = requestid
252
+ end
253
+
254
+ def deserialize(params)
255
+ @AsyncRequestId = params['AsyncRequestId']
256
+ @RequestId = params['RequestId']
257
+ end
258
+ end
259
+
260
+ # CreateBackupDownloadTask请求参数结构体
261
+ class CreateBackupDownloadTaskRequest < TencentCloud::Common::AbstractModel
262
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
263
+ # @type InstanceId: String
264
+ # @param BackupName: 要下载的备份文件名,可通过DescribeDBBackups接口获取
265
+ # @type BackupName: String
266
+ # @param BackupSets: 下载备份的分片列表
267
+ # @type BackupSets: Array
268
+
269
+ attr_accessor :InstanceId, :BackupName, :BackupSets
270
+
271
+ def initialize(instanceid=nil, backupname=nil, backupsets=nil)
272
+ @InstanceId = instanceid
273
+ @BackupName = backupname
274
+ @BackupSets = backupsets
275
+ end
276
+
277
+ def deserialize(params)
278
+ @InstanceId = params['InstanceId']
279
+ @BackupName = params['BackupName']
280
+ unless params['BackupSets'].nil?
281
+ @BackupSets = []
282
+ params['BackupSets'].each do |i|
283
+ replicasetinfo_tmp = ReplicaSetInfo.new
284
+ replicasetinfo_tmp.deserialize(i)
285
+ @BackupSets << replicasetinfo_tmp
286
+ end
287
+ end
288
+ end
289
+ end
290
+
291
+ # CreateBackupDownloadTask返回参数结构体
292
+ class CreateBackupDownloadTaskResponse < TencentCloud::Common::AbstractModel
293
+ # @param Tasks: 下载任务状态
294
+ # @type Tasks: Array
295
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
296
+ # @type RequestId: String
297
+
298
+ attr_accessor :Tasks, :RequestId
299
+
300
+ def initialize(tasks=nil, requestid=nil)
301
+ @Tasks = tasks
302
+ @RequestId = requestid
303
+ end
304
+
305
+ def deserialize(params)
306
+ unless params['Tasks'].nil?
307
+ @Tasks = []
308
+ params['Tasks'].each do |i|
309
+ backupdownloadtaskstatus_tmp = BackupDownloadTaskStatus.new
310
+ backupdownloadtaskstatus_tmp.deserialize(i)
311
+ @Tasks << backupdownloadtaskstatus_tmp
312
+ end
313
+ end
314
+ @RequestId = params['RequestId']
315
+ end
316
+ end
317
+
318
+ # CreateDBInstanceHour请求参数结构体
319
+ class CreateDBInstanceHourRequest < TencentCloud::Common::AbstractModel
320
+ # @param Memory: 实例内存大小,单位:GB
321
+ # @type Memory: Integer
322
+ # @param Volume: 实例硬盘大小,单位:GB
323
+ # @type Volume: Integer
324
+ # @param ReplicateSetNum: 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数
325
+ # @type ReplicateSetNum: Integer
326
+ # @param NodeNum: 每个副本集内节点个数,具体参照查询云数据库的售卖规格返回参数
327
+ # @type NodeNum: Integer
328
+ # @param MongoVersion: 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本,MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本
329
+ # @type MongoVersion: String
330
+ # @param MachineCode: 机器类型,HIO:高IO型;HIO10G:高IO万兆
331
+ # @type MachineCode: String
332
+ # @param GoodsNum: 实例数量,最小值1,最大值为10
333
+ # @type GoodsNum: Integer
334
+ # @param Zone: 可用区信息,格式如:ap-guangzhou-2。注:此参数填写的是主可用区,如果选择多可用区部署,Zone必须是AvailabilityZoneList中的一个
335
+ # @type Zone: String
336
+ # @param ClusterType: 实例类型,REPLSET-副本集,SHARD-分片集群
337
+ # @type ClusterType: String
338
+ # @param VpcId: 私有网络ID,如果不设置该参数则默认选择基础网络
339
+ # @type VpcId: String
340
+ # @param SubnetId: 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
341
+ # @type SubnetId: String
342
+ # @param Password: 实例密码,不设置该参数则默认密码规则为 实例ID+"@"+主账户uin。举例实例id为cmgo-higv73ed,uin为100000001,则默认密码为"cmgo-higv73ed@100000001"。密码必须是8-16位字符,且至少包含字母、数字和字符 !@#%^*() 中的两种
343
+ # @type Password: String
344
+ # @param ProjectId: 项目ID,不设置为默认项目
345
+ # @type ProjectId: Integer
346
+ # @param Tags: 实例标签信息
347
+ # @type Tags: Array
348
+ # @param Clone: 1:正式实例,2:临时实例,3:只读实例,4:灾备实例,5:克隆实例
349
+ # @type Clone: Integer
350
+ # @param Father: 父实例Id,当Clone为3或者4时,这个必须填
351
+ # @type Father: String
352
+ # @param SecurityGroup: 安全组
353
+ # @type SecurityGroup: Array
354
+ # @param RestoreTime: 克隆实例回档时间。若是克隆实例,则必须填写,示例:2021-08-13 16:30:00。注:只能回档7天内的时间点
355
+ # @type RestoreTime: String
356
+ # @param InstanceName: 实例名称。注:名称只支持长度为60个字符的中文、英文、数字、下划线_、分隔符-
357
+ # @type InstanceName: String
358
+ # @param AvailabilityZoneList: 多可用区部署的节点列表,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。注:1、多可用区部署节点只能部署在3个不同可用区;2、为了保障跨可用区切换,不支持将集群的大多数节点部署在同一个可用区(如3节点集群不支持2个节点部署在同一个区);3、不支持4.2及以上版本;4、不支持只读灾备实例;5、不能选择基础网络
359
+ # @type AvailabilityZoneList: Array
360
+ # @param MongosCpu: mongos cpu数量,购买MongoDB 4.2 WiredTiger存储引擎版本的分片集群时必须填写,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果
361
+ # @type MongosCpu: Integer
362
+ # @param MongosMemory: mongos 内存大小,购买MongoDB 4.2 WiredTiger存储引擎版本的分片集群时必须填写,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果
363
+ # @type MongosMemory: Integer
364
+ # @param MongosNodeNum: mongos 数量,购买MongoDB 4.2 WiredTiger存储引擎版本的分片集群时必须填写,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。注:为了保障高可用,最低需要购买3个mongos,上限为32个
365
+ # @type MongosNodeNum: Integer
366
+
367
+ attr_accessor :Memory, :Volume, :ReplicateSetNum, :NodeNum, :MongoVersion, :MachineCode, :GoodsNum, :Zone, :ClusterType, :VpcId, :SubnetId, :Password, :ProjectId, :Tags, :Clone, :Father, :SecurityGroup, :RestoreTime, :InstanceName, :AvailabilityZoneList, :MongosCpu, :MongosMemory, :MongosNodeNum
368
+
369
+ def initialize(memory=nil, volume=nil, replicatesetnum=nil, nodenum=nil, mongoversion=nil, machinecode=nil, goodsnum=nil, zone=nil, clustertype=nil, vpcid=nil, subnetid=nil, password=nil, projectid=nil, tags=nil, clone=nil, father=nil, securitygroup=nil, restoretime=nil, instancename=nil, availabilityzonelist=nil, mongoscpu=nil, mongosmemory=nil, mongosnodenum=nil)
370
+ @Memory = memory
371
+ @Volume = volume
372
+ @ReplicateSetNum = replicatesetnum
373
+ @NodeNum = nodenum
374
+ @MongoVersion = mongoversion
375
+ @MachineCode = machinecode
376
+ @GoodsNum = goodsnum
377
+ @Zone = zone
378
+ @ClusterType = clustertype
379
+ @VpcId = vpcid
380
+ @SubnetId = subnetid
381
+ @Password = password
382
+ @ProjectId = projectid
383
+ @Tags = tags
384
+ @Clone = clone
385
+ @Father = father
386
+ @SecurityGroup = securitygroup
387
+ @RestoreTime = restoretime
388
+ @InstanceName = instancename
389
+ @AvailabilityZoneList = availabilityzonelist
390
+ @MongosCpu = mongoscpu
391
+ @MongosMemory = mongosmemory
392
+ @MongosNodeNum = mongosnodenum
393
+ end
394
+
395
+ def deserialize(params)
396
+ @Memory = params['Memory']
397
+ @Volume = params['Volume']
398
+ @ReplicateSetNum = params['ReplicateSetNum']
399
+ @NodeNum = params['NodeNum']
400
+ @MongoVersion = params['MongoVersion']
401
+ @MachineCode = params['MachineCode']
402
+ @GoodsNum = params['GoodsNum']
403
+ @Zone = params['Zone']
404
+ @ClusterType = params['ClusterType']
405
+ @VpcId = params['VpcId']
406
+ @SubnetId = params['SubnetId']
407
+ @Password = params['Password']
408
+ @ProjectId = params['ProjectId']
409
+ unless params['Tags'].nil?
410
+ @Tags = []
411
+ params['Tags'].each do |i|
412
+ taginfo_tmp = TagInfo.new
413
+ taginfo_tmp.deserialize(i)
414
+ @Tags << taginfo_tmp
415
+ end
416
+ end
417
+ @Clone = params['Clone']
418
+ @Father = params['Father']
419
+ @SecurityGroup = params['SecurityGroup']
420
+ @RestoreTime = params['RestoreTime']
421
+ @InstanceName = params['InstanceName']
422
+ @AvailabilityZoneList = params['AvailabilityZoneList']
423
+ @MongosCpu = params['MongosCpu']
424
+ @MongosMemory = params['MongosMemory']
425
+ @MongosNodeNum = params['MongosNodeNum']
426
+ end
427
+ end
428
+
429
+ # CreateDBInstanceHour返回参数结构体
430
+ class CreateDBInstanceHourResponse < TencentCloud::Common::AbstractModel
431
+ # @param DealId: 订单ID
432
+ # @type DealId: String
433
+ # @param InstanceIds: 创建的实例ID列表
434
+ # @type InstanceIds: Array
435
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
436
+ # @type RequestId: String
437
+
438
+ attr_accessor :DealId, :InstanceIds, :RequestId
439
+
440
+ def initialize(dealid=nil, instanceids=nil, requestid=nil)
441
+ @DealId = dealid
442
+ @InstanceIds = instanceids
443
+ @RequestId = requestid
444
+ end
445
+
446
+ def deserialize(params)
447
+ @DealId = params['DealId']
448
+ @InstanceIds = params['InstanceIds']
449
+ @RequestId = params['RequestId']
450
+ end
451
+ end
452
+
453
+ # CreateDBInstance请求参数结构体
454
+ class CreateDBInstanceRequest < TencentCloud::Common::AbstractModel
455
+ # @param NodeNum: 每个副本集内节点个数,具体参照查询云数据库的售卖规格返回参数
456
+ # @type NodeNum: Integer
457
+ # @param Memory: 实例内存大小,单位:GB
458
+ # @type Memory: Integer
459
+ # @param Volume: 实例硬盘大小,单位:GB
460
+ # @type Volume: Integer
461
+ # @param MongoVersion: 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本,MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本
462
+ # @type MongoVersion: String
463
+ # @param GoodsNum: 实例数量, 最小值1,最大值为10
464
+ # @type GoodsNum: Integer
465
+ # @param Zone: 实例所属区域名称,格式如:ap-guangzhou-2。注:此参数填写的是主可用区,如果选择多可用区部署,Zone必须是AvailabilityZoneList中的一个
466
+ # @type Zone: String
467
+ # @param Period: 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]
468
+ # @type Period: Integer
469
+ # @param MachineCode: 机器类型,HIO:高IO型;HIO10G:高IO万兆型;STDS5:标准型
470
+ # @type MachineCode: String
471
+ # @param ClusterType: 实例类型,REPLSET-副本集,SHARD-分片集群,STANDALONE-单节点
472
+ # @type ClusterType: String
473
+ # @param ReplicateSetNum: 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数;若为单节点实例,该参数设置为0
474
+ # @type ReplicateSetNum: Integer
475
+ # @param ProjectId: 项目ID,不设置为默认项目
476
+ # @type ProjectId: Integer
477
+ # @param VpcId: 私有网络 ID,如果不传则默认选择基础网络,请使用 查询私有网络列表
478
+ # @type VpcId: String
479
+ # @param SubnetId: 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 查询子网列表
480
+ # @type SubnetId: String
481
+ # @param Password: 实例密码,不设置该参数则默认密码规则为 实例ID+"@"+主账户uin。举例实例id为cmgo-higv73ed,uin为100000001,则默认密码为"cmgo-higv73ed@100000001"。密码必须是8-16位字符,且至少包含字母、数字和字符 !@#%^*() 中的两种
482
+ # @type Password: String
483
+ # @param Tags: 实例标签信息
484
+ # @type Tags: Array
485
+ # @param AutoRenewFlag: 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。默认为不自动续费
486
+ # @type AutoRenewFlag: Integer
487
+ # @param AutoVoucher: 是否自动选择代金券,可选值为:1 - 是;0 - 否; 默认为0
488
+ # @type AutoVoucher: Integer
489
+ # @param Clone: 1:正式实例,2:临时实例,3:只读实例,4:灾备实例,5:克隆实例
490
+ # @type Clone: Integer
491
+ # @param Father: 若是只读,灾备实例或克隆实例,Father必须填写,即主实例ID
492
+ # @type Father: String
493
+ # @param SecurityGroup: 安全组
494
+ # @type SecurityGroup: Array
495
+ # @param RestoreTime: 克隆实例回档时间。若是克隆实例,则必须填写,格式:2021-08-13 16:30:00。注:只能回档7天内的时间点
496
+ # @type RestoreTime: String
497
+ # @param InstanceName: 实例名称。注:名称只支持长度为60个字符的中文、英文、数字、下划线_、分隔符-
498
+ # @type InstanceName: String
499
+ # @param AvailabilityZoneList: 多可用区部署的节点列表,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。注:1、多可用区部署节点只能部署在3个不同可用区;2、为了保障跨可用区切换,不支持将集群的大多数节点部署在同一个可用区(如3节点集群不支持2个节点部署在同一个区);3、不支持4.2及以上版本;4、不支持只读灾备实例;5、不能选择基础网络
500
+ # @type AvailabilityZoneList: Array
501
+ # @param MongosCpu: mongos cpu数量,购买MongoDB 4.2 WiredTiger存储引擎版本的分片集群时必须填写,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果
502
+ # @type MongosCpu: Integer
503
+ # @param MongosMemory: mongos 内存大小,购买MongoDB 4.2 WiredTiger存储引擎版本的分片集群时必须填写,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果
504
+ # @type MongosMemory: Integer
505
+ # @param MongosNodeNum: mongos 数量,购买MongoDB 4.2 WiredTiger存储引擎版本的分片集群时必须填写,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。注:为了保障高可用,最低需要购买3个mongos,上限为32个
506
+ # @type MongosNodeNum: Integer
507
+
508
+ attr_accessor :NodeNum, :Memory, :Volume, :MongoVersion, :GoodsNum, :Zone, :Period, :MachineCode, :ClusterType, :ReplicateSetNum, :ProjectId, :VpcId, :SubnetId, :Password, :Tags, :AutoRenewFlag, :AutoVoucher, :Clone, :Father, :SecurityGroup, :RestoreTime, :InstanceName, :AvailabilityZoneList, :MongosCpu, :MongosMemory, :MongosNodeNum
509
+
510
+ def initialize(nodenum=nil, memory=nil, volume=nil, mongoversion=nil, goodsnum=nil, zone=nil, period=nil, machinecode=nil, clustertype=nil, replicatesetnum=nil, projectid=nil, vpcid=nil, subnetid=nil, password=nil, tags=nil, autorenewflag=nil, autovoucher=nil, clone=nil, father=nil, securitygroup=nil, restoretime=nil, instancename=nil, availabilityzonelist=nil, mongoscpu=nil, mongosmemory=nil, mongosnodenum=nil)
511
+ @NodeNum = nodenum
512
+ @Memory = memory
513
+ @Volume = volume
514
+ @MongoVersion = mongoversion
515
+ @GoodsNum = goodsnum
516
+ @Zone = zone
517
+ @Period = period
518
+ @MachineCode = machinecode
519
+ @ClusterType = clustertype
520
+ @ReplicateSetNum = replicatesetnum
521
+ @ProjectId = projectid
522
+ @VpcId = vpcid
523
+ @SubnetId = subnetid
524
+ @Password = password
525
+ @Tags = tags
526
+ @AutoRenewFlag = autorenewflag
527
+ @AutoVoucher = autovoucher
528
+ @Clone = clone
529
+ @Father = father
530
+ @SecurityGroup = securitygroup
531
+ @RestoreTime = restoretime
532
+ @InstanceName = instancename
533
+ @AvailabilityZoneList = availabilityzonelist
534
+ @MongosCpu = mongoscpu
535
+ @MongosMemory = mongosmemory
536
+ @MongosNodeNum = mongosnodenum
537
+ end
538
+
539
+ def deserialize(params)
540
+ @NodeNum = params['NodeNum']
541
+ @Memory = params['Memory']
542
+ @Volume = params['Volume']
543
+ @MongoVersion = params['MongoVersion']
544
+ @GoodsNum = params['GoodsNum']
545
+ @Zone = params['Zone']
546
+ @Period = params['Period']
547
+ @MachineCode = params['MachineCode']
548
+ @ClusterType = params['ClusterType']
549
+ @ReplicateSetNum = params['ReplicateSetNum']
550
+ @ProjectId = params['ProjectId']
551
+ @VpcId = params['VpcId']
552
+ @SubnetId = params['SubnetId']
553
+ @Password = params['Password']
554
+ unless params['Tags'].nil?
555
+ @Tags = []
556
+ params['Tags'].each do |i|
557
+ taginfo_tmp = TagInfo.new
558
+ taginfo_tmp.deserialize(i)
559
+ @Tags << taginfo_tmp
560
+ end
561
+ end
562
+ @AutoRenewFlag = params['AutoRenewFlag']
563
+ @AutoVoucher = params['AutoVoucher']
564
+ @Clone = params['Clone']
565
+ @Father = params['Father']
566
+ @SecurityGroup = params['SecurityGroup']
567
+ @RestoreTime = params['RestoreTime']
568
+ @InstanceName = params['InstanceName']
569
+ @AvailabilityZoneList = params['AvailabilityZoneList']
570
+ @MongosCpu = params['MongosCpu']
571
+ @MongosMemory = params['MongosMemory']
572
+ @MongosNodeNum = params['MongosNodeNum']
573
+ end
574
+ end
575
+
576
+ # CreateDBInstance返回参数结构体
577
+ class CreateDBInstanceResponse < TencentCloud::Common::AbstractModel
578
+ # @param DealId: 订单ID
579
+ # @type DealId: String
580
+ # @param InstanceIds: 创建的实例ID列表
581
+ # @type InstanceIds: Array
582
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
583
+ # @type RequestId: String
584
+
585
+ attr_accessor :DealId, :InstanceIds, :RequestId
586
+
587
+ def initialize(dealid=nil, instanceids=nil, requestid=nil)
588
+ @DealId = dealid
589
+ @InstanceIds = instanceids
590
+ @RequestId = requestid
591
+ end
592
+
593
+ def deserialize(params)
594
+ @DealId = params['DealId']
595
+ @InstanceIds = params['InstanceIds']
596
+ @RequestId = params['RequestId']
597
+ end
598
+ end
599
+
600
+ # 云数据库实例当前操作
601
+ class CurrentOp < TencentCloud::Common::AbstractModel
602
+ # @param OpId: 操作序号
603
+ # 注意:此字段可能返回 null,表示取不到有效值。
604
+ # @type OpId: Integer
605
+ # @param Ns: 操作所在的命名空间,形式如db.collection
606
+ # 注意:此字段可能返回 null,表示取不到有效值。
607
+ # @type Ns: String
608
+ # @param Query: 操作执行语句
609
+ # 注意:此字段可能返回 null,表示取不到有效值。
610
+ # @type Query: String
611
+ # @param Op: 操作类型,可能的取值:aggregate、count、delete、distinct、find、findAndModify、getMore、insert、mapReduce、update和command
612
+ # 注意:此字段可能返回 null,表示取不到有效值。
613
+ # @type Op: String
614
+ # @param ReplicaSetName: 操作所在的分片名称
615
+ # @type ReplicaSetName: String
616
+ # @param State: 筛选条件,节点状态,可能的取值为:Primary、Secondary
617
+ # 注意:此字段可能返回 null,表示取不到有效值。
618
+ # @type State: String
619
+ # @param Operation: 操作详细信息
620
+ # 注意:此字段可能返回 null,表示取不到有效值。
621
+ # @type Operation: String
622
+ # @param NodeName: 操作所在的节点名称
623
+ # @type NodeName: String
624
+ # @param MicrosecsRunning: 操作已执行时间(ms)
625
+ # 注意:此字段可能返回 null,表示取不到有效值。
626
+ # @type MicrosecsRunning: Integer
627
+
628
+ attr_accessor :OpId, :Ns, :Query, :Op, :ReplicaSetName, :State, :Operation, :NodeName, :MicrosecsRunning
629
+
630
+ def initialize(opid=nil, ns=nil, query=nil, op=nil, replicasetname=nil, state=nil, operation=nil, nodename=nil, microsecsrunning=nil)
631
+ @OpId = opid
632
+ @Ns = ns
633
+ @Query = query
634
+ @Op = op
635
+ @ReplicaSetName = replicasetname
636
+ @State = state
637
+ @Operation = operation
638
+ @NodeName = nodename
639
+ @MicrosecsRunning = microsecsrunning
640
+ end
641
+
642
+ def deserialize(params)
643
+ @OpId = params['OpId']
644
+ @Ns = params['Ns']
645
+ @Query = params['Query']
646
+ @Op = params['Op']
647
+ @ReplicaSetName = params['ReplicaSetName']
648
+ @State = params['State']
649
+ @Operation = params['Operation']
650
+ @NodeName = params['NodeName']
651
+ @MicrosecsRunning = params['MicrosecsRunning']
652
+ end
653
+ end
654
+
655
+ # 实例信息
656
+ class DBInstanceInfo < TencentCloud::Common::AbstractModel
657
+ # @param InstanceId: 实例ID
658
+ # @type InstanceId: String
659
+ # @param Region: 地域信息
660
+ # @type Region: String
661
+
662
+ attr_accessor :InstanceId, :Region
663
+
664
+ def initialize(instanceid=nil, region=nil)
665
+ @InstanceId = instanceid
666
+ @Region = region
667
+ end
668
+
669
+ def deserialize(params)
670
+ @InstanceId = params['InstanceId']
671
+ @Region = params['Region']
672
+ end
673
+ end
674
+
675
+ # 数据库实例价格
676
+ class DBInstancePrice < TencentCloud::Common::AbstractModel
677
+ # @param UnitPrice: 单价
678
+ # 注意:此字段可能返回 null,表示取不到有效值。
679
+ # @type UnitPrice: Float
680
+ # @param OriginalPrice: 原价
681
+ # @type OriginalPrice: Float
682
+ # @param DiscountPrice: 折扣加
683
+ # @type DiscountPrice: Float
684
+
685
+ attr_accessor :UnitPrice, :OriginalPrice, :DiscountPrice
686
+
687
+ def initialize(unitprice=nil, originalprice=nil, discountprice=nil)
688
+ @UnitPrice = unitprice
689
+ @OriginalPrice = originalprice
690
+ @DiscountPrice = discountprice
691
+ end
692
+
693
+ def deserialize(params)
694
+ @UnitPrice = params['UnitPrice']
695
+ @OriginalPrice = params['OriginalPrice']
696
+ @DiscountPrice = params['DiscountPrice']
697
+ end
698
+ end
699
+
700
+ # DescribeAsyncRequestInfo请求参数结构体
701
+ class DescribeAsyncRequestInfoRequest < TencentCloud::Common::AbstractModel
702
+ # @param AsyncRequestId: 异步请求Id,涉及到异步流程的接口返回,如CreateBackupDBInstance
703
+ # @type AsyncRequestId: String
704
+
705
+ attr_accessor :AsyncRequestId
706
+
707
+ def initialize(asyncrequestid=nil)
708
+ @AsyncRequestId = asyncrequestid
709
+ end
710
+
711
+ def deserialize(params)
712
+ @AsyncRequestId = params['AsyncRequestId']
713
+ end
714
+ end
715
+
716
+ # DescribeAsyncRequestInfo返回参数结构体
717
+ class DescribeAsyncRequestInfoResponse < TencentCloud::Common::AbstractModel
718
+ # @param Status: 状态。返回参数有:initial-初始化、running-运行中、paused-任务执行失败,已暂停、undoed-任务执行失败,已回滚、failed-任务执行失败, 已终止、success-成功
719
+ # @type Status: String
720
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
721
+ # @type RequestId: String
722
+
723
+ attr_accessor :Status, :RequestId
724
+
725
+ def initialize(status=nil, requestid=nil)
726
+ @Status = status
727
+ @RequestId = requestid
728
+ end
729
+
730
+ def deserialize(params)
731
+ @Status = params['Status']
732
+ @RequestId = params['RequestId']
733
+ end
734
+ end
735
+
736
+ # DescribeBackupAccess请求参数结构体
737
+ class DescribeBackupAccessRequest < TencentCloud::Common::AbstractModel
738
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
739
+ # @type InstanceId: String
740
+ # @param BackupName: 需要获取下载授权的备份文件名
741
+ # @type BackupName: String
742
+
743
+ attr_accessor :InstanceId, :BackupName
744
+
745
+ def initialize(instanceid=nil, backupname=nil)
746
+ @InstanceId = instanceid
747
+ @BackupName = backupname
748
+ end
749
+
750
+ def deserialize(params)
751
+ @InstanceId = params['InstanceId']
752
+ @BackupName = params['BackupName']
753
+ end
754
+ end
755
+
756
+ # DescribeBackupAccess返回参数结构体
757
+ class DescribeBackupAccessResponse < TencentCloud::Common::AbstractModel
758
+ # @param Region: 实例所属地域
759
+ # @type Region: String
760
+ # @param Bucket: 备份文件所在存储桶
761
+ # @type Bucket: String
762
+ # @param Files: 备份文件的存储信息
763
+ # @type Files: Array
764
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
765
+ # @type RequestId: String
766
+
767
+ attr_accessor :Region, :Bucket, :Files, :RequestId
768
+
769
+ def initialize(region=nil, bucket=nil, files=nil, requestid=nil)
770
+ @Region = region
771
+ @Bucket = bucket
772
+ @Files = files
773
+ @RequestId = requestid
774
+ end
775
+
776
+ def deserialize(params)
777
+ @Region = params['Region']
778
+ @Bucket = params['Bucket']
779
+ unless params['Files'].nil?
780
+ @Files = []
781
+ params['Files'].each do |i|
782
+ backupfile_tmp = BackupFile.new
783
+ backupfile_tmp.deserialize(i)
784
+ @Files << backupfile_tmp
785
+ end
786
+ end
787
+ @RequestId = params['RequestId']
788
+ end
789
+ end
790
+
791
+ # DescribeBackupDownloadTask请求参数结构体
792
+ class DescribeBackupDownloadTaskRequest < TencentCloud::Common::AbstractModel
793
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
794
+ # @type InstanceId: String
795
+ # @param BackupName: 备份文件名,用来过滤指定文件的下载任务
796
+ # @type BackupName: String
797
+ # @param StartTime: 指定要查询任务的时间范围,StartTime指定开始时间,不填默认不限制开始时间
798
+ # @type StartTime: String
799
+ # @param EndTime: 指定要查询任务的时间范围,EndTime指定结束时间,不填默认不限制结束时间
800
+ # @type EndTime: String
801
+ # @param Limit: 此次查询返回的条数,取值范围为1-100,默认为20
802
+ # @type Limit: Integer
803
+ # @param Offset: 指定此次查询返回的页数,默认为0
804
+ # @type Offset: Integer
805
+ # @param OrderBy: 排序字段,取值为createTime,finishTime两种,默认为createTime
806
+ # @type OrderBy: String
807
+ # @param OrderByType: 排序方式,取值为asc,desc两种,默认desc
808
+ # @type OrderByType: String
809
+ # @param Status: 根据任务状态过滤。0-等待执行,1-正在下载,2-下载完成,3-下载失败,4-等待重试。不填默认返回所有类型
810
+ # @type Status: Array
811
+
812
+ attr_accessor :InstanceId, :BackupName, :StartTime, :EndTime, :Limit, :Offset, :OrderBy, :OrderByType, :Status
813
+
814
+ def initialize(instanceid=nil, backupname=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil, status=nil)
815
+ @InstanceId = instanceid
816
+ @BackupName = backupname
817
+ @StartTime = starttime
818
+ @EndTime = endtime
819
+ @Limit = limit
820
+ @Offset = offset
821
+ @OrderBy = orderby
822
+ @OrderByType = orderbytype
823
+ @Status = status
824
+ end
825
+
826
+ def deserialize(params)
827
+ @InstanceId = params['InstanceId']
828
+ @BackupName = params['BackupName']
829
+ @StartTime = params['StartTime']
830
+ @EndTime = params['EndTime']
831
+ @Limit = params['Limit']
832
+ @Offset = params['Offset']
833
+ @OrderBy = params['OrderBy']
834
+ @OrderByType = params['OrderByType']
835
+ @Status = params['Status']
836
+ end
837
+ end
838
+
839
+ # DescribeBackupDownloadTask返回参数结构体
840
+ class DescribeBackupDownloadTaskResponse < TencentCloud::Common::AbstractModel
841
+ # @param TotalCount: 满足查询条件的所有条数
842
+ # @type TotalCount: Integer
843
+ # @param Tasks: 下载任务列表
844
+ # @type Tasks: Array
845
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
846
+ # @type RequestId: String
847
+
848
+ attr_accessor :TotalCount, :Tasks, :RequestId
849
+
850
+ def initialize(totalcount=nil, tasks=nil, requestid=nil)
851
+ @TotalCount = totalcount
852
+ @Tasks = tasks
853
+ @RequestId = requestid
854
+ end
855
+
856
+ def deserialize(params)
857
+ @TotalCount = params['TotalCount']
858
+ unless params['Tasks'].nil?
859
+ @Tasks = []
860
+ params['Tasks'].each do |i|
861
+ backupdownloadtask_tmp = BackupDownloadTask.new
862
+ backupdownloadtask_tmp.deserialize(i)
863
+ @Tasks << backupdownloadtask_tmp
864
+ end
865
+ end
866
+ @RequestId = params['RequestId']
867
+ end
868
+ end
869
+
870
+ # DescribeClientConnections请求参数结构体
871
+ class DescribeClientConnectionsRequest < TencentCloud::Common::AbstractModel
872
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
873
+ # @type InstanceId: String
874
+ # @param Limit: 查询返回记录条数,默认为10000。
875
+ # @type Limit: Integer
876
+ # @param Offset: 偏移量,默认值为0。
877
+ # @type Offset: Integer
878
+
879
+ attr_accessor :InstanceId, :Limit, :Offset
880
+
881
+ def initialize(instanceid=nil, limit=nil, offset=nil)
882
+ @InstanceId = instanceid
883
+ @Limit = limit
884
+ @Offset = offset
885
+ end
886
+
887
+ def deserialize(params)
888
+ @InstanceId = params['InstanceId']
889
+ @Limit = params['Limit']
890
+ @Offset = params['Offset']
891
+ end
892
+ end
893
+
894
+ # DescribeClientConnections返回参数结构体
895
+ class DescribeClientConnectionsResponse < TencentCloud::Common::AbstractModel
896
+ # @param Clients: 客户端连接信息,包括客户端IP和对应IP的连接数量。
897
+ # @type Clients: Array
898
+ # @param TotalCount: 满足条件的记录总条数,可用于分页查询。
899
+ # @type TotalCount: Integer
900
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
901
+ # @type RequestId: String
902
+
903
+ attr_accessor :Clients, :TotalCount, :RequestId
904
+
905
+ def initialize(clients=nil, totalcount=nil, requestid=nil)
906
+ @Clients = clients
907
+ @TotalCount = totalcount
908
+ @RequestId = requestid
909
+ end
910
+
911
+ def deserialize(params)
912
+ unless params['Clients'].nil?
913
+ @Clients = []
914
+ params['Clients'].each do |i|
915
+ clientconnection_tmp = ClientConnection.new
916
+ clientconnection_tmp.deserialize(i)
917
+ @Clients << clientconnection_tmp
918
+ end
919
+ end
920
+ @TotalCount = params['TotalCount']
921
+ @RequestId = params['RequestId']
922
+ end
923
+ end
924
+
925
+ # DescribeCurrentOp请求参数结构体
926
+ class DescribeCurrentOpRequest < TencentCloud::Common::AbstractModel
927
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
928
+ # @type InstanceId: String
929
+ # @param Ns: 筛选条件,操作所属的命名空间namespace,格式为db.collection
930
+ # @type Ns: String
931
+ # @param MillisecondRunning: 筛选条件,操作已经执行的时间(单位:毫秒),结果将返回超过设置时间的操作,默认值为0,取值范围为[0, 3600000]
932
+ # @type MillisecondRunning: Integer
933
+ # @param Op: 筛选条件,操作类型,可能的取值:none,update,insert,query,command,getmore,remove和killcursors
934
+ # @type Op: String
935
+ # @param ReplicaSetName: 筛选条件,分片名称
936
+ # @type ReplicaSetName: String
937
+ # @param State: 筛选条件,节点状态,可能的取值为:primary
938
+ # secondary
939
+ # @type State: String
940
+ # @param Limit: 单次请求返回的数量,默认值为100,取值范围为[0,100]
941
+ # @type Limit: Integer
942
+ # @param Offset: 偏移量,默认值为0,取值范围为[0,10000]
943
+ # @type Offset: Integer
944
+ # @param OrderBy: 返回结果集排序的字段,目前支持:"MicrosecsRunning"/"microsecsrunning",默认为升序排序
945
+ # @type OrderBy: String
946
+ # @param OrderByType: 返回结果集排序方式,可能的取值:"ASC"/"asc"或"DESC"/"desc"
947
+ # @type OrderByType: String
948
+
949
+ attr_accessor :InstanceId, :Ns, :MillisecondRunning, :Op, :ReplicaSetName, :State, :Limit, :Offset, :OrderBy, :OrderByType
950
+
951
+ def initialize(instanceid=nil, ns=nil, millisecondrunning=nil, op=nil, replicasetname=nil, state=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil)
952
+ @InstanceId = instanceid
953
+ @Ns = ns
954
+ @MillisecondRunning = millisecondrunning
955
+ @Op = op
956
+ @ReplicaSetName = replicasetname
957
+ @State = state
958
+ @Limit = limit
959
+ @Offset = offset
960
+ @OrderBy = orderby
961
+ @OrderByType = orderbytype
962
+ end
963
+
964
+ def deserialize(params)
965
+ @InstanceId = params['InstanceId']
966
+ @Ns = params['Ns']
967
+ @MillisecondRunning = params['MillisecondRunning']
968
+ @Op = params['Op']
969
+ @ReplicaSetName = params['ReplicaSetName']
970
+ @State = params['State']
971
+ @Limit = params['Limit']
972
+ @Offset = params['Offset']
973
+ @OrderBy = params['OrderBy']
974
+ @OrderByType = params['OrderByType']
975
+ end
976
+ end
977
+
978
+ # DescribeCurrentOp返回参数结构体
979
+ class DescribeCurrentOpResponse < TencentCloud::Common::AbstractModel
980
+ # @param TotalCount: 符合查询条件的操作总数
981
+ # @type TotalCount: Integer
982
+ # @param CurrentOps: 当前操作列表
983
+ # @type CurrentOps: Array
984
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
985
+ # @type RequestId: String
986
+
987
+ attr_accessor :TotalCount, :CurrentOps, :RequestId
988
+
989
+ def initialize(totalcount=nil, currentops=nil, requestid=nil)
990
+ @TotalCount = totalcount
991
+ @CurrentOps = currentops
992
+ @RequestId = requestid
993
+ end
994
+
995
+ def deserialize(params)
996
+ @TotalCount = params['TotalCount']
997
+ unless params['CurrentOps'].nil?
998
+ @CurrentOps = []
999
+ params['CurrentOps'].each do |i|
1000
+ currentop_tmp = CurrentOp.new
1001
+ currentop_tmp.deserialize(i)
1002
+ @CurrentOps << currentop_tmp
1003
+ end
1004
+ end
1005
+ @RequestId = params['RequestId']
1006
+ end
1007
+ end
1008
+
1009
+ # DescribeDBBackups请求参数结构体
1010
+ class DescribeDBBackupsRequest < TencentCloud::Common::AbstractModel
1011
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
1012
+ # @type InstanceId: String
1013
+ # @param BackupMethod: 备份方式,当前支持:0-逻辑备份,1-物理备份,2-所有备份。默认为逻辑备份。
1014
+ # @type BackupMethod: Integer
1015
+ # @param Limit: 分页大小,最大值为100,不设置默认查询所有。
1016
+ # @type Limit: Integer
1017
+ # @param Offset: 分页偏移量,最小值为0,默认值为0。
1018
+ # @type Offset: Integer
1019
+
1020
+ attr_accessor :InstanceId, :BackupMethod, :Limit, :Offset
1021
+
1022
+ def initialize(instanceid=nil, backupmethod=nil, limit=nil, offset=nil)
1023
+ @InstanceId = instanceid
1024
+ @BackupMethod = backupmethod
1025
+ @Limit = limit
1026
+ @Offset = offset
1027
+ end
1028
+
1029
+ def deserialize(params)
1030
+ @InstanceId = params['InstanceId']
1031
+ @BackupMethod = params['BackupMethod']
1032
+ @Limit = params['Limit']
1033
+ @Offset = params['Offset']
1034
+ end
1035
+ end
1036
+
1037
+ # DescribeDBBackups返回参数结构体
1038
+ class DescribeDBBackupsResponse < TencentCloud::Common::AbstractModel
1039
+ # @param BackupList: 备份列表
1040
+ # @type BackupList: Array
1041
+ # @param TotalCount: 备份总数
1042
+ # @type TotalCount: Integer
1043
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1044
+ # @type RequestId: String
1045
+
1046
+ attr_accessor :BackupList, :TotalCount, :RequestId
1047
+
1048
+ def initialize(backuplist=nil, totalcount=nil, requestid=nil)
1049
+ @BackupList = backuplist
1050
+ @TotalCount = totalcount
1051
+ @RequestId = requestid
1052
+ end
1053
+
1054
+ def deserialize(params)
1055
+ unless params['BackupList'].nil?
1056
+ @BackupList = []
1057
+ params['BackupList'].each do |i|
1058
+ backupinfo_tmp = BackupInfo.new
1059
+ backupinfo_tmp.deserialize(i)
1060
+ @BackupList << backupinfo_tmp
1061
+ end
1062
+ end
1063
+ @TotalCount = params['TotalCount']
1064
+ @RequestId = params['RequestId']
1065
+ end
1066
+ end
1067
+
1068
+ # DescribeDBInstanceDeal请求参数结构体
1069
+ class DescribeDBInstanceDealRequest < TencentCloud::Common::AbstractModel
1070
+ # @param DealId: 订单ID,通过CreateDBInstance等接口返回
1071
+ # @type DealId: String
1072
+
1073
+ attr_accessor :DealId
1074
+
1075
+ def initialize(dealid=nil)
1076
+ @DealId = dealid
1077
+ end
1078
+
1079
+ def deserialize(params)
1080
+ @DealId = params['DealId']
1081
+ end
1082
+ end
1083
+
1084
+ # DescribeDBInstanceDeal返回参数结构体
1085
+ class DescribeDBInstanceDealResponse < TencentCloud::Common::AbstractModel
1086
+ # @param Status: 订单状态,1:未支付,2:已支付,3:发货中,4:发货成功,5:发货失败,6:退款,7:订单关闭,8:超时未支付关闭。
1087
+ # @type Status: Integer
1088
+ # @param OriginalPrice: 订单原价。
1089
+ # @type OriginalPrice: Float
1090
+ # @param DiscountPrice: 订单折扣价格。
1091
+ # @type DiscountPrice: Float
1092
+ # @param Action: 订单行为,purchase:新购,renew:续费,upgrade:升配,downgrade:降配,refund:退货退款。
1093
+ # @type Action: String
1094
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1095
+ # @type RequestId: String
1096
+
1097
+ attr_accessor :Status, :OriginalPrice, :DiscountPrice, :Action, :RequestId
1098
+
1099
+ def initialize(status=nil, originalprice=nil, discountprice=nil, action=nil, requestid=nil)
1100
+ @Status = status
1101
+ @OriginalPrice = originalprice
1102
+ @DiscountPrice = discountprice
1103
+ @Action = action
1104
+ @RequestId = requestid
1105
+ end
1106
+
1107
+ def deserialize(params)
1108
+ @Status = params['Status']
1109
+ @OriginalPrice = params['OriginalPrice']
1110
+ @DiscountPrice = params['DiscountPrice']
1111
+ @Action = params['Action']
1112
+ @RequestId = params['RequestId']
1113
+ end
1114
+ end
1115
+
1116
+ # DescribeDBInstances请求参数结构体
1117
+ class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
1118
+ # @param InstanceIds: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
1119
+ # @type InstanceIds: Array
1120
+ # @param InstanceType: 实例类型,取值范围:0-所有实例,1-正式实例,2-临时实例, 3-只读实例,-1-正式实例+只读+灾备实例
1121
+ # @type InstanceType: Integer
1122
+ # @param ClusterType: 集群类型,取值范围:0-副本集实例,1-分片实例,-1-所有实例
1123
+ # @type ClusterType: Integer
1124
+ # @param Status: 实例状态,取值范围:0-待初始化,1-流程执行中,2-实例有效,-2-已隔离(包年包月实例),-3-已隔离(按量计费实例)
1125
+ # @type Status: Array
1126
+ # @param VpcId: 私有网络的ID,基础网络则不传该参数
1127
+ # @type VpcId: String
1128
+ # @param SubnetId: 私有网络的子网ID,基础网络则不传该参数。入参设置该参数的同时,必须设置相应的VpcId
1129
+ # @type SubnetId: String
1130
+ # @param PayMode: 付费类型,取值范围:0-按量计费,1-包年包月,-1-按量计费+包年包月
1131
+ # @type PayMode: Integer
1132
+ # @param Limit: 单次请求返回的数量,最小值为1,最大值为100,默认值为20
1133
+ # @type Limit: Integer
1134
+ # @param Offset: 偏移量,默认值为0
1135
+ # @type Offset: Integer
1136
+ # @param OrderBy: 返回结果集排序的字段,目前支持:"ProjectId", "InstanceName", "CreateTime",默认为升序排序
1137
+ # @type OrderBy: String
1138
+ # @param OrderByType: 返回结果集排序方式,目前支持:"ASC"或者"DESC"
1139
+ # @type OrderByType: String
1140
+ # @param ProjectIds: 项目 ID
1141
+ # @type ProjectIds: Array
1142
+ # @param SearchKey: 搜索关键词,支持实例ID、实例名称、完整IP
1143
+ # @type SearchKey: String
1144
+ # @param Tags: Tag信息
1145
+ # @type Tags: :class:`Tencentcloud::Mongodb.v20190725.models.TagInfo`
1146
+
1147
+ attr_accessor :InstanceIds, :InstanceType, :ClusterType, :Status, :VpcId, :SubnetId, :PayMode, :Limit, :Offset, :OrderBy, :OrderByType, :ProjectIds, :SearchKey, :Tags
1148
+
1149
+ def initialize(instanceids=nil, instancetype=nil, clustertype=nil, status=nil, vpcid=nil, subnetid=nil, paymode=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil, projectids=nil, searchkey=nil, tags=nil)
1150
+ @InstanceIds = instanceids
1151
+ @InstanceType = instancetype
1152
+ @ClusterType = clustertype
1153
+ @Status = status
1154
+ @VpcId = vpcid
1155
+ @SubnetId = subnetid
1156
+ @PayMode = paymode
1157
+ @Limit = limit
1158
+ @Offset = offset
1159
+ @OrderBy = orderby
1160
+ @OrderByType = orderbytype
1161
+ @ProjectIds = projectids
1162
+ @SearchKey = searchkey
1163
+ @Tags = tags
1164
+ end
1165
+
1166
+ def deserialize(params)
1167
+ @InstanceIds = params['InstanceIds']
1168
+ @InstanceType = params['InstanceType']
1169
+ @ClusterType = params['ClusterType']
1170
+ @Status = params['Status']
1171
+ @VpcId = params['VpcId']
1172
+ @SubnetId = params['SubnetId']
1173
+ @PayMode = params['PayMode']
1174
+ @Limit = params['Limit']
1175
+ @Offset = params['Offset']
1176
+ @OrderBy = params['OrderBy']
1177
+ @OrderByType = params['OrderByType']
1178
+ @ProjectIds = params['ProjectIds']
1179
+ @SearchKey = params['SearchKey']
1180
+ unless params['Tags'].nil?
1181
+ @Tags = TagInfo.new
1182
+ @Tags.deserialize(params['Tags'])
1183
+ end
1184
+ end
1185
+ end
1186
+
1187
+ # DescribeDBInstances返回参数结构体
1188
+ class DescribeDBInstancesResponse < TencentCloud::Common::AbstractModel
1189
+ # @param TotalCount: 符合查询条件的实例总数
1190
+ # @type TotalCount: Integer
1191
+ # @param InstanceDetails: 实例详细信息列表
1192
+ # @type InstanceDetails: Array
1193
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1194
+ # @type RequestId: String
1195
+
1196
+ attr_accessor :TotalCount, :InstanceDetails, :RequestId
1197
+
1198
+ def initialize(totalcount=nil, instancedetails=nil, requestid=nil)
1199
+ @TotalCount = totalcount
1200
+ @InstanceDetails = instancedetails
1201
+ @RequestId = requestid
1202
+ end
1203
+
1204
+ def deserialize(params)
1205
+ @TotalCount = params['TotalCount']
1206
+ unless params['InstanceDetails'].nil?
1207
+ @InstanceDetails = []
1208
+ params['InstanceDetails'].each do |i|
1209
+ instancedetail_tmp = InstanceDetail.new
1210
+ instancedetail_tmp.deserialize(i)
1211
+ @InstanceDetails << instancedetail_tmp
1212
+ end
1213
+ end
1214
+ @RequestId = params['RequestId']
1215
+ end
1216
+ end
1217
+
1218
+ # DescribeSecurityGroup请求参数结构体
1219
+ class DescribeSecurityGroupRequest < TencentCloud::Common::AbstractModel
1220
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。
1221
+ # @type InstanceId: String
1222
+
1223
+ attr_accessor :InstanceId
1224
+
1225
+ def initialize(instanceid=nil)
1226
+ @InstanceId = instanceid
1227
+ end
1228
+
1229
+ def deserialize(params)
1230
+ @InstanceId = params['InstanceId']
1231
+ end
1232
+ end
1233
+
1234
+ # DescribeSecurityGroup返回参数结构体
1235
+ class DescribeSecurityGroupResponse < TencentCloud::Common::AbstractModel
1236
+ # @param Groups: 实例绑定的安全组
1237
+ # @type Groups: Array
1238
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1239
+ # @type RequestId: String
1240
+
1241
+ attr_accessor :Groups, :RequestId
1242
+
1243
+ def initialize(groups=nil, requestid=nil)
1244
+ @Groups = groups
1245
+ @RequestId = requestid
1246
+ end
1247
+
1248
+ def deserialize(params)
1249
+ unless params['Groups'].nil?
1250
+ @Groups = []
1251
+ params['Groups'].each do |i|
1252
+ securitygroup_tmp = SecurityGroup.new
1253
+ securitygroup_tmp.deserialize(i)
1254
+ @Groups << securitygroup_tmp
1255
+ end
1256
+ end
1257
+ @RequestId = params['RequestId']
1258
+ end
1259
+ end
1260
+
1261
+ # DescribeSlowLogPatterns请求参数结构体
1262
+ class DescribeSlowLogPatternsRequest < TencentCloud::Common::AbstractModel
1263
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
1264
+ # @type InstanceId: String
1265
+ # @param StartTime: 慢日志起始时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。
1266
+ # @type StartTime: String
1267
+ # @param EndTime: 慢日志终止时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-02 12:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。
1268
+ # @type EndTime: String
1269
+ # @param SlowMS: 慢日志执行时间阈值,返回执行时间超过该阈值的慢日志,单位为毫秒(ms),最小为100毫秒。
1270
+ # @type SlowMS: Integer
1271
+ # @param Offset: 偏移量,最小值为0,最大值为10000,默认值为0。
1272
+ # @type Offset: Integer
1273
+ # @param Limit: 分页大小,最小值为1,最大值为100,默认值为20。
1274
+ # @type Limit: Integer
1275
+ # @param Format: 慢日志返回格式,可设置为json,不传默认返回原生慢日志格式。
1276
+ # @type Format: String
1277
+
1278
+ attr_accessor :InstanceId, :StartTime, :EndTime, :SlowMS, :Offset, :Limit, :Format
1279
+
1280
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, slowms=nil, offset=nil, limit=nil, format=nil)
1281
+ @InstanceId = instanceid
1282
+ @StartTime = starttime
1283
+ @EndTime = endtime
1284
+ @SlowMS = slowms
1285
+ @Offset = offset
1286
+ @Limit = limit
1287
+ @Format = format
1288
+ end
1289
+
1290
+ def deserialize(params)
1291
+ @InstanceId = params['InstanceId']
1292
+ @StartTime = params['StartTime']
1293
+ @EndTime = params['EndTime']
1294
+ @SlowMS = params['SlowMS']
1295
+ @Offset = params['Offset']
1296
+ @Limit = params['Limit']
1297
+ @Format = params['Format']
1298
+ end
1299
+ end
1300
+
1301
+ # DescribeSlowLogPatterns返回参数结构体
1302
+ class DescribeSlowLogPatternsResponse < TencentCloud::Common::AbstractModel
1303
+ # @param Count: 慢日志统计信息总数
1304
+ # @type Count: Integer
1305
+ # @param SlowLogPatterns: 慢日志统计信息
1306
+ # @type SlowLogPatterns: Array
1307
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1308
+ # @type RequestId: String
1309
+
1310
+ attr_accessor :Count, :SlowLogPatterns, :RequestId
1311
+
1312
+ def initialize(count=nil, slowlogpatterns=nil, requestid=nil)
1313
+ @Count = count
1314
+ @SlowLogPatterns = slowlogpatterns
1315
+ @RequestId = requestid
1316
+ end
1317
+
1318
+ def deserialize(params)
1319
+ @Count = params['Count']
1320
+ unless params['SlowLogPatterns'].nil?
1321
+ @SlowLogPatterns = []
1322
+ params['SlowLogPatterns'].each do |i|
1323
+ slowlogpattern_tmp = SlowLogPattern.new
1324
+ slowlogpattern_tmp.deserialize(i)
1325
+ @SlowLogPatterns << slowlogpattern_tmp
1326
+ end
1327
+ end
1328
+ @RequestId = params['RequestId']
1329
+ end
1330
+ end
1331
+
1332
+ # DescribeSlowLogs请求参数结构体
1333
+ class DescribeSlowLogsRequest < TencentCloud::Common::AbstractModel
1334
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
1335
+ # @type InstanceId: String
1336
+ # @param StartTime: 慢日志起始时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。
1337
+ # @type StartTime: String
1338
+ # @param EndTime: 慢日志终止时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-02 12:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。
1339
+ # @type EndTime: String
1340
+ # @param SlowMS: 慢日志执行时间阈值,返回执行时间超过该阈值的慢日志,单位为毫秒(ms),最小为100毫秒。
1341
+ # @type SlowMS: Integer
1342
+ # @param Offset: 偏移量,最小值为0,最大值为10000,默认值为0。
1343
+ # @type Offset: Integer
1344
+ # @param Limit: 分页大小,最小值为1,最大值为100,默认值为20。
1345
+ # @type Limit: Integer
1346
+ # @param Format: 慢日志返回格式,可设置为json,不传默认返回原生慢日志格式。
1347
+ # @type Format: String
1348
+
1349
+ attr_accessor :InstanceId, :StartTime, :EndTime, :SlowMS, :Offset, :Limit, :Format
1350
+
1351
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, slowms=nil, offset=nil, limit=nil, format=nil)
1352
+ @InstanceId = instanceid
1353
+ @StartTime = starttime
1354
+ @EndTime = endtime
1355
+ @SlowMS = slowms
1356
+ @Offset = offset
1357
+ @Limit = limit
1358
+ @Format = format
1359
+ end
1360
+
1361
+ def deserialize(params)
1362
+ @InstanceId = params['InstanceId']
1363
+ @StartTime = params['StartTime']
1364
+ @EndTime = params['EndTime']
1365
+ @SlowMS = params['SlowMS']
1366
+ @Offset = params['Offset']
1367
+ @Limit = params['Limit']
1368
+ @Format = params['Format']
1369
+ end
1370
+ end
1371
+
1372
+ # DescribeSlowLogs返回参数结构体
1373
+ class DescribeSlowLogsResponse < TencentCloud::Common::AbstractModel
1374
+ # @param Count: 慢日志总数
1375
+ # @type Count: Integer
1376
+ # @param SlowLogs: 慢日志详情
1377
+ # 注意:此字段可能返回 null,表示取不到有效值。
1378
+ # @type SlowLogs: Array
1379
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1380
+ # @type RequestId: String
1381
+
1382
+ attr_accessor :Count, :SlowLogs, :RequestId
1383
+
1384
+ def initialize(count=nil, slowlogs=nil, requestid=nil)
1385
+ @Count = count
1386
+ @SlowLogs = slowlogs
1387
+ @RequestId = requestid
1388
+ end
1389
+
1390
+ def deserialize(params)
1391
+ @Count = params['Count']
1392
+ @SlowLogs = params['SlowLogs']
1393
+ @RequestId = params['RequestId']
1394
+ end
1395
+ end
1396
+
1397
+ # DescribeSpecInfo请求参数结构体
1398
+ class DescribeSpecInfoRequest < TencentCloud::Common::AbstractModel
1399
+ # @param Zone: 待查询可用区
1400
+ # @type Zone: String
1401
+
1402
+ attr_accessor :Zone
1403
+
1404
+ def initialize(zone=nil)
1405
+ @Zone = zone
1406
+ end
1407
+
1408
+ def deserialize(params)
1409
+ @Zone = params['Zone']
1410
+ end
1411
+ end
1412
+
1413
+ # DescribeSpecInfo返回参数结构体
1414
+ class DescribeSpecInfoResponse < TencentCloud::Common::AbstractModel
1415
+ # @param SpecInfoList: 实例售卖规格信息列表
1416
+ # @type SpecInfoList: Array
1417
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1418
+ # @type RequestId: String
1419
+
1420
+ attr_accessor :SpecInfoList, :RequestId
1421
+
1422
+ def initialize(specinfolist=nil, requestid=nil)
1423
+ @SpecInfoList = specinfolist
1424
+ @RequestId = requestid
1425
+ end
1426
+
1427
+ def deserialize(params)
1428
+ unless params['SpecInfoList'].nil?
1429
+ @SpecInfoList = []
1430
+ params['SpecInfoList'].each do |i|
1431
+ specificationinfo_tmp = SpecificationInfo.new
1432
+ specificationinfo_tmp.deserialize(i)
1433
+ @SpecInfoList << specificationinfo_tmp
1434
+ end
1435
+ end
1436
+ @RequestId = params['RequestId']
1437
+ end
1438
+ end
1439
+
1440
+ # FlushInstanceRouterConfig请求参数结构体
1441
+ class FlushInstanceRouterConfigRequest < TencentCloud::Common::AbstractModel
1442
+ # @param InstanceId: 实例ID
1443
+ # @type InstanceId: String
1444
+
1445
+ attr_accessor :InstanceId
1446
+
1447
+ def initialize(instanceid=nil)
1448
+ @InstanceId = instanceid
1449
+ end
1450
+
1451
+ def deserialize(params)
1452
+ @InstanceId = params['InstanceId']
1453
+ end
1454
+ end
1455
+
1456
+ # FlushInstanceRouterConfig返回参数结构体
1457
+ class FlushInstanceRouterConfigResponse < TencentCloud::Common::AbstractModel
1458
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1459
+ # @type RequestId: String
1460
+
1461
+ attr_accessor :RequestId
1462
+
1463
+ def initialize(requestid=nil)
1464
+ @RequestId = requestid
1465
+ end
1466
+
1467
+ def deserialize(params)
1468
+ @RequestId = params['RequestId']
1469
+ end
1470
+ end
1471
+
1472
+ # InquirePriceCreateDBInstances请求参数结构体
1473
+ class InquirePriceCreateDBInstancesRequest < TencentCloud::Common::AbstractModel
1474
+ # @param Zone: 实例所属区域名称,格式如:ap-guangzhou-2
1475
+ # @type Zone: String
1476
+ # @param NodeNum: 每个副本集内节点个数,当前副本集节点数固定为3,分片从节点数可选,具体参照查询云数据库的售卖规格返回参数
1477
+ # @type NodeNum: Integer
1478
+ # @param Memory: 实例内存大小,单位:GB
1479
+ # @type Memory: Integer
1480
+ # @param Volume: 实例硬盘大小,单位:GB
1481
+ # @type Volume: Integer
1482
+ # @param MongoVersion: 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本
1483
+ # @type MongoVersion: String
1484
+ # @param MachineCode: 机器类型,HIO:高IO型;HIO10G:高IO万兆型;STDS5:标准型
1485
+ # @type MachineCode: String
1486
+ # @param GoodsNum: 实例数量, 最小值1,最大值为10
1487
+ # @type GoodsNum: Integer
1488
+ # @param Period: 实例时长,单位:月,可选值包括[1,2,3,4,5,6,7,8,9,10,11,12,24,36]
1489
+ # @type Period: Integer
1490
+ # @param ClusterType: 实例类型,REPLSET-副本集,SHARD-分片集群,STANDALONE-单节点
1491
+ # @type ClusterType: String
1492
+ # @param ReplicateSetNum: 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数;若为单节点实例,该参数设置为0
1493
+ # @type ReplicateSetNum: Integer
1494
+
1495
+ attr_accessor :Zone, :NodeNum, :Memory, :Volume, :MongoVersion, :MachineCode, :GoodsNum, :Period, :ClusterType, :ReplicateSetNum
1496
+
1497
+ def initialize(zone=nil, nodenum=nil, memory=nil, volume=nil, mongoversion=nil, machinecode=nil, goodsnum=nil, period=nil, clustertype=nil, replicatesetnum=nil)
1498
+ @Zone = zone
1499
+ @NodeNum = nodenum
1500
+ @Memory = memory
1501
+ @Volume = volume
1502
+ @MongoVersion = mongoversion
1503
+ @MachineCode = machinecode
1504
+ @GoodsNum = goodsnum
1505
+ @Period = period
1506
+ @ClusterType = clustertype
1507
+ @ReplicateSetNum = replicatesetnum
1508
+ end
1509
+
1510
+ def deserialize(params)
1511
+ @Zone = params['Zone']
1512
+ @NodeNum = params['NodeNum']
1513
+ @Memory = params['Memory']
1514
+ @Volume = params['Volume']
1515
+ @MongoVersion = params['MongoVersion']
1516
+ @MachineCode = params['MachineCode']
1517
+ @GoodsNum = params['GoodsNum']
1518
+ @Period = params['Period']
1519
+ @ClusterType = params['ClusterType']
1520
+ @ReplicateSetNum = params['ReplicateSetNum']
1521
+ end
1522
+ end
1523
+
1524
+ # InquirePriceCreateDBInstances返回参数结构体
1525
+ class InquirePriceCreateDBInstancesResponse < TencentCloud::Common::AbstractModel
1526
+ # @param Price: 价格
1527
+ # @type Price: :class:`Tencentcloud::Mongodb.v20190725.models.DBInstancePrice`
1528
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1529
+ # @type RequestId: String
1530
+
1531
+ attr_accessor :Price, :RequestId
1532
+
1533
+ def initialize(price=nil, requestid=nil)
1534
+ @Price = price
1535
+ @RequestId = requestid
1536
+ end
1537
+
1538
+ def deserialize(params)
1539
+ unless params['Price'].nil?
1540
+ @Price = DBInstancePrice.new
1541
+ @Price.deserialize(params['Price'])
1542
+ end
1543
+ @RequestId = params['RequestId']
1544
+ end
1545
+ end
1546
+
1547
+ # InquirePriceModifyDBInstanceSpec请求参数结构体
1548
+ class InquirePriceModifyDBInstanceSpecRequest < TencentCloud::Common::AbstractModel
1549
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同。
1550
+ # @type InstanceId: String
1551
+ # @param Memory: 变更配置后实例内存大小,单位:GB。
1552
+ # @type Memory: Integer
1553
+ # @param Volume: 变更配置后实例磁盘大小,单位:GB。
1554
+ # @type Volume: Integer
1555
+
1556
+ attr_accessor :InstanceId, :Memory, :Volume
1557
+
1558
+ def initialize(instanceid=nil, memory=nil, volume=nil)
1559
+ @InstanceId = instanceid
1560
+ @Memory = memory
1561
+ @Volume = volume
1562
+ end
1563
+
1564
+ def deserialize(params)
1565
+ @InstanceId = params['InstanceId']
1566
+ @Memory = params['Memory']
1567
+ @Volume = params['Volume']
1568
+ end
1569
+ end
1570
+
1571
+ # InquirePriceModifyDBInstanceSpec返回参数结构体
1572
+ class InquirePriceModifyDBInstanceSpecResponse < TencentCloud::Common::AbstractModel
1573
+ # @param Price: 价格。
1574
+ # @type Price: :class:`Tencentcloud::Mongodb.v20190725.models.DBInstancePrice`
1575
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1576
+ # @type RequestId: String
1577
+
1578
+ attr_accessor :Price, :RequestId
1579
+
1580
+ def initialize(price=nil, requestid=nil)
1581
+ @Price = price
1582
+ @RequestId = requestid
1583
+ end
1584
+
1585
+ def deserialize(params)
1586
+ unless params['Price'].nil?
1587
+ @Price = DBInstancePrice.new
1588
+ @Price.deserialize(params['Price'])
1589
+ end
1590
+ @RequestId = params['RequestId']
1591
+ end
1592
+ end
1593
+
1594
+ # InquirePriceRenewDBInstances请求参数结构体
1595
+ class InquirePriceRenewDBInstancesRequest < TencentCloud::Common::AbstractModel
1596
+ # @param InstanceIds: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同,接口单次最多只支持5个实例进行操作。
1597
+ # @type InstanceIds: Array
1598
+ # @param InstanceChargePrepaid: 预付费模式(即包年包月)相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
1599
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Mongodb.v20190725.models.InstanceChargePrepaid`
1600
+
1601
+ attr_accessor :InstanceIds, :InstanceChargePrepaid
1602
+
1603
+ def initialize(instanceids=nil, instancechargeprepaid=nil)
1604
+ @InstanceIds = instanceids
1605
+ @InstanceChargePrepaid = instancechargeprepaid
1606
+ end
1607
+
1608
+ def deserialize(params)
1609
+ @InstanceIds = params['InstanceIds']
1610
+ unless params['InstanceChargePrepaid'].nil?
1611
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
1612
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
1613
+ end
1614
+ end
1615
+ end
1616
+
1617
+ # InquirePriceRenewDBInstances返回参数结构体
1618
+ class InquirePriceRenewDBInstancesResponse < TencentCloud::Common::AbstractModel
1619
+ # @param Price: 价格
1620
+ # @type Price: :class:`Tencentcloud::Mongodb.v20190725.models.DBInstancePrice`
1621
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1622
+ # @type RequestId: String
1623
+
1624
+ attr_accessor :Price, :RequestId
1625
+
1626
+ def initialize(price=nil, requestid=nil)
1627
+ @Price = price
1628
+ @RequestId = requestid
1629
+ end
1630
+
1631
+ def deserialize(params)
1632
+ unless params['Price'].nil?
1633
+ @Price = DBInstancePrice.new
1634
+ @Price.deserialize(params['Price'])
1635
+ end
1636
+ @RequestId = params['RequestId']
1637
+ end
1638
+ end
1639
+
1640
+ # 描述了实例的计费模式
1641
+ class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
1642
+ # @param Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。默认为1。
1643
+ # (InquirePriceRenewDBInstances,RenewDBInstances调用时必填)
1644
+ # @type Period: Integer
1645
+ # @param RenewFlag: 自动续费标识。取值范围:
1646
+ # NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
1647
+ # NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
1648
+ # DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
1649
+
1650
+ # 默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
1651
+ # (InquirePriceRenewDBInstances,RenewDBInstances调用时必填)
1652
+ # @type RenewFlag: String
1653
+
1654
+ attr_accessor :Period, :RenewFlag
1655
+
1656
+ def initialize(period=nil, renewflag=nil)
1657
+ @Period = period
1658
+ @RenewFlag = renewflag
1659
+ end
1660
+
1661
+ def deserialize(params)
1662
+ @Period = params['Period']
1663
+ @RenewFlag = params['RenewFlag']
1664
+ end
1665
+ end
1666
+
1667
+ # 实例详情
1668
+ class InstanceDetail < TencentCloud::Common::AbstractModel
1669
+ # @param InstanceId: 实例ID
1670
+ # @type InstanceId: String
1671
+ # @param InstanceName: 实例名称
1672
+ # @type InstanceName: String
1673
+ # @param PayMode: 付费类型,可能的返回值:1-包年包月;0-按量计费
1674
+ # @type PayMode: Integer
1675
+ # @param ProjectId: 项目ID
1676
+ # @type ProjectId: Integer
1677
+ # @param ClusterType: 集群类型,可能的返回值:0-副本集实例,1-分片实例,
1678
+ # @type ClusterType: Integer
1679
+ # @param Region: 地域信息
1680
+ # @type Region: String
1681
+ # @param Zone: 可用区信息
1682
+ # @type Zone: String
1683
+ # @param NetType: 网络类型,可能的返回值:0-基础网络,1-私有网络
1684
+ # @type NetType: Integer
1685
+ # @param VpcId: 私有网络的ID
1686
+ # @type VpcId: String
1687
+ # @param SubnetId: 私有网络的子网ID
1688
+ # @type SubnetId: String
1689
+ # @param Status: 实例状态,可能的返回值:0-待初始化,1-流程处理中,2-运行中,-2-实例已过期
1690
+ # @type Status: Integer
1691
+ # @param Vip: 实例IP
1692
+ # @type Vip: String
1693
+ # @param Vport: 端口号
1694
+ # @type Vport: Integer
1695
+ # @param CreateTime: 实例创建时间
1696
+ # @type CreateTime: String
1697
+ # @param DeadLine: 实例到期时间
1698
+ # @type DeadLine: String
1699
+ # @param MongoVersion: 实例版本信息
1700
+ # @type MongoVersion: String
1701
+ # @param Memory: 实例内存规格,单位为MB
1702
+ # @type Memory: Integer
1703
+ # @param Volume: 实例磁盘规格,单位为MB
1704
+ # @type Volume: Integer
1705
+ # @param CpuNum: 实例CPU核心数
1706
+ # @type CpuNum: Integer
1707
+ # @param MachineType: 实例机器类型
1708
+ # @type MachineType: String
1709
+ # @param SecondaryNum: 实例从节点数
1710
+ # @type SecondaryNum: Integer
1711
+ # @param ReplicationSetNum: 实例分片数
1712
+ # @type ReplicationSetNum: Integer
1713
+ # @param AutoRenewFlag: 实例自动续费标志,可能的返回值:0-手动续费,1-自动续费,2-确认不续费
1714
+ # @type AutoRenewFlag: Integer
1715
+ # @param UsedVolume: 已用容量,单位MB
1716
+ # @type UsedVolume: Integer
1717
+ # @param MaintenanceStart: 维护窗口起始时间
1718
+ # @type MaintenanceStart: String
1719
+ # @param MaintenanceEnd: 维护窗口结束时间
1720
+ # @type MaintenanceEnd: String
1721
+ # @param ReplicaSets: 分片信息
1722
+ # @type ReplicaSets: Array
1723
+ # @param ReadonlyInstances: 只读实例信息
1724
+ # @type ReadonlyInstances: Array
1725
+ # @param StandbyInstances: 灾备实例信息
1726
+ # @type StandbyInstances: Array
1727
+ # @param CloneInstances: 临时实例信息
1728
+ # @type CloneInstances: Array
1729
+ # @param RelatedInstance: 关联实例信息,对于正式实例,该字段表示它的临时实例信息;对于临时实例,则表示它的正式实例信息;如果为只读/灾备实例,则表示他的主实例信息
1730
+ # @type RelatedInstance: :class:`Tencentcloud::Mongodb.v20190725.models.DBInstanceInfo`
1731
+ # @param Tags: 实例标签信息集合
1732
+ # @type Tags: Array
1733
+ # @param InstanceVer: 实例版本标记
1734
+ # @type InstanceVer: Integer
1735
+ # @param ClusterVer: 实例版本标记
1736
+ # @type ClusterVer: Integer
1737
+ # @param Protocol: 协议信息,可能的返回值:1-mongodb,2-dynamodb
1738
+ # @type Protocol: Integer
1739
+ # @param InstanceType: 实例类型,可能的返回值,1-正式实例,2-临时实例,3-只读实例,4-灾备实例
1740
+ # @type InstanceType: Integer
1741
+ # @param InstanceStatusDesc: 实例状态描述
1742
+ # @type InstanceStatusDesc: String
1743
+ # @param RealInstanceId: 实例对应的物理实例id,回档并替换过的实例有不同的InstanceId和RealInstanceId,从barad获取监控数据等场景下需要用物理id获取
1744
+ # @type RealInstanceId: String
1745
+
1746
+ attr_accessor :InstanceId, :InstanceName, :PayMode, :ProjectId, :ClusterType, :Region, :Zone, :NetType, :VpcId, :SubnetId, :Status, :Vip, :Vport, :CreateTime, :DeadLine, :MongoVersion, :Memory, :Volume, :CpuNum, :MachineType, :SecondaryNum, :ReplicationSetNum, :AutoRenewFlag, :UsedVolume, :MaintenanceStart, :MaintenanceEnd, :ReplicaSets, :ReadonlyInstances, :StandbyInstances, :CloneInstances, :RelatedInstance, :Tags, :InstanceVer, :ClusterVer, :Protocol, :InstanceType, :InstanceStatusDesc, :RealInstanceId
1747
+
1748
+ def initialize(instanceid=nil, instancename=nil, paymode=nil, projectid=nil, clustertype=nil, region=nil, zone=nil, nettype=nil, vpcid=nil, subnetid=nil, status=nil, vip=nil, vport=nil, createtime=nil, deadline=nil, mongoversion=nil, memory=nil, volume=nil, cpunum=nil, machinetype=nil, secondarynum=nil, replicationsetnum=nil, autorenewflag=nil, usedvolume=nil, maintenancestart=nil, maintenanceend=nil, replicasets=nil, readonlyinstances=nil, standbyinstances=nil, cloneinstances=nil, relatedinstance=nil, tags=nil, instancever=nil, clusterver=nil, protocol=nil, instancetype=nil, instancestatusdesc=nil, realinstanceid=nil)
1749
+ @InstanceId = instanceid
1750
+ @InstanceName = instancename
1751
+ @PayMode = paymode
1752
+ @ProjectId = projectid
1753
+ @ClusterType = clustertype
1754
+ @Region = region
1755
+ @Zone = zone
1756
+ @NetType = nettype
1757
+ @VpcId = vpcid
1758
+ @SubnetId = subnetid
1759
+ @Status = status
1760
+ @Vip = vip
1761
+ @Vport = vport
1762
+ @CreateTime = createtime
1763
+ @DeadLine = deadline
1764
+ @MongoVersion = mongoversion
1765
+ @Memory = memory
1766
+ @Volume = volume
1767
+ @CpuNum = cpunum
1768
+ @MachineType = machinetype
1769
+ @SecondaryNum = secondarynum
1770
+ @ReplicationSetNum = replicationsetnum
1771
+ @AutoRenewFlag = autorenewflag
1772
+ @UsedVolume = usedvolume
1773
+ @MaintenanceStart = maintenancestart
1774
+ @MaintenanceEnd = maintenanceend
1775
+ @ReplicaSets = replicasets
1776
+ @ReadonlyInstances = readonlyinstances
1777
+ @StandbyInstances = standbyinstances
1778
+ @CloneInstances = cloneinstances
1779
+ @RelatedInstance = relatedinstance
1780
+ @Tags = tags
1781
+ @InstanceVer = instancever
1782
+ @ClusterVer = clusterver
1783
+ @Protocol = protocol
1784
+ @InstanceType = instancetype
1785
+ @InstanceStatusDesc = instancestatusdesc
1786
+ @RealInstanceId = realinstanceid
1787
+ end
1788
+
1789
+ def deserialize(params)
1790
+ @InstanceId = params['InstanceId']
1791
+ @InstanceName = params['InstanceName']
1792
+ @PayMode = params['PayMode']
1793
+ @ProjectId = params['ProjectId']
1794
+ @ClusterType = params['ClusterType']
1795
+ @Region = params['Region']
1796
+ @Zone = params['Zone']
1797
+ @NetType = params['NetType']
1798
+ @VpcId = params['VpcId']
1799
+ @SubnetId = params['SubnetId']
1800
+ @Status = params['Status']
1801
+ @Vip = params['Vip']
1802
+ @Vport = params['Vport']
1803
+ @CreateTime = params['CreateTime']
1804
+ @DeadLine = params['DeadLine']
1805
+ @MongoVersion = params['MongoVersion']
1806
+ @Memory = params['Memory']
1807
+ @Volume = params['Volume']
1808
+ @CpuNum = params['CpuNum']
1809
+ @MachineType = params['MachineType']
1810
+ @SecondaryNum = params['SecondaryNum']
1811
+ @ReplicationSetNum = params['ReplicationSetNum']
1812
+ @AutoRenewFlag = params['AutoRenewFlag']
1813
+ @UsedVolume = params['UsedVolume']
1814
+ @MaintenanceStart = params['MaintenanceStart']
1815
+ @MaintenanceEnd = params['MaintenanceEnd']
1816
+ unless params['ReplicaSets'].nil?
1817
+ @ReplicaSets = []
1818
+ params['ReplicaSets'].each do |i|
1819
+ shardinfo_tmp = ShardInfo.new
1820
+ shardinfo_tmp.deserialize(i)
1821
+ @ReplicaSets << shardinfo_tmp
1822
+ end
1823
+ end
1824
+ unless params['ReadonlyInstances'].nil?
1825
+ @ReadonlyInstances = []
1826
+ params['ReadonlyInstances'].each do |i|
1827
+ dbinstanceinfo_tmp = DBInstanceInfo.new
1828
+ dbinstanceinfo_tmp.deserialize(i)
1829
+ @ReadonlyInstances << dbinstanceinfo_tmp
1830
+ end
1831
+ end
1832
+ unless params['StandbyInstances'].nil?
1833
+ @StandbyInstances = []
1834
+ params['StandbyInstances'].each do |i|
1835
+ dbinstanceinfo_tmp = DBInstanceInfo.new
1836
+ dbinstanceinfo_tmp.deserialize(i)
1837
+ @StandbyInstances << dbinstanceinfo_tmp
1838
+ end
1839
+ end
1840
+ unless params['CloneInstances'].nil?
1841
+ @CloneInstances = []
1842
+ params['CloneInstances'].each do |i|
1843
+ dbinstanceinfo_tmp = DBInstanceInfo.new
1844
+ dbinstanceinfo_tmp.deserialize(i)
1845
+ @CloneInstances << dbinstanceinfo_tmp
1846
+ end
1847
+ end
1848
+ unless params['RelatedInstance'].nil?
1849
+ @RelatedInstance = DBInstanceInfo.new
1850
+ @RelatedInstance.deserialize(params['RelatedInstance'])
1851
+ end
1852
+ unless params['Tags'].nil?
1853
+ @Tags = []
1854
+ params['Tags'].each do |i|
1855
+ taginfo_tmp = TagInfo.new
1856
+ taginfo_tmp.deserialize(i)
1857
+ @Tags << taginfo_tmp
1858
+ end
1859
+ end
1860
+ @InstanceVer = params['InstanceVer']
1861
+ @ClusterVer = params['ClusterVer']
1862
+ @Protocol = params['Protocol']
1863
+ @InstanceType = params['InstanceType']
1864
+ @InstanceStatusDesc = params['InstanceStatusDesc']
1865
+ @RealInstanceId = params['RealInstanceId']
1866
+ end
1867
+ end
1868
+
1869
+ # IsolateDBInstance请求参数结构体
1870
+ class IsolateDBInstanceRequest < TencentCloud::Common::AbstractModel
1871
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
1872
+ # @type InstanceId: String
1873
+
1874
+ attr_accessor :InstanceId
1875
+
1876
+ def initialize(instanceid=nil)
1877
+ @InstanceId = instanceid
1878
+ end
1879
+
1880
+ def deserialize(params)
1881
+ @InstanceId = params['InstanceId']
1882
+ end
1883
+ end
1884
+
1885
+ # IsolateDBInstance返回参数结构体
1886
+ class IsolateDBInstanceResponse < TencentCloud::Common::AbstractModel
1887
+ # @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
1888
+ # @type AsyncRequestId: String
1889
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1890
+ # @type RequestId: String
1891
+
1892
+ attr_accessor :AsyncRequestId, :RequestId
1893
+
1894
+ def initialize(asyncrequestid=nil, requestid=nil)
1895
+ @AsyncRequestId = asyncrequestid
1896
+ @RequestId = requestid
1897
+ end
1898
+
1899
+ def deserialize(params)
1900
+ @AsyncRequestId = params['AsyncRequestId']
1901
+ @RequestId = params['RequestId']
1902
+ end
1903
+ end
1904
+
1905
+ # KillOps请求参数结构体
1906
+ class KillOpsRequest < TencentCloud::Common::AbstractModel
1907
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
1908
+ # @type InstanceId: String
1909
+ # @param Operations: 待终止的操作
1910
+ # @type Operations: Array
1911
+
1912
+ attr_accessor :InstanceId, :Operations
1913
+
1914
+ def initialize(instanceid=nil, operations=nil)
1915
+ @InstanceId = instanceid
1916
+ @Operations = operations
1917
+ end
1918
+
1919
+ def deserialize(params)
1920
+ @InstanceId = params['InstanceId']
1921
+ unless params['Operations'].nil?
1922
+ @Operations = []
1923
+ params['Operations'].each do |i|
1924
+ operation_tmp = Operation.new
1925
+ operation_tmp.deserialize(i)
1926
+ @Operations << operation_tmp
1927
+ end
1928
+ end
1929
+ end
1930
+ end
1931
+
1932
+ # KillOps返回参数结构体
1933
+ class KillOpsResponse < TencentCloud::Common::AbstractModel
1934
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1935
+ # @type RequestId: String
1936
+
1937
+ attr_accessor :RequestId
1938
+
1939
+ def initialize(requestid=nil)
1940
+ @RequestId = requestid
1941
+ end
1942
+
1943
+ def deserialize(params)
1944
+ @RequestId = params['RequestId']
1945
+ end
1946
+ end
1947
+
1948
+ # ModifyDBInstanceSpec请求参数结构体
1949
+ class ModifyDBInstanceSpecRequest < TencentCloud::Common::AbstractModel
1950
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
1951
+ # @type InstanceId: String
1952
+ # @param Memory: 实例配置变更后的内存大小,单位:GB。内存和磁盘必须同时升配或同时降配
1953
+ # @type Memory: Integer
1954
+ # @param Volume: 实例配置变更后的硬盘大小,单位:GB。内存和磁盘必须同时升配或同时降配。降配时,新的磁盘参数必须大于已用磁盘容量的1.2倍
1955
+ # @type Volume: Integer
1956
+ # @param OplogSize: 实例配置变更后oplog的大小,单位:GB,默认为磁盘空间的10%,允许设置的最小值为磁盘的10%,最大值为磁盘的90%
1957
+ # @type OplogSize: Integer
1958
+ # @param NodeNum: 实例变更后的节点数,取值范围具体参照查询云数据库的售卖规格返回参数。默认为不变更节点数
1959
+ # @type NodeNum: Integer
1960
+ # @param ReplicateSetNum: 实例变更后的分片数,取值范围具体参照查询云数据库的售卖规格返回参数。只能增加不能减少,默认为不变更分片数
1961
+ # @type ReplicateSetNum: Integer
1962
+ # @param InMaintenance: 实例配置变更的切换时间,参数为:0(默认)、1。0-调整完成时,1-维护时间内。注:调整节点数和分片数不支持在【维护时间内】变更。
1963
+ # @type InMaintenance: Integer
1964
+
1965
+ attr_accessor :InstanceId, :Memory, :Volume, :OplogSize, :NodeNum, :ReplicateSetNum, :InMaintenance
1966
+
1967
+ def initialize(instanceid=nil, memory=nil, volume=nil, oplogsize=nil, nodenum=nil, replicatesetnum=nil, inmaintenance=nil)
1968
+ @InstanceId = instanceid
1969
+ @Memory = memory
1970
+ @Volume = volume
1971
+ @OplogSize = oplogsize
1972
+ @NodeNum = nodenum
1973
+ @ReplicateSetNum = replicatesetnum
1974
+ @InMaintenance = inmaintenance
1975
+ end
1976
+
1977
+ def deserialize(params)
1978
+ @InstanceId = params['InstanceId']
1979
+ @Memory = params['Memory']
1980
+ @Volume = params['Volume']
1981
+ @OplogSize = params['OplogSize']
1982
+ @NodeNum = params['NodeNum']
1983
+ @ReplicateSetNum = params['ReplicateSetNum']
1984
+ @InMaintenance = params['InMaintenance']
1985
+ end
1986
+ end
1987
+
1988
+ # ModifyDBInstanceSpec返回参数结构体
1989
+ class ModifyDBInstanceSpecResponse < TencentCloud::Common::AbstractModel
1990
+ # @param DealId: 订单ID
1991
+ # @type DealId: String
1992
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1993
+ # @type RequestId: String
1994
+
1995
+ attr_accessor :DealId, :RequestId
1996
+
1997
+ def initialize(dealid=nil, requestid=nil)
1998
+ @DealId = dealid
1999
+ @RequestId = requestid
2000
+ end
2001
+
2002
+ def deserialize(params)
2003
+ @DealId = params['DealId']
2004
+ @RequestId = params['RequestId']
2005
+ end
2006
+ end
2007
+
2008
+ # OfflineIsolatedDBInstance请求参数结构体
2009
+ class OfflineIsolatedDBInstanceRequest < TencentCloud::Common::AbstractModel
2010
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
2011
+ # @type InstanceId: String
2012
+
2013
+ attr_accessor :InstanceId
2014
+
2015
+ def initialize(instanceid=nil)
2016
+ @InstanceId = instanceid
2017
+ end
2018
+
2019
+ def deserialize(params)
2020
+ @InstanceId = params['InstanceId']
2021
+ end
2022
+ end
2023
+
2024
+ # OfflineIsolatedDBInstance返回参数结构体
2025
+ class OfflineIsolatedDBInstanceResponse < TencentCloud::Common::AbstractModel
2026
+ # @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
2027
+ # @type AsyncRequestId: String
2028
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2029
+ # @type RequestId: String
2030
+
2031
+ attr_accessor :AsyncRequestId, :RequestId
2032
+
2033
+ def initialize(asyncrequestid=nil, requestid=nil)
2034
+ @AsyncRequestId = asyncrequestid
2035
+ @RequestId = requestid
2036
+ end
2037
+
2038
+ def deserialize(params)
2039
+ @AsyncRequestId = params['AsyncRequestId']
2040
+ @RequestId = params['RequestId']
2041
+ end
2042
+ end
2043
+
2044
+ # 需要终止的操作
2045
+ class Operation < TencentCloud::Common::AbstractModel
2046
+ # @param ReplicaSetName: 操作所在的分片名
2047
+ # @type ReplicaSetName: String
2048
+ # @param NodeName: 操作所在的节点名
2049
+ # @type NodeName: String
2050
+ # @param OpId: 操作序号
2051
+ # @type OpId: Integer
2052
+
2053
+ attr_accessor :ReplicaSetName, :NodeName, :OpId
2054
+
2055
+ def initialize(replicasetname=nil, nodename=nil, opid=nil)
2056
+ @ReplicaSetName = replicasetname
2057
+ @NodeName = nodename
2058
+ @OpId = opid
2059
+ end
2060
+
2061
+ def deserialize(params)
2062
+ @ReplicaSetName = params['ReplicaSetName']
2063
+ @NodeName = params['NodeName']
2064
+ @OpId = params['OpId']
2065
+ end
2066
+ end
2067
+
2068
+ # RenameInstance请求参数结构体
2069
+ class RenameInstanceRequest < TencentCloud::Common::AbstractModel
2070
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
2071
+ # @type InstanceId: String
2072
+ # @param NewName: 实例名称
2073
+ # @type NewName: String
2074
+
2075
+ attr_accessor :InstanceId, :NewName
2076
+
2077
+ def initialize(instanceid=nil, newname=nil)
2078
+ @InstanceId = instanceid
2079
+ @NewName = newname
2080
+ end
2081
+
2082
+ def deserialize(params)
2083
+ @InstanceId = params['InstanceId']
2084
+ @NewName = params['NewName']
2085
+ end
2086
+ end
2087
+
2088
+ # RenameInstance返回参数结构体
2089
+ class RenameInstanceResponse < TencentCloud::Common::AbstractModel
2090
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2091
+ # @type RequestId: String
2092
+
2093
+ attr_accessor :RequestId
2094
+
2095
+ def initialize(requestid=nil)
2096
+ @RequestId = requestid
2097
+ end
2098
+
2099
+ def deserialize(params)
2100
+ @RequestId = params['RequestId']
2101
+ end
2102
+ end
2103
+
2104
+ # RenewDBInstances请求参数结构体
2105
+ class RenewDBInstancesRequest < TencentCloud::Common::AbstractModel
2106
+ # @param InstanceIds: 一个或多个待操作的实例ID。可通过DescribeInstances接口返回值中的InstanceId获取。每次请求批量实例的上限为100。
2107
+ # @type InstanceIds: Array
2108
+ # @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。包年包月实例该参数为必传参数。
2109
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Mongodb.v20190725.models.InstanceChargePrepaid`
2110
+
2111
+ attr_accessor :InstanceIds, :InstanceChargePrepaid
2112
+
2113
+ def initialize(instanceids=nil, instancechargeprepaid=nil)
2114
+ @InstanceIds = instanceids
2115
+ @InstanceChargePrepaid = instancechargeprepaid
2116
+ end
2117
+
2118
+ def deserialize(params)
2119
+ @InstanceIds = params['InstanceIds']
2120
+ unless params['InstanceChargePrepaid'].nil?
2121
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
2122
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
2123
+ end
2124
+ end
2125
+ end
2126
+
2127
+ # RenewDBInstances返回参数结构体
2128
+ class RenewDBInstancesResponse < TencentCloud::Common::AbstractModel
2129
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2130
+ # @type RequestId: String
2131
+
2132
+ attr_accessor :RequestId
2133
+
2134
+ def initialize(requestid=nil)
2135
+ @RequestId = requestid
2136
+ end
2137
+
2138
+ def deserialize(params)
2139
+ @RequestId = params['RequestId']
2140
+ end
2141
+ end
2142
+
2143
+ # 分片信息
2144
+ class ReplicaSetInfo < TencentCloud::Common::AbstractModel
2145
+ # @param ReplicaSetId: 分片名称
2146
+ # @type ReplicaSetId: String
2147
+
2148
+ attr_accessor :ReplicaSetId
2149
+
2150
+ def initialize(replicasetid=nil)
2151
+ @ReplicaSetId = replicasetid
2152
+ end
2153
+
2154
+ def deserialize(params)
2155
+ @ReplicaSetId = params['ReplicaSetId']
2156
+ end
2157
+ end
2158
+
2159
+ # ResetDBInstancePassword请求参数结构体
2160
+ class ResetDBInstancePasswordRequest < TencentCloud::Common::AbstractModel
2161
+ # @param InstanceId: 实例Id
2162
+ # @type InstanceId: String
2163
+ # @param UserName: 实例账号名
2164
+ # @type UserName: String
2165
+ # @param Password: 新密码
2166
+ # @type Password: String
2167
+
2168
+ attr_accessor :InstanceId, :UserName, :Password
2169
+
2170
+ def initialize(instanceid=nil, username=nil, password=nil)
2171
+ @InstanceId = instanceid
2172
+ @UserName = username
2173
+ @Password = password
2174
+ end
2175
+
2176
+ def deserialize(params)
2177
+ @InstanceId = params['InstanceId']
2178
+ @UserName = params['UserName']
2179
+ @Password = params['Password']
2180
+ end
2181
+ end
2182
+
2183
+ # ResetDBInstancePassword返回参数结构体
2184
+ class ResetDBInstancePasswordResponse < TencentCloud::Common::AbstractModel
2185
+ # @param AsyncRequestId: 异步请求Id,用户查询该流程的运行状态
2186
+ # @type AsyncRequestId: String
2187
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2188
+ # @type RequestId: String
2189
+
2190
+ attr_accessor :AsyncRequestId, :RequestId
2191
+
2192
+ def initialize(asyncrequestid=nil, requestid=nil)
2193
+ @AsyncRequestId = asyncrequestid
2194
+ @RequestId = requestid
2195
+ end
2196
+
2197
+ def deserialize(params)
2198
+ @AsyncRequestId = params['AsyncRequestId']
2199
+ @RequestId = params['RequestId']
2200
+ end
2201
+ end
2202
+
2203
+ # 安全组信息
2204
+ class SecurityGroup < TencentCloud::Common::AbstractModel
2205
+ # @param ProjectId: 所属项目id
2206
+ # @type ProjectId: Integer
2207
+ # @param CreateTime: 创建时间
2208
+ # @type CreateTime: String
2209
+ # @param Inbound: 入站规则
2210
+ # @type Inbound: Array
2211
+ # @param Outbound: 出站规则
2212
+ # @type Outbound: Array
2213
+ # @param SecurityGroupId: 安全组id
2214
+ # @type SecurityGroupId: String
2215
+ # @param SecurityGroupName: 安全组名称
2216
+ # @type SecurityGroupName: String
2217
+ # @param SecurityGroupRemark: 安全组备注
2218
+ # @type SecurityGroupRemark: String
2219
+
2220
+ attr_accessor :ProjectId, :CreateTime, :Inbound, :Outbound, :SecurityGroupId, :SecurityGroupName, :SecurityGroupRemark
2221
+
2222
+ def initialize(projectid=nil, createtime=nil, inbound=nil, outbound=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil)
2223
+ @ProjectId = projectid
2224
+ @CreateTime = createtime
2225
+ @Inbound = inbound
2226
+ @Outbound = outbound
2227
+ @SecurityGroupId = securitygroupid
2228
+ @SecurityGroupName = securitygroupname
2229
+ @SecurityGroupRemark = securitygroupremark
2230
+ end
2231
+
2232
+ def deserialize(params)
2233
+ @ProjectId = params['ProjectId']
2234
+ @CreateTime = params['CreateTime']
2235
+ unless params['Inbound'].nil?
2236
+ @Inbound = []
2237
+ params['Inbound'].each do |i|
2238
+ securitygroupbound_tmp = SecurityGroupBound.new
2239
+ securitygroupbound_tmp.deserialize(i)
2240
+ @Inbound << securitygroupbound_tmp
2241
+ end
2242
+ end
2243
+ unless params['Outbound'].nil?
2244
+ @Outbound = []
2245
+ params['Outbound'].each do |i|
2246
+ securitygroupbound_tmp = SecurityGroupBound.new
2247
+ securitygroupbound_tmp.deserialize(i)
2248
+ @Outbound << securitygroupbound_tmp
2249
+ end
2250
+ end
2251
+ @SecurityGroupId = params['SecurityGroupId']
2252
+ @SecurityGroupName = params['SecurityGroupName']
2253
+ @SecurityGroupRemark = params['SecurityGroupRemark']
2254
+ end
2255
+ end
2256
+
2257
+ # 安全组规则
2258
+ class SecurityGroupBound < TencentCloud::Common::AbstractModel
2259
+ # @param Action: 执行规则。ACCEPT或DROP
2260
+ # @type Action: String
2261
+ # @param CidrIp: ip段。
2262
+ # @type CidrIp: String
2263
+ # @param PortRange: 端口范围
2264
+ # @type PortRange: String
2265
+ # @param IpProtocol: 传输层协议。tcp,udp或ALL
2266
+ # @type IpProtocol: String
2267
+ # @param Id: 安全组id代表的地址集合
2268
+ # @type Id: String
2269
+ # @param AddressModule: 地址组id代表的地址集合
2270
+ # @type AddressModule: String
2271
+ # @param ServiceModule: 服务组id代表的协议和端口集合
2272
+ # @type ServiceModule: String
2273
+ # @param Desc: 描述
2274
+ # @type Desc: String
2275
+
2276
+ attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol, :Id, :AddressModule, :ServiceModule, :Desc
2277
+
2278
+ def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, id=nil, addressmodule=nil, servicemodule=nil, desc=nil)
2279
+ @Action = action
2280
+ @CidrIp = cidrip
2281
+ @PortRange = portrange
2282
+ @IpProtocol = ipprotocol
2283
+ @Id = id
2284
+ @AddressModule = addressmodule
2285
+ @ServiceModule = servicemodule
2286
+ @Desc = desc
2287
+ end
2288
+
2289
+ def deserialize(params)
2290
+ @Action = params['Action']
2291
+ @CidrIp = params['CidrIp']
2292
+ @PortRange = params['PortRange']
2293
+ @IpProtocol = params['IpProtocol']
2294
+ @Id = params['Id']
2295
+ @AddressModule = params['AddressModule']
2296
+ @ServiceModule = params['ServiceModule']
2297
+ @Desc = params['Desc']
2298
+ end
2299
+ end
2300
+
2301
+ # 实例分片详情
2302
+ class ShardInfo < TencentCloud::Common::AbstractModel
2303
+ # @param UsedVolume: 分片已使用容量
2304
+ # @type UsedVolume: Float
2305
+ # @param ReplicaSetId: 分片ID
2306
+ # @type ReplicaSetId: String
2307
+ # @param ReplicaSetName: 分片名
2308
+ # @type ReplicaSetName: String
2309
+ # @param Memory: 分片内存规格,单位为MB
2310
+ # @type Memory: Integer
2311
+ # @param Volume: 分片磁盘规格,单位为MB
2312
+ # @type Volume: Integer
2313
+ # @param OplogSize: 分片Oplog大小,单位为MB
2314
+ # @type OplogSize: Integer
2315
+ # @param SecondaryNum: 分片从节点数
2316
+ # @type SecondaryNum: Integer
2317
+ # @param RealReplicaSetId: 分片物理id
2318
+ # @type RealReplicaSetId: String
2319
+
2320
+ attr_accessor :UsedVolume, :ReplicaSetId, :ReplicaSetName, :Memory, :Volume, :OplogSize, :SecondaryNum, :RealReplicaSetId
2321
+
2322
+ def initialize(usedvolume=nil, replicasetid=nil, replicasetname=nil, memory=nil, volume=nil, oplogsize=nil, secondarynum=nil, realreplicasetid=nil)
2323
+ @UsedVolume = usedvolume
2324
+ @ReplicaSetId = replicasetid
2325
+ @ReplicaSetName = replicasetname
2326
+ @Memory = memory
2327
+ @Volume = volume
2328
+ @OplogSize = oplogsize
2329
+ @SecondaryNum = secondarynum
2330
+ @RealReplicaSetId = realreplicasetid
2331
+ end
2332
+
2333
+ def deserialize(params)
2334
+ @UsedVolume = params['UsedVolume']
2335
+ @ReplicaSetId = params['ReplicaSetId']
2336
+ @ReplicaSetName = params['ReplicaSetName']
2337
+ @Memory = params['Memory']
2338
+ @Volume = params['Volume']
2339
+ @OplogSize = params['OplogSize']
2340
+ @SecondaryNum = params['SecondaryNum']
2341
+ @RealReplicaSetId = params['RealReplicaSetId']
2342
+ end
2343
+ end
2344
+
2345
+ # 用于描述MongoDB数据库慢日志统计信息
2346
+ class SlowLogPattern < TencentCloud::Common::AbstractModel
2347
+ # @param Pattern: 慢日志模式
2348
+ # @type Pattern: String
2349
+ # @param MaxTime: 最大执行时间
2350
+ # @type MaxTime: Integer
2351
+ # @param AverageTime: 平均执行时间
2352
+ # @type AverageTime: Integer
2353
+ # @param Total: 该模式慢日志条数
2354
+ # @type Total: Integer
2355
+
2356
+ attr_accessor :Pattern, :MaxTime, :AverageTime, :Total
2357
+
2358
+ def initialize(pattern=nil, maxtime=nil, averagetime=nil, total=nil)
2359
+ @Pattern = pattern
2360
+ @MaxTime = maxtime
2361
+ @AverageTime = averagetime
2362
+ @Total = total
2363
+ end
2364
+
2365
+ def deserialize(params)
2366
+ @Pattern = params['Pattern']
2367
+ @MaxTime = params['MaxTime']
2368
+ @AverageTime = params['AverageTime']
2369
+ @Total = params['Total']
2370
+ end
2371
+ end
2372
+
2373
+ # mongodb售卖规格
2374
+ class SpecItem < TencentCloud::Common::AbstractModel
2375
+ # @param SpecCode: 规格信息标识
2376
+ # @type SpecCode: String
2377
+ # @param Status: 规格有效标志,取值:0-停止售卖,1-开放售卖
2378
+ # @type Status: Integer
2379
+ # @param Cpu: 计算资源规格,单位为CPU核心数
2380
+ # @type Cpu: Integer
2381
+ # @param Memory: 内存规格,单位为MB
2382
+ # @type Memory: Integer
2383
+ # @param DefaultStorage: 默认磁盘规格,单位MB
2384
+ # @type DefaultStorage: Integer
2385
+ # @param MaxStorage: 最大磁盘规格,单位MB
2386
+ # @type MaxStorage: Integer
2387
+ # @param MinStorage: 最小磁盘规格,单位MB
2388
+ # @type MinStorage: Integer
2389
+ # @param Qps: 可承载qps信息
2390
+ # @type Qps: Integer
2391
+ # @param Conns: 连接数限制
2392
+ # @type Conns: Integer
2393
+ # @param MongoVersionCode: 实例mongodb版本信息
2394
+ # @type MongoVersionCode: String
2395
+ # @param MongoVersionValue: 实例mongodb版本号
2396
+ # @type MongoVersionValue: Integer
2397
+ # @param Version: 实例mongodb版本号(短)
2398
+ # @type Version: String
2399
+ # @param EngineName: 存储引擎
2400
+ # @type EngineName: String
2401
+ # @param ClusterType: 集群类型,取值:1-分片集群,0-副本集集群
2402
+ # @type ClusterType: Integer
2403
+ # @param MinNodeNum: 最小副本集从节点数
2404
+ # @type MinNodeNum: Integer
2405
+ # @param MaxNodeNum: 最大副本集从节点数
2406
+ # @type MaxNodeNum: Integer
2407
+ # @param MinReplicateSetNum: 最小分片数
2408
+ # @type MinReplicateSetNum: Integer
2409
+ # @param MaxReplicateSetNum: 最大分片数
2410
+ # @type MaxReplicateSetNum: Integer
2411
+ # @param MinReplicateSetNodeNum: 最小分片从节点数
2412
+ # @type MinReplicateSetNodeNum: Integer
2413
+ # @param MaxReplicateSetNodeNum: 最大分片从节点数
2414
+ # @type MaxReplicateSetNodeNum: Integer
2415
+ # @param MachineType: 机器类型,取值:0-HIO,4-HIO10G
2416
+ # @type MachineType: String
2417
+
2418
+ attr_accessor :SpecCode, :Status, :Cpu, :Memory, :DefaultStorage, :MaxStorage, :MinStorage, :Qps, :Conns, :MongoVersionCode, :MongoVersionValue, :Version, :EngineName, :ClusterType, :MinNodeNum, :MaxNodeNum, :MinReplicateSetNum, :MaxReplicateSetNum, :MinReplicateSetNodeNum, :MaxReplicateSetNodeNum, :MachineType
2419
+
2420
+ def initialize(speccode=nil, status=nil, cpu=nil, memory=nil, defaultstorage=nil, maxstorage=nil, minstorage=nil, qps=nil, conns=nil, mongoversioncode=nil, mongoversionvalue=nil, version=nil, enginename=nil, clustertype=nil, minnodenum=nil, maxnodenum=nil, minreplicatesetnum=nil, maxreplicatesetnum=nil, minreplicatesetnodenum=nil, maxreplicatesetnodenum=nil, machinetype=nil)
2421
+ @SpecCode = speccode
2422
+ @Status = status
2423
+ @Cpu = cpu
2424
+ @Memory = memory
2425
+ @DefaultStorage = defaultstorage
2426
+ @MaxStorage = maxstorage
2427
+ @MinStorage = minstorage
2428
+ @Qps = qps
2429
+ @Conns = conns
2430
+ @MongoVersionCode = mongoversioncode
2431
+ @MongoVersionValue = mongoversionvalue
2432
+ @Version = version
2433
+ @EngineName = enginename
2434
+ @ClusterType = clustertype
2435
+ @MinNodeNum = minnodenum
2436
+ @MaxNodeNum = maxnodenum
2437
+ @MinReplicateSetNum = minreplicatesetnum
2438
+ @MaxReplicateSetNum = maxreplicatesetnum
2439
+ @MinReplicateSetNodeNum = minreplicatesetnodenum
2440
+ @MaxReplicateSetNodeNum = maxreplicatesetnodenum
2441
+ @MachineType = machinetype
2442
+ end
2443
+
2444
+ def deserialize(params)
2445
+ @SpecCode = params['SpecCode']
2446
+ @Status = params['Status']
2447
+ @Cpu = params['Cpu']
2448
+ @Memory = params['Memory']
2449
+ @DefaultStorage = params['DefaultStorage']
2450
+ @MaxStorage = params['MaxStorage']
2451
+ @MinStorage = params['MinStorage']
2452
+ @Qps = params['Qps']
2453
+ @Conns = params['Conns']
2454
+ @MongoVersionCode = params['MongoVersionCode']
2455
+ @MongoVersionValue = params['MongoVersionValue']
2456
+ @Version = params['Version']
2457
+ @EngineName = params['EngineName']
2458
+ @ClusterType = params['ClusterType']
2459
+ @MinNodeNum = params['MinNodeNum']
2460
+ @MaxNodeNum = params['MaxNodeNum']
2461
+ @MinReplicateSetNum = params['MinReplicateSetNum']
2462
+ @MaxReplicateSetNum = params['MaxReplicateSetNum']
2463
+ @MinReplicateSetNodeNum = params['MinReplicateSetNodeNum']
2464
+ @MaxReplicateSetNodeNum = params['MaxReplicateSetNodeNum']
2465
+ @MachineType = params['MachineType']
2466
+ end
2467
+ end
2468
+
2469
+ # 实例规格信息
2470
+ class SpecificationInfo < TencentCloud::Common::AbstractModel
2471
+ # @param Region: 地域信息
2472
+ # @type Region: String
2473
+ # @param Zone: 可用区信息
2474
+ # @type Zone: String
2475
+ # @param SpecItems: 售卖规格信息
2476
+ # @type SpecItems: Array
2477
+
2478
+ attr_accessor :Region, :Zone, :SpecItems
2479
+
2480
+ def initialize(region=nil, zone=nil, specitems=nil)
2481
+ @Region = region
2482
+ @Zone = zone
2483
+ @SpecItems = specitems
2484
+ end
2485
+
2486
+ def deserialize(params)
2487
+ @Region = params['Region']
2488
+ @Zone = params['Zone']
2489
+ unless params['SpecItems'].nil?
2490
+ @SpecItems = []
2491
+ params['SpecItems'].each do |i|
2492
+ specitem_tmp = SpecItem.new
2493
+ specitem_tmp.deserialize(i)
2494
+ @SpecItems << specitem_tmp
2495
+ end
2496
+ end
2497
+ end
2498
+ end
2499
+
2500
+ # 实例标签信息
2501
+ class TagInfo < TencentCloud::Common::AbstractModel
2502
+ # @param TagKey: 标签键
2503
+ # @type TagKey: String
2504
+ # @param TagValue: 标签值
2505
+ # @type TagValue: String
2506
+
2507
+ attr_accessor :TagKey, :TagValue
2508
+
2509
+ def initialize(tagkey=nil, tagvalue=nil)
2510
+ @TagKey = tagkey
2511
+ @TagValue = tagvalue
2512
+ end
2513
+
2514
+ def deserialize(params)
2515
+ @TagKey = params['TagKey']
2516
+ @TagValue = params['TagValue']
2517
+ end
2518
+ end
2519
+
2520
+ end
2521
+ end
2522
+ end
2523
+