tencentcloud-sdk-dcdb 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4171 @@
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 Dcdb
19
+ module V20180411
20
+ # 升级实例 -- 新增分片类型
21
+ class AddShardConfig < TencentCloud::Common::AbstractModel
22
+ # @param ShardCount: 新增分片的数量
23
+ # @type ShardCount: Integer
24
+ # @param ShardMemory: 分片内存大小,单位 GB
25
+ # @type ShardMemory: Integer
26
+ # @param ShardStorage: 分片存储大小,单位 GB
27
+ # @type ShardStorage: Integer
28
+
29
+ attr_accessor :ShardCount, :ShardMemory, :ShardStorage
30
+
31
+ def initialize(shardcount=nil, shardmemory=nil, shardstorage=nil)
32
+ @ShardCount = shardcount
33
+ @ShardMemory = shardmemory
34
+ @ShardStorage = shardstorage
35
+ end
36
+
37
+ def deserialize(params)
38
+ @ShardCount = params['ShardCount']
39
+ @ShardMemory = params['ShardMemory']
40
+ @ShardStorage = params['ShardStorage']
41
+ end
42
+ end
43
+
44
+ # AssociateSecurityGroups请求参数结构体
45
+ class AssociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
46
+ # @param Product: 数据库引擎名称,本接口取值:dcdb。
47
+ # @type Product: String
48
+ # @param SecurityGroupId: 要绑定的安全组ID,类似sg-efil73jd。
49
+ # @type SecurityGroupId: String
50
+ # @param InstanceIds: 被绑定的实例ID,类似tdsqlshard-lesecurk,支持指定多个实例。
51
+ # @type InstanceIds: Array
52
+
53
+ attr_accessor :Product, :SecurityGroupId, :InstanceIds
54
+
55
+ def initialize(product=nil, securitygroupid=nil, instanceids=nil)
56
+ @Product = product
57
+ @SecurityGroupId = securitygroupid
58
+ @InstanceIds = instanceids
59
+ end
60
+
61
+ def deserialize(params)
62
+ @Product = params['Product']
63
+ @SecurityGroupId = params['SecurityGroupId']
64
+ @InstanceIds = params['InstanceIds']
65
+ end
66
+ end
67
+
68
+ # AssociateSecurityGroups返回参数结构体
69
+ class AssociateSecurityGroupsResponse < TencentCloud::Common::AbstractModel
70
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
71
+ # @type RequestId: String
72
+
73
+ attr_accessor :RequestId
74
+
75
+ def initialize(requestid=nil)
76
+ @RequestId = requestid
77
+ end
78
+
79
+ def deserialize(params)
80
+ @RequestId = params['RequestId']
81
+ end
82
+ end
83
+
84
+ # 描述分片DB节点信息
85
+ class BriefNodeInfo < TencentCloud::Common::AbstractModel
86
+ # @param NodeId: DB节点ID
87
+ # @type NodeId: String
88
+ # @param Role: DB节点角色,取值为master或者slave
89
+ # @type Role: String
90
+ # @param ShardId: 节点所属分片的分片ID
91
+ # @type ShardId: String
92
+
93
+ attr_accessor :NodeId, :Role, :ShardId
94
+
95
+ def initialize(nodeid=nil, role=nil, shardid=nil)
96
+ @NodeId = nodeid
97
+ @Role = role
98
+ @ShardId = shardid
99
+ end
100
+
101
+ def deserialize(params)
102
+ @NodeId = params['NodeId']
103
+ @Role = params['Role']
104
+ @ShardId = params['ShardId']
105
+ end
106
+ end
107
+
108
+ # CancelDcnJob请求参数结构体
109
+ class CancelDcnJobRequest < TencentCloud::Common::AbstractModel
110
+ # @param InstanceId: 灾备实例ID
111
+ # @type InstanceId: String
112
+
113
+ attr_accessor :InstanceId
114
+
115
+ def initialize(instanceid=nil)
116
+ @InstanceId = instanceid
117
+ end
118
+
119
+ def deserialize(params)
120
+ @InstanceId = params['InstanceId']
121
+ end
122
+ end
123
+
124
+ # CancelDcnJob返回参数结构体
125
+ class CancelDcnJobResponse < TencentCloud::Common::AbstractModel
126
+ # @param FlowId: 流程ID
127
+ # @type FlowId: Integer
128
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
129
+ # @type RequestId: String
130
+
131
+ attr_accessor :FlowId, :RequestId
132
+
133
+ def initialize(flowid=nil, requestid=nil)
134
+ @FlowId = flowid
135
+ @RequestId = requestid
136
+ end
137
+
138
+ def deserialize(params)
139
+ @FlowId = params['FlowId']
140
+ @RequestId = params['RequestId']
141
+ end
142
+ end
143
+
144
+ # CloneAccount请求参数结构体
145
+ class CloneAccountRequest < TencentCloud::Common::AbstractModel
146
+ # @param InstanceId: 实例ID
147
+ # @type InstanceId: String
148
+ # @param SrcUser: 源用户账户名
149
+ # @type SrcUser: String
150
+ # @param SrcHost: 源用户HOST
151
+ # @type SrcHost: String
152
+ # @param DstUser: 目的用户账户名
153
+ # @type DstUser: String
154
+ # @param DstHost: 目的用户HOST
155
+ # @type DstHost: String
156
+ # @param DstDesc: 目的用户账户描述
157
+ # @type DstDesc: String
158
+
159
+ attr_accessor :InstanceId, :SrcUser, :SrcHost, :DstUser, :DstHost, :DstDesc
160
+
161
+ def initialize(instanceid=nil, srcuser=nil, srchost=nil, dstuser=nil, dsthost=nil, dstdesc=nil)
162
+ @InstanceId = instanceid
163
+ @SrcUser = srcuser
164
+ @SrcHost = srchost
165
+ @DstUser = dstuser
166
+ @DstHost = dsthost
167
+ @DstDesc = dstdesc
168
+ end
169
+
170
+ def deserialize(params)
171
+ @InstanceId = params['InstanceId']
172
+ @SrcUser = params['SrcUser']
173
+ @SrcHost = params['SrcHost']
174
+ @DstUser = params['DstUser']
175
+ @DstHost = params['DstHost']
176
+ @DstDesc = params['DstDesc']
177
+ end
178
+ end
179
+
180
+ # CloneAccount返回参数结构体
181
+ class CloneAccountResponse < TencentCloud::Common::AbstractModel
182
+ # @param FlowId: 异步任务流程ID
183
+ # @type FlowId: Integer
184
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
185
+ # @type RequestId: String
186
+
187
+ attr_accessor :FlowId, :RequestId
188
+
189
+ def initialize(flowid=nil, requestid=nil)
190
+ @FlowId = flowid
191
+ @RequestId = requestid
192
+ end
193
+
194
+ def deserialize(params)
195
+ @FlowId = params['FlowId']
196
+ @RequestId = params['RequestId']
197
+ end
198
+ end
199
+
200
+ # CloseDBExtranetAccess请求参数结构体
201
+ class CloseDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
202
+ # @param InstanceId: 待关闭外网访问的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
203
+ # @type InstanceId: String
204
+ # @param Ipv6Flag: 是否IPv6,默认0
205
+ # @type Ipv6Flag: Integer
206
+
207
+ attr_accessor :InstanceId, :Ipv6Flag
208
+
209
+ def initialize(instanceid=nil, ipv6flag=nil)
210
+ @InstanceId = instanceid
211
+ @Ipv6Flag = ipv6flag
212
+ end
213
+
214
+ def deserialize(params)
215
+ @InstanceId = params['InstanceId']
216
+ @Ipv6Flag = params['Ipv6Flag']
217
+ end
218
+ end
219
+
220
+ # CloseDBExtranetAccess返回参数结构体
221
+ class CloseDBExtranetAccessResponse < TencentCloud::Common::AbstractModel
222
+ # @param FlowId: 异步任务ID,可通过 DescribeFlow 查询任务状态。
223
+ # @type FlowId: Integer
224
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
225
+ # @type RequestId: String
226
+
227
+ attr_accessor :FlowId, :RequestId
228
+
229
+ def initialize(flowid=nil, requestid=nil)
230
+ @FlowId = flowid
231
+ @RequestId = requestid
232
+ end
233
+
234
+ def deserialize(params)
235
+ @FlowId = params['FlowId']
236
+ @RequestId = params['RequestId']
237
+ end
238
+ end
239
+
240
+ # 约束类型值的范围
241
+ class ConstraintRange < TencentCloud::Common::AbstractModel
242
+ # @param Min: 约束类型为section时的最小值
243
+ # @type Min: String
244
+ # @param Max: 约束类型为section时的最大值
245
+ # @type Max: String
246
+
247
+ attr_accessor :Min, :Max
248
+
249
+ def initialize(min=nil, max=nil)
250
+ @Min = min
251
+ @Max = max
252
+ end
253
+
254
+ def deserialize(params)
255
+ @Min = params['Min']
256
+ @Max = params['Max']
257
+ end
258
+ end
259
+
260
+ # CopyAccountPrivileges请求参数结构体
261
+ class CopyAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
262
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
263
+ # @type InstanceId: String
264
+ # @param SrcUserName: 源用户名
265
+ # @type SrcUserName: String
266
+ # @param SrcHost: 源用户允许的访问 host
267
+ # @type SrcHost: String
268
+ # @param DstUserName: 目的用户名
269
+ # @type DstUserName: String
270
+ # @param DstHost: 目的用户允许的访问 host
271
+ # @type DstHost: String
272
+ # @param SrcReadOnly: 源账号的 ReadOnly 属性
273
+ # @type SrcReadOnly: String
274
+ # @param DstReadOnly: 目的账号的 ReadOnly 属性
275
+ # @type DstReadOnly: String
276
+
277
+ attr_accessor :InstanceId, :SrcUserName, :SrcHost, :DstUserName, :DstHost, :SrcReadOnly, :DstReadOnly
278
+
279
+ def initialize(instanceid=nil, srcusername=nil, srchost=nil, dstusername=nil, dsthost=nil, srcreadonly=nil, dstreadonly=nil)
280
+ @InstanceId = instanceid
281
+ @SrcUserName = srcusername
282
+ @SrcHost = srchost
283
+ @DstUserName = dstusername
284
+ @DstHost = dsthost
285
+ @SrcReadOnly = srcreadonly
286
+ @DstReadOnly = dstreadonly
287
+ end
288
+
289
+ def deserialize(params)
290
+ @InstanceId = params['InstanceId']
291
+ @SrcUserName = params['SrcUserName']
292
+ @SrcHost = params['SrcHost']
293
+ @DstUserName = params['DstUserName']
294
+ @DstHost = params['DstHost']
295
+ @SrcReadOnly = params['SrcReadOnly']
296
+ @DstReadOnly = params['DstReadOnly']
297
+ end
298
+ end
299
+
300
+ # CopyAccountPrivileges返回参数结构体
301
+ class CopyAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
302
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
303
+ # @type RequestId: String
304
+
305
+ attr_accessor :RequestId
306
+
307
+ def initialize(requestid=nil)
308
+ @RequestId = requestid
309
+ end
310
+
311
+ def deserialize(params)
312
+ @RequestId = params['RequestId']
313
+ end
314
+ end
315
+
316
+ # CreateAccount请求参数结构体
317
+ class CreateAccountRequest < TencentCloud::Common::AbstractModel
318
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
319
+ # @type InstanceId: String
320
+ # @param UserName: AccountName
321
+ # @type UserName: String
322
+ # @param Host: 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
323
+ # @type Host: String
324
+ # @param Password: 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
325
+ # @type Password: String
326
+ # @param ReadOnly: 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。
327
+ # @type ReadOnly: Integer
328
+ # @param Description: 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
329
+ # @type Description: String
330
+ # @param DelayThresh: 如果备机延迟超过本参数设置值,系统将认为备机发生故障
331
+ # 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
332
+ # @type DelayThresh: Integer
333
+
334
+ attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh
335
+
336
+ def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil)
337
+ @InstanceId = instanceid
338
+ @UserName = username
339
+ @Host = host
340
+ @Password = password
341
+ @ReadOnly = readonly
342
+ @Description = description
343
+ @DelayThresh = delaythresh
344
+ end
345
+
346
+ def deserialize(params)
347
+ @InstanceId = params['InstanceId']
348
+ @UserName = params['UserName']
349
+ @Host = params['Host']
350
+ @Password = params['Password']
351
+ @ReadOnly = params['ReadOnly']
352
+ @Description = params['Description']
353
+ @DelayThresh = params['DelayThresh']
354
+ end
355
+ end
356
+
357
+ # CreateAccount返回参数结构体
358
+ class CreateAccountResponse < TencentCloud::Common::AbstractModel
359
+ # @param InstanceId: 实例ID,透传入参。
360
+ # @type InstanceId: String
361
+ # @param UserName: 用户名,透传入参。
362
+ # @type UserName: String
363
+ # @param Host: 允许访问的 host,透传入参。
364
+ # @type Host: String
365
+ # @param ReadOnly: 透传入参。
366
+ # @type ReadOnly: Integer
367
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
368
+ # @type RequestId: String
369
+
370
+ attr_accessor :InstanceId, :UserName, :Host, :ReadOnly, :RequestId
371
+
372
+ def initialize(instanceid=nil, username=nil, host=nil, readonly=nil, requestid=nil)
373
+ @InstanceId = instanceid
374
+ @UserName = username
375
+ @Host = host
376
+ @ReadOnly = readonly
377
+ @RequestId = requestid
378
+ end
379
+
380
+ def deserialize(params)
381
+ @InstanceId = params['InstanceId']
382
+ @UserName = params['UserName']
383
+ @Host = params['Host']
384
+ @ReadOnly = params['ReadOnly']
385
+ @RequestId = params['RequestId']
386
+ end
387
+ end
388
+
389
+ # CreateDCDBInstance请求参数结构体
390
+ class CreateDCDBInstanceRequest < TencentCloud::Common::AbstractModel
391
+ # @param Zones: 分片节点可用区分布,最多可填两个可用区。当分片规格为一主两从时,其中两个节点在第一个可用区。
392
+ # 注意当前可售卖的可用区需要通过DescribeDCDBSaleInfo接口拉取。
393
+ # @type Zones: Array
394
+ # @param Period: 欲购买的时长,单位:月。
395
+ # @type Period: Integer
396
+ # @param ShardMemory: 分片内存大小,单位:GB,可以通过 DescribeShardSpec
397
+ # 查询实例规格获得。
398
+ # @type ShardMemory: Integer
399
+ # @param ShardStorage: 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec
400
+ # 查询实例规格获得。
401
+ # @type ShardStorage: Integer
402
+ # @param ShardNodeCount: 单个分片节点个数,可以通过 DescribeShardSpec
403
+ # 查询实例规格获得。
404
+ # @type ShardNodeCount: Integer
405
+ # @param ShardCount: 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。
406
+ # @type ShardCount: Integer
407
+ # @param Count: 欲购买实例的数量
408
+ # @type Count: Integer
409
+ # @param ProjectId: 项目 ID,可以通过查看项目列表获取,不传则关联到默认项目
410
+ # @type ProjectId: Integer
411
+ # @param VpcId: 虚拟私有网络 ID,不传或传空表示创建为基础网络
412
+ # @type VpcId: String
413
+ # @param SubnetId: 虚拟私有网络子网 ID,VpcId不为空时必填
414
+ # @type SubnetId: String
415
+ # @param DbVersionId: 数据库引擎版本,当前可选:8.0.18,10.1.9,5.7.17。
416
+ # 8.0.18 - MySQL 8.0.18;
417
+ # 10.1.9 - Mariadb 10.1.9;
418
+ # 5.7.17 - Percona 5.7.17。
419
+ # 如果不填的话,默认为5.7.17,表示Percona 5.7.17。
420
+ # @type DbVersionId: String
421
+ # @param AutoVoucher: 是否自动使用代金券进行支付,默认不使用。
422
+ # @type AutoVoucher: Boolean
423
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
424
+ # @type VoucherIds: Array
425
+ # @param SecurityGroupId: 安全组id
426
+ # @type SecurityGroupId: String
427
+ # @param InstanceName: 实例名称, 可以通过该字段自主的设置实例的名字
428
+ # @type InstanceName: String
429
+ # @param Ipv6Flag: 是否支持IPv6
430
+ # @type Ipv6Flag: Integer
431
+ # @param ResourceTags: 标签键值对数组
432
+ # @type ResourceTags: Array
433
+ # @param InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。
434
+ # @type InitParams: Array
435
+ # @param DcnRegion: DCN源地域
436
+ # @type DcnRegion: String
437
+ # @param DcnInstanceId: DCN源实例ID
438
+ # @type DcnInstanceId: String
439
+
440
+ attr_accessor :Zones, :Period, :ShardMemory, :ShardStorage, :ShardNodeCount, :ShardCount, :Count, :ProjectId, :VpcId, :SubnetId, :DbVersionId, :AutoVoucher, :VoucherIds, :SecurityGroupId, :InstanceName, :Ipv6Flag, :ResourceTags, :InitParams, :DcnRegion, :DcnInstanceId
441
+
442
+ def initialize(zones=nil, period=nil, shardmemory=nil, shardstorage=nil, shardnodecount=nil, shardcount=nil, count=nil, projectid=nil, vpcid=nil, subnetid=nil, dbversionid=nil, autovoucher=nil, voucherids=nil, securitygroupid=nil, instancename=nil, ipv6flag=nil, resourcetags=nil, initparams=nil, dcnregion=nil, dcninstanceid=nil)
443
+ @Zones = zones
444
+ @Period = period
445
+ @ShardMemory = shardmemory
446
+ @ShardStorage = shardstorage
447
+ @ShardNodeCount = shardnodecount
448
+ @ShardCount = shardcount
449
+ @Count = count
450
+ @ProjectId = projectid
451
+ @VpcId = vpcid
452
+ @SubnetId = subnetid
453
+ @DbVersionId = dbversionid
454
+ @AutoVoucher = autovoucher
455
+ @VoucherIds = voucherids
456
+ @SecurityGroupId = securitygroupid
457
+ @InstanceName = instancename
458
+ @Ipv6Flag = ipv6flag
459
+ @ResourceTags = resourcetags
460
+ @InitParams = initparams
461
+ @DcnRegion = dcnregion
462
+ @DcnInstanceId = dcninstanceid
463
+ end
464
+
465
+ def deserialize(params)
466
+ @Zones = params['Zones']
467
+ @Period = params['Period']
468
+ @ShardMemory = params['ShardMemory']
469
+ @ShardStorage = params['ShardStorage']
470
+ @ShardNodeCount = params['ShardNodeCount']
471
+ @ShardCount = params['ShardCount']
472
+ @Count = params['Count']
473
+ @ProjectId = params['ProjectId']
474
+ @VpcId = params['VpcId']
475
+ @SubnetId = params['SubnetId']
476
+ @DbVersionId = params['DbVersionId']
477
+ @AutoVoucher = params['AutoVoucher']
478
+ @VoucherIds = params['VoucherIds']
479
+ @SecurityGroupId = params['SecurityGroupId']
480
+ @InstanceName = params['InstanceName']
481
+ @Ipv6Flag = params['Ipv6Flag']
482
+ unless params['ResourceTags'].nil?
483
+ @ResourceTags = []
484
+ params['ResourceTags'].each do |i|
485
+ resourcetag_tmp = ResourceTag.new
486
+ resourcetag_tmp.deserialize(i)
487
+ @ResourceTags << resourcetag_tmp
488
+ end
489
+ end
490
+ unless params['InitParams'].nil?
491
+ @InitParams = []
492
+ params['InitParams'].each do |i|
493
+ dbparamvalue_tmp = DBParamValue.new
494
+ dbparamvalue_tmp.deserialize(i)
495
+ @InitParams << dbparamvalue_tmp
496
+ end
497
+ end
498
+ @DcnRegion = params['DcnRegion']
499
+ @DcnInstanceId = params['DcnInstanceId']
500
+ end
501
+ end
502
+
503
+ # CreateDCDBInstance返回参数结构体
504
+ class CreateDCDBInstanceResponse < TencentCloud::Common::AbstractModel
505
+ # @param DealName: 长订单号。可以据此调用 DescribeOrders
506
+ # 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。
507
+ # @type DealName: String
508
+ # @param InstanceIds: 订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。
509
+ # 注意:此字段可能返回 null,表示取不到有效值。
510
+ # @type InstanceIds: Array
511
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
512
+ # @type RequestId: String
513
+
514
+ attr_accessor :DealName, :InstanceIds, :RequestId
515
+
516
+ def initialize(dealname=nil, instanceids=nil, requestid=nil)
517
+ @DealName = dealname
518
+ @InstanceIds = instanceids
519
+ @RequestId = requestid
520
+ end
521
+
522
+ def deserialize(params)
523
+ @DealName = params['DealName']
524
+ @InstanceIds = params['InstanceIds']
525
+ @RequestId = params['RequestId']
526
+ end
527
+ end
528
+
529
+ # CreateDedicatedClusterDCDBInstance请求参数结构体
530
+ class CreateDedicatedClusterDCDBInstanceRequest < TencentCloud::Common::AbstractModel
531
+ # @param GoodsNum: 分配实例个数
532
+ # @type GoodsNum: Integer
533
+ # @param ShardNum: 分片数量
534
+ # @type ShardNum: Integer
535
+ # @param ShardMemory: 分片內存大小, 单位GB
536
+ # @type ShardMemory: Integer
537
+ # @param ShardStorage: 分片磁盘大小, 单位GB
538
+ # @type ShardStorage: Integer
539
+ # @param ClusterId: 独享集群集群uuid
540
+ # @type ClusterId: String
541
+ # @param Zone: (废弃)可用区
542
+ # @type Zone: String
543
+ # @param ProjectId: 项目ID
544
+ # @type ProjectId: Integer
545
+ # @param Cpu: (废弃)cpu大小,单位:核
546
+ # @type Cpu: Integer
547
+ # @param VpcId: 网络ID
548
+ # @type VpcId: String
549
+ # @param SubnetId: 子网ID
550
+ # @type SubnetId: String
551
+ # @param ShardMachine: (废弃)分片机型
552
+ # @type ShardMachine: String
553
+ # @param ShardNodeNum: 分片的节点个数
554
+ # @type ShardNodeNum: Integer
555
+ # @param ShardNodeCpu: (废弃)节点cpu核数,单位:1/100核
556
+ # @type ShardNodeCpu: Integer
557
+ # @param ShardNodeMemory: (废弃)节点內存大小,单位:GB
558
+ # @type ShardNodeMemory: Integer
559
+ # @param ShardNodeStorage: (废弃)节点磁盘大小,单位:GB
560
+ # @type ShardNodeStorage: Integer
561
+ # @param DbVersionId: db版本
562
+ # @type DbVersionId: String
563
+ # @param SecurityGroupId: 安全组ID
564
+ # @type SecurityGroupId: String
565
+ # @param DcnInstanceId: DCN源实例ID
566
+ # @type DcnInstanceId: String
567
+ # @param DcnRegion: DCN源实例地域名
568
+ # @type DcnRegion: String
569
+ # @param InstanceName: 自定义实例名称
570
+ # @type InstanceName: String
571
+ # @param ResourceTags: 标签
572
+ # @type ResourceTags: Array
573
+ # @param Ipv6Flag: 支持IPv6标志:1 支持, 0 不支持
574
+ # @type Ipv6Flag: Integer
575
+ # @param Pid: (废弃)Pid,可通过获取独享集群售卖配置接口得到
576
+ # @type Pid: Integer
577
+ # @param InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。
578
+ # @type InitParams: :class:`Tencentcloud::Dcdb.v20180411.models.DBParamValue`
579
+ # @param MasterHostId: 指定主节点uuid,不填随机分配
580
+ # @type MasterHostId: String
581
+ # @param SlaveHostIds: 指定从节点uuid,不填随机分配
582
+ # @type SlaveHostIds: Array
583
+
584
+ attr_accessor :GoodsNum, :ShardNum, :ShardMemory, :ShardStorage, :ClusterId, :Zone, :ProjectId, :Cpu, :VpcId, :SubnetId, :ShardMachine, :ShardNodeNum, :ShardNodeCpu, :ShardNodeMemory, :ShardNodeStorage, :DbVersionId, :SecurityGroupId, :DcnInstanceId, :DcnRegion, :InstanceName, :ResourceTags, :Ipv6Flag, :Pid, :InitParams, :MasterHostId, :SlaveHostIds
585
+
586
+ def initialize(goodsnum=nil, shardnum=nil, shardmemory=nil, shardstorage=nil, clusterid=nil, zone=nil, projectid=nil, cpu=nil, vpcid=nil, subnetid=nil, shardmachine=nil, shardnodenum=nil, shardnodecpu=nil, shardnodememory=nil, shardnodestorage=nil, dbversionid=nil, securitygroupid=nil, dcninstanceid=nil, dcnregion=nil, instancename=nil, resourcetags=nil, ipv6flag=nil, pid=nil, initparams=nil, masterhostid=nil, slavehostids=nil)
587
+ @GoodsNum = goodsnum
588
+ @ShardNum = shardnum
589
+ @ShardMemory = shardmemory
590
+ @ShardStorage = shardstorage
591
+ @ClusterId = clusterid
592
+ @Zone = zone
593
+ @ProjectId = projectid
594
+ @Cpu = cpu
595
+ @VpcId = vpcid
596
+ @SubnetId = subnetid
597
+ @ShardMachine = shardmachine
598
+ @ShardNodeNum = shardnodenum
599
+ @ShardNodeCpu = shardnodecpu
600
+ @ShardNodeMemory = shardnodememory
601
+ @ShardNodeStorage = shardnodestorage
602
+ @DbVersionId = dbversionid
603
+ @SecurityGroupId = securitygroupid
604
+ @DcnInstanceId = dcninstanceid
605
+ @DcnRegion = dcnregion
606
+ @InstanceName = instancename
607
+ @ResourceTags = resourcetags
608
+ @Ipv6Flag = ipv6flag
609
+ @Pid = pid
610
+ @InitParams = initparams
611
+ @MasterHostId = masterhostid
612
+ @SlaveHostIds = slavehostids
613
+ end
614
+
615
+ def deserialize(params)
616
+ @GoodsNum = params['GoodsNum']
617
+ @ShardNum = params['ShardNum']
618
+ @ShardMemory = params['ShardMemory']
619
+ @ShardStorage = params['ShardStorage']
620
+ @ClusterId = params['ClusterId']
621
+ @Zone = params['Zone']
622
+ @ProjectId = params['ProjectId']
623
+ @Cpu = params['Cpu']
624
+ @VpcId = params['VpcId']
625
+ @SubnetId = params['SubnetId']
626
+ @ShardMachine = params['ShardMachine']
627
+ @ShardNodeNum = params['ShardNodeNum']
628
+ @ShardNodeCpu = params['ShardNodeCpu']
629
+ @ShardNodeMemory = params['ShardNodeMemory']
630
+ @ShardNodeStorage = params['ShardNodeStorage']
631
+ @DbVersionId = params['DbVersionId']
632
+ @SecurityGroupId = params['SecurityGroupId']
633
+ @DcnInstanceId = params['DcnInstanceId']
634
+ @DcnRegion = params['DcnRegion']
635
+ @InstanceName = params['InstanceName']
636
+ unless params['ResourceTags'].nil?
637
+ @ResourceTags = []
638
+ params['ResourceTags'].each do |i|
639
+ resourcetag_tmp = ResourceTag.new
640
+ resourcetag_tmp.deserialize(i)
641
+ @ResourceTags << resourcetag_tmp
642
+ end
643
+ end
644
+ @Ipv6Flag = params['Ipv6Flag']
645
+ @Pid = params['Pid']
646
+ unless params['InitParams'].nil?
647
+ @InitParams = DBParamValue.new
648
+ @InitParams.deserialize(params['InitParams'])
649
+ end
650
+ @MasterHostId = params['MasterHostId']
651
+ @SlaveHostIds = params['SlaveHostIds']
652
+ end
653
+ end
654
+
655
+ # CreateDedicatedClusterDCDBInstance返回参数结构体
656
+ class CreateDedicatedClusterDCDBInstanceResponse < TencentCloud::Common::AbstractModel
657
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
658
+ # @type RequestId: String
659
+
660
+ attr_accessor :RequestId
661
+
662
+ def initialize(requestid=nil)
663
+ @RequestId = requestid
664
+ end
665
+
666
+ def deserialize(params)
667
+ @RequestId = params['RequestId']
668
+ end
669
+ end
670
+
671
+ # 云数据库账号信息
672
+ class DBAccount < TencentCloud::Common::AbstractModel
673
+ # @param UserName: 用户名
674
+ # @type UserName: String
675
+ # @param Host: 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)
676
+ # @type Host: String
677
+ # @param Description: 用户备注信息
678
+ # @type Description: String
679
+ # @param CreateTime: 创建时间
680
+ # @type CreateTime: String
681
+ # @param UpdateTime: 最后更新时间
682
+ # @type UpdateTime: String
683
+ # @param ReadOnly: 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
684
+ # @type ReadOnly: Integer
685
+ # @param DelayThresh: 如果备机延迟超过本参数设置值,系统将认为备机发生故障
686
+ # 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
687
+ # @type DelayThresh: Integer
688
+
689
+ attr_accessor :UserName, :Host, :Description, :CreateTime, :UpdateTime, :ReadOnly, :DelayThresh
690
+
691
+ def initialize(username=nil, host=nil, description=nil, createtime=nil, updatetime=nil, readonly=nil, delaythresh=nil)
692
+ @UserName = username
693
+ @Host = host
694
+ @Description = description
695
+ @CreateTime = createtime
696
+ @UpdateTime = updatetime
697
+ @ReadOnly = readonly
698
+ @DelayThresh = delaythresh
699
+ end
700
+
701
+ def deserialize(params)
702
+ @UserName = params['UserName']
703
+ @Host = params['Host']
704
+ @Description = params['Description']
705
+ @CreateTime = params['CreateTime']
706
+ @UpdateTime = params['UpdateTime']
707
+ @ReadOnly = params['ReadOnly']
708
+ @DelayThresh = params['DelayThresh']
709
+ end
710
+ end
711
+
712
+ # 云数据库参数信息。
713
+ class DBParamValue < TencentCloud::Common::AbstractModel
714
+ # @param Param: 参数名称
715
+ # @type Param: String
716
+ # @param Value: 参数值
717
+ # @type Value: String
718
+
719
+ attr_accessor :Param, :Value
720
+
721
+ def initialize(param=nil, value=nil)
722
+ @Param = param
723
+ @Value = value
724
+ end
725
+
726
+ def deserialize(params)
727
+ @Param = params['Param']
728
+ @Value = params['Value']
729
+ end
730
+ end
731
+
732
+ # 分布式数据库实例信息
733
+ class DCDBInstanceInfo < TencentCloud::Common::AbstractModel
734
+ # @param InstanceId: 实例ID
735
+ # @type InstanceId: String
736
+ # @param InstanceName: 实例名称
737
+ # @type InstanceName: String
738
+ # @param AppId: 应用ID
739
+ # @type AppId: Integer
740
+ # @param ProjectId: 项目ID
741
+ # @type ProjectId: Integer
742
+ # @param Region: 地域
743
+ # @type Region: String
744
+ # @param Zone: 可用区
745
+ # @type Zone: String
746
+ # @param VpcId: VPC数字ID
747
+ # @type VpcId: Integer
748
+ # @param SubnetId: Subnet数字ID
749
+ # @type SubnetId: Integer
750
+ # @param StatusDesc: 状态中文描述
751
+ # @type StatusDesc: String
752
+ # @param Status: 实例状态:0 创建中,1 流程处理中, 2 运行中,3 实例未初始化,-1 实例已隔离,4 实例初始化中,5 实例删除中,6 实例重启中,7 数据迁移中
753
+ # @type Status: Integer
754
+ # @param Vip: 内网IP
755
+ # @type Vip: String
756
+ # @param Vport: 内网端口
757
+ # @type Vport: Integer
758
+ # @param CreateTime: 创建时间
759
+ # @type CreateTime: String
760
+ # @param AutoRenewFlag: 自动续费标志
761
+ # @type AutoRenewFlag: Integer
762
+ # @param Memory: 内存大小,单位 GB
763
+ # @type Memory: Integer
764
+ # @param Storage: 存储大小,单位 GB
765
+ # @type Storage: Integer
766
+ # @param ShardCount: 分片个数
767
+ # @type ShardCount: Integer
768
+ # @param PeriodEndTime: 到期时间
769
+ # @type PeriodEndTime: String
770
+ # @param IsolatedTimestamp: 隔离时间
771
+ # @type IsolatedTimestamp: String
772
+ # @param Uin: 账号ID
773
+ # @type Uin: String
774
+ # @param ShardDetail: 分片详情
775
+ # @type ShardDetail: Array
776
+ # @param NodeCount: 节点数,2 为一主一从, 3 为一主二从
777
+ # @type NodeCount: Integer
778
+ # @param IsTmp: 临时实例标记,0 为非临时实例
779
+ # @type IsTmp: Integer
780
+ # @param ExclusterId: 独享集群ID,为空表示非独享集群实例
781
+ # @type ExclusterId: String
782
+ # @param UniqueVpcId: 字符串型的私有网络ID
783
+ # @type UniqueVpcId: String
784
+ # @param UniqueSubnetId: 字符串型的私有网络子网ID
785
+ # @type UniqueSubnetId: String
786
+ # @param Id: 数字实例ID(过时字段,请勿依赖该值)
787
+ # @type Id: Integer
788
+ # @param WanDomain: 外网访问的域名,公网可解析
789
+ # @type WanDomain: String
790
+ # @param WanVip: 外网 IP 地址,公网可访问
791
+ # @type WanVip: String
792
+ # @param WanPort: 外网端口
793
+ # @type WanPort: Integer
794
+ # @param Pid: 产品类型 ID(过时字段,请勿依赖该值)
795
+ # @type Pid: Integer
796
+ # @param UpdateTime: 实例最后更新时间,格式为 2006-01-02 15:04:05
797
+ # @type UpdateTime: String
798
+ # @param DbEngine: 数据库引擎
799
+ # @type DbEngine: String
800
+ # @param DbVersion: 数据库引擎版本
801
+ # @type DbVersion: String
802
+ # @param Paymode: 付费模式
803
+ # @type Paymode: String
804
+ # @param Locker: 实例处于异步任务状态时,表示异步任务流程ID
805
+ # 注意:此字段可能返回 null,表示取不到有效值。
806
+ # @type Locker: Integer
807
+ # @param WanStatus: 外网状态,0-未开通;1-已开通;2-关闭;3-开通中
808
+ # @type WanStatus: Integer
809
+ # @param IsAuditSupported: 该实例是否支持审计。1-支持;0-不支持
810
+ # @type IsAuditSupported: Integer
811
+ # @param Cpu: Cpu核数
812
+ # @type Cpu: Integer
813
+ # @param Ipv6Flag: 实例IPv6标志
814
+ # 注意:此字段可能返回 null,表示取不到有效值。
815
+ # @type Ipv6Flag: Integer
816
+ # @param Vipv6: 内网IPv6
817
+ # 注意:此字段可能返回 null,表示取不到有效值。
818
+ # @type Vipv6: String
819
+ # @param WanVipv6: 外网IPv6
820
+ # 注意:此字段可能返回 null,表示取不到有效值。
821
+ # @type WanVipv6: String
822
+ # @param WanPortIpv6: 外网IPv6端口
823
+ # 注意:此字段可能返回 null,表示取不到有效值。
824
+ # @type WanPortIpv6: Integer
825
+ # @param WanStatusIpv6: 外网IPv6状态
826
+ # 注意:此字段可能返回 null,表示取不到有效值。
827
+ # @type WanStatusIpv6: Integer
828
+ # @param DcnFlag: DCN标志,0-无,1-主实例,2-灾备实例
829
+ # 注意:此字段可能返回 null,表示取不到有效值。
830
+ # @type DcnFlag: Integer
831
+ # @param DcnStatus: DCN状态,0-无,1-创建中,2-同步中,3-已断开
832
+ # 注意:此字段可能返回 null,表示取不到有效值。
833
+ # @type DcnStatus: Integer
834
+ # @param DcnDstNum: DCN灾备实例数
835
+ # 注意:此字段可能返回 null,表示取不到有效值。
836
+ # @type DcnDstNum: Integer
837
+ # @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)
838
+ # 注意:此字段可能返回 null,表示取不到有效值。
839
+ # @type InstanceType: Integer
840
+
841
+ attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :StatusDesc, :Status, :Vip, :Vport, :CreateTime, :AutoRenewFlag, :Memory, :Storage, :ShardCount, :PeriodEndTime, :IsolatedTimestamp, :Uin, :ShardDetail, :NodeCount, :IsTmp, :ExclusterId, :UniqueVpcId, :UniqueSubnetId, :Id, :WanDomain, :WanVip, :WanPort, :Pid, :UpdateTime, :DbEngine, :DbVersion, :Paymode, :Locker, :WanStatus, :IsAuditSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType
842
+
843
+ def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, statusdesc=nil, status=nil, vip=nil, vport=nil, createtime=nil, autorenewflag=nil, memory=nil, storage=nil, shardcount=nil, periodendtime=nil, isolatedtimestamp=nil, uin=nil, sharddetail=nil, nodecount=nil, istmp=nil, exclusterid=nil, uniquevpcid=nil, uniquesubnetid=nil, id=nil, wandomain=nil, wanvip=nil, wanport=nil, pid=nil, updatetime=nil, dbengine=nil, dbversion=nil, paymode=nil, locker=nil, wanstatus=nil, isauditsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil)
844
+ @InstanceId = instanceid
845
+ @InstanceName = instancename
846
+ @AppId = appid
847
+ @ProjectId = projectid
848
+ @Region = region
849
+ @Zone = zone
850
+ @VpcId = vpcid
851
+ @SubnetId = subnetid
852
+ @StatusDesc = statusdesc
853
+ @Status = status
854
+ @Vip = vip
855
+ @Vport = vport
856
+ @CreateTime = createtime
857
+ @AutoRenewFlag = autorenewflag
858
+ @Memory = memory
859
+ @Storage = storage
860
+ @ShardCount = shardcount
861
+ @PeriodEndTime = periodendtime
862
+ @IsolatedTimestamp = isolatedtimestamp
863
+ @Uin = uin
864
+ @ShardDetail = sharddetail
865
+ @NodeCount = nodecount
866
+ @IsTmp = istmp
867
+ @ExclusterId = exclusterid
868
+ @UniqueVpcId = uniquevpcid
869
+ @UniqueSubnetId = uniquesubnetid
870
+ @Id = id
871
+ @WanDomain = wandomain
872
+ @WanVip = wanvip
873
+ @WanPort = wanport
874
+ @Pid = pid
875
+ @UpdateTime = updatetime
876
+ @DbEngine = dbengine
877
+ @DbVersion = dbversion
878
+ @Paymode = paymode
879
+ @Locker = locker
880
+ @WanStatus = wanstatus
881
+ @IsAuditSupported = isauditsupported
882
+ @Cpu = cpu
883
+ @Ipv6Flag = ipv6flag
884
+ @Vipv6 = vipv6
885
+ @WanVipv6 = wanvipv6
886
+ @WanPortIpv6 = wanportipv6
887
+ @WanStatusIpv6 = wanstatusipv6
888
+ @DcnFlag = dcnflag
889
+ @DcnStatus = dcnstatus
890
+ @DcnDstNum = dcndstnum
891
+ @InstanceType = instancetype
892
+ end
893
+
894
+ def deserialize(params)
895
+ @InstanceId = params['InstanceId']
896
+ @InstanceName = params['InstanceName']
897
+ @AppId = params['AppId']
898
+ @ProjectId = params['ProjectId']
899
+ @Region = params['Region']
900
+ @Zone = params['Zone']
901
+ @VpcId = params['VpcId']
902
+ @SubnetId = params['SubnetId']
903
+ @StatusDesc = params['StatusDesc']
904
+ @Status = params['Status']
905
+ @Vip = params['Vip']
906
+ @Vport = params['Vport']
907
+ @CreateTime = params['CreateTime']
908
+ @AutoRenewFlag = params['AutoRenewFlag']
909
+ @Memory = params['Memory']
910
+ @Storage = params['Storage']
911
+ @ShardCount = params['ShardCount']
912
+ @PeriodEndTime = params['PeriodEndTime']
913
+ @IsolatedTimestamp = params['IsolatedTimestamp']
914
+ @Uin = params['Uin']
915
+ unless params['ShardDetail'].nil?
916
+ @ShardDetail = []
917
+ params['ShardDetail'].each do |i|
918
+ shardinfo_tmp = ShardInfo.new
919
+ shardinfo_tmp.deserialize(i)
920
+ @ShardDetail << shardinfo_tmp
921
+ end
922
+ end
923
+ @NodeCount = params['NodeCount']
924
+ @IsTmp = params['IsTmp']
925
+ @ExclusterId = params['ExclusterId']
926
+ @UniqueVpcId = params['UniqueVpcId']
927
+ @UniqueSubnetId = params['UniqueSubnetId']
928
+ @Id = params['Id']
929
+ @WanDomain = params['WanDomain']
930
+ @WanVip = params['WanVip']
931
+ @WanPort = params['WanPort']
932
+ @Pid = params['Pid']
933
+ @UpdateTime = params['UpdateTime']
934
+ @DbEngine = params['DbEngine']
935
+ @DbVersion = params['DbVersion']
936
+ @Paymode = params['Paymode']
937
+ @Locker = params['Locker']
938
+ @WanStatus = params['WanStatus']
939
+ @IsAuditSupported = params['IsAuditSupported']
940
+ @Cpu = params['Cpu']
941
+ @Ipv6Flag = params['Ipv6Flag']
942
+ @Vipv6 = params['Vipv6']
943
+ @WanVipv6 = params['WanVipv6']
944
+ @WanPortIpv6 = params['WanPortIpv6']
945
+ @WanStatusIpv6 = params['WanStatusIpv6']
946
+ @DcnFlag = params['DcnFlag']
947
+ @DcnStatus = params['DcnStatus']
948
+ @DcnDstNum = params['DcnDstNum']
949
+ @InstanceType = params['InstanceType']
950
+ end
951
+ end
952
+
953
+ # 描述分布式数据库分片信息。
954
+ class DCDBShardInfo < TencentCloud::Common::AbstractModel
955
+ # @param InstanceId: 所属实例Id
956
+ # @type InstanceId: String
957
+ # @param ShardSerialId: 分片SQL透传Id,用于将sql透传到指定分片执行
958
+ # @type ShardSerialId: String
959
+ # @param ShardInstanceId: 全局唯一的分片Id
960
+ # @type ShardInstanceId: String
961
+ # @param Status: 状态:0 创建中,1 流程处理中, 2 运行中,3 分片未初始化
962
+ # @type Status: Integer
963
+ # @param StatusDesc: 状态中文描述
964
+ # @type StatusDesc: String
965
+ # @param CreateTime: 创建时间
966
+ # @type CreateTime: String
967
+ # @param VpcId: 字符串格式的私有网络Id
968
+ # @type VpcId: String
969
+ # @param SubnetId: 字符串格式的私有网络子网Id
970
+ # @type SubnetId: String
971
+ # @param ProjectId: 项目ID
972
+ # @type ProjectId: Integer
973
+ # @param Region: 地域
974
+ # @type Region: String
975
+ # @param Zone: 可用区
976
+ # @type Zone: String
977
+ # @param Memory: 内存大小,单位 GB
978
+ # @type Memory: Integer
979
+ # @param Storage: 存储大小,单位 GB
980
+ # @type Storage: Integer
981
+ # @param PeriodEndTime: 到期时间
982
+ # @type PeriodEndTime: String
983
+ # @param NodeCount: 节点数,2 为一主一从, 3 为一主二从
984
+ # @type NodeCount: Integer
985
+ # @param StorageUsage: 存储使用率,单位为 %
986
+ # @type StorageUsage: Float
987
+ # @param MemoryUsage: 内存使用率,单位为 %
988
+ # @type MemoryUsage: Float
989
+ # @param ShardId: 数字分片Id(过时字段,请勿依赖该值)
990
+ # @type ShardId: Integer
991
+ # @param Pid: 产品ProductID
992
+ # @type Pid: Integer
993
+ # @param ProxyVersion: Proxy版本
994
+ # @type ProxyVersion: String
995
+ # @param Paymode: 付费模型
996
+ # 注意:此字段可能返回 null,表示取不到有效值。
997
+ # @type Paymode: String
998
+ # @param ShardMasterZone: 分片的主可用区
999
+ # 注意:此字段可能返回 null,表示取不到有效值。
1000
+ # @type ShardMasterZone: String
1001
+ # @param ShardSlaveZones: 分片的从可用区列表
1002
+ # 注意:此字段可能返回 null,表示取不到有效值。
1003
+ # @type ShardSlaveZones: Array
1004
+ # @param Cpu: CPU核数
1005
+ # @type Cpu: Integer
1006
+ # @param Range: 分片ShardKey的范围(总共64个哈希值),例如: 0-31,32-63
1007
+ # @type Range: String
1008
+
1009
+ attr_accessor :InstanceId, :ShardSerialId, :ShardInstanceId, :Status, :StatusDesc, :CreateTime, :VpcId, :SubnetId, :ProjectId, :Region, :Zone, :Memory, :Storage, :PeriodEndTime, :NodeCount, :StorageUsage, :MemoryUsage, :ShardId, :Pid, :ProxyVersion, :Paymode, :ShardMasterZone, :ShardSlaveZones, :Cpu, :Range
1010
+
1011
+ def initialize(instanceid=nil, shardserialid=nil, shardinstanceid=nil, status=nil, statusdesc=nil, createtime=nil, vpcid=nil, subnetid=nil, projectid=nil, region=nil, zone=nil, memory=nil, storage=nil, periodendtime=nil, nodecount=nil, storageusage=nil, memoryusage=nil, shardid=nil, pid=nil, proxyversion=nil, paymode=nil, shardmasterzone=nil, shardslavezones=nil, cpu=nil, range=nil)
1012
+ @InstanceId = instanceid
1013
+ @ShardSerialId = shardserialid
1014
+ @ShardInstanceId = shardinstanceid
1015
+ @Status = status
1016
+ @StatusDesc = statusdesc
1017
+ @CreateTime = createtime
1018
+ @VpcId = vpcid
1019
+ @SubnetId = subnetid
1020
+ @ProjectId = projectid
1021
+ @Region = region
1022
+ @Zone = zone
1023
+ @Memory = memory
1024
+ @Storage = storage
1025
+ @PeriodEndTime = periodendtime
1026
+ @NodeCount = nodecount
1027
+ @StorageUsage = storageusage
1028
+ @MemoryUsage = memoryusage
1029
+ @ShardId = shardid
1030
+ @Pid = pid
1031
+ @ProxyVersion = proxyversion
1032
+ @Paymode = paymode
1033
+ @ShardMasterZone = shardmasterzone
1034
+ @ShardSlaveZones = shardslavezones
1035
+ @Cpu = cpu
1036
+ @Range = range
1037
+ end
1038
+
1039
+ def deserialize(params)
1040
+ @InstanceId = params['InstanceId']
1041
+ @ShardSerialId = params['ShardSerialId']
1042
+ @ShardInstanceId = params['ShardInstanceId']
1043
+ @Status = params['Status']
1044
+ @StatusDesc = params['StatusDesc']
1045
+ @CreateTime = params['CreateTime']
1046
+ @VpcId = params['VpcId']
1047
+ @SubnetId = params['SubnetId']
1048
+ @ProjectId = params['ProjectId']
1049
+ @Region = params['Region']
1050
+ @Zone = params['Zone']
1051
+ @Memory = params['Memory']
1052
+ @Storage = params['Storage']
1053
+ @PeriodEndTime = params['PeriodEndTime']
1054
+ @NodeCount = params['NodeCount']
1055
+ @StorageUsage = params['StorageUsage']
1056
+ @MemoryUsage = params['MemoryUsage']
1057
+ @ShardId = params['ShardId']
1058
+ @Pid = params['Pid']
1059
+ @ProxyVersion = params['ProxyVersion']
1060
+ @Paymode = params['Paymode']
1061
+ @ShardMasterZone = params['ShardMasterZone']
1062
+ @ShardSlaveZones = params['ShardSlaveZones']
1063
+ @Cpu = params['Cpu']
1064
+ @Range = params['Range']
1065
+ end
1066
+ end
1067
+
1068
+ # 数据库信息
1069
+ class Database < TencentCloud::Common::AbstractModel
1070
+ # @param DbName: 数据库名称
1071
+ # @type DbName: String
1072
+
1073
+ attr_accessor :DbName
1074
+
1075
+ def initialize(dbname=nil)
1076
+ @DbName = dbname
1077
+ end
1078
+
1079
+ def deserialize(params)
1080
+ @DbName = params['DbName']
1081
+ end
1082
+ end
1083
+
1084
+ # 数据库函数信息
1085
+ class DatabaseFunction < TencentCloud::Common::AbstractModel
1086
+ # @param Func: 函数名称
1087
+ # @type Func: String
1088
+
1089
+ attr_accessor :Func
1090
+
1091
+ def initialize(func=nil)
1092
+ @Func = func
1093
+ end
1094
+
1095
+ def deserialize(params)
1096
+ @Func = params['Func']
1097
+ end
1098
+ end
1099
+
1100
+ # 数据库存储过程信息
1101
+ class DatabaseProcedure < TencentCloud::Common::AbstractModel
1102
+ # @param Proc: 存储过程名称
1103
+ # @type Proc: String
1104
+
1105
+ attr_accessor :Proc
1106
+
1107
+ def initialize(proc=nil)
1108
+ @Proc = proc
1109
+ end
1110
+
1111
+ def deserialize(params)
1112
+ @Proc = params['Proc']
1113
+ end
1114
+ end
1115
+
1116
+ # 数据库表信息
1117
+ class DatabaseTable < TencentCloud::Common::AbstractModel
1118
+ # @param Table: 表名
1119
+ # @type Table: String
1120
+
1121
+ attr_accessor :Table
1122
+
1123
+ def initialize(table=nil)
1124
+ @Table = table
1125
+ end
1126
+
1127
+ def deserialize(params)
1128
+ @Table = params['Table']
1129
+ end
1130
+ end
1131
+
1132
+ # 数据库视图信息
1133
+ class DatabaseView < TencentCloud::Common::AbstractModel
1134
+ # @param View: 视图名称
1135
+ # @type View: String
1136
+
1137
+ attr_accessor :View
1138
+
1139
+ def initialize(view=nil)
1140
+ @View = view
1141
+ end
1142
+
1143
+ def deserialize(params)
1144
+ @View = params['View']
1145
+ end
1146
+ end
1147
+
1148
+ # DCN详情条目
1149
+ class DcnDetailItem < TencentCloud::Common::AbstractModel
1150
+ # @param InstanceId: 实例ID
1151
+ # @type InstanceId: String
1152
+ # @param InstanceName: 实例名称
1153
+ # @type InstanceName: String
1154
+ # @param Region: 实例地域
1155
+ # @type Region: String
1156
+ # @param Zone: 实例可用区
1157
+ # @type Zone: String
1158
+ # @param Vip: 实例IP地址
1159
+ # @type Vip: String
1160
+ # @param Vipv6: 实例IPv6地址
1161
+ # @type Vipv6: String
1162
+ # @param Vport: 实例端口
1163
+ # @type Vport: Integer
1164
+ # @param Status: 实例状态
1165
+ # @type Status: Integer
1166
+ # @param StatusDesc: 实例状态描述
1167
+ # @type StatusDesc: String
1168
+ # @param DcnFlag: 实例DCN标志,1-主,2-备
1169
+ # @type DcnFlag: Integer
1170
+ # @param DcnStatus: 实例DCN状态,0-无,1-创建中,2-同步中,3-已断开
1171
+ # @type DcnStatus: Integer
1172
+ # @param Cpu: 实例CPU核数
1173
+ # @type Cpu: Integer
1174
+ # @param Memory: 实例内存大小,单位 GB
1175
+ # @type Memory: Integer
1176
+ # @param Storage: 实例存储大小,单位 GB
1177
+ # @type Storage: Integer
1178
+ # @param PayMode: 付费模式
1179
+ # @type PayMode: Integer
1180
+ # @param CreateTime: 实例创建时间,格式为 2006-01-02 15:04:05
1181
+ # @type CreateTime: String
1182
+ # @param PeriodEndTime: 实例到期时间,格式为 2006-01-02 15:04:05
1183
+ # @type PeriodEndTime: String
1184
+ # @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)
1185
+ # @type InstanceType: Integer
1186
+
1187
+ attr_accessor :InstanceId, :InstanceName, :Region, :Zone, :Vip, :Vipv6, :Vport, :Status, :StatusDesc, :DcnFlag, :DcnStatus, :Cpu, :Memory, :Storage, :PayMode, :CreateTime, :PeriodEndTime, :InstanceType
1188
+
1189
+ def initialize(instanceid=nil, instancename=nil, region=nil, zone=nil, vip=nil, vipv6=nil, vport=nil, status=nil, statusdesc=nil, dcnflag=nil, dcnstatus=nil, cpu=nil, memory=nil, storage=nil, paymode=nil, createtime=nil, periodendtime=nil, instancetype=nil)
1190
+ @InstanceId = instanceid
1191
+ @InstanceName = instancename
1192
+ @Region = region
1193
+ @Zone = zone
1194
+ @Vip = vip
1195
+ @Vipv6 = vipv6
1196
+ @Vport = vport
1197
+ @Status = status
1198
+ @StatusDesc = statusdesc
1199
+ @DcnFlag = dcnflag
1200
+ @DcnStatus = dcnstatus
1201
+ @Cpu = cpu
1202
+ @Memory = memory
1203
+ @Storage = storage
1204
+ @PayMode = paymode
1205
+ @CreateTime = createtime
1206
+ @PeriodEndTime = periodendtime
1207
+ @InstanceType = instancetype
1208
+ end
1209
+
1210
+ def deserialize(params)
1211
+ @InstanceId = params['InstanceId']
1212
+ @InstanceName = params['InstanceName']
1213
+ @Region = params['Region']
1214
+ @Zone = params['Zone']
1215
+ @Vip = params['Vip']
1216
+ @Vipv6 = params['Vipv6']
1217
+ @Vport = params['Vport']
1218
+ @Status = params['Status']
1219
+ @StatusDesc = params['StatusDesc']
1220
+ @DcnFlag = params['DcnFlag']
1221
+ @DcnStatus = params['DcnStatus']
1222
+ @Cpu = params['Cpu']
1223
+ @Memory = params['Memory']
1224
+ @Storage = params['Storage']
1225
+ @PayMode = params['PayMode']
1226
+ @CreateTime = params['CreateTime']
1227
+ @PeriodEndTime = params['PeriodEndTime']
1228
+ @InstanceType = params['InstanceType']
1229
+ end
1230
+ end
1231
+
1232
+ # 订单信息
1233
+ class Deal < TencentCloud::Common::AbstractModel
1234
+ # @param DealName: 订单号
1235
+ # @type DealName: String
1236
+ # @param OwnerUin: 所属账号
1237
+ # @type OwnerUin: String
1238
+ # @param Count: 商品数量
1239
+ # @type Count: Integer
1240
+ # @param FlowId: 关联的流程 Id,可用于查询流程执行状态
1241
+ # @type FlowId: Integer
1242
+ # @param InstanceIds: 只有创建实例的订单会填充该字段,表示该订单创建的实例的 ID。
1243
+ # 注意:此字段可能返回 null,表示取不到有效值。
1244
+ # @type InstanceIds: Array
1245
+ # @param PayMode: 付费模式,0后付费/1预付费
1246
+ # @type PayMode: Integer
1247
+
1248
+ attr_accessor :DealName, :OwnerUin, :Count, :FlowId, :InstanceIds, :PayMode
1249
+
1250
+ def initialize(dealname=nil, owneruin=nil, count=nil, flowid=nil, instanceids=nil, paymode=nil)
1251
+ @DealName = dealname
1252
+ @OwnerUin = owneruin
1253
+ @Count = count
1254
+ @FlowId = flowid
1255
+ @InstanceIds = instanceids
1256
+ @PayMode = paymode
1257
+ end
1258
+
1259
+ def deserialize(params)
1260
+ @DealName = params['DealName']
1261
+ @OwnerUin = params['OwnerUin']
1262
+ @Count = params['Count']
1263
+ @FlowId = params['FlowId']
1264
+ @InstanceIds = params['InstanceIds']
1265
+ @PayMode = params['PayMode']
1266
+ end
1267
+ end
1268
+
1269
+ # DeleteAccount请求参数结构体
1270
+ class DeleteAccountRequest < TencentCloud::Common::AbstractModel
1271
+ # @param InstanceId: 实例ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
1272
+ # @type InstanceId: String
1273
+ # @param UserName: 用户名
1274
+ # @type UserName: String
1275
+ # @param Host: 用户允许的访问 host
1276
+ # @type Host: String
1277
+
1278
+ attr_accessor :InstanceId, :UserName, :Host
1279
+
1280
+ def initialize(instanceid=nil, username=nil, host=nil)
1281
+ @InstanceId = instanceid
1282
+ @UserName = username
1283
+ @Host = host
1284
+ end
1285
+
1286
+ def deserialize(params)
1287
+ @InstanceId = params['InstanceId']
1288
+ @UserName = params['UserName']
1289
+ @Host = params['Host']
1290
+ end
1291
+ end
1292
+
1293
+ # DeleteAccount返回参数结构体
1294
+ class DeleteAccountResponse < TencentCloud::Common::AbstractModel
1295
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1296
+ # @type RequestId: String
1297
+
1298
+ attr_accessor :RequestId
1299
+
1300
+ def initialize(requestid=nil)
1301
+ @RequestId = requestid
1302
+ end
1303
+
1304
+ def deserialize(params)
1305
+ @RequestId = params['RequestId']
1306
+ end
1307
+ end
1308
+
1309
+ # DescribeAccountPrivileges请求参数结构体
1310
+ class DescribeAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
1311
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
1312
+ # @type InstanceId: String
1313
+ # @param UserName: 登录用户名。
1314
+ # @type UserName: String
1315
+ # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。
1316
+ # @type Host: String
1317
+ # @param DbName: 数据库名。如果为 \*,表示查询全局权限(即 \*.\*),此时忽略 Type 和 Object 参数
1318
+ # @type DbName: String
1319
+ # @param Type: 类型,可以填入 table 、 view 、 proc 、 func 和 \*。当 DbName 为具体数据库名,Type为 \* 时,表示查询该数据库权限(即db.\*),此时忽略 Object 参数
1320
+ # @type Type: String
1321
+ # @param Object: 具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 \* 或者为空
1322
+ # @type Object: String
1323
+ # @param ColName: 当 Type=table 时,ColName 为 \* 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限
1324
+ # @type ColName: String
1325
+
1326
+ attr_accessor :InstanceId, :UserName, :Host, :DbName, :Type, :Object, :ColName
1327
+
1328
+ def initialize(instanceid=nil, username=nil, host=nil, dbname=nil, type=nil, object=nil, colname=nil)
1329
+ @InstanceId = instanceid
1330
+ @UserName = username
1331
+ @Host = host
1332
+ @DbName = dbname
1333
+ @Type = type
1334
+ @Object = object
1335
+ @ColName = colname
1336
+ end
1337
+
1338
+ def deserialize(params)
1339
+ @InstanceId = params['InstanceId']
1340
+ @UserName = params['UserName']
1341
+ @Host = params['Host']
1342
+ @DbName = params['DbName']
1343
+ @Type = params['Type']
1344
+ @Object = params['Object']
1345
+ @ColName = params['ColName']
1346
+ end
1347
+ end
1348
+
1349
+ # DescribeAccountPrivileges返回参数结构体
1350
+ class DescribeAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
1351
+ # @param InstanceId: 实例ID
1352
+ # @type InstanceId: String
1353
+ # @param Privileges: 权限列表。
1354
+ # @type Privileges: Array
1355
+ # @param UserName: 数据库账号用户名
1356
+ # @type UserName: String
1357
+ # @param Host: 数据库账号Host
1358
+ # @type Host: String
1359
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1360
+ # @type RequestId: String
1361
+
1362
+ attr_accessor :InstanceId, :Privileges, :UserName, :Host, :RequestId
1363
+
1364
+ def initialize(instanceid=nil, privileges=nil, username=nil, host=nil, requestid=nil)
1365
+ @InstanceId = instanceid
1366
+ @Privileges = privileges
1367
+ @UserName = username
1368
+ @Host = host
1369
+ @RequestId = requestid
1370
+ end
1371
+
1372
+ def deserialize(params)
1373
+ @InstanceId = params['InstanceId']
1374
+ @Privileges = params['Privileges']
1375
+ @UserName = params['UserName']
1376
+ @Host = params['Host']
1377
+ @RequestId = params['RequestId']
1378
+ end
1379
+ end
1380
+
1381
+ # DescribeAccounts请求参数结构体
1382
+ class DescribeAccountsRequest < TencentCloud::Common::AbstractModel
1383
+ # @param InstanceId: 实例ID,形如:dcdbt-ow728lmc。
1384
+ # @type InstanceId: String
1385
+
1386
+ attr_accessor :InstanceId
1387
+
1388
+ def initialize(instanceid=nil)
1389
+ @InstanceId = instanceid
1390
+ end
1391
+
1392
+ def deserialize(params)
1393
+ @InstanceId = params['InstanceId']
1394
+ end
1395
+ end
1396
+
1397
+ # DescribeAccounts返回参数结构体
1398
+ class DescribeAccountsResponse < TencentCloud::Common::AbstractModel
1399
+ # @param InstanceId: 实例ID,透传入参。
1400
+ # @type InstanceId: String
1401
+ # @param Users: 实例用户列表。
1402
+ # 注意:此字段可能返回 null,表示取不到有效值。
1403
+ # @type Users: Array
1404
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1405
+ # @type RequestId: String
1406
+
1407
+ attr_accessor :InstanceId, :Users, :RequestId
1408
+
1409
+ def initialize(instanceid=nil, users=nil, requestid=nil)
1410
+ @InstanceId = instanceid
1411
+ @Users = users
1412
+ @RequestId = requestid
1413
+ end
1414
+
1415
+ def deserialize(params)
1416
+ @InstanceId = params['InstanceId']
1417
+ unless params['Users'].nil?
1418
+ @Users = []
1419
+ params['Users'].each do |i|
1420
+ dbaccount_tmp = DBAccount.new
1421
+ dbaccount_tmp.deserialize(i)
1422
+ @Users << dbaccount_tmp
1423
+ end
1424
+ end
1425
+ @RequestId = params['RequestId']
1426
+ end
1427
+ end
1428
+
1429
+ # DescribeDBLogFiles请求参数结构体
1430
+ class DescribeDBLogFilesRequest < TencentCloud::Common::AbstractModel
1431
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
1432
+ # @type InstanceId: String
1433
+ # @param ShardId: 分片 ID,形如:shard-7noic7tv
1434
+ # @type ShardId: String
1435
+ # @param Type: 请求日志类型,取值只能为1、2、3或者4。1-binlog,2-冷备,3-errlog,4-slowlog。
1436
+ # @type Type: Integer
1437
+
1438
+ attr_accessor :InstanceId, :ShardId, :Type
1439
+
1440
+ def initialize(instanceid=nil, shardid=nil, type=nil)
1441
+ @InstanceId = instanceid
1442
+ @ShardId = shardid
1443
+ @Type = type
1444
+ end
1445
+
1446
+ def deserialize(params)
1447
+ @InstanceId = params['InstanceId']
1448
+ @ShardId = params['ShardId']
1449
+ @Type = params['Type']
1450
+ end
1451
+ end
1452
+
1453
+ # DescribeDBLogFiles返回参数结构体
1454
+ class DescribeDBLogFilesResponse < TencentCloud::Common::AbstractModel
1455
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
1456
+ # @type InstanceId: String
1457
+ # @param Type: 请求日志类型。1-binlog,2-冷备,3-errlog,4-slowlog。
1458
+ # @type Type: Integer
1459
+ # @param Total: 请求日志总数
1460
+ # @type Total: Integer
1461
+ # @param Files: 日志文件列表
1462
+ # @type Files: Array
1463
+ # @param VpcPrefix: 如果是VPC网络的实例,做用本前缀加上URI为下载地址
1464
+ # @type VpcPrefix: String
1465
+ # @param NormalPrefix: 如果是普通网络的实例,做用本前缀加上URI为下载地址
1466
+ # @type NormalPrefix: String
1467
+ # @param ShardId: 分片 ID,形如:shard-7noic7tv
1468
+ # @type ShardId: String
1469
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1470
+ # @type RequestId: String
1471
+
1472
+ attr_accessor :InstanceId, :Type, :Total, :Files, :VpcPrefix, :NormalPrefix, :ShardId, :RequestId
1473
+
1474
+ def initialize(instanceid=nil, type=nil, total=nil, files=nil, vpcprefix=nil, normalprefix=nil, shardid=nil, requestid=nil)
1475
+ @InstanceId = instanceid
1476
+ @Type = type
1477
+ @Total = total
1478
+ @Files = files
1479
+ @VpcPrefix = vpcprefix
1480
+ @NormalPrefix = normalprefix
1481
+ @ShardId = shardid
1482
+ @RequestId = requestid
1483
+ end
1484
+
1485
+ def deserialize(params)
1486
+ @InstanceId = params['InstanceId']
1487
+ @Type = params['Type']
1488
+ @Total = params['Total']
1489
+ unless params['Files'].nil?
1490
+ @Files = []
1491
+ params['Files'].each do |i|
1492
+ logfileinfo_tmp = LogFileInfo.new
1493
+ logfileinfo_tmp.deserialize(i)
1494
+ @Files << logfileinfo_tmp
1495
+ end
1496
+ end
1497
+ @VpcPrefix = params['VpcPrefix']
1498
+ @NormalPrefix = params['NormalPrefix']
1499
+ @ShardId = params['ShardId']
1500
+ @RequestId = params['RequestId']
1501
+ end
1502
+ end
1503
+
1504
+ # DescribeDBParameters请求参数结构体
1505
+ class DescribeDBParametersRequest < TencentCloud::Common::AbstractModel
1506
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
1507
+ # @type InstanceId: String
1508
+
1509
+ attr_accessor :InstanceId
1510
+
1511
+ def initialize(instanceid=nil)
1512
+ @InstanceId = instanceid
1513
+ end
1514
+
1515
+ def deserialize(params)
1516
+ @InstanceId = params['InstanceId']
1517
+ end
1518
+ end
1519
+
1520
+ # DescribeDBParameters返回参数结构体
1521
+ class DescribeDBParametersResponse < TencentCloud::Common::AbstractModel
1522
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
1523
+ # @type InstanceId: String
1524
+ # @param Params: 请求DB的当前参数值
1525
+ # @type Params: Array
1526
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1527
+ # @type RequestId: String
1528
+
1529
+ attr_accessor :InstanceId, :Params, :RequestId
1530
+
1531
+ def initialize(instanceid=nil, params=nil, requestid=nil)
1532
+ @InstanceId = instanceid
1533
+ @Params = params
1534
+ @RequestId = requestid
1535
+ end
1536
+
1537
+ def deserialize(params)
1538
+ @InstanceId = params['InstanceId']
1539
+ unless params['Params'].nil?
1540
+ @Params = []
1541
+ params['Params'].each do |i|
1542
+ paramdesc_tmp = ParamDesc.new
1543
+ paramdesc_tmp.deserialize(i)
1544
+ @Params << paramdesc_tmp
1545
+ end
1546
+ end
1547
+ @RequestId = params['RequestId']
1548
+ end
1549
+ end
1550
+
1551
+ # DescribeDBSecurityGroups请求参数结构体
1552
+ class DescribeDBSecurityGroupsRequest < TencentCloud::Common::AbstractModel
1553
+ # @param Product: 数据库引擎名称,本接口取值:dcdb。
1554
+ # @type Product: String
1555
+ # @param InstanceId: 实例ID。
1556
+ # @type InstanceId: String
1557
+
1558
+ attr_accessor :Product, :InstanceId
1559
+
1560
+ def initialize(product=nil, instanceid=nil)
1561
+ @Product = product
1562
+ @InstanceId = instanceid
1563
+ end
1564
+
1565
+ def deserialize(params)
1566
+ @Product = params['Product']
1567
+ @InstanceId = params['InstanceId']
1568
+ end
1569
+ end
1570
+
1571
+ # DescribeDBSecurityGroups返回参数结构体
1572
+ class DescribeDBSecurityGroupsResponse < TencentCloud::Common::AbstractModel
1573
+ # @param Groups: 安全组详情。
1574
+ # @type Groups: Array
1575
+ # @param VIP: 实例VIP
1576
+ # 注意:此字段可能返回 null,表示取不到有效值。
1577
+ # @type VIP: String
1578
+ # @param VPort: 实例端口
1579
+ # 注意:此字段可能返回 null,表示取不到有效值。
1580
+ # @type VPort: Integer
1581
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1582
+ # @type RequestId: String
1583
+
1584
+ attr_accessor :Groups, :VIP, :VPort, :RequestId
1585
+
1586
+ def initialize(groups=nil, vip=nil, vport=nil, requestid=nil)
1587
+ @Groups = groups
1588
+ @VIP = vip
1589
+ @VPort = vport
1590
+ @RequestId = requestid
1591
+ end
1592
+
1593
+ def deserialize(params)
1594
+ unless params['Groups'].nil?
1595
+ @Groups = []
1596
+ params['Groups'].each do |i|
1597
+ securitygroup_tmp = SecurityGroup.new
1598
+ securitygroup_tmp.deserialize(i)
1599
+ @Groups << securitygroup_tmp
1600
+ end
1601
+ end
1602
+ @VIP = params['VIP']
1603
+ @VPort = params['VPort']
1604
+ @RequestId = params['RequestId']
1605
+ end
1606
+ end
1607
+
1608
+ # DescribeDBSyncMode请求参数结构体
1609
+ class DescribeDBSyncModeRequest < TencentCloud::Common::AbstractModel
1610
+ # @param InstanceId: 待修改同步模式的实例ID。形如:dcdbt-ow728lmc。
1611
+ # @type InstanceId: String
1612
+
1613
+ attr_accessor :InstanceId
1614
+
1615
+ def initialize(instanceid=nil)
1616
+ @InstanceId = instanceid
1617
+ end
1618
+
1619
+ def deserialize(params)
1620
+ @InstanceId = params['InstanceId']
1621
+ end
1622
+ end
1623
+
1624
+ # DescribeDBSyncMode返回参数结构体
1625
+ class DescribeDBSyncModeResponse < TencentCloud::Common::AbstractModel
1626
+ # @param SyncMode: 同步模式:0 异步,1 强同步, 2 强同步可退化
1627
+ # @type SyncMode: Integer
1628
+ # @param IsModifying: 是否有修改流程在执行中:1 是, 0 否。
1629
+ # @type IsModifying: Integer
1630
+ # @param CurrentSyncMode: 当前复制方式,0 异步,1 同步
1631
+ # @type CurrentSyncMode: Integer
1632
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1633
+ # @type RequestId: String
1634
+
1635
+ attr_accessor :SyncMode, :IsModifying, :CurrentSyncMode, :RequestId
1636
+
1637
+ def initialize(syncmode=nil, ismodifying=nil, currentsyncmode=nil, requestid=nil)
1638
+ @SyncMode = syncmode
1639
+ @IsModifying = ismodifying
1640
+ @CurrentSyncMode = currentsyncmode
1641
+ @RequestId = requestid
1642
+ end
1643
+
1644
+ def deserialize(params)
1645
+ @SyncMode = params['SyncMode']
1646
+ @IsModifying = params['IsModifying']
1647
+ @CurrentSyncMode = params['CurrentSyncMode']
1648
+ @RequestId = params['RequestId']
1649
+ end
1650
+ end
1651
+
1652
+ # DescribeDCDBInstanceNodeInfo请求参数结构体
1653
+ class DescribeDCDBInstanceNodeInfoRequest < TencentCloud::Common::AbstractModel
1654
+ # @param InstanceId: 实例ID
1655
+ # @type InstanceId: String
1656
+ # @param Limit: 单次最多返回多少条,取值范围为(0-100],默认为100
1657
+ # @type Limit: Integer
1658
+ # @param Offset: 返回数据的偏移值,默认为0
1659
+ # @type Offset: Integer
1660
+
1661
+ attr_accessor :InstanceId, :Limit, :Offset
1662
+
1663
+ def initialize(instanceid=nil, limit=nil, offset=nil)
1664
+ @InstanceId = instanceid
1665
+ @Limit = limit
1666
+ @Offset = offset
1667
+ end
1668
+
1669
+ def deserialize(params)
1670
+ @InstanceId = params['InstanceId']
1671
+ @Limit = params['Limit']
1672
+ @Offset = params['Offset']
1673
+ end
1674
+ end
1675
+
1676
+ # DescribeDCDBInstanceNodeInfo返回参数结构体
1677
+ class DescribeDCDBInstanceNodeInfoResponse < TencentCloud::Common::AbstractModel
1678
+ # @param TotalCount: 节点总个数
1679
+ # @type TotalCount: Integer
1680
+ # @param NodesInfo: 节点信息
1681
+ # @type NodesInfo: Array
1682
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1683
+ # @type RequestId: String
1684
+
1685
+ attr_accessor :TotalCount, :NodesInfo, :RequestId
1686
+
1687
+ def initialize(totalcount=nil, nodesinfo=nil, requestid=nil)
1688
+ @TotalCount = totalcount
1689
+ @NodesInfo = nodesinfo
1690
+ @RequestId = requestid
1691
+ end
1692
+
1693
+ def deserialize(params)
1694
+ @TotalCount = params['TotalCount']
1695
+ unless params['NodesInfo'].nil?
1696
+ @NodesInfo = []
1697
+ params['NodesInfo'].each do |i|
1698
+ briefnodeinfo_tmp = BriefNodeInfo.new
1699
+ briefnodeinfo_tmp.deserialize(i)
1700
+ @NodesInfo << briefnodeinfo_tmp
1701
+ end
1702
+ end
1703
+ @RequestId = params['RequestId']
1704
+ end
1705
+ end
1706
+
1707
+ # DescribeDCDBInstances请求参数结构体
1708
+ class DescribeDCDBInstancesRequest < TencentCloud::Common::AbstractModel
1709
+ # @param InstanceIds: 按照一个或者多个实例 ID 查询。实例 ID 形如:dcdbt-2t4cf98d
1710
+ # @type InstanceIds: Array
1711
+ # @param SearchName: 搜索的字段名,当前支持的值有:instancename、vip、all。传 instancename 表示按实例名进行搜索;传 vip 表示按内网IP进行搜索;传 all 将会按实例ID、实例名和内网IP进行搜索。
1712
+ # @type SearchName: String
1713
+ # @param SearchKey: 搜索的关键字,支持模糊搜索。多个关键字使用换行符('\n')分割。
1714
+ # @type SearchKey: String
1715
+ # @param ProjectIds: 按项目 ID 查询
1716
+ # @type ProjectIds: Array
1717
+ # @param IsFilterVpc: 是否根据 VPC 网络来搜索
1718
+ # @type IsFilterVpc: Boolean
1719
+ # @param VpcId: 私有网络 ID, IsFilterVpc 为 1 时有效
1720
+ # @type VpcId: String
1721
+ # @param SubnetId: 私有网络的子网 ID, IsFilterVpc 为 1 时有效
1722
+ # @type SubnetId: String
1723
+ # @param OrderBy: 排序字段, projectId, createtime, instancename 三者之一
1724
+ # @type OrderBy: String
1725
+ # @param OrderByType: 排序类型, desc 或者 asc
1726
+ # @type OrderByType: String
1727
+ # @param Offset: 偏移量,默认为 0
1728
+ # @type Offset: Integer
1729
+ # @param Limit: 返回数量,默认为 10,最大值为 100。
1730
+ # @type Limit: Integer
1731
+ # @param ExclusterType: 1非独享集群,2独享集群, 0全部
1732
+ # @type ExclusterType: Integer
1733
+ # @param IsFilterExcluster: 标识是否使用ExclusterType字段, false不使用,true使用
1734
+ # @type IsFilterExcluster: Boolean
1735
+ # @param ExclusterIds: 独享集群ID
1736
+ # @type ExclusterIds: Array
1737
+ # @param TagKeys: 按标签key查询
1738
+ # @type TagKeys: Array
1739
+ # @param FilterInstanceType: 实例类型过滤,1-独享实例,2-主实例,3-灾备实例,多个按逗号分隔
1740
+ # @type FilterInstanceType: String
1741
+ # @param Status: 按实例状态筛选
1742
+ # @type Status: Array
1743
+ # @param ExcludeStatus: 排除实例状态
1744
+ # @type ExcludeStatus: Array
1745
+
1746
+ attr_accessor :InstanceIds, :SearchName, :SearchKey, :ProjectIds, :IsFilterVpc, :VpcId, :SubnetId, :OrderBy, :OrderByType, :Offset, :Limit, :ExclusterType, :IsFilterExcluster, :ExclusterIds, :TagKeys, :FilterInstanceType, :Status, :ExcludeStatus
1747
+
1748
+ def initialize(instanceids=nil, searchname=nil, searchkey=nil, projectids=nil, isfiltervpc=nil, vpcid=nil, subnetid=nil, orderby=nil, orderbytype=nil, offset=nil, limit=nil, exclustertype=nil, isfilterexcluster=nil, exclusterids=nil, tagkeys=nil, filterinstancetype=nil, status=nil, excludestatus=nil)
1749
+ @InstanceIds = instanceids
1750
+ @SearchName = searchname
1751
+ @SearchKey = searchkey
1752
+ @ProjectIds = projectids
1753
+ @IsFilterVpc = isfiltervpc
1754
+ @VpcId = vpcid
1755
+ @SubnetId = subnetid
1756
+ @OrderBy = orderby
1757
+ @OrderByType = orderbytype
1758
+ @Offset = offset
1759
+ @Limit = limit
1760
+ @ExclusterType = exclustertype
1761
+ @IsFilterExcluster = isfilterexcluster
1762
+ @ExclusterIds = exclusterids
1763
+ @TagKeys = tagkeys
1764
+ @FilterInstanceType = filterinstancetype
1765
+ @Status = status
1766
+ @ExcludeStatus = excludestatus
1767
+ end
1768
+
1769
+ def deserialize(params)
1770
+ @InstanceIds = params['InstanceIds']
1771
+ @SearchName = params['SearchName']
1772
+ @SearchKey = params['SearchKey']
1773
+ @ProjectIds = params['ProjectIds']
1774
+ @IsFilterVpc = params['IsFilterVpc']
1775
+ @VpcId = params['VpcId']
1776
+ @SubnetId = params['SubnetId']
1777
+ @OrderBy = params['OrderBy']
1778
+ @OrderByType = params['OrderByType']
1779
+ @Offset = params['Offset']
1780
+ @Limit = params['Limit']
1781
+ @ExclusterType = params['ExclusterType']
1782
+ @IsFilterExcluster = params['IsFilterExcluster']
1783
+ @ExclusterIds = params['ExclusterIds']
1784
+ @TagKeys = params['TagKeys']
1785
+ @FilterInstanceType = params['FilterInstanceType']
1786
+ @Status = params['Status']
1787
+ @ExcludeStatus = params['ExcludeStatus']
1788
+ end
1789
+ end
1790
+
1791
+ # DescribeDCDBInstances返回参数结构体
1792
+ class DescribeDCDBInstancesResponse < TencentCloud::Common::AbstractModel
1793
+ # @param TotalCount: 符合条件的实例数量
1794
+ # @type TotalCount: Integer
1795
+ # @param Instances: 实例详细信息列表
1796
+ # @type Instances: Array
1797
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1798
+ # @type RequestId: String
1799
+
1800
+ attr_accessor :TotalCount, :Instances, :RequestId
1801
+
1802
+ def initialize(totalcount=nil, instances=nil, requestid=nil)
1803
+ @TotalCount = totalcount
1804
+ @Instances = instances
1805
+ @RequestId = requestid
1806
+ end
1807
+
1808
+ def deserialize(params)
1809
+ @TotalCount = params['TotalCount']
1810
+ unless params['Instances'].nil?
1811
+ @Instances = []
1812
+ params['Instances'].each do |i|
1813
+ dcdbinstanceinfo_tmp = DCDBInstanceInfo.new
1814
+ dcdbinstanceinfo_tmp.deserialize(i)
1815
+ @Instances << dcdbinstanceinfo_tmp
1816
+ end
1817
+ end
1818
+ @RequestId = params['RequestId']
1819
+ end
1820
+ end
1821
+
1822
+ # DescribeDCDBPrice请求参数结构体
1823
+ class DescribeDCDBPriceRequest < TencentCloud::Common::AbstractModel
1824
+ # @param Zone: 欲新购实例的可用区ID。
1825
+ # @type Zone: String
1826
+ # @param Count: 欲购买实例的数量,目前支持购买1-10个实例
1827
+ # @type Count: Integer
1828
+ # @param Period: 欲购买的时长,单位:月。
1829
+ # @type Period: Integer
1830
+ # @param ShardNodeCount: 单个分片节点个数大小,可以通过 DescribeShardSpec
1831
+ # 查询实例规格获得。
1832
+ # @type ShardNodeCount: Integer
1833
+ # @param ShardMemory: 分片内存大小,单位:GB,可以通过 DescribeShardSpec
1834
+ # 查询实例规格获得。
1835
+ # @type ShardMemory: Integer
1836
+ # @param ShardStorage: 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec
1837
+ # 查询实例规格获得。
1838
+ # @type ShardStorage: Integer
1839
+ # @param ShardCount: 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。
1840
+ # @type ShardCount: Integer
1841
+ # @param Paymode: 付费类型。postpaid:按量付费 prepaid:预付费
1842
+ # @type Paymode: String
1843
+
1844
+ attr_accessor :Zone, :Count, :Period, :ShardNodeCount, :ShardMemory, :ShardStorage, :ShardCount, :Paymode
1845
+
1846
+ def initialize(zone=nil, count=nil, period=nil, shardnodecount=nil, shardmemory=nil, shardstorage=nil, shardcount=nil, paymode=nil)
1847
+ @Zone = zone
1848
+ @Count = count
1849
+ @Period = period
1850
+ @ShardNodeCount = shardnodecount
1851
+ @ShardMemory = shardmemory
1852
+ @ShardStorage = shardstorage
1853
+ @ShardCount = shardcount
1854
+ @Paymode = paymode
1855
+ end
1856
+
1857
+ def deserialize(params)
1858
+ @Zone = params['Zone']
1859
+ @Count = params['Count']
1860
+ @Period = params['Period']
1861
+ @ShardNodeCount = params['ShardNodeCount']
1862
+ @ShardMemory = params['ShardMemory']
1863
+ @ShardStorage = params['ShardStorage']
1864
+ @ShardCount = params['ShardCount']
1865
+ @Paymode = params['Paymode']
1866
+ end
1867
+ end
1868
+
1869
+ # DescribeDCDBPrice返回参数结构体
1870
+ class DescribeDCDBPriceResponse < TencentCloud::Common::AbstractModel
1871
+ # @param OriginalPrice: 原价,单位:分
1872
+ # @type OriginalPrice: Integer
1873
+ # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。
1874
+ # @type Price: Integer
1875
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1876
+ # @type RequestId: String
1877
+
1878
+ attr_accessor :OriginalPrice, :Price, :RequestId
1879
+
1880
+ def initialize(originalprice=nil, price=nil, requestid=nil)
1881
+ @OriginalPrice = originalprice
1882
+ @Price = price
1883
+ @RequestId = requestid
1884
+ end
1885
+
1886
+ def deserialize(params)
1887
+ @OriginalPrice = params['OriginalPrice']
1888
+ @Price = params['Price']
1889
+ @RequestId = params['RequestId']
1890
+ end
1891
+ end
1892
+
1893
+ # DescribeDCDBRenewalPrice请求参数结构体
1894
+ class DescribeDCDBRenewalPriceRequest < TencentCloud::Common::AbstractModel
1895
+ # @param InstanceId: 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
1896
+ # @type InstanceId: String
1897
+ # @param Period: 续费时长,单位:月。不传则默认为1个月。
1898
+ # @type Period: Integer
1899
+
1900
+ attr_accessor :InstanceId, :Period
1901
+
1902
+ def initialize(instanceid=nil, period=nil)
1903
+ @InstanceId = instanceid
1904
+ @Period = period
1905
+ end
1906
+
1907
+ def deserialize(params)
1908
+ @InstanceId = params['InstanceId']
1909
+ @Period = params['Period']
1910
+ end
1911
+ end
1912
+
1913
+ # DescribeDCDBRenewalPrice返回参数结构体
1914
+ class DescribeDCDBRenewalPriceResponse < TencentCloud::Common::AbstractModel
1915
+ # @param OriginalPrice: 原价,单位:分
1916
+ # @type OriginalPrice: Integer
1917
+ # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。
1918
+ # @type Price: Integer
1919
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1920
+ # @type RequestId: String
1921
+
1922
+ attr_accessor :OriginalPrice, :Price, :RequestId
1923
+
1924
+ def initialize(originalprice=nil, price=nil, requestid=nil)
1925
+ @OriginalPrice = originalprice
1926
+ @Price = price
1927
+ @RequestId = requestid
1928
+ end
1929
+
1930
+ def deserialize(params)
1931
+ @OriginalPrice = params['OriginalPrice']
1932
+ @Price = params['Price']
1933
+ @RequestId = params['RequestId']
1934
+ end
1935
+ end
1936
+
1937
+ # DescribeDCDBSaleInfo请求参数结构体
1938
+ class DescribeDCDBSaleInfoRequest < TencentCloud::Common::AbstractModel
1939
+
1940
+
1941
+ def initialize()
1942
+ end
1943
+
1944
+ def deserialize(params)
1945
+ end
1946
+ end
1947
+
1948
+ # DescribeDCDBSaleInfo返回参数结构体
1949
+ class DescribeDCDBSaleInfoResponse < TencentCloud::Common::AbstractModel
1950
+ # @param RegionList: 可售卖地域信息列表
1951
+ # @type RegionList: Array
1952
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1953
+ # @type RequestId: String
1954
+
1955
+ attr_accessor :RegionList, :RequestId
1956
+
1957
+ def initialize(regionlist=nil, requestid=nil)
1958
+ @RegionList = regionlist
1959
+ @RequestId = requestid
1960
+ end
1961
+
1962
+ def deserialize(params)
1963
+ unless params['RegionList'].nil?
1964
+ @RegionList = []
1965
+ params['RegionList'].each do |i|
1966
+ regioninfo_tmp = RegionInfo.new
1967
+ regioninfo_tmp.deserialize(i)
1968
+ @RegionList << regioninfo_tmp
1969
+ end
1970
+ end
1971
+ @RequestId = params['RequestId']
1972
+ end
1973
+ end
1974
+
1975
+ # DescribeDCDBShards请求参数结构体
1976
+ class DescribeDCDBShardsRequest < TencentCloud::Common::AbstractModel
1977
+ # @param InstanceId: 实例ID,形如:dcdbt-ow728lmc。
1978
+ # @type InstanceId: String
1979
+ # @param ShardInstanceIds: 分片ID列表。
1980
+ # @type ShardInstanceIds: Array
1981
+ # @param Offset: 偏移量,默认为 0
1982
+ # @type Offset: Integer
1983
+ # @param Limit: 返回数量,默认为 20,最大值为 100。
1984
+ # @type Limit: Integer
1985
+ # @param OrderBy: 排序字段, 目前仅支持 createtime
1986
+ # @type OrderBy: String
1987
+ # @param OrderByType: 排序类型, desc 或者 asc
1988
+ # @type OrderByType: String
1989
+
1990
+ attr_accessor :InstanceId, :ShardInstanceIds, :Offset, :Limit, :OrderBy, :OrderByType
1991
+
1992
+ def initialize(instanceid=nil, shardinstanceids=nil, offset=nil, limit=nil, orderby=nil, orderbytype=nil)
1993
+ @InstanceId = instanceid
1994
+ @ShardInstanceIds = shardinstanceids
1995
+ @Offset = offset
1996
+ @Limit = limit
1997
+ @OrderBy = orderby
1998
+ @OrderByType = orderbytype
1999
+ end
2000
+
2001
+ def deserialize(params)
2002
+ @InstanceId = params['InstanceId']
2003
+ @ShardInstanceIds = params['ShardInstanceIds']
2004
+ @Offset = params['Offset']
2005
+ @Limit = params['Limit']
2006
+ @OrderBy = params['OrderBy']
2007
+ @OrderByType = params['OrderByType']
2008
+ end
2009
+ end
2010
+
2011
+ # DescribeDCDBShards返回参数结构体
2012
+ class DescribeDCDBShardsResponse < TencentCloud::Common::AbstractModel
2013
+ # @param TotalCount: 符合条件的分片数量
2014
+ # @type TotalCount: Integer
2015
+ # @param Shards: 分片信息列表
2016
+ # @type Shards: Array
2017
+ # @param DcnFlag: 灾备标志,0-无,1-主实例,2-灾备实例
2018
+ # 注意:此字段可能返回 null,表示取不到有效值。
2019
+ # @type DcnFlag: Integer
2020
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2021
+ # @type RequestId: String
2022
+
2023
+ attr_accessor :TotalCount, :Shards, :DcnFlag, :RequestId
2024
+
2025
+ def initialize(totalcount=nil, shards=nil, dcnflag=nil, requestid=nil)
2026
+ @TotalCount = totalcount
2027
+ @Shards = shards
2028
+ @DcnFlag = dcnflag
2029
+ @RequestId = requestid
2030
+ end
2031
+
2032
+ def deserialize(params)
2033
+ @TotalCount = params['TotalCount']
2034
+ unless params['Shards'].nil?
2035
+ @Shards = []
2036
+ params['Shards'].each do |i|
2037
+ dcdbshardinfo_tmp = DCDBShardInfo.new
2038
+ dcdbshardinfo_tmp.deserialize(i)
2039
+ @Shards << dcdbshardinfo_tmp
2040
+ end
2041
+ end
2042
+ @DcnFlag = params['DcnFlag']
2043
+ @RequestId = params['RequestId']
2044
+ end
2045
+ end
2046
+
2047
+ # DescribeDCDBUpgradePrice请求参数结构体
2048
+ class DescribeDCDBUpgradePriceRequest < TencentCloud::Common::AbstractModel
2049
+ # @param InstanceId: 待升级的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
2050
+ # @type InstanceId: String
2051
+ # @param UpgradeType: 升级类型,取值范围:
2052
+ # <li> ADD: 新增分片 </li>
2053
+ # <li> EXPAND: 升级实例中的已有分片 </li>
2054
+ # <li> SPLIT: 将已有分片中的数据切分到新增分片上</li>
2055
+ # @type UpgradeType: String
2056
+ # @param AddShardConfig: 新增分片配置,当UpgradeType为ADD时生效。
2057
+ # @type AddShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.AddShardConfig`
2058
+ # @param ExpandShardConfig: 扩容分片配置,当UpgradeType为EXPAND时生效。
2059
+ # @type ExpandShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.ExpandShardConfig`
2060
+ # @param SplitShardConfig: 切分分片配置,当UpgradeType为SPLIT时生效。
2061
+ # @type SplitShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.SplitShardConfig`
2062
+
2063
+ attr_accessor :InstanceId, :UpgradeType, :AddShardConfig, :ExpandShardConfig, :SplitShardConfig
2064
+
2065
+ def initialize(instanceid=nil, upgradetype=nil, addshardconfig=nil, expandshardconfig=nil, splitshardconfig=nil)
2066
+ @InstanceId = instanceid
2067
+ @UpgradeType = upgradetype
2068
+ @AddShardConfig = addshardconfig
2069
+ @ExpandShardConfig = expandshardconfig
2070
+ @SplitShardConfig = splitshardconfig
2071
+ end
2072
+
2073
+ def deserialize(params)
2074
+ @InstanceId = params['InstanceId']
2075
+ @UpgradeType = params['UpgradeType']
2076
+ unless params['AddShardConfig'].nil?
2077
+ @AddShardConfig = AddShardConfig.new
2078
+ @AddShardConfig.deserialize(params['AddShardConfig'])
2079
+ end
2080
+ unless params['ExpandShardConfig'].nil?
2081
+ @ExpandShardConfig = ExpandShardConfig.new
2082
+ @ExpandShardConfig.deserialize(params['ExpandShardConfig'])
2083
+ end
2084
+ unless params['SplitShardConfig'].nil?
2085
+ @SplitShardConfig = SplitShardConfig.new
2086
+ @SplitShardConfig.deserialize(params['SplitShardConfig'])
2087
+ end
2088
+ end
2089
+ end
2090
+
2091
+ # DescribeDCDBUpgradePrice返回参数结构体
2092
+ class DescribeDCDBUpgradePriceResponse < TencentCloud::Common::AbstractModel
2093
+ # @param OriginalPrice: 原价,单位:分
2094
+ # @type OriginalPrice: Integer
2095
+ # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。
2096
+ # @type Price: Integer
2097
+ # @param Formula: 变配明细计算公式
2098
+ # @type Formula: String
2099
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2100
+ # @type RequestId: String
2101
+
2102
+ attr_accessor :OriginalPrice, :Price, :Formula, :RequestId
2103
+
2104
+ def initialize(originalprice=nil, price=nil, formula=nil, requestid=nil)
2105
+ @OriginalPrice = originalprice
2106
+ @Price = price
2107
+ @Formula = formula
2108
+ @RequestId = requestid
2109
+ end
2110
+
2111
+ def deserialize(params)
2112
+ @OriginalPrice = params['OriginalPrice']
2113
+ @Price = params['Price']
2114
+ @Formula = params['Formula']
2115
+ @RequestId = params['RequestId']
2116
+ end
2117
+ end
2118
+
2119
+ # DescribeDatabaseObjects请求参数结构体
2120
+ class DescribeDatabaseObjectsRequest < TencentCloud::Common::AbstractModel
2121
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
2122
+ # @type InstanceId: String
2123
+ # @param DbName: 数据库名称,通过 DescribeDatabases 接口获取。
2124
+ # @type DbName: String
2125
+
2126
+ attr_accessor :InstanceId, :DbName
2127
+
2128
+ def initialize(instanceid=nil, dbname=nil)
2129
+ @InstanceId = instanceid
2130
+ @DbName = dbname
2131
+ end
2132
+
2133
+ def deserialize(params)
2134
+ @InstanceId = params['InstanceId']
2135
+ @DbName = params['DbName']
2136
+ end
2137
+ end
2138
+
2139
+ # DescribeDatabaseObjects返回参数结构体
2140
+ class DescribeDatabaseObjectsResponse < TencentCloud::Common::AbstractModel
2141
+ # @param InstanceId: 透传入参。
2142
+ # @type InstanceId: String
2143
+ # @param DbName: 数据库名称。
2144
+ # @type DbName: String
2145
+ # @param Tables: 表列表。
2146
+ # @type Tables: Array
2147
+ # @param Views: 视图列表。
2148
+ # @type Views: Array
2149
+ # @param Procs: 存储过程列表。
2150
+ # @type Procs: Array
2151
+ # @param Funcs: 函数列表。
2152
+ # @type Funcs: Array
2153
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2154
+ # @type RequestId: String
2155
+
2156
+ attr_accessor :InstanceId, :DbName, :Tables, :Views, :Procs, :Funcs, :RequestId
2157
+
2158
+ def initialize(instanceid=nil, dbname=nil, tables=nil, views=nil, procs=nil, funcs=nil, requestid=nil)
2159
+ @InstanceId = instanceid
2160
+ @DbName = dbname
2161
+ @Tables = tables
2162
+ @Views = views
2163
+ @Procs = procs
2164
+ @Funcs = funcs
2165
+ @RequestId = requestid
2166
+ end
2167
+
2168
+ def deserialize(params)
2169
+ @InstanceId = params['InstanceId']
2170
+ @DbName = params['DbName']
2171
+ unless params['Tables'].nil?
2172
+ @Tables = []
2173
+ params['Tables'].each do |i|
2174
+ databasetable_tmp = DatabaseTable.new
2175
+ databasetable_tmp.deserialize(i)
2176
+ @Tables << databasetable_tmp
2177
+ end
2178
+ end
2179
+ unless params['Views'].nil?
2180
+ @Views = []
2181
+ params['Views'].each do |i|
2182
+ databaseview_tmp = DatabaseView.new
2183
+ databaseview_tmp.deserialize(i)
2184
+ @Views << databaseview_tmp
2185
+ end
2186
+ end
2187
+ unless params['Procs'].nil?
2188
+ @Procs = []
2189
+ params['Procs'].each do |i|
2190
+ databaseprocedure_tmp = DatabaseProcedure.new
2191
+ databaseprocedure_tmp.deserialize(i)
2192
+ @Procs << databaseprocedure_tmp
2193
+ end
2194
+ end
2195
+ unless params['Funcs'].nil?
2196
+ @Funcs = []
2197
+ params['Funcs'].each do |i|
2198
+ databasefunction_tmp = DatabaseFunction.new
2199
+ databasefunction_tmp.deserialize(i)
2200
+ @Funcs << databasefunction_tmp
2201
+ end
2202
+ end
2203
+ @RequestId = params['RequestId']
2204
+ end
2205
+ end
2206
+
2207
+ # DescribeDatabaseTable请求参数结构体
2208
+ class DescribeDatabaseTableRequest < TencentCloud::Common::AbstractModel
2209
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
2210
+ # @type InstanceId: String
2211
+ # @param DbName: 数据库名称,通过 DescribeDatabases 接口获取。
2212
+ # @type DbName: String
2213
+ # @param Table: 表名称,通过 DescribeDatabaseObjects 接口获取。
2214
+ # @type Table: String
2215
+
2216
+ attr_accessor :InstanceId, :DbName, :Table
2217
+
2218
+ def initialize(instanceid=nil, dbname=nil, table=nil)
2219
+ @InstanceId = instanceid
2220
+ @DbName = dbname
2221
+ @Table = table
2222
+ end
2223
+
2224
+ def deserialize(params)
2225
+ @InstanceId = params['InstanceId']
2226
+ @DbName = params['DbName']
2227
+ @Table = params['Table']
2228
+ end
2229
+ end
2230
+
2231
+ # DescribeDatabaseTable返回参数结构体
2232
+ class DescribeDatabaseTableResponse < TencentCloud::Common::AbstractModel
2233
+ # @param InstanceId: 实例名称。
2234
+ # @type InstanceId: String
2235
+ # @param DbName: 数据库名称。
2236
+ # @type DbName: String
2237
+ # @param Table: 表名称。
2238
+ # @type Table: String
2239
+ # @param Cols: 列信息。
2240
+ # @type Cols: Array
2241
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2242
+ # @type RequestId: String
2243
+
2244
+ attr_accessor :InstanceId, :DbName, :Table, :Cols, :RequestId
2245
+
2246
+ def initialize(instanceid=nil, dbname=nil, table=nil, cols=nil, requestid=nil)
2247
+ @InstanceId = instanceid
2248
+ @DbName = dbname
2249
+ @Table = table
2250
+ @Cols = cols
2251
+ @RequestId = requestid
2252
+ end
2253
+
2254
+ def deserialize(params)
2255
+ @InstanceId = params['InstanceId']
2256
+ @DbName = params['DbName']
2257
+ @Table = params['Table']
2258
+ unless params['Cols'].nil?
2259
+ @Cols = []
2260
+ params['Cols'].each do |i|
2261
+ tablecolumn_tmp = TableColumn.new
2262
+ tablecolumn_tmp.deserialize(i)
2263
+ @Cols << tablecolumn_tmp
2264
+ end
2265
+ end
2266
+ @RequestId = params['RequestId']
2267
+ end
2268
+ end
2269
+
2270
+ # DescribeDatabases请求参数结构体
2271
+ class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel
2272
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
2273
+ # @type InstanceId: String
2274
+
2275
+ attr_accessor :InstanceId
2276
+
2277
+ def initialize(instanceid=nil)
2278
+ @InstanceId = instanceid
2279
+ end
2280
+
2281
+ def deserialize(params)
2282
+ @InstanceId = params['InstanceId']
2283
+ end
2284
+ end
2285
+
2286
+ # DescribeDatabases返回参数结构体
2287
+ class DescribeDatabasesResponse < TencentCloud::Common::AbstractModel
2288
+ # @param Databases: 该实例上的数据库列表。
2289
+ # @type Databases: Array
2290
+ # @param InstanceId: 透传入参。
2291
+ # @type InstanceId: String
2292
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2293
+ # @type RequestId: String
2294
+
2295
+ attr_accessor :Databases, :InstanceId, :RequestId
2296
+
2297
+ def initialize(databases=nil, instanceid=nil, requestid=nil)
2298
+ @Databases = databases
2299
+ @InstanceId = instanceid
2300
+ @RequestId = requestid
2301
+ end
2302
+
2303
+ def deserialize(params)
2304
+ unless params['Databases'].nil?
2305
+ @Databases = []
2306
+ params['Databases'].each do |i|
2307
+ database_tmp = Database.new
2308
+ database_tmp.deserialize(i)
2309
+ @Databases << database_tmp
2310
+ end
2311
+ end
2312
+ @InstanceId = params['InstanceId']
2313
+ @RequestId = params['RequestId']
2314
+ end
2315
+ end
2316
+
2317
+ # DescribeDcnDetail请求参数结构体
2318
+ class DescribeDcnDetailRequest < TencentCloud::Common::AbstractModel
2319
+ # @param InstanceId: 实例ID
2320
+ # @type InstanceId: String
2321
+
2322
+ attr_accessor :InstanceId
2323
+
2324
+ def initialize(instanceid=nil)
2325
+ @InstanceId = instanceid
2326
+ end
2327
+
2328
+ def deserialize(params)
2329
+ @InstanceId = params['InstanceId']
2330
+ end
2331
+ end
2332
+
2333
+ # DescribeDcnDetail返回参数结构体
2334
+ class DescribeDcnDetailResponse < TencentCloud::Common::AbstractModel
2335
+ # @param DcnDetails: DCN同步详情
2336
+ # @type DcnDetails: Array
2337
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2338
+ # @type RequestId: String
2339
+
2340
+ attr_accessor :DcnDetails, :RequestId
2341
+
2342
+ def initialize(dcndetails=nil, requestid=nil)
2343
+ @DcnDetails = dcndetails
2344
+ @RequestId = requestid
2345
+ end
2346
+
2347
+ def deserialize(params)
2348
+ unless params['DcnDetails'].nil?
2349
+ @DcnDetails = []
2350
+ params['DcnDetails'].each do |i|
2351
+ dcndetailitem_tmp = DcnDetailItem.new
2352
+ dcndetailitem_tmp.deserialize(i)
2353
+ @DcnDetails << dcndetailitem_tmp
2354
+ end
2355
+ end
2356
+ @RequestId = params['RequestId']
2357
+ end
2358
+ end
2359
+
2360
+ # DescribeFlow请求参数结构体
2361
+ class DescribeFlowRequest < TencentCloud::Common::AbstractModel
2362
+ # @param FlowId: 异步请求接口返回的任务流程号。
2363
+ # @type FlowId: Integer
2364
+
2365
+ attr_accessor :FlowId
2366
+
2367
+ def initialize(flowid=nil)
2368
+ @FlowId = flowid
2369
+ end
2370
+
2371
+ def deserialize(params)
2372
+ @FlowId = params['FlowId']
2373
+ end
2374
+ end
2375
+
2376
+ # DescribeFlow返回参数结构体
2377
+ class DescribeFlowResponse < TencentCloud::Common::AbstractModel
2378
+ # @param Status: 流程状态,0:成功,1:失败,2:运行中
2379
+ # @type Status: Integer
2380
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2381
+ # @type RequestId: String
2382
+
2383
+ attr_accessor :Status, :RequestId
2384
+
2385
+ def initialize(status=nil, requestid=nil)
2386
+ @Status = status
2387
+ @RequestId = requestid
2388
+ end
2389
+
2390
+ def deserialize(params)
2391
+ @Status = params['Status']
2392
+ @RequestId = params['RequestId']
2393
+ end
2394
+ end
2395
+
2396
+ # DescribeOrders请求参数结构体
2397
+ class DescribeOrdersRequest < TencentCloud::Common::AbstractModel
2398
+ # @param DealNames: 待查询的长订单号列表,创建实例、续费实例、扩容实例接口返回。
2399
+ # @type DealNames: Array
2400
+
2401
+ attr_accessor :DealNames
2402
+
2403
+ def initialize(dealnames=nil)
2404
+ @DealNames = dealnames
2405
+ end
2406
+
2407
+ def deserialize(params)
2408
+ @DealNames = params['DealNames']
2409
+ end
2410
+ end
2411
+
2412
+ # DescribeOrders返回参数结构体
2413
+ class DescribeOrdersResponse < TencentCloud::Common::AbstractModel
2414
+ # @param TotalCount: 返回的订单数量。
2415
+ # @type TotalCount: Array
2416
+ # @param Deals: 订单信息列表。
2417
+ # @type Deals: Array
2418
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2419
+ # @type RequestId: String
2420
+
2421
+ attr_accessor :TotalCount, :Deals, :RequestId
2422
+
2423
+ def initialize(totalcount=nil, deals=nil, requestid=nil)
2424
+ @TotalCount = totalcount
2425
+ @Deals = deals
2426
+ @RequestId = requestid
2427
+ end
2428
+
2429
+ def deserialize(params)
2430
+ @TotalCount = params['TotalCount']
2431
+ unless params['Deals'].nil?
2432
+ @Deals = []
2433
+ params['Deals'].each do |i|
2434
+ deal_tmp = Deal.new
2435
+ deal_tmp.deserialize(i)
2436
+ @Deals << deal_tmp
2437
+ end
2438
+ end
2439
+ @RequestId = params['RequestId']
2440
+ end
2441
+ end
2442
+
2443
+ # DescribeProjectSecurityGroups请求参数结构体
2444
+ class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel
2445
+ # @param Product: 数据库引擎名称,本接口取值:dcdb。
2446
+ # @type Product: String
2447
+ # @param ProjectId: 项目ID。
2448
+ # @type ProjectId: Integer
2449
+
2450
+ attr_accessor :Product, :ProjectId
2451
+
2452
+ def initialize(product=nil, projectid=nil)
2453
+ @Product = product
2454
+ @ProjectId = projectid
2455
+ end
2456
+
2457
+ def deserialize(params)
2458
+ @Product = params['Product']
2459
+ @ProjectId = params['ProjectId']
2460
+ end
2461
+ end
2462
+
2463
+ # DescribeProjectSecurityGroups返回参数结构体
2464
+ class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel
2465
+ # @param Groups: 安全组详情。
2466
+ # @type Groups: Array
2467
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2468
+ # @type RequestId: String
2469
+
2470
+ attr_accessor :Groups, :RequestId
2471
+
2472
+ def initialize(groups=nil, requestid=nil)
2473
+ @Groups = groups
2474
+ @RequestId = requestid
2475
+ end
2476
+
2477
+ def deserialize(params)
2478
+ unless params['Groups'].nil?
2479
+ @Groups = []
2480
+ params['Groups'].each do |i|
2481
+ securitygroup_tmp = SecurityGroup.new
2482
+ securitygroup_tmp.deserialize(i)
2483
+ @Groups << securitygroup_tmp
2484
+ end
2485
+ end
2486
+ @RequestId = params['RequestId']
2487
+ end
2488
+ end
2489
+
2490
+ # DescribeProjects请求参数结构体
2491
+ class DescribeProjectsRequest < TencentCloud::Common::AbstractModel
2492
+
2493
+
2494
+ def initialize()
2495
+ end
2496
+
2497
+ def deserialize(params)
2498
+ end
2499
+ end
2500
+
2501
+ # DescribeProjects返回参数结构体
2502
+ class DescribeProjectsResponse < TencentCloud::Common::AbstractModel
2503
+ # @param Projects: 项目列表
2504
+ # @type Projects: Array
2505
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2506
+ # @type RequestId: String
2507
+
2508
+ attr_accessor :Projects, :RequestId
2509
+
2510
+ def initialize(projects=nil, requestid=nil)
2511
+ @Projects = projects
2512
+ @RequestId = requestid
2513
+ end
2514
+
2515
+ def deserialize(params)
2516
+ unless params['Projects'].nil?
2517
+ @Projects = []
2518
+ params['Projects'].each do |i|
2519
+ project_tmp = Project.new
2520
+ project_tmp.deserialize(i)
2521
+ @Projects << project_tmp
2522
+ end
2523
+ end
2524
+ @RequestId = params['RequestId']
2525
+ end
2526
+ end
2527
+
2528
+ # DescribeShardSpec请求参数结构体
2529
+ class DescribeShardSpecRequest < TencentCloud::Common::AbstractModel
2530
+
2531
+
2532
+ def initialize()
2533
+ end
2534
+
2535
+ def deserialize(params)
2536
+ end
2537
+ end
2538
+
2539
+ # DescribeShardSpec返回参数结构体
2540
+ class DescribeShardSpecResponse < TencentCloud::Common::AbstractModel
2541
+ # @param SpecConfig: 按机型分类的可售卖规格列表
2542
+ # @type SpecConfig: Array
2543
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2544
+ # @type RequestId: String
2545
+
2546
+ attr_accessor :SpecConfig, :RequestId
2547
+
2548
+ def initialize(specconfig=nil, requestid=nil)
2549
+ @SpecConfig = specconfig
2550
+ @RequestId = requestid
2551
+ end
2552
+
2553
+ def deserialize(params)
2554
+ unless params['SpecConfig'].nil?
2555
+ @SpecConfig = []
2556
+ params['SpecConfig'].each do |i|
2557
+ specconfig_tmp = SpecConfig.new
2558
+ specconfig_tmp.deserialize(i)
2559
+ @SpecConfig << specconfig_tmp
2560
+ end
2561
+ end
2562
+ @RequestId = params['RequestId']
2563
+ end
2564
+ end
2565
+
2566
+ # DescribeSqlLogs请求参数结构体
2567
+ class DescribeSqlLogsRequest < TencentCloud::Common::AbstractModel
2568
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
2569
+ # @type InstanceId: String
2570
+ # @param Offset: SQL日志偏移。
2571
+ # @type Offset: Integer
2572
+ # @param Limit: 拉取数量(0-10000,为0时拉取总数信息)。
2573
+ # @type Limit: Integer
2574
+
2575
+ attr_accessor :InstanceId, :Offset, :Limit
2576
+
2577
+ def initialize(instanceid=nil, offset=nil, limit=nil)
2578
+ @InstanceId = instanceid
2579
+ @Offset = offset
2580
+ @Limit = limit
2581
+ end
2582
+
2583
+ def deserialize(params)
2584
+ @InstanceId = params['InstanceId']
2585
+ @Offset = params['Offset']
2586
+ @Limit = params['Limit']
2587
+ end
2588
+ end
2589
+
2590
+ # DescribeSqlLogs返回参数结构体
2591
+ class DescribeSqlLogsResponse < TencentCloud::Common::AbstractModel
2592
+ # @param TotalCount: 当前消息队列中的sql日志条目数。
2593
+ # @type TotalCount: Integer
2594
+ # @param StartOffset: 消息队列中的sql日志起始偏移。
2595
+ # @type StartOffset: Integer
2596
+ # @param EndOffset: 消息队列中的sql日志结束偏移。
2597
+ # @type EndOffset: Integer
2598
+ # @param Offset: 返回的第一条sql日志的偏移。
2599
+ # @type Offset: Integer
2600
+ # @param Count: 返回的sql日志数量。
2601
+ # @type Count: Integer
2602
+ # @param SqlItems: Sql日志列表。
2603
+ # @type SqlItems: Array
2604
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2605
+ # @type RequestId: String
2606
+
2607
+ attr_accessor :TotalCount, :StartOffset, :EndOffset, :Offset, :Count, :SqlItems, :RequestId
2608
+
2609
+ def initialize(totalcount=nil, startoffset=nil, endoffset=nil, offset=nil, count=nil, sqlitems=nil, requestid=nil)
2610
+ @TotalCount = totalcount
2611
+ @StartOffset = startoffset
2612
+ @EndOffset = endoffset
2613
+ @Offset = offset
2614
+ @Count = count
2615
+ @SqlItems = sqlitems
2616
+ @RequestId = requestid
2617
+ end
2618
+
2619
+ def deserialize(params)
2620
+ @TotalCount = params['TotalCount']
2621
+ @StartOffset = params['StartOffset']
2622
+ @EndOffset = params['EndOffset']
2623
+ @Offset = params['Offset']
2624
+ @Count = params['Count']
2625
+ unless params['SqlItems'].nil?
2626
+ @SqlItems = []
2627
+ params['SqlItems'].each do |i|
2628
+ sqllogitem_tmp = SqlLogItem.new
2629
+ sqllogitem_tmp.deserialize(i)
2630
+ @SqlItems << sqllogitem_tmp
2631
+ end
2632
+ end
2633
+ @RequestId = params['RequestId']
2634
+ end
2635
+ end
2636
+
2637
+ # DescribeUserTasks请求参数结构体
2638
+ class DescribeUserTasksRequest < TencentCloud::Common::AbstractModel
2639
+ # @param Statuses: 任务的状态列表。0-任务启动中;1-任务运行中;2-任务成功;3-任务失败
2640
+ # @type Statuses: Array
2641
+ # @param InstanceIds: 实例ID列表
2642
+ # @type InstanceIds: Array
2643
+ # @param FlowTypes: 任务类型列表,当前支持的任务类型有:0-回档任务;1-创建实例任务;2-扩容任务;3-迁移任务;4-删除实例任务;5-重启任务
2644
+ # @type FlowTypes: Array
2645
+ # @param StartTime: 任务的创建时间
2646
+ # @type StartTime: String
2647
+ # @param EndTime: 任务的结束时间
2648
+ # @type EndTime: String
2649
+ # @param UTaskIds: 任务ID的数组
2650
+ # @type UTaskIds: Array
2651
+ # @param Limit: 每次最多返回多少条任务,取值范围为(0,100],不传的话默认值为20
2652
+ # @type Limit: Integer
2653
+ # @param Offset: 返回任务默认是按照创建时间降序排列,从偏移值Offset处开始返回
2654
+ # @type Offset: Integer
2655
+
2656
+ attr_accessor :Statuses, :InstanceIds, :FlowTypes, :StartTime, :EndTime, :UTaskIds, :Limit, :Offset
2657
+
2658
+ def initialize(statuses=nil, instanceids=nil, flowtypes=nil, starttime=nil, endtime=nil, utaskids=nil, limit=nil, offset=nil)
2659
+ @Statuses = statuses
2660
+ @InstanceIds = instanceids
2661
+ @FlowTypes = flowtypes
2662
+ @StartTime = starttime
2663
+ @EndTime = endtime
2664
+ @UTaskIds = utaskids
2665
+ @Limit = limit
2666
+ @Offset = offset
2667
+ end
2668
+
2669
+ def deserialize(params)
2670
+ @Statuses = params['Statuses']
2671
+ @InstanceIds = params['InstanceIds']
2672
+ @FlowTypes = params['FlowTypes']
2673
+ @StartTime = params['StartTime']
2674
+ @EndTime = params['EndTime']
2675
+ @UTaskIds = params['UTaskIds']
2676
+ @Limit = params['Limit']
2677
+ @Offset = params['Offset']
2678
+ end
2679
+ end
2680
+
2681
+ # DescribeUserTasks返回参数结构体
2682
+ class DescribeUserTasksResponse < TencentCloud::Common::AbstractModel
2683
+ # @param TotalCount: 任务总数
2684
+ # @type TotalCount: Integer
2685
+ # @param FlowSet: 任务列表
2686
+ # @type FlowSet: Array
2687
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2688
+ # @type RequestId: String
2689
+
2690
+ attr_accessor :TotalCount, :FlowSet, :RequestId
2691
+
2692
+ def initialize(totalcount=nil, flowset=nil, requestid=nil)
2693
+ @TotalCount = totalcount
2694
+ @FlowSet = flowset
2695
+ @RequestId = requestid
2696
+ end
2697
+
2698
+ def deserialize(params)
2699
+ @TotalCount = params['TotalCount']
2700
+ unless params['FlowSet'].nil?
2701
+ @FlowSet = []
2702
+ params['FlowSet'].each do |i|
2703
+ usertaskinfo_tmp = UserTaskInfo.new
2704
+ usertaskinfo_tmp.deserialize(i)
2705
+ @FlowSet << usertaskinfo_tmp
2706
+ end
2707
+ end
2708
+ @RequestId = params['RequestId']
2709
+ end
2710
+ end
2711
+
2712
+ # DestroyDCDBInstance请求参数结构体
2713
+ class DestroyDCDBInstanceRequest < TencentCloud::Common::AbstractModel
2714
+ # @param InstanceId: 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
2715
+ # @type InstanceId: String
2716
+
2717
+ attr_accessor :InstanceId
2718
+
2719
+ def initialize(instanceid=nil)
2720
+ @InstanceId = instanceid
2721
+ end
2722
+
2723
+ def deserialize(params)
2724
+ @InstanceId = params['InstanceId']
2725
+ end
2726
+ end
2727
+
2728
+ # DestroyDCDBInstance返回参数结构体
2729
+ class DestroyDCDBInstanceResponse < TencentCloud::Common::AbstractModel
2730
+ # @param InstanceId: 实例 ID,与入参InstanceId一致。
2731
+ # @type InstanceId: String
2732
+ # @param FlowId: 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/557/56485)。
2733
+ # @type FlowId: Integer
2734
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2735
+ # @type RequestId: String
2736
+
2737
+ attr_accessor :InstanceId, :FlowId, :RequestId
2738
+
2739
+ def initialize(instanceid=nil, flowid=nil, requestid=nil)
2740
+ @InstanceId = instanceid
2741
+ @FlowId = flowid
2742
+ @RequestId = requestid
2743
+ end
2744
+
2745
+ def deserialize(params)
2746
+ @InstanceId = params['InstanceId']
2747
+ @FlowId = params['FlowId']
2748
+ @RequestId = params['RequestId']
2749
+ end
2750
+ end
2751
+
2752
+ # DestroyHourDCDBInstance请求参数结构体
2753
+ class DestroyHourDCDBInstanceRequest < TencentCloud::Common::AbstractModel
2754
+ # @param InstanceId: 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
2755
+ # @type InstanceId: String
2756
+
2757
+ attr_accessor :InstanceId
2758
+
2759
+ def initialize(instanceid=nil)
2760
+ @InstanceId = instanceid
2761
+ end
2762
+
2763
+ def deserialize(params)
2764
+ @InstanceId = params['InstanceId']
2765
+ end
2766
+ end
2767
+
2768
+ # DestroyHourDCDBInstance返回参数结构体
2769
+ class DestroyHourDCDBInstanceResponse < TencentCloud::Common::AbstractModel
2770
+ # @param FlowId: 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/557/56485)。
2771
+ # @type FlowId: Integer
2772
+ # @param InstanceId: 实例 ID,与入参InstanceId一致。
2773
+ # @type InstanceId: String
2774
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2775
+ # @type RequestId: String
2776
+
2777
+ attr_accessor :FlowId, :InstanceId, :RequestId
2778
+
2779
+ def initialize(flowid=nil, instanceid=nil, requestid=nil)
2780
+ @FlowId = flowid
2781
+ @InstanceId = instanceid
2782
+ @RequestId = requestid
2783
+ end
2784
+
2785
+ def deserialize(params)
2786
+ @FlowId = params['FlowId']
2787
+ @InstanceId = params['InstanceId']
2788
+ @RequestId = params['RequestId']
2789
+ end
2790
+ end
2791
+
2792
+ # DisassociateSecurityGroups请求参数结构体
2793
+ class DisassociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
2794
+ # @param Product: 数据库引擎名称,本接口取值:dcdb。
2795
+ # @type Product: String
2796
+ # @param SecurityGroupId: 安全组Id。
2797
+ # @type SecurityGroupId: String
2798
+ # @param InstanceIds: 实例ID列表,一个或者多个实例Id组成的数组。
2799
+ # @type InstanceIds: Array
2800
+
2801
+ attr_accessor :Product, :SecurityGroupId, :InstanceIds
2802
+
2803
+ def initialize(product=nil, securitygroupid=nil, instanceids=nil)
2804
+ @Product = product
2805
+ @SecurityGroupId = securitygroupid
2806
+ @InstanceIds = instanceids
2807
+ end
2808
+
2809
+ def deserialize(params)
2810
+ @Product = params['Product']
2811
+ @SecurityGroupId = params['SecurityGroupId']
2812
+ @InstanceIds = params['InstanceIds']
2813
+ end
2814
+ end
2815
+
2816
+ # DisassociateSecurityGroups返回参数结构体
2817
+ class DisassociateSecurityGroupsResponse < TencentCloud::Common::AbstractModel
2818
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2819
+ # @type RequestId: String
2820
+
2821
+ attr_accessor :RequestId
2822
+
2823
+ def initialize(requestid=nil)
2824
+ @RequestId = requestid
2825
+ end
2826
+
2827
+ def deserialize(params)
2828
+ @RequestId = params['RequestId']
2829
+ end
2830
+ end
2831
+
2832
+ # 升级实例 -- 扩容分片类型
2833
+ class ExpandShardConfig < TencentCloud::Common::AbstractModel
2834
+ # @param ShardInstanceIds: 分片ID数组
2835
+ # @type ShardInstanceIds: Array
2836
+ # @param ShardMemory: 分片内存大小,单位 GB
2837
+ # @type ShardMemory: Integer
2838
+ # @param ShardStorage: 分片存储大小,单位 GB
2839
+ # @type ShardStorage: Integer
2840
+
2841
+ attr_accessor :ShardInstanceIds, :ShardMemory, :ShardStorage
2842
+
2843
+ def initialize(shardinstanceids=nil, shardmemory=nil, shardstorage=nil)
2844
+ @ShardInstanceIds = shardinstanceids
2845
+ @ShardMemory = shardmemory
2846
+ @ShardStorage = shardstorage
2847
+ end
2848
+
2849
+ def deserialize(params)
2850
+ @ShardInstanceIds = params['ShardInstanceIds']
2851
+ @ShardMemory = params['ShardMemory']
2852
+ @ShardStorage = params['ShardStorage']
2853
+ end
2854
+ end
2855
+
2856
+ # FlushBinlog请求参数结构体
2857
+ class FlushBinlogRequest < TencentCloud::Common::AbstractModel
2858
+ # @param InstanceId: 实例ID
2859
+ # @type InstanceId: String
2860
+
2861
+ attr_accessor :InstanceId
2862
+
2863
+ def initialize(instanceid=nil)
2864
+ @InstanceId = instanceid
2865
+ end
2866
+
2867
+ def deserialize(params)
2868
+ @InstanceId = params['InstanceId']
2869
+ end
2870
+ end
2871
+
2872
+ # FlushBinlog返回参数结构体
2873
+ class FlushBinlogResponse < TencentCloud::Common::AbstractModel
2874
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2875
+ # @type RequestId: String
2876
+
2877
+ attr_accessor :RequestId
2878
+
2879
+ def initialize(requestid=nil)
2880
+ @RequestId = requestid
2881
+ end
2882
+
2883
+ def deserialize(params)
2884
+ @RequestId = params['RequestId']
2885
+ end
2886
+ end
2887
+
2888
+ # GrantAccountPrivileges请求参数结构体
2889
+ class GrantAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
2890
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
2891
+ # @type InstanceId: String
2892
+ # @param UserName: 登录用户名。
2893
+ # @type UserName: String
2894
+ # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。
2895
+ # @type Host: String
2896
+ # @param DbName: 数据库名。如果为 \*,表示查询全局权限(即 \*.\*),此时忽略 Type 和 Object 参数
2897
+ # @type DbName: String
2898
+ # @param Privileges: 全局权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER,SHOW DATABASES
2899
+ # 库权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER
2900
+ # 表/视图权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE VIEW,SHOW VIEW,TRIGGER
2901
+ # 存储过程/函数权限: ALTER ROUTINE,EXECUTE
2902
+ # 字段权限: INSERT,REFERENCES,SELECT,UPDATE
2903
+ # @type Privileges: Array
2904
+ # @param Type: 类型,可以填入 table 、 view 、 proc 、 func 和 \*。当 DbName 为具体数据库名,Type为 \* 时,表示设置该数据库权限(即db.\*),此时忽略 Object 参数
2905
+ # @type Type: String
2906
+ # @param Object: 具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 \* 或者为空
2907
+ # @type Object: String
2908
+ # @param ColName: 当 Type=table 时,ColName 为 \* 表示对表授权,如果为具体字段名,表示对字段授权
2909
+ # @type ColName: String
2910
+
2911
+ attr_accessor :InstanceId, :UserName, :Host, :DbName, :Privileges, :Type, :Object, :ColName
2912
+
2913
+ def initialize(instanceid=nil, username=nil, host=nil, dbname=nil, privileges=nil, type=nil, object=nil, colname=nil)
2914
+ @InstanceId = instanceid
2915
+ @UserName = username
2916
+ @Host = host
2917
+ @DbName = dbname
2918
+ @Privileges = privileges
2919
+ @Type = type
2920
+ @Object = object
2921
+ @ColName = colname
2922
+ end
2923
+
2924
+ def deserialize(params)
2925
+ @InstanceId = params['InstanceId']
2926
+ @UserName = params['UserName']
2927
+ @Host = params['Host']
2928
+ @DbName = params['DbName']
2929
+ @Privileges = params['Privileges']
2930
+ @Type = params['Type']
2931
+ @Object = params['Object']
2932
+ @ColName = params['ColName']
2933
+ end
2934
+ end
2935
+
2936
+ # GrantAccountPrivileges返回参数结构体
2937
+ class GrantAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
2938
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2939
+ # @type RequestId: String
2940
+
2941
+ attr_accessor :RequestId
2942
+
2943
+ def initialize(requestid=nil)
2944
+ @RequestId = requestid
2945
+ end
2946
+
2947
+ def deserialize(params)
2948
+ @RequestId = params['RequestId']
2949
+ end
2950
+ end
2951
+
2952
+ # InitDCDBInstances请求参数结构体
2953
+ class InitDCDBInstancesRequest < TencentCloud::Common::AbstractModel
2954
+ # @param InstanceIds: 待初始化的实例ID列表,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
2955
+ # @type InstanceIds: Array
2956
+ # @param Params: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步)。
2957
+ # @type Params: Array
2958
+
2959
+ attr_accessor :InstanceIds, :Params
2960
+
2961
+ def initialize(instanceids=nil, params=nil)
2962
+ @InstanceIds = instanceids
2963
+ @Params = params
2964
+ end
2965
+
2966
+ def deserialize(params)
2967
+ @InstanceIds = params['InstanceIds']
2968
+ unless params['Params'].nil?
2969
+ @Params = []
2970
+ params['Params'].each do |i|
2971
+ dbparamvalue_tmp = DBParamValue.new
2972
+ dbparamvalue_tmp.deserialize(i)
2973
+ @Params << dbparamvalue_tmp
2974
+ end
2975
+ end
2976
+ end
2977
+ end
2978
+
2979
+ # InitDCDBInstances返回参数结构体
2980
+ class InitDCDBInstancesResponse < TencentCloud::Common::AbstractModel
2981
+ # @param FlowIds: 异步任务ID,可通过 DescribeFlow 查询任务状态。
2982
+ # @type FlowIds: Array
2983
+ # @param InstanceIds: 透传入参。
2984
+ # @type InstanceIds: Array
2985
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2986
+ # @type RequestId: String
2987
+
2988
+ attr_accessor :FlowIds, :InstanceIds, :RequestId
2989
+
2990
+ def initialize(flowids=nil, instanceids=nil, requestid=nil)
2991
+ @FlowIds = flowids
2992
+ @InstanceIds = instanceids
2993
+ @RequestId = requestid
2994
+ end
2995
+
2996
+ def deserialize(params)
2997
+ @FlowIds = params['FlowIds']
2998
+ @InstanceIds = params['InstanceIds']
2999
+ @RequestId = params['RequestId']
3000
+ end
3001
+ end
3002
+
3003
+ # KillSession请求参数结构体
3004
+ class KillSessionRequest < TencentCloud::Common::AbstractModel
3005
+ # @param InstanceId: 实例ID
3006
+ # @type InstanceId: String
3007
+ # @param SessionId: 会话ID列表
3008
+ # @type SessionId: Array
3009
+ # @param ShardId: 分片ID,与ShardSerialId设置一个
3010
+ # @type ShardId: String
3011
+ # @param ShardSerialId: 分片序列ID,与ShardId设置一个
3012
+ # @type ShardSerialId: String
3013
+
3014
+ attr_accessor :InstanceId, :SessionId, :ShardId, :ShardSerialId
3015
+
3016
+ def initialize(instanceid=nil, sessionid=nil, shardid=nil, shardserialid=nil)
3017
+ @InstanceId = instanceid
3018
+ @SessionId = sessionid
3019
+ @ShardId = shardid
3020
+ @ShardSerialId = shardserialid
3021
+ end
3022
+
3023
+ def deserialize(params)
3024
+ @InstanceId = params['InstanceId']
3025
+ @SessionId = params['SessionId']
3026
+ @ShardId = params['ShardId']
3027
+ @ShardSerialId = params['ShardSerialId']
3028
+ end
3029
+ end
3030
+
3031
+ # KillSession返回参数结构体
3032
+ class KillSessionResponse < TencentCloud::Common::AbstractModel
3033
+ # @param TaskId: 任务ID
3034
+ # @type TaskId: Integer
3035
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3036
+ # @type RequestId: String
3037
+
3038
+ attr_accessor :TaskId, :RequestId
3039
+
3040
+ def initialize(taskid=nil, requestid=nil)
3041
+ @TaskId = taskid
3042
+ @RequestId = requestid
3043
+ end
3044
+
3045
+ def deserialize(params)
3046
+ @TaskId = params['TaskId']
3047
+ @RequestId = params['RequestId']
3048
+ end
3049
+ end
3050
+
3051
+ # 拉取的日志信息
3052
+ class LogFileInfo < TencentCloud::Common::AbstractModel
3053
+ # @param Mtime: Log最后修改时间
3054
+ # @type Mtime: Integer
3055
+ # @param Length: 文件长度
3056
+ # @type Length: Integer
3057
+ # @param Uri: 下载Log时用到的统一资源标识符
3058
+ # @type Uri: String
3059
+ # @param FileName: 文件名
3060
+ # @type FileName: String
3061
+
3062
+ attr_accessor :Mtime, :Length, :Uri, :FileName
3063
+
3064
+ def initialize(mtime=nil, length=nil, uri=nil, filename=nil)
3065
+ @Mtime = mtime
3066
+ @Length = length
3067
+ @Uri = uri
3068
+ @FileName = filename
3069
+ end
3070
+
3071
+ def deserialize(params)
3072
+ @Mtime = params['Mtime']
3073
+ @Length = params['Length']
3074
+ @Uri = params['Uri']
3075
+ @FileName = params['FileName']
3076
+ end
3077
+ end
3078
+
3079
+ # ModifyAccountDescription请求参数结构体
3080
+ class ModifyAccountDescriptionRequest < TencentCloud::Common::AbstractModel
3081
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
3082
+ # @type InstanceId: String
3083
+ # @param UserName: 登录用户名。
3084
+ # @type UserName: String
3085
+ # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。
3086
+ # @type Host: String
3087
+ # @param Description: 新的账号备注,长度 0~256。
3088
+ # @type Description: String
3089
+
3090
+ attr_accessor :InstanceId, :UserName, :Host, :Description
3091
+
3092
+ def initialize(instanceid=nil, username=nil, host=nil, description=nil)
3093
+ @InstanceId = instanceid
3094
+ @UserName = username
3095
+ @Host = host
3096
+ @Description = description
3097
+ end
3098
+
3099
+ def deserialize(params)
3100
+ @InstanceId = params['InstanceId']
3101
+ @UserName = params['UserName']
3102
+ @Host = params['Host']
3103
+ @Description = params['Description']
3104
+ end
3105
+ end
3106
+
3107
+ # ModifyAccountDescription返回参数结构体
3108
+ class ModifyAccountDescriptionResponse < TencentCloud::Common::AbstractModel
3109
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3110
+ # @type RequestId: String
3111
+
3112
+ attr_accessor :RequestId
3113
+
3114
+ def initialize(requestid=nil)
3115
+ @RequestId = requestid
3116
+ end
3117
+
3118
+ def deserialize(params)
3119
+ @RequestId = params['RequestId']
3120
+ end
3121
+ end
3122
+
3123
+ # ModifyDBInstanceSecurityGroups请求参数结构体
3124
+ class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
3125
+ # @param Product: 数据库引擎名称,本接口取值:dcdb。
3126
+ # @type Product: String
3127
+ # @param InstanceId: 实例ID。
3128
+ # @type InstanceId: String
3129
+ # @param SecurityGroupIds: 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。
3130
+ # @type SecurityGroupIds: Array
3131
+
3132
+ attr_accessor :Product, :InstanceId, :SecurityGroupIds
3133
+
3134
+ def initialize(product=nil, instanceid=nil, securitygroupids=nil)
3135
+ @Product = product
3136
+ @InstanceId = instanceid
3137
+ @SecurityGroupIds = securitygroupids
3138
+ end
3139
+
3140
+ def deserialize(params)
3141
+ @Product = params['Product']
3142
+ @InstanceId = params['InstanceId']
3143
+ @SecurityGroupIds = params['SecurityGroupIds']
3144
+ end
3145
+ end
3146
+
3147
+ # ModifyDBInstanceSecurityGroups返回参数结构体
3148
+ class ModifyDBInstanceSecurityGroupsResponse < TencentCloud::Common::AbstractModel
3149
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3150
+ # @type RequestId: String
3151
+
3152
+ attr_accessor :RequestId
3153
+
3154
+ def initialize(requestid=nil)
3155
+ @RequestId = requestid
3156
+ end
3157
+
3158
+ def deserialize(params)
3159
+ @RequestId = params['RequestId']
3160
+ end
3161
+ end
3162
+
3163
+ # ModifyDBInstancesProject请求参数结构体
3164
+ class ModifyDBInstancesProjectRequest < TencentCloud::Common::AbstractModel
3165
+ # @param InstanceIds: 待修改的实例ID列表。实例 ID 形如:dcdbt-ow728lmc。
3166
+ # @type InstanceIds: Array
3167
+ # @param ProjectId: 要分配的项目 ID,可以通过 DescribeProjects 查询项目列表接口获取。
3168
+ # @type ProjectId: Integer
3169
+
3170
+ attr_accessor :InstanceIds, :ProjectId
3171
+
3172
+ def initialize(instanceids=nil, projectid=nil)
3173
+ @InstanceIds = instanceids
3174
+ @ProjectId = projectid
3175
+ end
3176
+
3177
+ def deserialize(params)
3178
+ @InstanceIds = params['InstanceIds']
3179
+ @ProjectId = params['ProjectId']
3180
+ end
3181
+ end
3182
+
3183
+ # ModifyDBInstancesProject返回参数结构体
3184
+ class ModifyDBInstancesProjectResponse < TencentCloud::Common::AbstractModel
3185
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3186
+ # @type RequestId: String
3187
+
3188
+ attr_accessor :RequestId
3189
+
3190
+ def initialize(requestid=nil)
3191
+ @RequestId = requestid
3192
+ end
3193
+
3194
+ def deserialize(params)
3195
+ @RequestId = params['RequestId']
3196
+ end
3197
+ end
3198
+
3199
+ # ModifyDBParameters请求参数结构体
3200
+ class ModifyDBParametersRequest < TencentCloud::Common::AbstractModel
3201
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
3202
+ # @type InstanceId: String
3203
+ # @param Params: 参数列表,每一个元素是Param和Value的组合
3204
+ # @type Params: Array
3205
+
3206
+ attr_accessor :InstanceId, :Params
3207
+
3208
+ def initialize(instanceid=nil, params=nil)
3209
+ @InstanceId = instanceid
3210
+ @Params = params
3211
+ end
3212
+
3213
+ def deserialize(params)
3214
+ @InstanceId = params['InstanceId']
3215
+ unless params['Params'].nil?
3216
+ @Params = []
3217
+ params['Params'].each do |i|
3218
+ dbparamvalue_tmp = DBParamValue.new
3219
+ dbparamvalue_tmp.deserialize(i)
3220
+ @Params << dbparamvalue_tmp
3221
+ end
3222
+ end
3223
+ end
3224
+ end
3225
+
3226
+ # ModifyDBParameters返回参数结构体
3227
+ class ModifyDBParametersResponse < TencentCloud::Common::AbstractModel
3228
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
3229
+ # @type InstanceId: String
3230
+ # @param Result: 各参数修改结果
3231
+ # @type Result: Array
3232
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3233
+ # @type RequestId: String
3234
+
3235
+ attr_accessor :InstanceId, :Result, :RequestId
3236
+
3237
+ def initialize(instanceid=nil, result=nil, requestid=nil)
3238
+ @InstanceId = instanceid
3239
+ @Result = result
3240
+ @RequestId = requestid
3241
+ end
3242
+
3243
+ def deserialize(params)
3244
+ @InstanceId = params['InstanceId']
3245
+ unless params['Result'].nil?
3246
+ @Result = []
3247
+ params['Result'].each do |i|
3248
+ parammodifyresult_tmp = ParamModifyResult.new
3249
+ parammodifyresult_tmp.deserialize(i)
3250
+ @Result << parammodifyresult_tmp
3251
+ end
3252
+ end
3253
+ @RequestId = params['RequestId']
3254
+ end
3255
+ end
3256
+
3257
+ # ModifyDBSyncMode请求参数结构体
3258
+ class ModifyDBSyncModeRequest < TencentCloud::Common::AbstractModel
3259
+ # @param InstanceId: 待修改同步模式的实例ID。形如:dcdbt-ow728lmc。
3260
+ # @type InstanceId: String
3261
+ # @param SyncMode: 同步模式:0 异步,1 强同步, 2 强同步可退化
3262
+ # @type SyncMode: Integer
3263
+
3264
+ attr_accessor :InstanceId, :SyncMode
3265
+
3266
+ def initialize(instanceid=nil, syncmode=nil)
3267
+ @InstanceId = instanceid
3268
+ @SyncMode = syncmode
3269
+ end
3270
+
3271
+ def deserialize(params)
3272
+ @InstanceId = params['InstanceId']
3273
+ @SyncMode = params['SyncMode']
3274
+ end
3275
+ end
3276
+
3277
+ # ModifyDBSyncMode返回参数结构体
3278
+ class ModifyDBSyncModeResponse < TencentCloud::Common::AbstractModel
3279
+ # @param FlowId: 异步任务Id,可通过 DescribeFlow 查询任务状态。
3280
+ # @type FlowId: Integer
3281
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3282
+ # @type RequestId: String
3283
+
3284
+ attr_accessor :FlowId, :RequestId
3285
+
3286
+ def initialize(flowid=nil, requestid=nil)
3287
+ @FlowId = flowid
3288
+ @RequestId = requestid
3289
+ end
3290
+
3291
+ def deserialize(params)
3292
+ @FlowId = params['FlowId']
3293
+ @RequestId = params['RequestId']
3294
+ end
3295
+ end
3296
+
3297
+ # ModifyRealServerAccessStrategy请求参数结构体
3298
+ class ModifyRealServerAccessStrategyRequest < TencentCloud::Common::AbstractModel
3299
+ # @param InstanceId: 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
3300
+ # @type InstanceId: String
3301
+ # @param RsAccessStrategy: RS就近模式, 0-无策略, 1-可用区就近访问。
3302
+ # @type RsAccessStrategy: Integer
3303
+
3304
+ attr_accessor :InstanceId, :RsAccessStrategy
3305
+
3306
+ def initialize(instanceid=nil, rsaccessstrategy=nil)
3307
+ @InstanceId = instanceid
3308
+ @RsAccessStrategy = rsaccessstrategy
3309
+ end
3310
+
3311
+ def deserialize(params)
3312
+ @InstanceId = params['InstanceId']
3313
+ @RsAccessStrategy = params['RsAccessStrategy']
3314
+ end
3315
+ end
3316
+
3317
+ # ModifyRealServerAccessStrategy返回参数结构体
3318
+ class ModifyRealServerAccessStrategyResponse < TencentCloud::Common::AbstractModel
3319
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3320
+ # @type RequestId: String
3321
+
3322
+ attr_accessor :RequestId
3323
+
3324
+ def initialize(requestid=nil)
3325
+ @RequestId = requestid
3326
+ end
3327
+
3328
+ def deserialize(params)
3329
+ @RequestId = params['RequestId']
3330
+ end
3331
+ end
3332
+
3333
+ # OpenDBExtranetAccess请求参数结构体
3334
+ class OpenDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
3335
+ # @param InstanceId: 待开放外网访问的实例ID。形如:dcdbt-ow728lmc。
3336
+ # @type InstanceId: String
3337
+ # @param Ipv6Flag: 是否IPv6,默认0
3338
+ # @type Ipv6Flag: Integer
3339
+
3340
+ attr_accessor :InstanceId, :Ipv6Flag
3341
+
3342
+ def initialize(instanceid=nil, ipv6flag=nil)
3343
+ @InstanceId = instanceid
3344
+ @Ipv6Flag = ipv6flag
3345
+ end
3346
+
3347
+ def deserialize(params)
3348
+ @InstanceId = params['InstanceId']
3349
+ @Ipv6Flag = params['Ipv6Flag']
3350
+ end
3351
+ end
3352
+
3353
+ # OpenDBExtranetAccess返回参数结构体
3354
+ class OpenDBExtranetAccessResponse < TencentCloud::Common::AbstractModel
3355
+ # @param FlowId: 异步任务ID,可通过 DescribeFlow 查询任务状态。
3356
+ # @type FlowId: Integer
3357
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3358
+ # @type RequestId: String
3359
+
3360
+ attr_accessor :FlowId, :RequestId
3361
+
3362
+ def initialize(flowid=nil, requestid=nil)
3363
+ @FlowId = flowid
3364
+ @RequestId = requestid
3365
+ end
3366
+
3367
+ def deserialize(params)
3368
+ @FlowId = params['FlowId']
3369
+ @RequestId = params['RequestId']
3370
+ end
3371
+ end
3372
+
3373
+ # 参数约束
3374
+ class ParamConstraint < TencentCloud::Common::AbstractModel
3375
+ # @param Type: 约束类型,如枚举enum,区间section
3376
+ # @type Type: String
3377
+ # @param Enum: 约束类型为enum时的可选值列表
3378
+ # @type Enum: String
3379
+ # @param Range: 约束类型为section时的范围
3380
+ # 注意:此字段可能返回 null,表示取不到有效值。
3381
+ # @type Range: :class:`Tencentcloud::Dcdb.v20180411.models.ConstraintRange`
3382
+ # @param String: 约束类型为string时的可选值列表
3383
+ # @type String: String
3384
+
3385
+ attr_accessor :Type, :Enum, :Range, :String
3386
+
3387
+ def initialize(type=nil, enum=nil, range=nil, string=nil)
3388
+ @Type = type
3389
+ @Enum = enum
3390
+ @Range = range
3391
+ @String = string
3392
+ end
3393
+
3394
+ def deserialize(params)
3395
+ @Type = params['Type']
3396
+ @Enum = params['Enum']
3397
+ unless params['Range'].nil?
3398
+ @Range = ConstraintRange.new
3399
+ @Range.deserialize(params['Range'])
3400
+ end
3401
+ @String = params['String']
3402
+ end
3403
+ end
3404
+
3405
+ # DB参数描述
3406
+ class ParamDesc < TencentCloud::Common::AbstractModel
3407
+ # @param Param: 参数名字
3408
+ # @type Param: String
3409
+ # @param Value: 当前参数值
3410
+ # @type Value: String
3411
+ # @param SetValue: 设置过的值,参数生效后,该值和value一样。未设置过就不返回该字段。
3412
+ # 注意:此字段可能返回 null,表示取不到有效值。
3413
+ # @type SetValue: String
3414
+ # @param Default: 系统默认值
3415
+ # @type Default: String
3416
+ # @param Constraint: 参数限制
3417
+ # @type Constraint: :class:`Tencentcloud::Dcdb.v20180411.models.ParamConstraint`
3418
+ # @param HaveSetValue: 是否有设置过值,false:没有设置过值,true:有设置过值。
3419
+ # @type HaveSetValue: Boolean
3420
+
3421
+ attr_accessor :Param, :Value, :SetValue, :Default, :Constraint, :HaveSetValue
3422
+
3423
+ def initialize(param=nil, value=nil, setvalue=nil, default=nil, constraint=nil, havesetvalue=nil)
3424
+ @Param = param
3425
+ @Value = value
3426
+ @SetValue = setvalue
3427
+ @Default = default
3428
+ @Constraint = constraint
3429
+ @HaveSetValue = havesetvalue
3430
+ end
3431
+
3432
+ def deserialize(params)
3433
+ @Param = params['Param']
3434
+ @Value = params['Value']
3435
+ @SetValue = params['SetValue']
3436
+ @Default = params['Default']
3437
+ unless params['Constraint'].nil?
3438
+ @Constraint = ParamConstraint.new
3439
+ @Constraint.deserialize(params['Constraint'])
3440
+ end
3441
+ @HaveSetValue = params['HaveSetValue']
3442
+ end
3443
+ end
3444
+
3445
+ # 修改参数结果
3446
+ class ParamModifyResult < TencentCloud::Common::AbstractModel
3447
+ # @param Param: 修改参数名字
3448
+ # @type Param: String
3449
+ # @param Code: 参数修改结果。0表示修改成功;-1表示修改失败;-2表示该参数值非法
3450
+ # @type Code: Integer
3451
+
3452
+ attr_accessor :Param, :Code
3453
+
3454
+ def initialize(param=nil, code=nil)
3455
+ @Param = param
3456
+ @Code = code
3457
+ end
3458
+
3459
+ def deserialize(params)
3460
+ @Param = params['Param']
3461
+ @Code = params['Code']
3462
+ end
3463
+ end
3464
+
3465
+ # 项目信息描述
3466
+ class Project < TencentCloud::Common::AbstractModel
3467
+ # @param ProjectId: 项目ID
3468
+ # @type ProjectId: Integer
3469
+ # @param OwnerUin: 资源拥有者(主账号)uin
3470
+ # @type OwnerUin: Integer
3471
+ # @param AppId: 应用Id
3472
+ # @type AppId: Integer
3473
+ # @param Name: 项目名称
3474
+ # @type Name: String
3475
+ # @param CreatorUin: 创建者uin
3476
+ # @type CreatorUin: Integer
3477
+ # @param SrcPlat: 来源平台
3478
+ # @type SrcPlat: String
3479
+ # @param SrcAppId: 来源AppId
3480
+ # @type SrcAppId: Integer
3481
+ # @param Status: 项目状态,0正常,-1关闭。默认项目为3
3482
+ # @type Status: Integer
3483
+ # @param CreateTime: 创建时间
3484
+ # @type CreateTime: String
3485
+ # @param IsDefault: 是否默认项目,1 是,0 不是
3486
+ # @type IsDefault: Integer
3487
+ # @param Info: 描述信息
3488
+ # @type Info: String
3489
+
3490
+ attr_accessor :ProjectId, :OwnerUin, :AppId, :Name, :CreatorUin, :SrcPlat, :SrcAppId, :Status, :CreateTime, :IsDefault, :Info
3491
+
3492
+ def initialize(projectid=nil, owneruin=nil, appid=nil, name=nil, creatoruin=nil, srcplat=nil, srcappid=nil, status=nil, createtime=nil, isdefault=nil, info=nil)
3493
+ @ProjectId = projectid
3494
+ @OwnerUin = owneruin
3495
+ @AppId = appid
3496
+ @Name = name
3497
+ @CreatorUin = creatoruin
3498
+ @SrcPlat = srcplat
3499
+ @SrcAppId = srcappid
3500
+ @Status = status
3501
+ @CreateTime = createtime
3502
+ @IsDefault = isdefault
3503
+ @Info = info
3504
+ end
3505
+
3506
+ def deserialize(params)
3507
+ @ProjectId = params['ProjectId']
3508
+ @OwnerUin = params['OwnerUin']
3509
+ @AppId = params['AppId']
3510
+ @Name = params['Name']
3511
+ @CreatorUin = params['CreatorUin']
3512
+ @SrcPlat = params['SrcPlat']
3513
+ @SrcAppId = params['SrcAppId']
3514
+ @Status = params['Status']
3515
+ @CreateTime = params['CreateTime']
3516
+ @IsDefault = params['IsDefault']
3517
+ @Info = params['Info']
3518
+ end
3519
+ end
3520
+
3521
+ # 售卖可用区信息
3522
+ class RegionInfo < TencentCloud::Common::AbstractModel
3523
+ # @param Region: 地域英文ID
3524
+ # @type Region: String
3525
+ # @param RegionId: 地域数字ID
3526
+ # @type RegionId: Integer
3527
+ # @param RegionName: 地域中文名
3528
+ # @type RegionName: String
3529
+ # @param ZoneList: 可用区列表
3530
+ # @type ZoneList: Array
3531
+ # @param AvailableChoice: 可选择的主可用区和从可用区
3532
+ # @type AvailableChoice: Array
3533
+
3534
+ attr_accessor :Region, :RegionId, :RegionName, :ZoneList, :AvailableChoice
3535
+
3536
+ def initialize(region=nil, regionid=nil, regionname=nil, zonelist=nil, availablechoice=nil)
3537
+ @Region = region
3538
+ @RegionId = regionid
3539
+ @RegionName = regionname
3540
+ @ZoneList = zonelist
3541
+ @AvailableChoice = availablechoice
3542
+ end
3543
+
3544
+ def deserialize(params)
3545
+ @Region = params['Region']
3546
+ @RegionId = params['RegionId']
3547
+ @RegionName = params['RegionName']
3548
+ unless params['ZoneList'].nil?
3549
+ @ZoneList = []
3550
+ params['ZoneList'].each do |i|
3551
+ zonesinfo_tmp = ZonesInfo.new
3552
+ zonesinfo_tmp.deserialize(i)
3553
+ @ZoneList << zonesinfo_tmp
3554
+ end
3555
+ end
3556
+ unless params['AvailableChoice'].nil?
3557
+ @AvailableChoice = []
3558
+ params['AvailableChoice'].each do |i|
3559
+ shardzonechooseinfo_tmp = ShardZoneChooseInfo.new
3560
+ shardzonechooseinfo_tmp.deserialize(i)
3561
+ @AvailableChoice << shardzonechooseinfo_tmp
3562
+ end
3563
+ end
3564
+ end
3565
+ end
3566
+
3567
+ # RenewDCDBInstance请求参数结构体
3568
+ class RenewDCDBInstanceRequest < TencentCloud::Common::AbstractModel
3569
+ # @param InstanceId: 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
3570
+ # @type InstanceId: String
3571
+ # @param Period: 续费时长,单位:月。
3572
+ # @type Period: Integer
3573
+ # @param AutoVoucher: 是否自动使用代金券进行支付,默认不使用。
3574
+ # @type AutoVoucher: Boolean
3575
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
3576
+ # @type VoucherIds: Array
3577
+
3578
+ attr_accessor :InstanceId, :Period, :AutoVoucher, :VoucherIds
3579
+
3580
+ def initialize(instanceid=nil, period=nil, autovoucher=nil, voucherids=nil)
3581
+ @InstanceId = instanceid
3582
+ @Period = period
3583
+ @AutoVoucher = autovoucher
3584
+ @VoucherIds = voucherids
3585
+ end
3586
+
3587
+ def deserialize(params)
3588
+ @InstanceId = params['InstanceId']
3589
+ @Period = params['Period']
3590
+ @AutoVoucher = params['AutoVoucher']
3591
+ @VoucherIds = params['VoucherIds']
3592
+ end
3593
+ end
3594
+
3595
+ # RenewDCDBInstance返回参数结构体
3596
+ class RenewDCDBInstanceResponse < TencentCloud::Common::AbstractModel
3597
+ # @param DealName: 长订单号。可以据此调用 DescribeOrders
3598
+ # 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。
3599
+ # @type DealName: String
3600
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3601
+ # @type RequestId: String
3602
+
3603
+ attr_accessor :DealName, :RequestId
3604
+
3605
+ def initialize(dealname=nil, requestid=nil)
3606
+ @DealName = dealname
3607
+ @RequestId = requestid
3608
+ end
3609
+
3610
+ def deserialize(params)
3611
+ @DealName = params['DealName']
3612
+ @RequestId = params['RequestId']
3613
+ end
3614
+ end
3615
+
3616
+ # ResetAccountPassword请求参数结构体
3617
+ class ResetAccountPasswordRequest < TencentCloud::Common::AbstractModel
3618
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
3619
+ # @type InstanceId: String
3620
+ # @param UserName: 登录用户名。
3621
+ # @type UserName: String
3622
+ # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。
3623
+ # @type Host: String
3624
+ # @param Password: 新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。
3625
+ # @type Password: String
3626
+
3627
+ attr_accessor :InstanceId, :UserName, :Host, :Password
3628
+
3629
+ def initialize(instanceid=nil, username=nil, host=nil, password=nil)
3630
+ @InstanceId = instanceid
3631
+ @UserName = username
3632
+ @Host = host
3633
+ @Password = password
3634
+ end
3635
+
3636
+ def deserialize(params)
3637
+ @InstanceId = params['InstanceId']
3638
+ @UserName = params['UserName']
3639
+ @Host = params['Host']
3640
+ @Password = params['Password']
3641
+ end
3642
+ end
3643
+
3644
+ # ResetAccountPassword返回参数结构体
3645
+ class ResetAccountPasswordResponse < TencentCloud::Common::AbstractModel
3646
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3647
+ # @type RequestId: String
3648
+
3649
+ attr_accessor :RequestId
3650
+
3651
+ def initialize(requestid=nil)
3652
+ @RequestId = requestid
3653
+ end
3654
+
3655
+ def deserialize(params)
3656
+ @RequestId = params['RequestId']
3657
+ end
3658
+ end
3659
+
3660
+ # 标签对象,包含tagKey & tagValue
3661
+ class ResourceTag < TencentCloud::Common::AbstractModel
3662
+ # @param TagKey: 标签键key
3663
+ # @type TagKey: String
3664
+ # @param TagValue: 标签值value
3665
+ # @type TagValue: String
3666
+
3667
+ attr_accessor :TagKey, :TagValue
3668
+
3669
+ def initialize(tagkey=nil, tagvalue=nil)
3670
+ @TagKey = tagkey
3671
+ @TagValue = tagvalue
3672
+ end
3673
+
3674
+ def deserialize(params)
3675
+ @TagKey = params['TagKey']
3676
+ @TagValue = params['TagValue']
3677
+ end
3678
+ end
3679
+
3680
+ # 安全组详情
3681
+ class SecurityGroup < TencentCloud::Common::AbstractModel
3682
+ # @param ProjectId: 项目ID
3683
+ # @type ProjectId: Integer
3684
+ # @param CreateTime: 创建时间,时间格式:yyyy-mm-dd hh:mm:ss
3685
+ # @type CreateTime: String
3686
+ # @param SecurityGroupId: 安全组ID
3687
+ # @type SecurityGroupId: String
3688
+ # @param SecurityGroupName: 安全组名称
3689
+ # @type SecurityGroupName: String
3690
+ # @param SecurityGroupRemark: 安全组备注
3691
+ # @type SecurityGroupRemark: String
3692
+ # @param Inbound: 入站规则
3693
+ # @type Inbound: Array
3694
+ # @param Outbound: 出站规则
3695
+ # @type Outbound: Array
3696
+
3697
+ attr_accessor :ProjectId, :CreateTime, :SecurityGroupId, :SecurityGroupName, :SecurityGroupRemark, :Inbound, :Outbound
3698
+
3699
+ def initialize(projectid=nil, createtime=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil, inbound=nil, outbound=nil)
3700
+ @ProjectId = projectid
3701
+ @CreateTime = createtime
3702
+ @SecurityGroupId = securitygroupid
3703
+ @SecurityGroupName = securitygroupname
3704
+ @SecurityGroupRemark = securitygroupremark
3705
+ @Inbound = inbound
3706
+ @Outbound = outbound
3707
+ end
3708
+
3709
+ def deserialize(params)
3710
+ @ProjectId = params['ProjectId']
3711
+ @CreateTime = params['CreateTime']
3712
+ @SecurityGroupId = params['SecurityGroupId']
3713
+ @SecurityGroupName = params['SecurityGroupName']
3714
+ @SecurityGroupRemark = params['SecurityGroupRemark']
3715
+ unless params['Inbound'].nil?
3716
+ @Inbound = []
3717
+ params['Inbound'].each do |i|
3718
+ securitygroupbound_tmp = SecurityGroupBound.new
3719
+ securitygroupbound_tmp.deserialize(i)
3720
+ @Inbound << securitygroupbound_tmp
3721
+ end
3722
+ end
3723
+ unless params['Outbound'].nil?
3724
+ @Outbound = []
3725
+ params['Outbound'].each do |i|
3726
+ securitygroupbound_tmp = SecurityGroupBound.new
3727
+ securitygroupbound_tmp.deserialize(i)
3728
+ @Outbound << securitygroupbound_tmp
3729
+ end
3730
+ end
3731
+ end
3732
+ end
3733
+
3734
+ # 安全出入口规则
3735
+ class SecurityGroupBound < TencentCloud::Common::AbstractModel
3736
+ # @param Action: 策略,ACCEPT 或者 DROP
3737
+ # @type Action: String
3738
+ # @param CidrIp: 来源 IP 或 IP 段,例如192.168.0.0/16
3739
+ # @type CidrIp: String
3740
+ # @param PortRange: 端口
3741
+ # @type PortRange: String
3742
+ # @param IpProtocol: 网络协议,支持 UDP、TCP 等
3743
+ # @type IpProtocol: String
3744
+
3745
+ attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol
3746
+
3747
+ def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil)
3748
+ @Action = action
3749
+ @CidrIp = cidrip
3750
+ @PortRange = portrange
3751
+ @IpProtocol = ipprotocol
3752
+ end
3753
+
3754
+ def deserialize(params)
3755
+ @Action = params['Action']
3756
+ @CidrIp = params['CidrIp']
3757
+ @PortRange = params['PortRange']
3758
+ @IpProtocol = params['IpProtocol']
3759
+ end
3760
+ end
3761
+
3762
+ # 分片信息
3763
+ class ShardInfo < TencentCloud::Common::AbstractModel
3764
+ # @param ShardInstanceId: 分片ID
3765
+ # @type ShardInstanceId: String
3766
+ # @param ShardSerialId: 分片Set ID
3767
+ # @type ShardSerialId: String
3768
+ # @param Status: 状态:0 创建中,1 流程处理中, 2 运行中,3 分片未初始化,-2 分片已删除
3769
+ # @type Status: Integer
3770
+ # @param Createtime: 创建时间
3771
+ # @type Createtime: String
3772
+ # @param Memory: 内存大小,单位 GB
3773
+ # @type Memory: Integer
3774
+ # @param Storage: 存储大小,单位 GB
3775
+ # @type Storage: Integer
3776
+ # @param ShardId: 分片数字ID
3777
+ # @type ShardId: Integer
3778
+ # @param NodeCount: 节点数,2 为一主一从, 3 为一主二从
3779
+ # @type NodeCount: Integer
3780
+ # @param Pid: 产品类型 Id(过时字段,请勿依赖该值)
3781
+ # @type Pid: Integer
3782
+ # @param Cpu: Cpu核数
3783
+ # @type Cpu: Integer
3784
+
3785
+ attr_accessor :ShardInstanceId, :ShardSerialId, :Status, :Createtime, :Memory, :Storage, :ShardId, :NodeCount, :Pid, :Cpu
3786
+
3787
+ def initialize(shardinstanceid=nil, shardserialid=nil, status=nil, createtime=nil, memory=nil, storage=nil, shardid=nil, nodecount=nil, pid=nil, cpu=nil)
3788
+ @ShardInstanceId = shardinstanceid
3789
+ @ShardSerialId = shardserialid
3790
+ @Status = status
3791
+ @Createtime = createtime
3792
+ @Memory = memory
3793
+ @Storage = storage
3794
+ @ShardId = shardid
3795
+ @NodeCount = nodecount
3796
+ @Pid = pid
3797
+ @Cpu = cpu
3798
+ end
3799
+
3800
+ def deserialize(params)
3801
+ @ShardInstanceId = params['ShardInstanceId']
3802
+ @ShardSerialId = params['ShardSerialId']
3803
+ @Status = params['Status']
3804
+ @Createtime = params['Createtime']
3805
+ @Memory = params['Memory']
3806
+ @Storage = params['Storage']
3807
+ @ShardId = params['ShardId']
3808
+ @NodeCount = params['NodeCount']
3809
+ @Pid = params['Pid']
3810
+ @Cpu = params['Cpu']
3811
+ end
3812
+ end
3813
+
3814
+ # 分片节点可用区选择
3815
+ class ShardZoneChooseInfo < TencentCloud::Common::AbstractModel
3816
+ # @param MasterZone: 主可用区
3817
+ # @type MasterZone: :class:`Tencentcloud::Dcdb.v20180411.models.ZonesInfo`
3818
+ # @param SlaveZones: 可选的从可用区
3819
+ # @type SlaveZones: Array
3820
+
3821
+ attr_accessor :MasterZone, :SlaveZones
3822
+
3823
+ def initialize(masterzone=nil, slavezones=nil)
3824
+ @MasterZone = masterzone
3825
+ @SlaveZones = slavezones
3826
+ end
3827
+
3828
+ def deserialize(params)
3829
+ unless params['MasterZone'].nil?
3830
+ @MasterZone = ZonesInfo.new
3831
+ @MasterZone.deserialize(params['MasterZone'])
3832
+ end
3833
+ unless params['SlaveZones'].nil?
3834
+ @SlaveZones = []
3835
+ params['SlaveZones'].each do |i|
3836
+ zonesinfo_tmp = ZonesInfo.new
3837
+ zonesinfo_tmp.deserialize(i)
3838
+ @SlaveZones << zonesinfo_tmp
3839
+ end
3840
+ end
3841
+ end
3842
+ end
3843
+
3844
+ # 按机型分类的规格配置
3845
+ class SpecConfig < TencentCloud::Common::AbstractModel
3846
+ # @param Machine: 规格机型
3847
+ # @type Machine: String
3848
+ # @param SpecConfigInfos: 规格列表
3849
+ # @type SpecConfigInfos: Array
3850
+
3851
+ attr_accessor :Machine, :SpecConfigInfos
3852
+
3853
+ def initialize(machine=nil, specconfiginfos=nil)
3854
+ @Machine = machine
3855
+ @SpecConfigInfos = specconfiginfos
3856
+ end
3857
+
3858
+ def deserialize(params)
3859
+ @Machine = params['Machine']
3860
+ unless params['SpecConfigInfos'].nil?
3861
+ @SpecConfigInfos = []
3862
+ params['SpecConfigInfos'].each do |i|
3863
+ specconfiginfo_tmp = SpecConfigInfo.new
3864
+ specconfiginfo_tmp.deserialize(i)
3865
+ @SpecConfigInfos << specconfiginfo_tmp
3866
+ end
3867
+ end
3868
+ end
3869
+ end
3870
+
3871
+ # 实例可售卖规格详细信息,创建实例和扩容实例时 NodeCount、Memory 确定售卖规格,硬盘大小可用区间为[MinStorage,MaxStorage]
3872
+ class SpecConfigInfo < TencentCloud::Common::AbstractModel
3873
+ # @param NodeCount: 节点个数,2 表示一主一从,3 表示一主二从
3874
+ # @type NodeCount: Integer
3875
+ # @param Memory: 内存大小,单位 GB
3876
+ # @type Memory: Integer
3877
+ # @param MinStorage: 数据盘规格最小值,单位 GB
3878
+ # @type MinStorage: Integer
3879
+ # @param MaxStorage: 数据盘规格最大值,单位 GB
3880
+ # @type MaxStorage: Integer
3881
+ # @param SuitInfo: 推荐的使用场景
3882
+ # @type SuitInfo: String
3883
+ # @param Pid: 产品类型 Id
3884
+ # @type Pid: Integer
3885
+ # @param Qps: 最大 Qps 值
3886
+ # @type Qps: Integer
3887
+ # @param Cpu: CPU核数
3888
+ # @type Cpu: Integer
3889
+
3890
+ attr_accessor :NodeCount, :Memory, :MinStorage, :MaxStorage, :SuitInfo, :Pid, :Qps, :Cpu
3891
+
3892
+ def initialize(nodecount=nil, memory=nil, minstorage=nil, maxstorage=nil, suitinfo=nil, pid=nil, qps=nil, cpu=nil)
3893
+ @NodeCount = nodecount
3894
+ @Memory = memory
3895
+ @MinStorage = minstorage
3896
+ @MaxStorage = maxstorage
3897
+ @SuitInfo = suitinfo
3898
+ @Pid = pid
3899
+ @Qps = qps
3900
+ @Cpu = cpu
3901
+ end
3902
+
3903
+ def deserialize(params)
3904
+ @NodeCount = params['NodeCount']
3905
+ @Memory = params['Memory']
3906
+ @MinStorage = params['MinStorage']
3907
+ @MaxStorage = params['MaxStorage']
3908
+ @SuitInfo = params['SuitInfo']
3909
+ @Pid = params['Pid']
3910
+ @Qps = params['Qps']
3911
+ @Cpu = params['Cpu']
3912
+ end
3913
+ end
3914
+
3915
+ # 升级实例 -- 切分分片类型
3916
+ class SplitShardConfig < TencentCloud::Common::AbstractModel
3917
+ # @param ShardInstanceIds: 分片ID数组
3918
+ # @type ShardInstanceIds: Array
3919
+ # @param SplitRate: 数据切分比例,固定50%
3920
+ # @type SplitRate: Integer
3921
+ # @param ShardMemory: 分片内存大小,单位 GB
3922
+ # @type ShardMemory: Integer
3923
+ # @param ShardStorage: 分片存储大小,单位 GB
3924
+ # @type ShardStorage: Integer
3925
+
3926
+ attr_accessor :ShardInstanceIds, :SplitRate, :ShardMemory, :ShardStorage
3927
+
3928
+ def initialize(shardinstanceids=nil, splitrate=nil, shardmemory=nil, shardstorage=nil)
3929
+ @ShardInstanceIds = shardinstanceids
3930
+ @SplitRate = splitrate
3931
+ @ShardMemory = shardmemory
3932
+ @ShardStorage = shardstorage
3933
+ end
3934
+
3935
+ def deserialize(params)
3936
+ @ShardInstanceIds = params['ShardInstanceIds']
3937
+ @SplitRate = params['SplitRate']
3938
+ @ShardMemory = params['ShardMemory']
3939
+ @ShardStorage = params['ShardStorage']
3940
+ end
3941
+ end
3942
+
3943
+ # 描述一条sql日志的详细信息。
3944
+ class SqlLogItem < TencentCloud::Common::AbstractModel
3945
+ # @param Offset: 本条日志在消息队列中的偏移量。
3946
+ # @type Offset: Integer
3947
+ # @param User: 执行本条sql的用户。
3948
+ # @type User: String
3949
+ # @param Client: 执行本条sql的客户端IP+端口。
3950
+ # @type Client: String
3951
+ # @param DbName: 数据库名称。
3952
+ # @type DbName: String
3953
+ # @param Sql: 执行的sql语句。
3954
+ # @type Sql: String
3955
+ # @param SelectRowNum: 返回的数据行数。
3956
+ # @type SelectRowNum: Integer
3957
+ # @param AffectRowNum: 影响行数。
3958
+ # @type AffectRowNum: Integer
3959
+ # @param Timestamp: Sql执行时间戳。
3960
+ # @type Timestamp: Integer
3961
+ # @param TimeCostMs: Sql耗时,单位为毫秒。
3962
+ # @type TimeCostMs: Integer
3963
+ # @param ResultCode: Sql返回码,0为成功。
3964
+ # @type ResultCode: Integer
3965
+
3966
+ attr_accessor :Offset, :User, :Client, :DbName, :Sql, :SelectRowNum, :AffectRowNum, :Timestamp, :TimeCostMs, :ResultCode
3967
+
3968
+ def initialize(offset=nil, user=nil, client=nil, dbname=nil, sql=nil, selectrownum=nil, affectrownum=nil, timestamp=nil, timecostms=nil, resultcode=nil)
3969
+ @Offset = offset
3970
+ @User = user
3971
+ @Client = client
3972
+ @DbName = dbname
3973
+ @Sql = sql
3974
+ @SelectRowNum = selectrownum
3975
+ @AffectRowNum = affectrownum
3976
+ @Timestamp = timestamp
3977
+ @TimeCostMs = timecostms
3978
+ @ResultCode = resultcode
3979
+ end
3980
+
3981
+ def deserialize(params)
3982
+ @Offset = params['Offset']
3983
+ @User = params['User']
3984
+ @Client = params['Client']
3985
+ @DbName = params['DbName']
3986
+ @Sql = params['Sql']
3987
+ @SelectRowNum = params['SelectRowNum']
3988
+ @AffectRowNum = params['AffectRowNum']
3989
+ @Timestamp = params['Timestamp']
3990
+ @TimeCostMs = params['TimeCostMs']
3991
+ @ResultCode = params['ResultCode']
3992
+ end
3993
+ end
3994
+
3995
+ # 数据库列信息
3996
+ class TableColumn < TencentCloud::Common::AbstractModel
3997
+ # @param Col: 列名称
3998
+ # @type Col: String
3999
+ # @param Type: 列类型
4000
+ # @type Type: String
4001
+
4002
+ attr_accessor :Col, :Type
4003
+
4004
+ def initialize(col=nil, type=nil)
4005
+ @Col = col
4006
+ @Type = type
4007
+ end
4008
+
4009
+ def deserialize(params)
4010
+ @Col = params['Col']
4011
+ @Type = params['Type']
4012
+ end
4013
+ end
4014
+
4015
+ # UpgradeDCDBInstance请求参数结构体
4016
+ class UpgradeDCDBInstanceRequest < TencentCloud::Common::AbstractModel
4017
+ # @param InstanceId: 待升级的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
4018
+ # @type InstanceId: String
4019
+ # @param UpgradeType: 升级类型,取值范围:
4020
+ # <li> ADD: 新增分片 </li>
4021
+ # <li> EXPAND: 升级实例中的已有分片 </li>
4022
+ # <li> SPLIT: 将已有分片中的数据切分到新增分片上</li>
4023
+ # @type UpgradeType: String
4024
+ # @param AddShardConfig: 新增分片配置,当UpgradeType为ADD时生效。
4025
+ # @type AddShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.AddShardConfig`
4026
+ # @param ExpandShardConfig: 扩容分片配置,当UpgradeType为EXPAND时生效。
4027
+ # @type ExpandShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.ExpandShardConfig`
4028
+ # @param SplitShardConfig: 切分分片配置,当UpgradeType为SPLIT时生效。
4029
+ # @type SplitShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.SplitShardConfig`
4030
+ # @param AutoVoucher: 是否自动使用代金券进行支付,默认不使用。
4031
+ # @type AutoVoucher: Boolean
4032
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
4033
+ # @type VoucherIds: Array
4034
+
4035
+ attr_accessor :InstanceId, :UpgradeType, :AddShardConfig, :ExpandShardConfig, :SplitShardConfig, :AutoVoucher, :VoucherIds
4036
+
4037
+ def initialize(instanceid=nil, upgradetype=nil, addshardconfig=nil, expandshardconfig=nil, splitshardconfig=nil, autovoucher=nil, voucherids=nil)
4038
+ @InstanceId = instanceid
4039
+ @UpgradeType = upgradetype
4040
+ @AddShardConfig = addshardconfig
4041
+ @ExpandShardConfig = expandshardconfig
4042
+ @SplitShardConfig = splitshardconfig
4043
+ @AutoVoucher = autovoucher
4044
+ @VoucherIds = voucherids
4045
+ end
4046
+
4047
+ def deserialize(params)
4048
+ @InstanceId = params['InstanceId']
4049
+ @UpgradeType = params['UpgradeType']
4050
+ unless params['AddShardConfig'].nil?
4051
+ @AddShardConfig = AddShardConfig.new
4052
+ @AddShardConfig.deserialize(params['AddShardConfig'])
4053
+ end
4054
+ unless params['ExpandShardConfig'].nil?
4055
+ @ExpandShardConfig = ExpandShardConfig.new
4056
+ @ExpandShardConfig.deserialize(params['ExpandShardConfig'])
4057
+ end
4058
+ unless params['SplitShardConfig'].nil?
4059
+ @SplitShardConfig = SplitShardConfig.new
4060
+ @SplitShardConfig.deserialize(params['SplitShardConfig'])
4061
+ end
4062
+ @AutoVoucher = params['AutoVoucher']
4063
+ @VoucherIds = params['VoucherIds']
4064
+ end
4065
+ end
4066
+
4067
+ # UpgradeDCDBInstance返回参数结构体
4068
+ class UpgradeDCDBInstanceResponse < TencentCloud::Common::AbstractModel
4069
+ # @param DealName: 长订单号。可以据此调用 DescribeOrders
4070
+ # 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。
4071
+ # @type DealName: String
4072
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4073
+ # @type RequestId: String
4074
+
4075
+ attr_accessor :DealName, :RequestId
4076
+
4077
+ def initialize(dealname=nil, requestid=nil)
4078
+ @DealName = dealname
4079
+ @RequestId = requestid
4080
+ end
4081
+
4082
+ def deserialize(params)
4083
+ @DealName = params['DealName']
4084
+ @RequestId = params['RequestId']
4085
+ end
4086
+ end
4087
+
4088
+ # 用户任务信息
4089
+ class UserTaskInfo < TencentCloud::Common::AbstractModel
4090
+ # @param Id: 任务ID
4091
+ # @type Id: Integer
4092
+ # @param AppId: 用户账户ID
4093
+ # @type AppId: Integer
4094
+ # @param Status: 任务状态,0-任务初始化中;1-任务运行中;2-任务成功;3-任务失败
4095
+ # @type Status: Integer
4096
+ # @param UserTaskType: 任务类型,0-实例回档;1-实例创建;2-实例扩容;3-实例迁移;4-实例删除;5-实例重启
4097
+ # @type UserTaskType: Integer
4098
+ # @param CreateTime: 任务创建时间
4099
+ # @type CreateTime: String
4100
+ # @param EndTime: 任务结束时间
4101
+ # @type EndTime: String
4102
+ # @param ErrMsg: 任务错误信息
4103
+ # @type ErrMsg: String
4104
+ # @param InputData: 客户端参数
4105
+ # @type InputData: String
4106
+ # @param InstanceId: 实例ID
4107
+ # @type InstanceId: String
4108
+ # @param InstanceName: 实例名称
4109
+ # @type InstanceName: String
4110
+ # @param RegionId: 地域ID
4111
+ # @type RegionId: Integer
4112
+
4113
+ attr_accessor :Id, :AppId, :Status, :UserTaskType, :CreateTime, :EndTime, :ErrMsg, :InputData, :InstanceId, :InstanceName, :RegionId
4114
+
4115
+ def initialize(id=nil, appid=nil, status=nil, usertasktype=nil, createtime=nil, endtime=nil, errmsg=nil, inputdata=nil, instanceid=nil, instancename=nil, regionid=nil)
4116
+ @Id = id
4117
+ @AppId = appid
4118
+ @Status = status
4119
+ @UserTaskType = usertasktype
4120
+ @CreateTime = createtime
4121
+ @EndTime = endtime
4122
+ @ErrMsg = errmsg
4123
+ @InputData = inputdata
4124
+ @InstanceId = instanceid
4125
+ @InstanceName = instancename
4126
+ @RegionId = regionid
4127
+ end
4128
+
4129
+ def deserialize(params)
4130
+ @Id = params['Id']
4131
+ @AppId = params['AppId']
4132
+ @Status = params['Status']
4133
+ @UserTaskType = params['UserTaskType']
4134
+ @CreateTime = params['CreateTime']
4135
+ @EndTime = params['EndTime']
4136
+ @ErrMsg = params['ErrMsg']
4137
+ @InputData = params['InputData']
4138
+ @InstanceId = params['InstanceId']
4139
+ @InstanceName = params['InstanceName']
4140
+ @RegionId = params['RegionId']
4141
+ end
4142
+ end
4143
+
4144
+ # 可用区信息
4145
+ class ZonesInfo < TencentCloud::Common::AbstractModel
4146
+ # @param Zone: 可用区英文ID
4147
+ # @type Zone: String
4148
+ # @param ZoneId: 可用区数字ID
4149
+ # @type ZoneId: Integer
4150
+ # @param ZoneName: 可用区中文名
4151
+ # @type ZoneName: String
4152
+
4153
+ attr_accessor :Zone, :ZoneId, :ZoneName
4154
+
4155
+ def initialize(zone=nil, zoneid=nil, zonename=nil)
4156
+ @Zone = zone
4157
+ @ZoneId = zoneid
4158
+ @ZoneName = zonename
4159
+ end
4160
+
4161
+ def deserialize(params)
4162
+ @Zone = params['Zone']
4163
+ @ZoneId = params['ZoneId']
4164
+ @ZoneName = params['ZoneName']
4165
+ end
4166
+ end
4167
+
4168
+ end
4169
+ end
4170
+ end
4171
+