tencentcloud-sdk-postgres 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4167 @@
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 Postgres
19
+ module V20170312
20
+ # 账户信息
21
+ class AccountInfo < TencentCloud::Common::AbstractModel
22
+ # @param DBInstanceId: 实例ID,形如postgres-lnp6j617
23
+ # @type DBInstanceId: String
24
+ # @param UserName: 帐号
25
+ # @type UserName: String
26
+ # @param Remark: 帐号备注
27
+ # @type Remark: String
28
+ # @param Status: 帐号状态。 1-创建中,2-正常,3-修改中,4-密码重置中,-1-删除中
29
+ # @type Status: Integer
30
+ # @param CreateTime: 帐号创建时间
31
+ # @type CreateTime: String
32
+ # @param UpdateTime: 帐号最后一次更新时间
33
+ # @type UpdateTime: String
34
+
35
+ attr_accessor :DBInstanceId, :UserName, :Remark, :Status, :CreateTime, :UpdateTime
36
+
37
+ def initialize(dbinstanceid=nil, username=nil, remark=nil, status=nil, createtime=nil, updatetime=nil)
38
+ @DBInstanceId = dbinstanceid
39
+ @UserName = username
40
+ @Remark = remark
41
+ @Status = status
42
+ @CreateTime = createtime
43
+ @UpdateTime = updatetime
44
+ end
45
+
46
+ def deserialize(params)
47
+ @DBInstanceId = params['DBInstanceId']
48
+ @UserName = params['UserName']
49
+ @Remark = params['Remark']
50
+ @Status = params['Status']
51
+ @CreateTime = params['CreateTime']
52
+ @UpdateTime = params['UpdateTime']
53
+ end
54
+ end
55
+
56
+ # AddDBInstanceToReadOnlyGroup请求参数结构体
57
+ class AddDBInstanceToReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
58
+ # @param DBInstanceId: 实例ID
59
+ # @type DBInstanceId: String
60
+ # @param ReadOnlyGroupId: 只读组ID
61
+ # @type ReadOnlyGroupId: String
62
+
63
+ attr_accessor :DBInstanceId, :ReadOnlyGroupId
64
+
65
+ def initialize(dbinstanceid=nil, readonlygroupid=nil)
66
+ @DBInstanceId = dbinstanceid
67
+ @ReadOnlyGroupId = readonlygroupid
68
+ end
69
+
70
+ def deserialize(params)
71
+ @DBInstanceId = params['DBInstanceId']
72
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
73
+ end
74
+ end
75
+
76
+ # AddDBInstanceToReadOnlyGroup返回参数结构体
77
+ class AddDBInstanceToReadOnlyGroupResponse < TencentCloud::Common::AbstractModel
78
+ # @param FlowId: 流程ID
79
+ # @type FlowId: Integer
80
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
81
+ # @type RequestId: String
82
+
83
+ attr_accessor :FlowId, :RequestId
84
+
85
+ def initialize(flowid=nil, requestid=nil)
86
+ @FlowId = flowid
87
+ @RequestId = requestid
88
+ end
89
+
90
+ def deserialize(params)
91
+ @FlowId = params['FlowId']
92
+ @RequestId = params['RequestId']
93
+ end
94
+ end
95
+
96
+ # 慢查询分析接口返回的分析详情,按照参数抽象之后进行分类
97
+ class AnalysisItems < TencentCloud::Common::AbstractModel
98
+ # @param DatabaseName: 慢SQL查询的数据库名
99
+ # @type DatabaseName: String
100
+ # @param UserName: 慢SQL执行的用户名
101
+ # @type UserName: String
102
+ # @param NormalQuery: 抽象参数之后的慢SQL
103
+ # @type NormalQuery: String
104
+ # @param ClientAddr: 慢SQL执行的客户端地址
105
+ # @type ClientAddr: String
106
+ # @param CallNum: 在选定时间范围内慢SQL语句执行的次数
107
+ # @type CallNum: Integer
108
+ # @param CallPercent: 在选定时间范围内,慢SQL语句执行的次数占所有慢SQL的比例(小数返回)
109
+ # @type CallPercent: Float
110
+ # @param CostTime: 在选定时间范围内,慢SQL执行的总时间
111
+ # @type CostTime: Float
112
+ # @param CostPercent: 在选定时间范围内,慢SQL语句执行的总时间占所有慢SQL的比例(小数返回)
113
+ # @type CostPercent: Float
114
+ # @param MinCostTime: 在选定时间范围内,慢SQL语句执行的耗时最短的时间(单位:ms)
115
+ # @type MinCostTime: Float
116
+ # @param MaxCostTime: 在选定时间范围内,慢SQL语句执行的耗时最长的时间(单位:ms)
117
+ # @type MaxCostTime: Float
118
+ # @param AvgCostTime: 在选定时间范围内,慢SQL语句执行的耗时平均时间(单位:ms)
119
+ # @type AvgCostTime: Float
120
+ # @param FirstTime: 在选定时间范围内,慢SQL第一条开始执行的时间戳
121
+ # @type FirstTime: String
122
+ # @param LastTime: 在选定时间范围内,慢SQL最后一条开始执行的时间戳
123
+ # @type LastTime: String
124
+
125
+ attr_accessor :DatabaseName, :UserName, :NormalQuery, :ClientAddr, :CallNum, :CallPercent, :CostTime, :CostPercent, :MinCostTime, :MaxCostTime, :AvgCostTime, :FirstTime, :LastTime
126
+
127
+ def initialize(databasename=nil, username=nil, normalquery=nil, clientaddr=nil, callnum=nil, callpercent=nil, costtime=nil, costpercent=nil, mincosttime=nil, maxcosttime=nil, avgcosttime=nil, firsttime=nil, lasttime=nil)
128
+ @DatabaseName = databasename
129
+ @UserName = username
130
+ @NormalQuery = normalquery
131
+ @ClientAddr = clientaddr
132
+ @CallNum = callnum
133
+ @CallPercent = callpercent
134
+ @CostTime = costtime
135
+ @CostPercent = costpercent
136
+ @MinCostTime = mincosttime
137
+ @MaxCostTime = maxcosttime
138
+ @AvgCostTime = avgcosttime
139
+ @FirstTime = firsttime
140
+ @LastTime = lasttime
141
+ end
142
+
143
+ def deserialize(params)
144
+ @DatabaseName = params['DatabaseName']
145
+ @UserName = params['UserName']
146
+ @NormalQuery = params['NormalQuery']
147
+ @ClientAddr = params['ClientAddr']
148
+ @CallNum = params['CallNum']
149
+ @CallPercent = params['CallPercent']
150
+ @CostTime = params['CostTime']
151
+ @CostPercent = params['CostPercent']
152
+ @MinCostTime = params['MinCostTime']
153
+ @MaxCostTime = params['MaxCostTime']
154
+ @AvgCostTime = params['AvgCostTime']
155
+ @FirstTime = params['FirstTime']
156
+ @LastTime = params['LastTime']
157
+ end
158
+ end
159
+
160
+ # CloseDBExtranetAccess请求参数结构体
161
+ class CloseDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
162
+ # @param DBInstanceId: 实例ID,形如postgres-6r233v55
163
+ # @type DBInstanceId: String
164
+ # @param IsIpv6: 是否关闭Ipv6外网,1:是,0:否
165
+ # @type IsIpv6: Integer
166
+
167
+ attr_accessor :DBInstanceId, :IsIpv6
168
+
169
+ def initialize(dbinstanceid=nil, isipv6=nil)
170
+ @DBInstanceId = dbinstanceid
171
+ @IsIpv6 = isipv6
172
+ end
173
+
174
+ def deserialize(params)
175
+ @DBInstanceId = params['DBInstanceId']
176
+ @IsIpv6 = params['IsIpv6']
177
+ end
178
+ end
179
+
180
+ # CloseDBExtranetAccess返回参数结构体
181
+ class CloseDBExtranetAccessResponse < 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
+ # CloseServerlessDBExtranetAccess请求参数结构体
201
+ class CloseServerlessDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
202
+ # @param DBInstanceId: 实例唯一标识符
203
+ # @type DBInstanceId: String
204
+ # @param DBInstanceName: 实例名称
205
+ # @type DBInstanceName: String
206
+
207
+ attr_accessor :DBInstanceId, :DBInstanceName
208
+
209
+ def initialize(dbinstanceid=nil, dbinstancename=nil)
210
+ @DBInstanceId = dbinstanceid
211
+ @DBInstanceName = dbinstancename
212
+ end
213
+
214
+ def deserialize(params)
215
+ @DBInstanceId = params['DBInstanceId']
216
+ @DBInstanceName = params['DBInstanceName']
217
+ end
218
+ end
219
+
220
+ # CloseServerlessDBExtranetAccess返回参数结构体
221
+ class CloseServerlessDBExtranetAccessResponse < TencentCloud::Common::AbstractModel
222
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
223
+ # @type RequestId: String
224
+
225
+ attr_accessor :RequestId
226
+
227
+ def initialize(requestid=nil)
228
+ @RequestId = requestid
229
+ end
230
+
231
+ def deserialize(params)
232
+ @RequestId = params['RequestId']
233
+ end
234
+ end
235
+
236
+ # CreateDBInstances请求参数结构体
237
+ class CreateDBInstancesRequest < TencentCloud::Common::AbstractModel
238
+ # @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
239
+ # @type SpecCode: String
240
+ # @param DBVersion: PostgreSQL内核版本,目前支持以下版本:9.3.5、9.5.4、10.4、11.8、12.4 。
241
+ # @type DBVersion: String
242
+ # @param Storage: 实例容量大小,单位:GB。
243
+ # @type Storage: Integer
244
+ # @param InstanceCount: 一次性购买的实例数量。取值1-100
245
+ # @type InstanceCount: Integer
246
+ # @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
247
+ # @type Period: Integer
248
+ # @param Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
249
+ # @type Zone: String
250
+ # @param ProjectId: 项目ID。
251
+ # @type ProjectId: Integer
252
+ # @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。
253
+ # @type InstanceChargeType: String
254
+ # @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
255
+ # @type AutoVoucher: Integer
256
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
257
+ # @type VoucherIds: Array
258
+ # @param VpcId: 私有网络ID。
259
+ # @type VpcId: String
260
+ # @param SubnetId: 私有网络子网ID。
261
+ # @type SubnetId: String
262
+ # @param AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费;
263
+ # @type AutoRenewFlag: Integer
264
+ # @param ActivityId: 活动ID
265
+ # @type ActivityId: Integer
266
+ # @param Name: 实例名(后续支持)
267
+ # @type Name: String
268
+ # @param NeedSupportIpv6: 是否需要支持Ipv6,1:是,0:否
269
+ # @type NeedSupportIpv6: Integer
270
+ # @param TagList: 实例需要绑定的Tag信息,默认为空
271
+ # @type TagList: Array
272
+ # @param SecurityGroupIds: 安全组id
273
+ # @type SecurityGroupIds: Array
274
+
275
+ attr_accessor :SpecCode, :DBVersion, :Storage, :InstanceCount, :Period, :Zone, :ProjectId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :AutoRenewFlag, :ActivityId, :Name, :NeedSupportIpv6, :TagList, :SecurityGroupIds
276
+
277
+ def initialize(speccode=nil, dbversion=nil, storage=nil, instancecount=nil, period=nil, zone=nil, projectid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, autorenewflag=nil, activityid=nil, name=nil, needsupportipv6=nil, taglist=nil, securitygroupids=nil)
278
+ @SpecCode = speccode
279
+ @DBVersion = dbversion
280
+ @Storage = storage
281
+ @InstanceCount = instancecount
282
+ @Period = period
283
+ @Zone = zone
284
+ @ProjectId = projectid
285
+ @InstanceChargeType = instancechargetype
286
+ @AutoVoucher = autovoucher
287
+ @VoucherIds = voucherids
288
+ @VpcId = vpcid
289
+ @SubnetId = subnetid
290
+ @AutoRenewFlag = autorenewflag
291
+ @ActivityId = activityid
292
+ @Name = name
293
+ @NeedSupportIpv6 = needsupportipv6
294
+ @TagList = taglist
295
+ @SecurityGroupIds = securitygroupids
296
+ end
297
+
298
+ def deserialize(params)
299
+ @SpecCode = params['SpecCode']
300
+ @DBVersion = params['DBVersion']
301
+ @Storage = params['Storage']
302
+ @InstanceCount = params['InstanceCount']
303
+ @Period = params['Period']
304
+ @Zone = params['Zone']
305
+ @ProjectId = params['ProjectId']
306
+ @InstanceChargeType = params['InstanceChargeType']
307
+ @AutoVoucher = params['AutoVoucher']
308
+ @VoucherIds = params['VoucherIds']
309
+ @VpcId = params['VpcId']
310
+ @SubnetId = params['SubnetId']
311
+ @AutoRenewFlag = params['AutoRenewFlag']
312
+ @ActivityId = params['ActivityId']
313
+ @Name = params['Name']
314
+ @NeedSupportIpv6 = params['NeedSupportIpv6']
315
+ unless params['TagList'].nil?
316
+ @TagList = []
317
+ params['TagList'].each do |i|
318
+ tag_tmp = Tag.new
319
+ tag_tmp.deserialize(i)
320
+ @TagList << tag_tmp
321
+ end
322
+ end
323
+ @SecurityGroupIds = params['SecurityGroupIds']
324
+ end
325
+ end
326
+
327
+ # CreateDBInstances返回参数结构体
328
+ class CreateDBInstancesResponse < TencentCloud::Common::AbstractModel
329
+ # @param DealNames: 订单号列表。每个实例对应一个订单号。
330
+ # @type DealNames: Array
331
+ # @param BillId: 冻结流水号
332
+ # @type BillId: String
333
+ # @param DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值
334
+ # @type DBInstanceIdSet: Array
335
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
336
+ # @type RequestId: String
337
+
338
+ attr_accessor :DealNames, :BillId, :DBInstanceIdSet, :RequestId
339
+
340
+ def initialize(dealnames=nil, billid=nil, dbinstanceidset=nil, requestid=nil)
341
+ @DealNames = dealnames
342
+ @BillId = billid
343
+ @DBInstanceIdSet = dbinstanceidset
344
+ @RequestId = requestid
345
+ end
346
+
347
+ def deserialize(params)
348
+ @DealNames = params['DealNames']
349
+ @BillId = params['BillId']
350
+ @DBInstanceIdSet = params['DBInstanceIdSet']
351
+ @RequestId = params['RequestId']
352
+ end
353
+ end
354
+
355
+ # CreateInstances请求参数结构体
356
+ class CreateInstancesRequest < TencentCloud::Common::AbstractModel
357
+ # @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
358
+ # @type SpecCode: String
359
+ # @param DBVersion: PostgreSQL内核版本,目前支持:9.3.5、9.5.4、10.4、11.8、12.4五种版本。
360
+ # @type DBVersion: String
361
+ # @param Storage: 实例容量大小,单位:GB。
362
+ # @type Storage: Integer
363
+ # @param InstanceCount: 一次性购买的实例数量。取值1-10。
364
+ # @type InstanceCount: Integer
365
+ # @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
366
+ # @type Period: Integer
367
+ # @param Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
368
+ # @type Zone: String
369
+ # @param Charset: 实例字符集,目前只支持:UTF8、LATIN1。
370
+ # @type Charset: String
371
+ # @param AdminName: 实例根账号用户名。
372
+ # @type AdminName: String
373
+ # @param AdminPassword: 实例根账号用户名对应的密码。
374
+ # @type AdminPassword: String
375
+ # @param ProjectId: 项目ID。
376
+ # @type ProjectId: Integer
377
+ # @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。
378
+ # @type InstanceChargeType: String
379
+ # @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
380
+ # @type AutoVoucher: Integer
381
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
382
+ # @type VoucherIds: Array
383
+ # @param VpcId: 私有网络ID。
384
+ # @type VpcId: String
385
+ # @param SubnetId: 已配置的私有网络中的子网ID。
386
+ # @type SubnetId: String
387
+ # @param AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费。
388
+ # @type AutoRenewFlag: Integer
389
+ # @param ActivityId: 活动ID。
390
+ # @type ActivityId: Integer
391
+ # @param Name: 实例名。
392
+ # @type Name: String
393
+ # @param NeedSupportIpv6: 是否需要支持Ipv6,1:是,0:否(默认)。
394
+ # @type NeedSupportIpv6: Integer
395
+ # @param TagList: 实例需要绑定的Tag信息,默认为空。
396
+ # @type TagList: Array
397
+ # @param SecurityGroupIds: 安全组ID。
398
+ # @type SecurityGroupIds: Array
399
+
400
+ attr_accessor :SpecCode, :DBVersion, :Storage, :InstanceCount, :Period, :Zone, :Charset, :AdminName, :AdminPassword, :ProjectId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :AutoRenewFlag, :ActivityId, :Name, :NeedSupportIpv6, :TagList, :SecurityGroupIds
401
+
402
+ def initialize(speccode=nil, dbversion=nil, storage=nil, instancecount=nil, period=nil, zone=nil, charset=nil, adminname=nil, adminpassword=nil, projectid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, autorenewflag=nil, activityid=nil, name=nil, needsupportipv6=nil, taglist=nil, securitygroupids=nil)
403
+ @SpecCode = speccode
404
+ @DBVersion = dbversion
405
+ @Storage = storage
406
+ @InstanceCount = instancecount
407
+ @Period = period
408
+ @Zone = zone
409
+ @Charset = charset
410
+ @AdminName = adminname
411
+ @AdminPassword = adminpassword
412
+ @ProjectId = projectid
413
+ @InstanceChargeType = instancechargetype
414
+ @AutoVoucher = autovoucher
415
+ @VoucherIds = voucherids
416
+ @VpcId = vpcid
417
+ @SubnetId = subnetid
418
+ @AutoRenewFlag = autorenewflag
419
+ @ActivityId = activityid
420
+ @Name = name
421
+ @NeedSupportIpv6 = needsupportipv6
422
+ @TagList = taglist
423
+ @SecurityGroupIds = securitygroupids
424
+ end
425
+
426
+ def deserialize(params)
427
+ @SpecCode = params['SpecCode']
428
+ @DBVersion = params['DBVersion']
429
+ @Storage = params['Storage']
430
+ @InstanceCount = params['InstanceCount']
431
+ @Period = params['Period']
432
+ @Zone = params['Zone']
433
+ @Charset = params['Charset']
434
+ @AdminName = params['AdminName']
435
+ @AdminPassword = params['AdminPassword']
436
+ @ProjectId = params['ProjectId']
437
+ @InstanceChargeType = params['InstanceChargeType']
438
+ @AutoVoucher = params['AutoVoucher']
439
+ @VoucherIds = params['VoucherIds']
440
+ @VpcId = params['VpcId']
441
+ @SubnetId = params['SubnetId']
442
+ @AutoRenewFlag = params['AutoRenewFlag']
443
+ @ActivityId = params['ActivityId']
444
+ @Name = params['Name']
445
+ @NeedSupportIpv6 = params['NeedSupportIpv6']
446
+ unless params['TagList'].nil?
447
+ @TagList = []
448
+ params['TagList'].each do |i|
449
+ tag_tmp = Tag.new
450
+ tag_tmp.deserialize(i)
451
+ @TagList << tag_tmp
452
+ end
453
+ end
454
+ @SecurityGroupIds = params['SecurityGroupIds']
455
+ end
456
+ end
457
+
458
+ # CreateInstances返回参数结构体
459
+ class CreateInstancesResponse < TencentCloud::Common::AbstractModel
460
+ # @param DealNames: 订单号列表。每个实例对应一个订单号。
461
+ # @type DealNames: Array
462
+ # @param BillId: 冻结流水号。
463
+ # @type BillId: String
464
+ # @param DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值。
465
+ # @type DBInstanceIdSet: Array
466
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
467
+ # @type RequestId: String
468
+
469
+ attr_accessor :DealNames, :BillId, :DBInstanceIdSet, :RequestId
470
+
471
+ def initialize(dealnames=nil, billid=nil, dbinstanceidset=nil, requestid=nil)
472
+ @DealNames = dealnames
473
+ @BillId = billid
474
+ @DBInstanceIdSet = dbinstanceidset
475
+ @RequestId = requestid
476
+ end
477
+
478
+ def deserialize(params)
479
+ @DealNames = params['DealNames']
480
+ @BillId = params['BillId']
481
+ @DBInstanceIdSet = params['DBInstanceIdSet']
482
+ @RequestId = params['RequestId']
483
+ end
484
+ end
485
+
486
+ # CreateReadOnlyDBInstance请求参数结构体
487
+ class CreateReadOnlyDBInstanceRequest < TencentCloud::Common::AbstractModel
488
+ # @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
489
+ # @type SpecCode: String
490
+ # @param DBVersion: PostgreSQL内核版本,目前强制和主实例保持一致
491
+ # @type DBVersion: String
492
+ # @param Storage: 实例容量大小,单位:GB。
493
+ # @type Storage: Integer
494
+ # @param InstanceCount: 一次性购买的实例数量。取值1-100
495
+ # @type InstanceCount: Integer
496
+ # @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
497
+ # @type Period: Integer
498
+ # @param MasterDBInstanceId: 只读实例的主实例ID
499
+ # @type MasterDBInstanceId: String
500
+ # @param Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
501
+ # @type Zone: String
502
+ # @param ProjectId: 项目ID。
503
+ # @type ProjectId: Integer
504
+ # @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。
505
+ # @type InstanceChargeType: String
506
+ # @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
507
+ # @type AutoVoucher: Integer
508
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
509
+ # @type VoucherIds: Array
510
+ # @param AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费;
511
+ # @type AutoRenewFlag: Integer
512
+ # @param VpcId: 私有网络ID。
513
+ # @type VpcId: String
514
+ # @param SubnetId: 私有网络子网ID。
515
+ # @type SubnetId: String
516
+ # @param ActivityId: 优惠活动ID
517
+ # @type ActivityId: Integer
518
+ # @param Name: 实例名(后续支持)
519
+ # @type Name: String
520
+ # @param NeedSupportIpv6: 是否需要支持Ipv6,1:是,0:否
521
+ # @type NeedSupportIpv6: Integer
522
+ # @param ReadOnlyGroupId: 只读组ID。
523
+ # @type ReadOnlyGroupId: String
524
+ # @param TagList: 实例需要绑定的Tag信息,默认为空
525
+ # @type TagList: :class:`Tencentcloud::Postgres.v20170312.models.Tag`
526
+ # @param SecurityGroupIds: 安全组id
527
+ # @type SecurityGroupIds: Array
528
+
529
+ attr_accessor :SpecCode, :DBVersion, :Storage, :InstanceCount, :Period, :MasterDBInstanceId, :Zone, :ProjectId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :AutoRenewFlag, :VpcId, :SubnetId, :ActivityId, :Name, :NeedSupportIpv6, :ReadOnlyGroupId, :TagList, :SecurityGroupIds
530
+
531
+ def initialize(speccode=nil, dbversion=nil, storage=nil, instancecount=nil, period=nil, masterdbinstanceid=nil, zone=nil, projectid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, autorenewflag=nil, vpcid=nil, subnetid=nil, activityid=nil, name=nil, needsupportipv6=nil, readonlygroupid=nil, taglist=nil, securitygroupids=nil)
532
+ @SpecCode = speccode
533
+ @DBVersion = dbversion
534
+ @Storage = storage
535
+ @InstanceCount = instancecount
536
+ @Period = period
537
+ @MasterDBInstanceId = masterdbinstanceid
538
+ @Zone = zone
539
+ @ProjectId = projectid
540
+ @InstanceChargeType = instancechargetype
541
+ @AutoVoucher = autovoucher
542
+ @VoucherIds = voucherids
543
+ @AutoRenewFlag = autorenewflag
544
+ @VpcId = vpcid
545
+ @SubnetId = subnetid
546
+ @ActivityId = activityid
547
+ @Name = name
548
+ @NeedSupportIpv6 = needsupportipv6
549
+ @ReadOnlyGroupId = readonlygroupid
550
+ @TagList = taglist
551
+ @SecurityGroupIds = securitygroupids
552
+ end
553
+
554
+ def deserialize(params)
555
+ @SpecCode = params['SpecCode']
556
+ @DBVersion = params['DBVersion']
557
+ @Storage = params['Storage']
558
+ @InstanceCount = params['InstanceCount']
559
+ @Period = params['Period']
560
+ @MasterDBInstanceId = params['MasterDBInstanceId']
561
+ @Zone = params['Zone']
562
+ @ProjectId = params['ProjectId']
563
+ @InstanceChargeType = params['InstanceChargeType']
564
+ @AutoVoucher = params['AutoVoucher']
565
+ @VoucherIds = params['VoucherIds']
566
+ @AutoRenewFlag = params['AutoRenewFlag']
567
+ @VpcId = params['VpcId']
568
+ @SubnetId = params['SubnetId']
569
+ @ActivityId = params['ActivityId']
570
+ @Name = params['Name']
571
+ @NeedSupportIpv6 = params['NeedSupportIpv6']
572
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
573
+ unless params['TagList'].nil?
574
+ @TagList = Tag.new
575
+ @TagList.deserialize(params['TagList'])
576
+ end
577
+ @SecurityGroupIds = params['SecurityGroupIds']
578
+ end
579
+ end
580
+
581
+ # CreateReadOnlyDBInstance返回参数结构体
582
+ class CreateReadOnlyDBInstanceResponse < TencentCloud::Common::AbstractModel
583
+ # @param DealNames: 订单号列表。每个实例对应一个订单号
584
+ # @type DealNames: Array
585
+ # @param BillId: 冻结流水号
586
+ # @type BillId: String
587
+ # @param DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值
588
+ # @type DBInstanceIdSet: Array
589
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
590
+ # @type RequestId: String
591
+
592
+ attr_accessor :DealNames, :BillId, :DBInstanceIdSet, :RequestId
593
+
594
+ def initialize(dealnames=nil, billid=nil, dbinstanceidset=nil, requestid=nil)
595
+ @DealNames = dealnames
596
+ @BillId = billid
597
+ @DBInstanceIdSet = dbinstanceidset
598
+ @RequestId = requestid
599
+ end
600
+
601
+ def deserialize(params)
602
+ @DealNames = params['DealNames']
603
+ @BillId = params['BillId']
604
+ @DBInstanceIdSet = params['DBInstanceIdSet']
605
+ @RequestId = params['RequestId']
606
+ end
607
+ end
608
+
609
+ # CreateReadOnlyGroup请求参数结构体
610
+ class CreateReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
611
+ # @param MasterDBInstanceId: 主实例ID
612
+ # @type MasterDBInstanceId: String
613
+ # @param Name: 只读组名称
614
+ # @type Name: String
615
+ # @param ProjectId: 项目ID
616
+ # @type ProjectId: Integer
617
+ # @param VpcId: 私有网络ID
618
+ # @type VpcId: String
619
+ # @param SubnetId: 子网ID
620
+ # @type SubnetId: String
621
+ # @param ReplayLagEliminate: 延迟时间大小开关:0关、1开
622
+ # @type ReplayLagEliminate: Integer
623
+ # @param ReplayLatencyEliminate: 延迟空间大小开关: 0关、1开
624
+ # @type ReplayLatencyEliminate: Integer
625
+ # @param MaxReplayLag: 延迟时间大小阈值,单位ms
626
+ # @type MaxReplayLag: Integer
627
+ # @param MaxReplayLatency: 延迟空间大小阈值,单位MB
628
+ # @type MaxReplayLatency: Integer
629
+ # @param MinDelayEliminateReserve: 延迟剔除最小保留实例数
630
+ # @type MinDelayEliminateReserve: Integer
631
+ # @param SecurityGroupIds: 安全组id
632
+ # @type SecurityGroupIds: Array
633
+
634
+ attr_accessor :MasterDBInstanceId, :Name, :ProjectId, :VpcId, :SubnetId, :ReplayLagEliminate, :ReplayLatencyEliminate, :MaxReplayLag, :MaxReplayLatency, :MinDelayEliminateReserve, :SecurityGroupIds
635
+
636
+ def initialize(masterdbinstanceid=nil, name=nil, projectid=nil, vpcid=nil, subnetid=nil, replaylageliminate=nil, replaylatencyeliminate=nil, maxreplaylag=nil, maxreplaylatency=nil, mindelayeliminatereserve=nil, securitygroupids=nil)
637
+ @MasterDBInstanceId = masterdbinstanceid
638
+ @Name = name
639
+ @ProjectId = projectid
640
+ @VpcId = vpcid
641
+ @SubnetId = subnetid
642
+ @ReplayLagEliminate = replaylageliminate
643
+ @ReplayLatencyEliminate = replaylatencyeliminate
644
+ @MaxReplayLag = maxreplaylag
645
+ @MaxReplayLatency = maxreplaylatency
646
+ @MinDelayEliminateReserve = mindelayeliminatereserve
647
+ @SecurityGroupIds = securitygroupids
648
+ end
649
+
650
+ def deserialize(params)
651
+ @MasterDBInstanceId = params['MasterDBInstanceId']
652
+ @Name = params['Name']
653
+ @ProjectId = params['ProjectId']
654
+ @VpcId = params['VpcId']
655
+ @SubnetId = params['SubnetId']
656
+ @ReplayLagEliminate = params['ReplayLagEliminate']
657
+ @ReplayLatencyEliminate = params['ReplayLatencyEliminate']
658
+ @MaxReplayLag = params['MaxReplayLag']
659
+ @MaxReplayLatency = params['MaxReplayLatency']
660
+ @MinDelayEliminateReserve = params['MinDelayEliminateReserve']
661
+ @SecurityGroupIds = params['SecurityGroupIds']
662
+ end
663
+ end
664
+
665
+ # CreateReadOnlyGroup返回参数结构体
666
+ class CreateReadOnlyGroupResponse < TencentCloud::Common::AbstractModel
667
+ # @param ReadOnlyGroupId: 只读组ID
668
+ # @type ReadOnlyGroupId: String
669
+ # @param FlowId: 流程ID
670
+ # 注意:此字段可能返回 null,表示取不到有效值。
671
+ # @type FlowId: Integer
672
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
673
+ # @type RequestId: String
674
+
675
+ attr_accessor :ReadOnlyGroupId, :FlowId, :RequestId
676
+
677
+ def initialize(readonlygroupid=nil, flowid=nil, requestid=nil)
678
+ @ReadOnlyGroupId = readonlygroupid
679
+ @FlowId = flowid
680
+ @RequestId = requestid
681
+ end
682
+
683
+ def deserialize(params)
684
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
685
+ @FlowId = params['FlowId']
686
+ @RequestId = params['RequestId']
687
+ end
688
+ end
689
+
690
+ # CreateServerlessDBInstance请求参数结构体
691
+ class CreateServerlessDBInstanceRequest < TencentCloud::Common::AbstractModel
692
+ # @param Zone: 可用区ID。公测阶段仅支持ap-shanghai-2、ap-beijing-1,ap-guangzhou-2.
693
+ # @type Zone: String
694
+ # @param DBInstanceName: DB实例名称,同一个账号下该值必须唯一。
695
+ # @type DBInstanceName: String
696
+ # @param DBVersion: PostgreSQL内核版本,目前只支持:10.4。
697
+ # @type DBVersion: String
698
+ # @param DBCharset: PostgreSQL数据库字符集,目前支持UTF8。
699
+ # @type DBCharset: String
700
+ # @param ProjectId: 项目ID。
701
+ # @type ProjectId: Integer
702
+ # @param VpcId: 私有网络ID。
703
+ # @type VpcId: String
704
+ # @param SubnetId: 私有网络子网ID。
705
+ # @type SubnetId: String
706
+ # @param TagList: 实例需要绑定的标签数组信息
707
+ # @type TagList: Array
708
+
709
+ attr_accessor :Zone, :DBInstanceName, :DBVersion, :DBCharset, :ProjectId, :VpcId, :SubnetId, :TagList
710
+
711
+ def initialize(zone=nil, dbinstancename=nil, dbversion=nil, dbcharset=nil, projectid=nil, vpcid=nil, subnetid=nil, taglist=nil)
712
+ @Zone = zone
713
+ @DBInstanceName = dbinstancename
714
+ @DBVersion = dbversion
715
+ @DBCharset = dbcharset
716
+ @ProjectId = projectid
717
+ @VpcId = vpcid
718
+ @SubnetId = subnetid
719
+ @TagList = taglist
720
+ end
721
+
722
+ def deserialize(params)
723
+ @Zone = params['Zone']
724
+ @DBInstanceName = params['DBInstanceName']
725
+ @DBVersion = params['DBVersion']
726
+ @DBCharset = params['DBCharset']
727
+ @ProjectId = params['ProjectId']
728
+ @VpcId = params['VpcId']
729
+ @SubnetId = params['SubnetId']
730
+ unless params['TagList'].nil?
731
+ @TagList = []
732
+ params['TagList'].each do |i|
733
+ tag_tmp = Tag.new
734
+ tag_tmp.deserialize(i)
735
+ @TagList << tag_tmp
736
+ end
737
+ end
738
+ end
739
+ end
740
+
741
+ # CreateServerlessDBInstance返回参数结构体
742
+ class CreateServerlessDBInstanceResponse < TencentCloud::Common::AbstractModel
743
+ # @param DBInstanceId: 实例ID,该ID全局唯一,如:postgres-xxxxx
744
+ # @type DBInstanceId: String
745
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
746
+ # @type RequestId: String
747
+
748
+ attr_accessor :DBInstanceId, :RequestId
749
+
750
+ def initialize(dbinstanceid=nil, requestid=nil)
751
+ @DBInstanceId = dbinstanceid
752
+ @RequestId = requestid
753
+ end
754
+
755
+ def deserialize(params)
756
+ @DBInstanceId = params['DBInstanceId']
757
+ @RequestId = params['RequestId']
758
+ end
759
+ end
760
+
761
+ # 数据库备份信息
762
+ class DBBackup < TencentCloud::Common::AbstractModel
763
+ # @param Id: 备份文件唯一标识
764
+ # @type Id: Integer
765
+ # @param StartTime: 文件生成的开始时间
766
+ # @type StartTime: String
767
+ # @param EndTime: 文件生成的结束时间
768
+ # @type EndTime: String
769
+ # @param Size: 文件大小(K)
770
+ # @type Size: Integer
771
+ # @param Strategy: 策略(0-实例备份;1-多库备份)
772
+ # @type Strategy: Integer
773
+ # @param Way: 类型(0-定时)
774
+ # @type Way: Integer
775
+ # @param Type: 备份方式(1-完整)
776
+ # @type Type: Integer
777
+ # @param Status: 状态(1-创建中;2-成功;3-失败)
778
+ # @type Status: Integer
779
+ # @param DbList: DB列表
780
+ # @type DbList: Array
781
+ # @param InternalAddr: 内网下载地址
782
+ # @type InternalAddr: String
783
+ # @param ExternalAddr: 外网下载地址
784
+ # @type ExternalAddr: String
785
+
786
+ attr_accessor :Id, :StartTime, :EndTime, :Size, :Strategy, :Way, :Type, :Status, :DbList, :InternalAddr, :ExternalAddr
787
+
788
+ def initialize(id=nil, starttime=nil, endtime=nil, size=nil, strategy=nil, way=nil, type=nil, status=nil, dblist=nil, internaladdr=nil, externaladdr=nil)
789
+ @Id = id
790
+ @StartTime = starttime
791
+ @EndTime = endtime
792
+ @Size = size
793
+ @Strategy = strategy
794
+ @Way = way
795
+ @Type = type
796
+ @Status = status
797
+ @DbList = dblist
798
+ @InternalAddr = internaladdr
799
+ @ExternalAddr = externaladdr
800
+ end
801
+
802
+ def deserialize(params)
803
+ @Id = params['Id']
804
+ @StartTime = params['StartTime']
805
+ @EndTime = params['EndTime']
806
+ @Size = params['Size']
807
+ @Strategy = params['Strategy']
808
+ @Way = params['Way']
809
+ @Type = params['Type']
810
+ @Status = params['Status']
811
+ @DbList = params['DbList']
812
+ @InternalAddr = params['InternalAddr']
813
+ @ExternalAddr = params['ExternalAddr']
814
+ end
815
+ end
816
+
817
+ # 描述实例的详细信息
818
+ class DBInstance < TencentCloud::Common::AbstractModel
819
+ # @param Region: 实例所属地域,如: ap-guangzhou,对应RegionSet的Region字段
820
+ # @type Region: String
821
+ # @param Zone: 实例所属可用区, 如:ap-guangzhou-3,对应ZoneSet的Zone字段
822
+ # @type Zone: String
823
+ # @param ProjectId: 项目ID
824
+ # @type ProjectId: Integer
825
+ # @param VpcId: 私有网络ID
826
+ # @type VpcId: String
827
+ # @param SubnetId: 子网ID
828
+ # @type SubnetId: String
829
+ # @param DBInstanceId: 实例ID
830
+ # @type DBInstanceId: String
831
+ # @param DBInstanceName: 实例名称
832
+ # @type DBInstanceName: String
833
+ # @param DBInstanceStatus: 实例状态,分别为:applying(申请中)、init(待初始化)、initing(初始化中)、running(运行中)、limited run(受限运行)、isolated(已隔离)、recycling(回收中)、recycled(已回收)、job running(任务执行中)、offline(下线)、migrating(迁移中)、expanding(扩容中)、waitSwitch(等待切换)、switching(切换中)、readonly(只读)、restarting(重启中)、
834
+ # @type DBInstanceStatus: String
835
+ # @param DBInstanceMemory: 实例分配的内存大小,单位:GB
836
+ # @type DBInstanceMemory: Integer
837
+ # @param DBInstanceStorage: 实例分配的存储空间大小,单位:GB
838
+ # @type DBInstanceStorage: Integer
839
+ # @param DBInstanceCpu: 实例分配的CPU数量,单位:个
840
+ # @type DBInstanceCpu: Integer
841
+ # @param DBInstanceClass: 售卖规格ID
842
+ # @type DBInstanceClass: String
843
+ # @param DBInstanceType: 实例类型,类型有:1、primary(主实例);2、readonly(只读实例);3、guard(灾备实例);4、temp(临时实例)
844
+ # @type DBInstanceType: String
845
+ # @param DBInstanceVersion: 实例版本,目前只支持standard(双机高可用版, 一主一从)
846
+ # @type DBInstanceVersion: String
847
+ # @param DBCharset: 实例DB字符集
848
+ # @type DBCharset: String
849
+ # @param DBVersion: PostgreSQL内核版本
850
+ # @type DBVersion: String
851
+ # @param CreateTime: 实例创建时间
852
+ # @type CreateTime: String
853
+ # @param UpdateTime: 实例执行最后一次更新的时间
854
+ # @type UpdateTime: String
855
+ # @param ExpireTime: 实例到期时间
856
+ # @type ExpireTime: String
857
+ # @param IsolatedTime: 实例隔离时间
858
+ # @type IsolatedTime: String
859
+ # @param PayType: 计费模式,1、prepaid(包年包月,预付费);2、postpaid(按量计费,后付费)
860
+ # @type PayType: String
861
+ # @param AutoRenew: 是否自动续费,1:自动续费,0:不自动续费
862
+ # @type AutoRenew: Integer
863
+ # @param DBInstanceNetInfo: 实例网络连接信息
864
+ # @type DBInstanceNetInfo: Array
865
+ # @param Type: 机器类型
866
+ # @type Type: String
867
+ # @param AppId: 用户的AppId
868
+ # @type AppId: Integer
869
+ # @param Uid: 实例的Uid
870
+ # @type Uid: Integer
871
+ # @param SupportIpv6: 实例是否支持Ipv6,1:支持,0:不支持
872
+ # @type SupportIpv6: Integer
873
+ # @param TagList: 实例绑定的标签信息
874
+ # 注意:此字段可能返回 null,表示取不到有效值。
875
+ # @type TagList: Array
876
+ # @param MasterDBInstanceId: 主实例信息,仅在实例为只读实例时返回
877
+ # 注意:此字段可能返回 null,表示取不到有效值。
878
+ # @type MasterDBInstanceId: String
879
+ # @param ReadOnlyInstanceNum: 只读实例数量
880
+ # 注意:此字段可能返回 null,表示取不到有效值。
881
+ # @type ReadOnlyInstanceNum: Integer
882
+ # @param StatusInReadonlyGroup: 只读实例在只读组中的状态
883
+ # 注意:此字段可能返回 null,表示取不到有效值。
884
+ # @type StatusInReadonlyGroup: String
885
+ # @param OfflineTime: 下线时间
886
+ # 注意:此字段可能返回 null,表示取不到有效值。
887
+ # @type OfflineTime: String
888
+
889
+ attr_accessor :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :DBInstanceMemory, :DBInstanceStorage, :DBInstanceCpu, :DBInstanceClass, :DBInstanceType, :DBInstanceVersion, :DBCharset, :DBVersion, :CreateTime, :UpdateTime, :ExpireTime, :IsolatedTime, :PayType, :AutoRenew, :DBInstanceNetInfo, :Type, :AppId, :Uid, :SupportIpv6, :TagList, :MasterDBInstanceId, :ReadOnlyInstanceNum, :StatusInReadonlyGroup, :OfflineTime
890
+
891
+ def initialize(region=nil, zone=nil, projectid=nil, vpcid=nil, subnetid=nil, dbinstanceid=nil, dbinstancename=nil, dbinstancestatus=nil, dbinstancememory=nil, dbinstancestorage=nil, dbinstancecpu=nil, dbinstanceclass=nil, dbinstancetype=nil, dbinstanceversion=nil, dbcharset=nil, dbversion=nil, createtime=nil, updatetime=nil, expiretime=nil, isolatedtime=nil, paytype=nil, autorenew=nil, dbinstancenetinfo=nil, type=nil, appid=nil, uid=nil, supportipv6=nil, taglist=nil, masterdbinstanceid=nil, readonlyinstancenum=nil, statusinreadonlygroup=nil, offlinetime=nil)
892
+ @Region = region
893
+ @Zone = zone
894
+ @ProjectId = projectid
895
+ @VpcId = vpcid
896
+ @SubnetId = subnetid
897
+ @DBInstanceId = dbinstanceid
898
+ @DBInstanceName = dbinstancename
899
+ @DBInstanceStatus = dbinstancestatus
900
+ @DBInstanceMemory = dbinstancememory
901
+ @DBInstanceStorage = dbinstancestorage
902
+ @DBInstanceCpu = dbinstancecpu
903
+ @DBInstanceClass = dbinstanceclass
904
+ @DBInstanceType = dbinstancetype
905
+ @DBInstanceVersion = dbinstanceversion
906
+ @DBCharset = dbcharset
907
+ @DBVersion = dbversion
908
+ @CreateTime = createtime
909
+ @UpdateTime = updatetime
910
+ @ExpireTime = expiretime
911
+ @IsolatedTime = isolatedtime
912
+ @PayType = paytype
913
+ @AutoRenew = autorenew
914
+ @DBInstanceNetInfo = dbinstancenetinfo
915
+ @Type = type
916
+ @AppId = appid
917
+ @Uid = uid
918
+ @SupportIpv6 = supportipv6
919
+ @TagList = taglist
920
+ @MasterDBInstanceId = masterdbinstanceid
921
+ @ReadOnlyInstanceNum = readonlyinstancenum
922
+ @StatusInReadonlyGroup = statusinreadonlygroup
923
+ @OfflineTime = offlinetime
924
+ end
925
+
926
+ def deserialize(params)
927
+ @Region = params['Region']
928
+ @Zone = params['Zone']
929
+ @ProjectId = params['ProjectId']
930
+ @VpcId = params['VpcId']
931
+ @SubnetId = params['SubnetId']
932
+ @DBInstanceId = params['DBInstanceId']
933
+ @DBInstanceName = params['DBInstanceName']
934
+ @DBInstanceStatus = params['DBInstanceStatus']
935
+ @DBInstanceMemory = params['DBInstanceMemory']
936
+ @DBInstanceStorage = params['DBInstanceStorage']
937
+ @DBInstanceCpu = params['DBInstanceCpu']
938
+ @DBInstanceClass = params['DBInstanceClass']
939
+ @DBInstanceType = params['DBInstanceType']
940
+ @DBInstanceVersion = params['DBInstanceVersion']
941
+ @DBCharset = params['DBCharset']
942
+ @DBVersion = params['DBVersion']
943
+ @CreateTime = params['CreateTime']
944
+ @UpdateTime = params['UpdateTime']
945
+ @ExpireTime = params['ExpireTime']
946
+ @IsolatedTime = params['IsolatedTime']
947
+ @PayType = params['PayType']
948
+ @AutoRenew = params['AutoRenew']
949
+ unless params['DBInstanceNetInfo'].nil?
950
+ @DBInstanceNetInfo = []
951
+ params['DBInstanceNetInfo'].each do |i|
952
+ dbinstancenetinfo_tmp = DBInstanceNetInfo.new
953
+ dbinstancenetinfo_tmp.deserialize(i)
954
+ @DBInstanceNetInfo << dbinstancenetinfo_tmp
955
+ end
956
+ end
957
+ @Type = params['Type']
958
+ @AppId = params['AppId']
959
+ @Uid = params['Uid']
960
+ @SupportIpv6 = params['SupportIpv6']
961
+ unless params['TagList'].nil?
962
+ @TagList = []
963
+ params['TagList'].each do |i|
964
+ tag_tmp = Tag.new
965
+ tag_tmp.deserialize(i)
966
+ @TagList << tag_tmp
967
+ end
968
+ end
969
+ @MasterDBInstanceId = params['MasterDBInstanceId']
970
+ @ReadOnlyInstanceNum = params['ReadOnlyInstanceNum']
971
+ @StatusInReadonlyGroup = params['StatusInReadonlyGroup']
972
+ @OfflineTime = params['OfflineTime']
973
+ end
974
+ end
975
+
976
+ # 描述实例的网络连接信息。
977
+ class DBInstanceNetInfo < TencentCloud::Common::AbstractModel
978
+ # @param Address: DNS域名
979
+ # @type Address: String
980
+ # @param Ip: IP地址
981
+ # @type Ip: String
982
+ # @param Port: 连接Port地址
983
+ # @type Port: Integer
984
+ # @param NetType: 网络类型,1、inner(基础网络内网地址);2、private(私有网络内网地址);3、public(基础网络或私有网络的外网地址);
985
+ # @type NetType: String
986
+ # @param Status: 网络连接状态
987
+ # @type Status: String
988
+
989
+ attr_accessor :Address, :Ip, :Port, :NetType, :Status
990
+
991
+ def initialize(address=nil, ip=nil, port=nil, nettype=nil, status=nil)
992
+ @Address = address
993
+ @Ip = ip
994
+ @Port = port
995
+ @NetType = nettype
996
+ @Status = status
997
+ end
998
+
999
+ def deserialize(params)
1000
+ @Address = params['Address']
1001
+ @Ip = params['Ip']
1002
+ @Port = params['Port']
1003
+ @NetType = params['NetType']
1004
+ @Status = params['Status']
1005
+ end
1006
+ end
1007
+
1008
+ # DeleteReadOnlyGroup请求参数结构体
1009
+ class DeleteReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
1010
+ # @param ReadOnlyGroupId: 待删除只读组ID
1011
+ # @type ReadOnlyGroupId: String
1012
+
1013
+ attr_accessor :ReadOnlyGroupId
1014
+
1015
+ def initialize(readonlygroupid=nil)
1016
+ @ReadOnlyGroupId = readonlygroupid
1017
+ end
1018
+
1019
+ def deserialize(params)
1020
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
1021
+ end
1022
+ end
1023
+
1024
+ # DeleteReadOnlyGroup返回参数结构体
1025
+ class DeleteReadOnlyGroupResponse < TencentCloud::Common::AbstractModel
1026
+ # @param FlowId: 流程ID
1027
+ # 注意:此字段可能返回 null,表示取不到有效值。
1028
+ # @type FlowId: Integer
1029
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1030
+ # @type RequestId: String
1031
+
1032
+ attr_accessor :FlowId, :RequestId
1033
+
1034
+ def initialize(flowid=nil, requestid=nil)
1035
+ @FlowId = flowid
1036
+ @RequestId = requestid
1037
+ end
1038
+
1039
+ def deserialize(params)
1040
+ @FlowId = params['FlowId']
1041
+ @RequestId = params['RequestId']
1042
+ end
1043
+ end
1044
+
1045
+ # DeleteServerlessDBInstance请求参数结构体
1046
+ class DeleteServerlessDBInstanceRequest < TencentCloud::Common::AbstractModel
1047
+ # @param DBInstanceName: DB实例名称,实例名和实例ID必须至少传一个,如果同时存在,将只以实例ID为准。
1048
+ # @type DBInstanceName: String
1049
+ # @param DBInstanceId: DB实例ID,实例名和实例ID必须至少传一个,如果同时存在,将只以实例ID为准。
1050
+ # @type DBInstanceId: String
1051
+
1052
+ attr_accessor :DBInstanceName, :DBInstanceId
1053
+
1054
+ def initialize(dbinstancename=nil, dbinstanceid=nil)
1055
+ @DBInstanceName = dbinstancename
1056
+ @DBInstanceId = dbinstanceid
1057
+ end
1058
+
1059
+ def deserialize(params)
1060
+ @DBInstanceName = params['DBInstanceName']
1061
+ @DBInstanceId = params['DBInstanceId']
1062
+ end
1063
+ end
1064
+
1065
+ # DeleteServerlessDBInstance返回参数结构体
1066
+ class DeleteServerlessDBInstanceResponse < TencentCloud::Common::AbstractModel
1067
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1068
+ # @type RequestId: String
1069
+
1070
+ attr_accessor :RequestId
1071
+
1072
+ def initialize(requestid=nil)
1073
+ @RequestId = requestid
1074
+ end
1075
+
1076
+ def deserialize(params)
1077
+ @RequestId = params['RequestId']
1078
+ end
1079
+ end
1080
+
1081
+ # DescribeAccounts请求参数结构体
1082
+ class DescribeAccountsRequest < TencentCloud::Common::AbstractModel
1083
+ # @param DBInstanceId: 实例ID,形如postgres-6fego161
1084
+ # @type DBInstanceId: String
1085
+ # @param Limit: 分页返回,每页最大返回数目,默认20,取值范围为1-100
1086
+ # @type Limit: Integer
1087
+ # @param Offset: 分页返回,返回第几页的用户数据。页码从0开始计数
1088
+ # @type Offset: Integer
1089
+ # @param OrderBy: 返回数据按照创建时间或者用户名排序。取值只能为createTime或者name。createTime-按照创建时间排序;name-按照用户名排序
1090
+ # @type OrderBy: String
1091
+ # @param OrderByType: 返回结果是升序还是降序。取值只能为desc或者asc。desc-降序;asc-升序
1092
+ # @type OrderByType: String
1093
+
1094
+ attr_accessor :DBInstanceId, :Limit, :Offset, :OrderBy, :OrderByType
1095
+
1096
+ def initialize(dbinstanceid=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil)
1097
+ @DBInstanceId = dbinstanceid
1098
+ @Limit = limit
1099
+ @Offset = offset
1100
+ @OrderBy = orderby
1101
+ @OrderByType = orderbytype
1102
+ end
1103
+
1104
+ def deserialize(params)
1105
+ @DBInstanceId = params['DBInstanceId']
1106
+ @Limit = params['Limit']
1107
+ @Offset = params['Offset']
1108
+ @OrderBy = params['OrderBy']
1109
+ @OrderByType = params['OrderByType']
1110
+ end
1111
+ end
1112
+
1113
+ # DescribeAccounts返回参数结构体
1114
+ class DescribeAccountsResponse < TencentCloud::Common::AbstractModel
1115
+ # @param TotalCount: 本次调用接口共返回了多少条数据。
1116
+ # @type TotalCount: Integer
1117
+ # @param Details: 帐号列表详细信息。
1118
+ # @type Details: Array
1119
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1120
+ # @type RequestId: String
1121
+
1122
+ attr_accessor :TotalCount, :Details, :RequestId
1123
+
1124
+ def initialize(totalcount=nil, details=nil, requestid=nil)
1125
+ @TotalCount = totalcount
1126
+ @Details = details
1127
+ @RequestId = requestid
1128
+ end
1129
+
1130
+ def deserialize(params)
1131
+ @TotalCount = params['TotalCount']
1132
+ unless params['Details'].nil?
1133
+ @Details = []
1134
+ params['Details'].each do |i|
1135
+ accountinfo_tmp = AccountInfo.new
1136
+ accountinfo_tmp.deserialize(i)
1137
+ @Details << accountinfo_tmp
1138
+ end
1139
+ end
1140
+ @RequestId = params['RequestId']
1141
+ end
1142
+ end
1143
+
1144
+ # DescribeDBBackups请求参数结构体
1145
+ class DescribeDBBackupsRequest < TencentCloud::Common::AbstractModel
1146
+ # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv。
1147
+ # @type DBInstanceId: String
1148
+ # @param Type: 备份方式(1-全量)。目前只支持全量,取值为1。
1149
+ # @type Type: Integer
1150
+ # @param StartTime: 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
1151
+ # @type StartTime: String
1152
+ # @param EndTime: 查询结束时间,形如2018-06-10 17:06:38
1153
+ # @type EndTime: String
1154
+ # @param Limit: 备份列表分页返回,每页返回数量,默认为 20,最小为1,最大值为 100。(当该参数不传或者传0时按默认值处理)
1155
+ # @type Limit: Integer
1156
+ # @param Offset: 返回结果中的第几页,从第0页开始。默认为0。
1157
+ # @type Offset: Integer
1158
+
1159
+ attr_accessor :DBInstanceId, :Type, :StartTime, :EndTime, :Limit, :Offset
1160
+
1161
+ def initialize(dbinstanceid=nil, type=nil, starttime=nil, endtime=nil, limit=nil, offset=nil)
1162
+ @DBInstanceId = dbinstanceid
1163
+ @Type = type
1164
+ @StartTime = starttime
1165
+ @EndTime = endtime
1166
+ @Limit = limit
1167
+ @Offset = offset
1168
+ end
1169
+
1170
+ def deserialize(params)
1171
+ @DBInstanceId = params['DBInstanceId']
1172
+ @Type = params['Type']
1173
+ @StartTime = params['StartTime']
1174
+ @EndTime = params['EndTime']
1175
+ @Limit = params['Limit']
1176
+ @Offset = params['Offset']
1177
+ end
1178
+ end
1179
+
1180
+ # DescribeDBBackups返回参数结构体
1181
+ class DescribeDBBackupsResponse < TencentCloud::Common::AbstractModel
1182
+ # @param TotalCount: 返回备份列表中备份文件的个数
1183
+ # @type TotalCount: Integer
1184
+ # @param BackupList: 备份列表
1185
+ # @type BackupList: Array
1186
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1187
+ # @type RequestId: String
1188
+
1189
+ attr_accessor :TotalCount, :BackupList, :RequestId
1190
+
1191
+ def initialize(totalcount=nil, backuplist=nil, requestid=nil)
1192
+ @TotalCount = totalcount
1193
+ @BackupList = backuplist
1194
+ @RequestId = requestid
1195
+ end
1196
+
1197
+ def deserialize(params)
1198
+ @TotalCount = params['TotalCount']
1199
+ unless params['BackupList'].nil?
1200
+ @BackupList = []
1201
+ params['BackupList'].each do |i|
1202
+ dbbackup_tmp = DBBackup.new
1203
+ dbbackup_tmp.deserialize(i)
1204
+ @BackupList << dbbackup_tmp
1205
+ end
1206
+ end
1207
+ @RequestId = params['RequestId']
1208
+ end
1209
+ end
1210
+
1211
+ # DescribeDBErrlogs请求参数结构体
1212
+ class DescribeDBErrlogsRequest < TencentCloud::Common::AbstractModel
1213
+ # @param DBInstanceId: 实例ID,形如postgres-5bq3wfjd
1214
+ # @type DBInstanceId: String
1215
+ # @param StartTime: 查询起始时间,形如2018-01-01 00:00:00,起始时间不得小于7天以前
1216
+ # @type StartTime: String
1217
+ # @param EndTime: 查询结束时间,形如2018-01-01 00:00:00
1218
+ # @type EndTime: String
1219
+ # @param DatabaseName: 数据库名字
1220
+ # @type DatabaseName: String
1221
+ # @param SearchKeys: 搜索关键字
1222
+ # @type SearchKeys: Array
1223
+ # @param Limit: 分页返回,每页返回的最大数量。取值为1-100
1224
+ # @type Limit: Integer
1225
+ # @param Offset: 分页返回,返回第几页的数据,从第0页开始计数
1226
+ # @type Offset: Integer
1227
+
1228
+ attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :SearchKeys, :Limit, :Offset
1229
+
1230
+ def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, searchkeys=nil, limit=nil, offset=nil)
1231
+ @DBInstanceId = dbinstanceid
1232
+ @StartTime = starttime
1233
+ @EndTime = endtime
1234
+ @DatabaseName = databasename
1235
+ @SearchKeys = searchkeys
1236
+ @Limit = limit
1237
+ @Offset = offset
1238
+ end
1239
+
1240
+ def deserialize(params)
1241
+ @DBInstanceId = params['DBInstanceId']
1242
+ @StartTime = params['StartTime']
1243
+ @EndTime = params['EndTime']
1244
+ @DatabaseName = params['DatabaseName']
1245
+ @SearchKeys = params['SearchKeys']
1246
+ @Limit = params['Limit']
1247
+ @Offset = params['Offset']
1248
+ end
1249
+ end
1250
+
1251
+ # DescribeDBErrlogs返回参数结构体
1252
+ class DescribeDBErrlogsResponse < TencentCloud::Common::AbstractModel
1253
+ # @param TotalCount: 本次调用返回了多少条数据
1254
+ # @type TotalCount: Integer
1255
+ # @param Details: 错误日志列表
1256
+ # @type Details: Array
1257
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1258
+ # @type RequestId: String
1259
+
1260
+ attr_accessor :TotalCount, :Details, :RequestId
1261
+
1262
+ def initialize(totalcount=nil, details=nil, requestid=nil)
1263
+ @TotalCount = totalcount
1264
+ @Details = details
1265
+ @RequestId = requestid
1266
+ end
1267
+
1268
+ def deserialize(params)
1269
+ @TotalCount = params['TotalCount']
1270
+ unless params['Details'].nil?
1271
+ @Details = []
1272
+ params['Details'].each do |i|
1273
+ errlogdetail_tmp = ErrLogDetail.new
1274
+ errlogdetail_tmp.deserialize(i)
1275
+ @Details << errlogdetail_tmp
1276
+ end
1277
+ end
1278
+ @RequestId = params['RequestId']
1279
+ end
1280
+ end
1281
+
1282
+ # DescribeDBInstanceAttribute请求参数结构体
1283
+ class DescribeDBInstanceAttributeRequest < TencentCloud::Common::AbstractModel
1284
+ # @param DBInstanceId: 实例ID
1285
+ # @type DBInstanceId: String
1286
+
1287
+ attr_accessor :DBInstanceId
1288
+
1289
+ def initialize(dbinstanceid=nil)
1290
+ @DBInstanceId = dbinstanceid
1291
+ end
1292
+
1293
+ def deserialize(params)
1294
+ @DBInstanceId = params['DBInstanceId']
1295
+ end
1296
+ end
1297
+
1298
+ # DescribeDBInstanceAttribute返回参数结构体
1299
+ class DescribeDBInstanceAttributeResponse < TencentCloud::Common::AbstractModel
1300
+ # @param DBInstance: 实例详细信息。
1301
+ # @type DBInstance: :class:`Tencentcloud::Postgres.v20170312.models.DBInstance`
1302
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1303
+ # @type RequestId: String
1304
+
1305
+ attr_accessor :DBInstance, :RequestId
1306
+
1307
+ def initialize(dbinstance=nil, requestid=nil)
1308
+ @DBInstance = dbinstance
1309
+ @RequestId = requestid
1310
+ end
1311
+
1312
+ def deserialize(params)
1313
+ unless params['DBInstance'].nil?
1314
+ @DBInstance = DBInstance.new
1315
+ @DBInstance.deserialize(params['DBInstance'])
1316
+ end
1317
+ @RequestId = params['RequestId']
1318
+ end
1319
+ end
1320
+
1321
+ # DescribeDBInstanceParameters请求参数结构体
1322
+ class DescribeDBInstanceParametersRequest < TencentCloud::Common::AbstractModel
1323
+ # @param DBInstanceId: 实例ID
1324
+ # @type DBInstanceId: String
1325
+ # @param ParamName: 查询指定参数详情。ParamName为空或不传,默认返回全部参数列表
1326
+ # @type ParamName: String
1327
+
1328
+ attr_accessor :DBInstanceId, :ParamName
1329
+
1330
+ def initialize(dbinstanceid=nil, paramname=nil)
1331
+ @DBInstanceId = dbinstanceid
1332
+ @ParamName = paramname
1333
+ end
1334
+
1335
+ def deserialize(params)
1336
+ @DBInstanceId = params['DBInstanceId']
1337
+ @ParamName = params['ParamName']
1338
+ end
1339
+ end
1340
+
1341
+ # DescribeDBInstanceParameters返回参数结构体
1342
+ class DescribeDBInstanceParametersResponse < TencentCloud::Common::AbstractModel
1343
+ # @param TotalCount: 参数列表总数
1344
+ # @type TotalCount: Integer
1345
+ # @param Detail: 参数列表返回详情
1346
+ # @type Detail: Array
1347
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1348
+ # @type RequestId: String
1349
+
1350
+ attr_accessor :TotalCount, :Detail, :RequestId
1351
+
1352
+ def initialize(totalcount=nil, detail=nil, requestid=nil)
1353
+ @TotalCount = totalcount
1354
+ @Detail = detail
1355
+ @RequestId = requestid
1356
+ end
1357
+
1358
+ def deserialize(params)
1359
+ @TotalCount = params['TotalCount']
1360
+ unless params['Detail'].nil?
1361
+ @Detail = []
1362
+ params['Detail'].each do |i|
1363
+ paraminfo_tmp = ParamInfo.new
1364
+ paraminfo_tmp.deserialize(i)
1365
+ @Detail << paraminfo_tmp
1366
+ end
1367
+ end
1368
+ @RequestId = params['RequestId']
1369
+ end
1370
+ end
1371
+
1372
+ # DescribeDBInstances请求参数结构体
1373
+ class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
1374
+ # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:
1375
+ # db-instance-id:按照实例ID过滤,类型为string
1376
+ # db-instance-name:按照实例名过滤,类型为string
1377
+ # db-project-id:按照项目ID过滤,类型为integer
1378
+ # db-pay-mode:按照付费模式过滤,类型为string
1379
+ # db-tag-key:按照标签键过滤,类型为string
1380
+ # @type Filters: Array
1381
+ # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。
1382
+ # @type Limit: Integer
1383
+ # @param OrderBy: 排序指标,如实例名、创建时间等,支持DBInstanceId,CreateTime,Name,EndTime
1384
+ # @type OrderBy: String
1385
+ # @param Offset: 页码偏移量,从0开始。
1386
+ # @type Offset: Integer
1387
+ # @param OrderByType: 排序方式,包括升序:asc、降序:desc。
1388
+ # @type OrderByType: String
1389
+
1390
+ attr_accessor :Filters, :Limit, :OrderBy, :Offset, :OrderByType
1391
+
1392
+ def initialize(filters=nil, limit=nil, orderby=nil, offset=nil, orderbytype=nil)
1393
+ @Filters = filters
1394
+ @Limit = limit
1395
+ @OrderBy = orderby
1396
+ @Offset = offset
1397
+ @OrderByType = orderbytype
1398
+ end
1399
+
1400
+ def deserialize(params)
1401
+ unless params['Filters'].nil?
1402
+ @Filters = []
1403
+ params['Filters'].each do |i|
1404
+ filter_tmp = Filter.new
1405
+ filter_tmp.deserialize(i)
1406
+ @Filters << filter_tmp
1407
+ end
1408
+ end
1409
+ @Limit = params['Limit']
1410
+ @OrderBy = params['OrderBy']
1411
+ @Offset = params['Offset']
1412
+ @OrderByType = params['OrderByType']
1413
+ end
1414
+ end
1415
+
1416
+ # DescribeDBInstances返回参数结构体
1417
+ class DescribeDBInstancesResponse < TencentCloud::Common::AbstractModel
1418
+ # @param TotalCount: 查询到的实例数量。
1419
+ # @type TotalCount: Integer
1420
+ # @param DBInstanceSet: 实例详细信息集合。
1421
+ # @type DBInstanceSet: Array
1422
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1423
+ # @type RequestId: String
1424
+
1425
+ attr_accessor :TotalCount, :DBInstanceSet, :RequestId
1426
+
1427
+ def initialize(totalcount=nil, dbinstanceset=nil, requestid=nil)
1428
+ @TotalCount = totalcount
1429
+ @DBInstanceSet = dbinstanceset
1430
+ @RequestId = requestid
1431
+ end
1432
+
1433
+ def deserialize(params)
1434
+ @TotalCount = params['TotalCount']
1435
+ unless params['DBInstanceSet'].nil?
1436
+ @DBInstanceSet = []
1437
+ params['DBInstanceSet'].each do |i|
1438
+ dbinstance_tmp = DBInstance.new
1439
+ dbinstance_tmp.deserialize(i)
1440
+ @DBInstanceSet << dbinstance_tmp
1441
+ end
1442
+ end
1443
+ @RequestId = params['RequestId']
1444
+ end
1445
+ end
1446
+
1447
+ # DescribeDBSlowlogs请求参数结构体
1448
+ class DescribeDBSlowlogsRequest < TencentCloud::Common::AbstractModel
1449
+ # @param DBInstanceId: 实例ID,形如postgres-lnp6j617
1450
+ # @type DBInstanceId: String
1451
+ # @param StartTime: 查询起始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
1452
+ # @type StartTime: String
1453
+ # @param EndTime: 查询结束时间,形如2018-06-10 17:06:38
1454
+ # @type EndTime: String
1455
+ # @param DatabaseName: 数据库名字
1456
+ # @type DatabaseName: String
1457
+ # @param OrderBy: 按照何种指标排序,取值为sum_calls或者sum_cost_time。sum_calls-总调用次数;sum_cost_time-总的花费时间
1458
+ # @type OrderBy: String
1459
+ # @param OrderByType: 排序规则。desc-降序;asc-升序
1460
+ # @type OrderByType: String
1461
+ # @param Limit: 分页返回结果,每页最大返回数量,取值为1-100,默认20
1462
+ # @type Limit: Integer
1463
+ # @param Offset: 分页返回结果,返回结果的第几页,从0开始计数
1464
+ # @type Offset: Integer
1465
+
1466
+ attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :OrderBy, :OrderByType, :Limit, :Offset
1467
+
1468
+ def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, orderby=nil, orderbytype=nil, limit=nil, offset=nil)
1469
+ @DBInstanceId = dbinstanceid
1470
+ @StartTime = starttime
1471
+ @EndTime = endtime
1472
+ @DatabaseName = databasename
1473
+ @OrderBy = orderby
1474
+ @OrderByType = orderbytype
1475
+ @Limit = limit
1476
+ @Offset = offset
1477
+ end
1478
+
1479
+ def deserialize(params)
1480
+ @DBInstanceId = params['DBInstanceId']
1481
+ @StartTime = params['StartTime']
1482
+ @EndTime = params['EndTime']
1483
+ @DatabaseName = params['DatabaseName']
1484
+ @OrderBy = params['OrderBy']
1485
+ @OrderByType = params['OrderByType']
1486
+ @Limit = params['Limit']
1487
+ @Offset = params['Offset']
1488
+ end
1489
+ end
1490
+
1491
+ # DescribeDBSlowlogs返回参数结构体
1492
+ class DescribeDBSlowlogsResponse < TencentCloud::Common::AbstractModel
1493
+ # @param TotalCount: 本次返回多少条数据
1494
+ # @type TotalCount: Integer
1495
+ # @param Detail: 慢查询日志详情
1496
+ # @type Detail: :class:`Tencentcloud::Postgres.v20170312.models.SlowlogDetail`
1497
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1498
+ # @type RequestId: String
1499
+
1500
+ attr_accessor :TotalCount, :Detail, :RequestId
1501
+
1502
+ def initialize(totalcount=nil, detail=nil, requestid=nil)
1503
+ @TotalCount = totalcount
1504
+ @Detail = detail
1505
+ @RequestId = requestid
1506
+ end
1507
+
1508
+ def deserialize(params)
1509
+ @TotalCount = params['TotalCount']
1510
+ unless params['Detail'].nil?
1511
+ @Detail = SlowlogDetail.new
1512
+ @Detail.deserialize(params['Detail'])
1513
+ end
1514
+ @RequestId = params['RequestId']
1515
+ end
1516
+ end
1517
+
1518
+ # DescribeDBXlogs请求参数结构体
1519
+ class DescribeDBXlogsRequest < TencentCloud::Common::AbstractModel
1520
+ # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv。
1521
+ # @type DBInstanceId: String
1522
+ # @param StartTime: 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
1523
+ # @type StartTime: String
1524
+ # @param EndTime: 查询结束时间,形如2018-06-10 17:06:38
1525
+ # @type EndTime: String
1526
+ # @param Offset: 分页返回,表示返回第几页的条目。从第0页开始计数。
1527
+ # @type Offset: Integer
1528
+ # @param Limit: 分页返回,表示每页有多少条目。取值为1-100。
1529
+ # @type Limit: Integer
1530
+
1531
+ attr_accessor :DBInstanceId, :StartTime, :EndTime, :Offset, :Limit
1532
+
1533
+ def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
1534
+ @DBInstanceId = dbinstanceid
1535
+ @StartTime = starttime
1536
+ @EndTime = endtime
1537
+ @Offset = offset
1538
+ @Limit = limit
1539
+ end
1540
+
1541
+ def deserialize(params)
1542
+ @DBInstanceId = params['DBInstanceId']
1543
+ @StartTime = params['StartTime']
1544
+ @EndTime = params['EndTime']
1545
+ @Offset = params['Offset']
1546
+ @Limit = params['Limit']
1547
+ end
1548
+ end
1549
+
1550
+ # DescribeDBXlogs返回参数结构体
1551
+ class DescribeDBXlogsResponse < TencentCloud::Common::AbstractModel
1552
+ # @param TotalCount: 表示此次返回结果有多少条数据。
1553
+ # @type TotalCount: Integer
1554
+ # @param XlogList: Xlog列表
1555
+ # @type XlogList: Array
1556
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1557
+ # @type RequestId: String
1558
+
1559
+ attr_accessor :TotalCount, :XlogList, :RequestId
1560
+
1561
+ def initialize(totalcount=nil, xloglist=nil, requestid=nil)
1562
+ @TotalCount = totalcount
1563
+ @XlogList = xloglist
1564
+ @RequestId = requestid
1565
+ end
1566
+
1567
+ def deserialize(params)
1568
+ @TotalCount = params['TotalCount']
1569
+ unless params['XlogList'].nil?
1570
+ @XlogList = []
1571
+ params['XlogList'].each do |i|
1572
+ xlog_tmp = Xlog.new
1573
+ xlog_tmp.deserialize(i)
1574
+ @XlogList << xlog_tmp
1575
+ end
1576
+ end
1577
+ @RequestId = params['RequestId']
1578
+ end
1579
+ end
1580
+
1581
+ # DescribeDatabases请求参数结构体
1582
+ class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel
1583
+ # @param DBInstanceId: 实例ID
1584
+ # @type DBInstanceId: String
1585
+
1586
+ attr_accessor :DBInstanceId
1587
+
1588
+ def initialize(dbinstanceid=nil)
1589
+ @DBInstanceId = dbinstanceid
1590
+ end
1591
+
1592
+ def deserialize(params)
1593
+ @DBInstanceId = params['DBInstanceId']
1594
+ end
1595
+ end
1596
+
1597
+ # DescribeDatabases返回参数结构体
1598
+ class DescribeDatabasesResponse < TencentCloud::Common::AbstractModel
1599
+ # @param Items: 数据库信息
1600
+ # @type Items: Array
1601
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1602
+ # @type RequestId: String
1603
+
1604
+ attr_accessor :Items, :RequestId
1605
+
1606
+ def initialize(items=nil, requestid=nil)
1607
+ @Items = items
1608
+ @RequestId = requestid
1609
+ end
1610
+
1611
+ def deserialize(params)
1612
+ @Items = params['Items']
1613
+ @RequestId = params['RequestId']
1614
+ end
1615
+ end
1616
+
1617
+ # DescribeOrders请求参数结构体
1618
+ class DescribeOrdersRequest < TencentCloud::Common::AbstractModel
1619
+ # @param DealNames: 订单名集合
1620
+ # @type DealNames: Array
1621
+
1622
+ attr_accessor :DealNames
1623
+
1624
+ def initialize(dealnames=nil)
1625
+ @DealNames = dealnames
1626
+ end
1627
+
1628
+ def deserialize(params)
1629
+ @DealNames = params['DealNames']
1630
+ end
1631
+ end
1632
+
1633
+ # DescribeOrders返回参数结构体
1634
+ class DescribeOrdersResponse < TencentCloud::Common::AbstractModel
1635
+ # @param TotalCount: 订单数量
1636
+ # @type TotalCount: Integer
1637
+ # @param Deals: 订单数组
1638
+ # @type Deals: Array
1639
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1640
+ # @type RequestId: String
1641
+
1642
+ attr_accessor :TotalCount, :Deals, :RequestId
1643
+
1644
+ def initialize(totalcount=nil, deals=nil, requestid=nil)
1645
+ @TotalCount = totalcount
1646
+ @Deals = deals
1647
+ @RequestId = requestid
1648
+ end
1649
+
1650
+ def deserialize(params)
1651
+ @TotalCount = params['TotalCount']
1652
+ unless params['Deals'].nil?
1653
+ @Deals = []
1654
+ params['Deals'].each do |i|
1655
+ pgdeal_tmp = PgDeal.new
1656
+ pgdeal_tmp.deserialize(i)
1657
+ @Deals << pgdeal_tmp
1658
+ end
1659
+ end
1660
+ @RequestId = params['RequestId']
1661
+ end
1662
+ end
1663
+
1664
+ # DescribeParamsEvent请求参数结构体
1665
+ class DescribeParamsEventRequest < TencentCloud::Common::AbstractModel
1666
+ # @param DBInstanceId: 实例DB ID
1667
+ # @type DBInstanceId: String
1668
+
1669
+ attr_accessor :DBInstanceId
1670
+
1671
+ def initialize(dbinstanceid=nil)
1672
+ @DBInstanceId = dbinstanceid
1673
+ end
1674
+
1675
+ def deserialize(params)
1676
+ @DBInstanceId = params['DBInstanceId']
1677
+ end
1678
+ end
1679
+
1680
+ # DescribeParamsEvent返回参数结构体
1681
+ class DescribeParamsEventResponse < TencentCloud::Common::AbstractModel
1682
+ # @param TotalCount: 参数修改事件总数,以参数为统计粒度
1683
+ # @type TotalCount: Integer
1684
+ # @param EventItems: 实例参数修改事件详情
1685
+ # @type EventItems: Array
1686
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1687
+ # @type RequestId: String
1688
+
1689
+ attr_accessor :TotalCount, :EventItems, :RequestId
1690
+
1691
+ def initialize(totalcount=nil, eventitems=nil, requestid=nil)
1692
+ @TotalCount = totalcount
1693
+ @EventItems = eventitems
1694
+ @RequestId = requestid
1695
+ end
1696
+
1697
+ def deserialize(params)
1698
+ @TotalCount = params['TotalCount']
1699
+ unless params['EventItems'].nil?
1700
+ @EventItems = []
1701
+ params['EventItems'].each do |i|
1702
+ eventitem_tmp = EventItem.new
1703
+ eventitem_tmp.deserialize(i)
1704
+ @EventItems << eventitem_tmp
1705
+ end
1706
+ end
1707
+ @RequestId = params['RequestId']
1708
+ end
1709
+ end
1710
+
1711
+ # DescribeProductConfig请求参数结构体
1712
+ class DescribeProductConfigRequest < TencentCloud::Common::AbstractModel
1713
+ # @param Zone: 可用区名称
1714
+ # @type Zone: String
1715
+
1716
+ attr_accessor :Zone
1717
+
1718
+ def initialize(zone=nil)
1719
+ @Zone = zone
1720
+ end
1721
+
1722
+ def deserialize(params)
1723
+ @Zone = params['Zone']
1724
+ end
1725
+ end
1726
+
1727
+ # DescribeProductConfig返回参数结构体
1728
+ class DescribeProductConfigResponse < TencentCloud::Common::AbstractModel
1729
+ # @param SpecInfoList: 售卖规格列表。
1730
+ # @type SpecInfoList: Array
1731
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1732
+ # @type RequestId: String
1733
+
1734
+ attr_accessor :SpecInfoList, :RequestId
1735
+
1736
+ def initialize(specinfolist=nil, requestid=nil)
1737
+ @SpecInfoList = specinfolist
1738
+ @RequestId = requestid
1739
+ end
1740
+
1741
+ def deserialize(params)
1742
+ unless params['SpecInfoList'].nil?
1743
+ @SpecInfoList = []
1744
+ params['SpecInfoList'].each do |i|
1745
+ specinfo_tmp = SpecInfo.new
1746
+ specinfo_tmp.deserialize(i)
1747
+ @SpecInfoList << specinfo_tmp
1748
+ end
1749
+ end
1750
+ @RequestId = params['RequestId']
1751
+ end
1752
+ end
1753
+
1754
+ # DescribeReadOnlyGroups请求参数结构体
1755
+ class DescribeReadOnlyGroupsRequest < TencentCloud::Common::AbstractModel
1756
+ # @param Filters: 过滤条件,必须传入主实例ID进行过滤,否则返回值将为空,过滤参数为:db-master-instance-id
1757
+ # @type Filters: Array
1758
+ # @param PageSize: 查询每一页的条数,默认为10
1759
+ # @type PageSize: Integer
1760
+ # @param PageNumber: 查询的页码,默认为1
1761
+ # @type PageNumber: Integer
1762
+ # @param OrderBy: 查询排序依据,目前支持:ROGroupId,CreateTime,Name
1763
+ # @type OrderBy: String
1764
+ # @param OrderByType: 查询排序依据类型,目前支持:desc,asc
1765
+ # @type OrderByType: String
1766
+
1767
+ attr_accessor :Filters, :PageSize, :PageNumber, :OrderBy, :OrderByType
1768
+
1769
+ def initialize(filters=nil, pagesize=nil, pagenumber=nil, orderby=nil, orderbytype=nil)
1770
+ @Filters = filters
1771
+ @PageSize = pagesize
1772
+ @PageNumber = pagenumber
1773
+ @OrderBy = orderby
1774
+ @OrderByType = orderbytype
1775
+ end
1776
+
1777
+ def deserialize(params)
1778
+ unless params['Filters'].nil?
1779
+ @Filters = []
1780
+ params['Filters'].each do |i|
1781
+ filter_tmp = Filter.new
1782
+ filter_tmp.deserialize(i)
1783
+ @Filters << filter_tmp
1784
+ end
1785
+ end
1786
+ @PageSize = params['PageSize']
1787
+ @PageNumber = params['PageNumber']
1788
+ @OrderBy = params['OrderBy']
1789
+ @OrderByType = params['OrderByType']
1790
+ end
1791
+ end
1792
+
1793
+ # DescribeReadOnlyGroups返回参数结构体
1794
+ class DescribeReadOnlyGroupsResponse < TencentCloud::Common::AbstractModel
1795
+ # @param ReadOnlyGroupList: 只读组列表
1796
+ # @type ReadOnlyGroupList: Array
1797
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1798
+ # @type RequestId: String
1799
+
1800
+ attr_accessor :ReadOnlyGroupList, :RequestId
1801
+
1802
+ def initialize(readonlygrouplist=nil, requestid=nil)
1803
+ @ReadOnlyGroupList = readonlygrouplist
1804
+ @RequestId = requestid
1805
+ end
1806
+
1807
+ def deserialize(params)
1808
+ unless params['ReadOnlyGroupList'].nil?
1809
+ @ReadOnlyGroupList = []
1810
+ params['ReadOnlyGroupList'].each do |i|
1811
+ readonlygroup_tmp = ReadOnlyGroup.new
1812
+ readonlygroup_tmp.deserialize(i)
1813
+ @ReadOnlyGroupList << readonlygroup_tmp
1814
+ end
1815
+ end
1816
+ @RequestId = params['RequestId']
1817
+ end
1818
+ end
1819
+
1820
+ # DescribeRegions请求参数结构体
1821
+ class DescribeRegionsRequest < TencentCloud::Common::AbstractModel
1822
+
1823
+
1824
+ def initialize()
1825
+ end
1826
+
1827
+ def deserialize(params)
1828
+ end
1829
+ end
1830
+
1831
+ # DescribeRegions返回参数结构体
1832
+ class DescribeRegionsResponse < TencentCloud::Common::AbstractModel
1833
+ # @param TotalCount: 返回的结果数量。
1834
+ # @type TotalCount: Integer
1835
+ # @param RegionSet: 地域信息集合。
1836
+ # @type RegionSet: Array
1837
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1838
+ # @type RequestId: String
1839
+
1840
+ attr_accessor :TotalCount, :RegionSet, :RequestId
1841
+
1842
+ def initialize(totalcount=nil, regionset=nil, requestid=nil)
1843
+ @TotalCount = totalcount
1844
+ @RegionSet = regionset
1845
+ @RequestId = requestid
1846
+ end
1847
+
1848
+ def deserialize(params)
1849
+ @TotalCount = params['TotalCount']
1850
+ unless params['RegionSet'].nil?
1851
+ @RegionSet = []
1852
+ params['RegionSet'].each do |i|
1853
+ regioninfo_tmp = RegionInfo.new
1854
+ regioninfo_tmp.deserialize(i)
1855
+ @RegionSet << regioninfo_tmp
1856
+ end
1857
+ end
1858
+ @RequestId = params['RequestId']
1859
+ end
1860
+ end
1861
+
1862
+ # DescribeServerlessDBInstances请求参数结构体
1863
+ class DescribeServerlessDBInstancesRequest < TencentCloud::Common::AbstractModel
1864
+ # @param Filter: 查询条件
1865
+ # @type Filter: Array
1866
+ # @param Limit: 查询个数
1867
+ # @type Limit: Integer
1868
+ # @param Offset: 偏移量
1869
+ # @type Offset: Integer
1870
+ # @param OrderBy: 排序指标,目前支持实例创建时间CreateTime
1871
+ # @type OrderBy: String
1872
+ # @param OrderByType: 排序方式,包括升序、降序
1873
+ # @type OrderByType: String
1874
+
1875
+ attr_accessor :Filter, :Limit, :Offset, :OrderBy, :OrderByType
1876
+
1877
+ def initialize(filter=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil)
1878
+ @Filter = filter
1879
+ @Limit = limit
1880
+ @Offset = offset
1881
+ @OrderBy = orderby
1882
+ @OrderByType = orderbytype
1883
+ end
1884
+
1885
+ def deserialize(params)
1886
+ unless params['Filter'].nil?
1887
+ @Filter = []
1888
+ params['Filter'].each do |i|
1889
+ filter_tmp = Filter.new
1890
+ filter_tmp.deserialize(i)
1891
+ @Filter << filter_tmp
1892
+ end
1893
+ end
1894
+ @Limit = params['Limit']
1895
+ @Offset = params['Offset']
1896
+ @OrderBy = params['OrderBy']
1897
+ @OrderByType = params['OrderByType']
1898
+ end
1899
+ end
1900
+
1901
+ # DescribeServerlessDBInstances返回参数结构体
1902
+ class DescribeServerlessDBInstancesResponse < TencentCloud::Common::AbstractModel
1903
+ # @param TotalCount: 查询结果数
1904
+ # @type TotalCount: Integer
1905
+ # @param DBInstanceSet: 查询结果
1906
+ # 注意:此字段可能返回 null,表示取不到有效值。
1907
+ # @type DBInstanceSet: Array
1908
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1909
+ # @type RequestId: String
1910
+
1911
+ attr_accessor :TotalCount, :DBInstanceSet, :RequestId
1912
+
1913
+ def initialize(totalcount=nil, dbinstanceset=nil, requestid=nil)
1914
+ @TotalCount = totalcount
1915
+ @DBInstanceSet = dbinstanceset
1916
+ @RequestId = requestid
1917
+ end
1918
+
1919
+ def deserialize(params)
1920
+ @TotalCount = params['TotalCount']
1921
+ unless params['DBInstanceSet'].nil?
1922
+ @DBInstanceSet = []
1923
+ params['DBInstanceSet'].each do |i|
1924
+ serverlessdbinstance_tmp = ServerlessDBInstance.new
1925
+ serverlessdbinstance_tmp.deserialize(i)
1926
+ @DBInstanceSet << serverlessdbinstance_tmp
1927
+ end
1928
+ end
1929
+ @RequestId = params['RequestId']
1930
+ end
1931
+ end
1932
+
1933
+ # DescribeSlowQueryAnalysis请求参数结构体
1934
+ class DescribeSlowQueryAnalysisRequest < TencentCloud::Common::AbstractModel
1935
+ # @param DBInstanceId: 实例ID。
1936
+ # @type DBInstanceId: String
1937
+ # @param StartTime: 查询起始时间戳,格式 “YYYY-MM-DD HH:mm:ss” ,日志保留时间默认为7天,起始时间不能超出保留时间范围。
1938
+ # @type StartTime: String
1939
+ # @param EndTime: 查询结束时间戳,格式 “YYYY-MM-DD HH:mm:ss”。
1940
+ # @type EndTime: String
1941
+ # @param DatabaseName: 根据数据库名进行筛选,可以为空。
1942
+ # @type DatabaseName: String
1943
+ # @param OrderBy: 排序维度。 可选参数,取值范围[CallNum,CostTime,AvgCostTime]。默认CallNum。
1944
+ # @type OrderBy: String
1945
+ # @param OrderByType: 排序类型。升序asc、降序desc。默认desc。
1946
+ # @type OrderByType: String
1947
+ # @param Limit: 分页大小。取值范围[1,100]。默认50。
1948
+ # @type Limit: Integer
1949
+ # @param Offset: 分页偏移。取值范围[0,INF)。默认0。
1950
+ # @type Offset: Integer
1951
+
1952
+ attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :OrderBy, :OrderByType, :Limit, :Offset
1953
+
1954
+ def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, orderby=nil, orderbytype=nil, limit=nil, offset=nil)
1955
+ @DBInstanceId = dbinstanceid
1956
+ @StartTime = starttime
1957
+ @EndTime = endtime
1958
+ @DatabaseName = databasename
1959
+ @OrderBy = orderby
1960
+ @OrderByType = orderbytype
1961
+ @Limit = limit
1962
+ @Offset = offset
1963
+ end
1964
+
1965
+ def deserialize(params)
1966
+ @DBInstanceId = params['DBInstanceId']
1967
+ @StartTime = params['StartTime']
1968
+ @EndTime = params['EndTime']
1969
+ @DatabaseName = params['DatabaseName']
1970
+ @OrderBy = params['OrderBy']
1971
+ @OrderByType = params['OrderByType']
1972
+ @Limit = params['Limit']
1973
+ @Offset = params['Offset']
1974
+ end
1975
+ end
1976
+
1977
+ # DescribeSlowQueryAnalysis返回参数结构体
1978
+ class DescribeSlowQueryAnalysisResponse < TencentCloud::Common::AbstractModel
1979
+ # @param TotalCount: 查询总条数。
1980
+ # @type TotalCount: Integer
1981
+ # @param Detail: 慢SQL统计分析接口返回详情。
1982
+ # @type Detail: :class:`Tencentcloud::Postgres.v20170312.models.Detail`
1983
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1984
+ # @type RequestId: String
1985
+
1986
+ attr_accessor :TotalCount, :Detail, :RequestId
1987
+
1988
+ def initialize(totalcount=nil, detail=nil, requestid=nil)
1989
+ @TotalCount = totalcount
1990
+ @Detail = detail
1991
+ @RequestId = requestid
1992
+ end
1993
+
1994
+ def deserialize(params)
1995
+ @TotalCount = params['TotalCount']
1996
+ unless params['Detail'].nil?
1997
+ @Detail = Detail.new
1998
+ @Detail.deserialize(params['Detail'])
1999
+ end
2000
+ @RequestId = params['RequestId']
2001
+ end
2002
+ end
2003
+
2004
+ # DescribeSlowQueryList请求参数结构体
2005
+ class DescribeSlowQueryListRequest < TencentCloud::Common::AbstractModel
2006
+ # @param DBInstanceId: 实例ID。
2007
+ # @type DBInstanceId: String
2008
+ # @param StartTime: 查询起始时间戳,格式 “YYYY-MM-DD HH:mm:ss” ,日志保留时间默认为7天,起始时间不能超出保留时间范围。
2009
+ # @type StartTime: String
2010
+ # @param EndTime: 查询结束时间戳,格式 “YYYY-MM-DD HH:mm:ss”。
2011
+ # @type EndTime: String
2012
+ # @param DatabaseName: 根据数据库名进行筛选,可以为空。
2013
+ # @type DatabaseName: String
2014
+ # @param OrderByType: 排序类型。升序asc、降序desc。默认为desc。
2015
+ # @type OrderByType: String
2016
+ # @param OrderBy: 排序维度。 可选参数,取值范围[SessionStartTime,Duration],默认为SessionStartTime。
2017
+ # @type OrderBy: String
2018
+ # @param Limit: 分页大小。取值范围[1,100],默认为20。
2019
+ # @type Limit: Integer
2020
+ # @param Offset: 分页偏移。取值范围[0,INF),默认为0。
2021
+ # @type Offset: Integer
2022
+
2023
+ attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :OrderByType, :OrderBy, :Limit, :Offset
2024
+
2025
+ def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, orderbytype=nil, orderby=nil, limit=nil, offset=nil)
2026
+ @DBInstanceId = dbinstanceid
2027
+ @StartTime = starttime
2028
+ @EndTime = endtime
2029
+ @DatabaseName = databasename
2030
+ @OrderByType = orderbytype
2031
+ @OrderBy = orderby
2032
+ @Limit = limit
2033
+ @Offset = offset
2034
+ end
2035
+
2036
+ def deserialize(params)
2037
+ @DBInstanceId = params['DBInstanceId']
2038
+ @StartTime = params['StartTime']
2039
+ @EndTime = params['EndTime']
2040
+ @DatabaseName = params['DatabaseName']
2041
+ @OrderByType = params['OrderByType']
2042
+ @OrderBy = params['OrderBy']
2043
+ @Limit = params['Limit']
2044
+ @Offset = params['Offset']
2045
+ end
2046
+ end
2047
+
2048
+ # DescribeSlowQueryList返回参数结构体
2049
+ class DescribeSlowQueryListResponse < TencentCloud::Common::AbstractModel
2050
+ # @param TotalCount: 选定时间范围内慢SQL总条数。
2051
+ # @type TotalCount: Integer
2052
+ # @param DurationAnalysis: 指定时间范围内,慢SQL耗时分段分析。
2053
+ # 注意:此字段可能返回 null,表示取不到有效值。
2054
+ # @type DurationAnalysis: Array
2055
+ # @param RawSlowQueryList: 指定时间范围内 慢SQL流水。
2056
+ # 注意:此字段可能返回 null,表示取不到有效值。
2057
+ # @type RawSlowQueryList: Array
2058
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2059
+ # @type RequestId: String
2060
+
2061
+ attr_accessor :TotalCount, :DurationAnalysis, :RawSlowQueryList, :RequestId
2062
+
2063
+ def initialize(totalcount=nil, durationanalysis=nil, rawslowquerylist=nil, requestid=nil)
2064
+ @TotalCount = totalcount
2065
+ @DurationAnalysis = durationanalysis
2066
+ @RawSlowQueryList = rawslowquerylist
2067
+ @RequestId = requestid
2068
+ end
2069
+
2070
+ def deserialize(params)
2071
+ @TotalCount = params['TotalCount']
2072
+ unless params['DurationAnalysis'].nil?
2073
+ @DurationAnalysis = []
2074
+ params['DurationAnalysis'].each do |i|
2075
+ durationanalysis_tmp = DurationAnalysis.new
2076
+ durationanalysis_tmp.deserialize(i)
2077
+ @DurationAnalysis << durationanalysis_tmp
2078
+ end
2079
+ end
2080
+ unless params['RawSlowQueryList'].nil?
2081
+ @RawSlowQueryList = []
2082
+ params['RawSlowQueryList'].each do |i|
2083
+ rawslowquery_tmp = RawSlowQuery.new
2084
+ rawslowquery_tmp.deserialize(i)
2085
+ @RawSlowQueryList << rawslowquery_tmp
2086
+ end
2087
+ end
2088
+ @RequestId = params['RequestId']
2089
+ end
2090
+ end
2091
+
2092
+ # DescribeZones请求参数结构体
2093
+ class DescribeZonesRequest < TencentCloud::Common::AbstractModel
2094
+
2095
+
2096
+ def initialize()
2097
+ end
2098
+
2099
+ def deserialize(params)
2100
+ end
2101
+ end
2102
+
2103
+ # DescribeZones返回参数结构体
2104
+ class DescribeZonesResponse < TencentCloud::Common::AbstractModel
2105
+ # @param TotalCount: 返回的结果数量。
2106
+ # @type TotalCount: Integer
2107
+ # @param ZoneSet: 可用区信息集合。
2108
+ # @type ZoneSet: Array
2109
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2110
+ # @type RequestId: String
2111
+
2112
+ attr_accessor :TotalCount, :ZoneSet, :RequestId
2113
+
2114
+ def initialize(totalcount=nil, zoneset=nil, requestid=nil)
2115
+ @TotalCount = totalcount
2116
+ @ZoneSet = zoneset
2117
+ @RequestId = requestid
2118
+ end
2119
+
2120
+ def deserialize(params)
2121
+ @TotalCount = params['TotalCount']
2122
+ unless params['ZoneSet'].nil?
2123
+ @ZoneSet = []
2124
+ params['ZoneSet'].each do |i|
2125
+ zoneinfo_tmp = ZoneInfo.new
2126
+ zoneinfo_tmp.deserialize(i)
2127
+ @ZoneSet << zoneinfo_tmp
2128
+ end
2129
+ end
2130
+ @RequestId = params['RequestId']
2131
+ end
2132
+ end
2133
+
2134
+ # DestroyDBInstance请求参数结构体
2135
+ class DestroyDBInstanceRequest < TencentCloud::Common::AbstractModel
2136
+ # @param DBInstanceId: 待下线实例ID
2137
+ # @type DBInstanceId: String
2138
+
2139
+ attr_accessor :DBInstanceId
2140
+
2141
+ def initialize(dbinstanceid=nil)
2142
+ @DBInstanceId = dbinstanceid
2143
+ end
2144
+
2145
+ def deserialize(params)
2146
+ @DBInstanceId = params['DBInstanceId']
2147
+ end
2148
+ end
2149
+
2150
+ # DestroyDBInstance返回参数结构体
2151
+ class DestroyDBInstanceResponse < TencentCloud::Common::AbstractModel
2152
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2153
+ # @type RequestId: String
2154
+
2155
+ attr_accessor :RequestId
2156
+
2157
+ def initialize(requestid=nil)
2158
+ @RequestId = requestid
2159
+ end
2160
+
2161
+ def deserialize(params)
2162
+ @RequestId = params['RequestId']
2163
+ end
2164
+ end
2165
+
2166
+ # 慢SQL 统计分析接口返回详情
2167
+ class Detail < TencentCloud::Common::AbstractModel
2168
+ # @param TotalTime: 输入时间范围内所有慢sql执行的总时间,单位毫秒(ms)
2169
+ # @type TotalTime: Float
2170
+ # @param TotalCallNum: 输入时间范围内所有慢sql总条数
2171
+ # @type TotalCallNum: Integer
2172
+ # @param AnalysisItems: 慢SQL统计分析列表
2173
+ # 注意:此字段可能返回 null,表示取不到有效值。
2174
+ # @type AnalysisItems: Array
2175
+
2176
+ attr_accessor :TotalTime, :TotalCallNum, :AnalysisItems
2177
+
2178
+ def initialize(totaltime=nil, totalcallnum=nil, analysisitems=nil)
2179
+ @TotalTime = totaltime
2180
+ @TotalCallNum = totalcallnum
2181
+ @AnalysisItems = analysisitems
2182
+ end
2183
+
2184
+ def deserialize(params)
2185
+ @TotalTime = params['TotalTime']
2186
+ @TotalCallNum = params['TotalCallNum']
2187
+ unless params['AnalysisItems'].nil?
2188
+ @AnalysisItems = []
2189
+ params['AnalysisItems'].each do |i|
2190
+ analysisitems_tmp = AnalysisItems.new
2191
+ analysisitems_tmp.deserialize(i)
2192
+ @AnalysisItems << analysisitems_tmp
2193
+ end
2194
+ end
2195
+ end
2196
+ end
2197
+
2198
+ # DisIsolateDBInstances请求参数结构体
2199
+ class DisIsolateDBInstancesRequest < TencentCloud::Common::AbstractModel
2200
+ # @param DBInstanceIdSet: 资源ID列表
2201
+ # @type DBInstanceIdSet: Array
2202
+ # @param Period: 包年包月实例解隔离时购买时常 以月为单位
2203
+ # @type Period: Integer
2204
+ # @param AutoVoucher: 是否使用代金券:true-使用,false-不使用,默认不使用
2205
+ # @type AutoVoucher: Boolean
2206
+ # @param VoucherIds: 代金券id列表
2207
+ # @type VoucherIds: Array
2208
+
2209
+ attr_accessor :DBInstanceIdSet, :Period, :AutoVoucher, :VoucherIds
2210
+
2211
+ def initialize(dbinstanceidset=nil, period=nil, autovoucher=nil, voucherids=nil)
2212
+ @DBInstanceIdSet = dbinstanceidset
2213
+ @Period = period
2214
+ @AutoVoucher = autovoucher
2215
+ @VoucherIds = voucherids
2216
+ end
2217
+
2218
+ def deserialize(params)
2219
+ @DBInstanceIdSet = params['DBInstanceIdSet']
2220
+ @Period = params['Period']
2221
+ @AutoVoucher = params['AutoVoucher']
2222
+ @VoucherIds = params['VoucherIds']
2223
+ end
2224
+ end
2225
+
2226
+ # DisIsolateDBInstances返回参数结构体
2227
+ class DisIsolateDBInstancesResponse < TencentCloud::Common::AbstractModel
2228
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2229
+ # @type RequestId: String
2230
+
2231
+ attr_accessor :RequestId
2232
+
2233
+ def initialize(requestid=nil)
2234
+ @RequestId = requestid
2235
+ end
2236
+
2237
+ def deserialize(params)
2238
+ @RequestId = params['RequestId']
2239
+ end
2240
+ end
2241
+
2242
+ # 慢SQL耗时分段分析
2243
+ class DurationAnalysis < TencentCloud::Common::AbstractModel
2244
+ # @param TimeSegment: 慢SQL耗时,时段
2245
+ # @type TimeSegment: String
2246
+ # @param Count: 对应时段区间慢SQL 条数
2247
+ # @type Count: Integer
2248
+
2249
+ attr_accessor :TimeSegment, :Count
2250
+
2251
+ def initialize(timesegment=nil, count=nil)
2252
+ @TimeSegment = timesegment
2253
+ @Count = count
2254
+ end
2255
+
2256
+ def deserialize(params)
2257
+ @TimeSegment = params['TimeSegment']
2258
+ @Count = params['Count']
2259
+ end
2260
+ end
2261
+
2262
+ # 错误日志详情
2263
+ class ErrLogDetail < TencentCloud::Common::AbstractModel
2264
+ # @param UserName: 用户名
2265
+ # @type UserName: String
2266
+ # @param Database: 数据库名字
2267
+ # @type Database: String
2268
+ # @param ErrTime: 错误发生时间
2269
+ # @type ErrTime: String
2270
+ # @param ErrMsg: 错误消息
2271
+ # @type ErrMsg: String
2272
+
2273
+ attr_accessor :UserName, :Database, :ErrTime, :ErrMsg
2274
+
2275
+ def initialize(username=nil, database=nil, errtime=nil, errmsg=nil)
2276
+ @UserName = username
2277
+ @Database = database
2278
+ @ErrTime = errtime
2279
+ @ErrMsg = errmsg
2280
+ end
2281
+
2282
+ def deserialize(params)
2283
+ @UserName = params['UserName']
2284
+ @Database = params['Database']
2285
+ @ErrTime = params['ErrTime']
2286
+ @ErrMsg = params['ErrMsg']
2287
+ end
2288
+ end
2289
+
2290
+ # 参数修改事件信息
2291
+ class EventInfo < TencentCloud::Common::AbstractModel
2292
+ # @param ParamName: 参数名
2293
+ # 注意:此字段可能返回 null,表示取不到有效值。
2294
+ # @type ParamName: String
2295
+ # @param OldValue: 原参数值
2296
+ # 注意:此字段可能返回 null,表示取不到有效值。
2297
+ # @type OldValue: String
2298
+ # @param NewValue: 本次修改期望参数值
2299
+ # 注意:此字段可能返回 null,表示取不到有效值。
2300
+ # @type NewValue: String
2301
+ # @param ModifyTime: 后台参数修改开始时间
2302
+ # 注意:此字段可能返回 null,表示取不到有效值。
2303
+ # @type ModifyTime: String
2304
+ # @param EffectiveTime: 后台参数生效开始时间
2305
+ # 注意:此字段可能返回 null,表示取不到有效值。
2306
+ # @type EffectiveTime: String
2307
+ # @param State: 修改状态
2308
+ # 注意:此字段可能返回 null,表示取不到有效值。
2309
+ # @type State: String
2310
+ # @param Operator: 操作者(一般为用户sub UIN)
2311
+ # 注意:此字段可能返回 null,表示取不到有效值。
2312
+ # @type Operator: String
2313
+ # @param EventLog: 时间日志。
2314
+ # 注意:此字段可能返回 null,表示取不到有效值。
2315
+ # @type EventLog: String
2316
+
2317
+ attr_accessor :ParamName, :OldValue, :NewValue, :ModifyTime, :EffectiveTime, :State, :Operator, :EventLog
2318
+
2319
+ def initialize(paramname=nil, oldvalue=nil, newvalue=nil, modifytime=nil, effectivetime=nil, state=nil, operator=nil, eventlog=nil)
2320
+ @ParamName = paramname
2321
+ @OldValue = oldvalue
2322
+ @NewValue = newvalue
2323
+ @ModifyTime = modifytime
2324
+ @EffectiveTime = effectivetime
2325
+ @State = state
2326
+ @Operator = operator
2327
+ @EventLog = eventlog
2328
+ end
2329
+
2330
+ def deserialize(params)
2331
+ @ParamName = params['ParamName']
2332
+ @OldValue = params['OldValue']
2333
+ @NewValue = params['NewValue']
2334
+ @ModifyTime = params['ModifyTime']
2335
+ @EffectiveTime = params['EffectiveTime']
2336
+ @State = params['State']
2337
+ @Operator = params['Operator']
2338
+ @EventLog = params['EventLog']
2339
+ end
2340
+ end
2341
+
2342
+ # 修改参数条目,以参数为维度
2343
+ class EventItem < TencentCloud::Common::AbstractModel
2344
+ # @param ParamName: 参数名
2345
+ # 注意:此字段可能返回 null,表示取不到有效值。
2346
+ # @type ParamName: String
2347
+ # @param EventCount: 修改事件数
2348
+ # 注意:此字段可能返回 null,表示取不到有效值。
2349
+ # @type EventCount: Integer
2350
+ # @param EventDetail: 修改时间详情
2351
+ # 注意:此字段可能返回 null,表示取不到有效值。
2352
+ # @type EventDetail: Array
2353
+
2354
+ attr_accessor :ParamName, :EventCount, :EventDetail
2355
+
2356
+ def initialize(paramname=nil, eventcount=nil, eventdetail=nil)
2357
+ @ParamName = paramname
2358
+ @EventCount = eventcount
2359
+ @EventDetail = eventdetail
2360
+ end
2361
+
2362
+ def deserialize(params)
2363
+ @ParamName = params['ParamName']
2364
+ @EventCount = params['EventCount']
2365
+ unless params['EventDetail'].nil?
2366
+ @EventDetail = []
2367
+ params['EventDetail'].each do |i|
2368
+ eventinfo_tmp = EventInfo.new
2369
+ eventinfo_tmp.deserialize(i)
2370
+ @EventDetail << eventinfo_tmp
2371
+ end
2372
+ end
2373
+ end
2374
+ end
2375
+
2376
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称等
2377
+ # * 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
2378
+ # * 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
2379
+ class Filter < TencentCloud::Common::AbstractModel
2380
+ # @param Name: 过滤键的名称。
2381
+ # @type Name: String
2382
+ # @param Values: 一个或者多个过滤值。
2383
+ # @type Values: Array
2384
+
2385
+ attr_accessor :Name, :Values
2386
+
2387
+ def initialize(name=nil, values=nil)
2388
+ @Name = name
2389
+ @Values = values
2390
+ end
2391
+
2392
+ def deserialize(params)
2393
+ @Name = params['Name']
2394
+ @Values = params['Values']
2395
+ end
2396
+ end
2397
+
2398
+ # InitDBInstances请求参数结构体
2399
+ class InitDBInstancesRequest < TencentCloud::Common::AbstractModel
2400
+ # @param DBInstanceIdSet: 实例ID集合。
2401
+ # @type DBInstanceIdSet: Array
2402
+ # @param AdminName: 实例根账号用户名。
2403
+ # @type AdminName: String
2404
+ # @param AdminPassword: 实例根账号用户名对应的密码。
2405
+ # @type AdminPassword: String
2406
+ # @param Charset: 实例字符集,目前只支持:UTF8、LATIN1。
2407
+ # @type Charset: String
2408
+
2409
+ attr_accessor :DBInstanceIdSet, :AdminName, :AdminPassword, :Charset
2410
+
2411
+ def initialize(dbinstanceidset=nil, adminname=nil, adminpassword=nil, charset=nil)
2412
+ @DBInstanceIdSet = dbinstanceidset
2413
+ @AdminName = adminname
2414
+ @AdminPassword = adminpassword
2415
+ @Charset = charset
2416
+ end
2417
+
2418
+ def deserialize(params)
2419
+ @DBInstanceIdSet = params['DBInstanceIdSet']
2420
+ @AdminName = params['AdminName']
2421
+ @AdminPassword = params['AdminPassword']
2422
+ @Charset = params['Charset']
2423
+ end
2424
+ end
2425
+
2426
+ # InitDBInstances返回参数结构体
2427
+ class InitDBInstancesResponse < TencentCloud::Common::AbstractModel
2428
+ # @param DBInstanceIdSet: 实例ID集合。
2429
+ # @type DBInstanceIdSet: Array
2430
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2431
+ # @type RequestId: String
2432
+
2433
+ attr_accessor :DBInstanceIdSet, :RequestId
2434
+
2435
+ def initialize(dbinstanceidset=nil, requestid=nil)
2436
+ @DBInstanceIdSet = dbinstanceidset
2437
+ @RequestId = requestid
2438
+ end
2439
+
2440
+ def deserialize(params)
2441
+ @DBInstanceIdSet = params['DBInstanceIdSet']
2442
+ @RequestId = params['RequestId']
2443
+ end
2444
+ end
2445
+
2446
+ # InquiryPriceCreateDBInstances请求参数结构体
2447
+ class InquiryPriceCreateDBInstancesRequest < TencentCloud::Common::AbstractModel
2448
+ # @param Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
2449
+ # @type Zone: String
2450
+ # @param SpecCode: 规格ID。该参数可以通过调用DescribeProductConfig接口的返回值中的SpecCode字段来获取。
2451
+ # @type SpecCode: String
2452
+ # @param Storage: 存储容量大小,单位:GB。
2453
+ # @type Storage: Integer
2454
+ # @param InstanceCount: 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。
2455
+ # @type InstanceCount: Integer
2456
+ # @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
2457
+ # @type Period: Integer
2458
+ # @param Pid: 计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
2459
+ # @type Pid: Integer
2460
+ # @param InstanceChargeType: 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
2461
+ # @type InstanceChargeType: String
2462
+
2463
+ attr_accessor :Zone, :SpecCode, :Storage, :InstanceCount, :Period, :Pid, :InstanceChargeType
2464
+
2465
+ def initialize(zone=nil, speccode=nil, storage=nil, instancecount=nil, period=nil, pid=nil, instancechargetype=nil)
2466
+ @Zone = zone
2467
+ @SpecCode = speccode
2468
+ @Storage = storage
2469
+ @InstanceCount = instancecount
2470
+ @Period = period
2471
+ @Pid = pid
2472
+ @InstanceChargeType = instancechargetype
2473
+ end
2474
+
2475
+ def deserialize(params)
2476
+ @Zone = params['Zone']
2477
+ @SpecCode = params['SpecCode']
2478
+ @Storage = params['Storage']
2479
+ @InstanceCount = params['InstanceCount']
2480
+ @Period = params['Period']
2481
+ @Pid = params['Pid']
2482
+ @InstanceChargeType = params['InstanceChargeType']
2483
+ end
2484
+ end
2485
+
2486
+ # InquiryPriceCreateDBInstances返回参数结构体
2487
+ class InquiryPriceCreateDBInstancesResponse < TencentCloud::Common::AbstractModel
2488
+ # @param OriginalPrice: 原始价格,单位:分
2489
+ # @type OriginalPrice: Integer
2490
+ # @param Price: 折后价格,单位:分
2491
+ # @type Price: Integer
2492
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2493
+ # @type RequestId: String
2494
+
2495
+ attr_accessor :OriginalPrice, :Price, :RequestId
2496
+
2497
+ def initialize(originalprice=nil, price=nil, requestid=nil)
2498
+ @OriginalPrice = originalprice
2499
+ @Price = price
2500
+ @RequestId = requestid
2501
+ end
2502
+
2503
+ def deserialize(params)
2504
+ @OriginalPrice = params['OriginalPrice']
2505
+ @Price = params['Price']
2506
+ @RequestId = params['RequestId']
2507
+ end
2508
+ end
2509
+
2510
+ # InquiryPriceRenewDBInstance请求参数结构体
2511
+ class InquiryPriceRenewDBInstanceRequest < TencentCloud::Common::AbstractModel
2512
+ # @param DBInstanceId: 实例ID
2513
+ # @type DBInstanceId: String
2514
+ # @param Period: 续费周期,按月计算,最大不超过48
2515
+ # @type Period: Integer
2516
+
2517
+ attr_accessor :DBInstanceId, :Period
2518
+
2519
+ def initialize(dbinstanceid=nil, period=nil)
2520
+ @DBInstanceId = dbinstanceid
2521
+ @Period = period
2522
+ end
2523
+
2524
+ def deserialize(params)
2525
+ @DBInstanceId = params['DBInstanceId']
2526
+ @Period = params['Period']
2527
+ end
2528
+ end
2529
+
2530
+ # InquiryPriceRenewDBInstance返回参数结构体
2531
+ class InquiryPriceRenewDBInstanceResponse < TencentCloud::Common::AbstractModel
2532
+ # @param OriginalPrice: 总费用,打折前的。比如24650表示246.5元
2533
+ # @type OriginalPrice: Integer
2534
+ # @param Price: 实际需要付款金额。比如24650表示246.5元
2535
+ # @type Price: Integer
2536
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2537
+ # @type RequestId: String
2538
+
2539
+ attr_accessor :OriginalPrice, :Price, :RequestId
2540
+
2541
+ def initialize(originalprice=nil, price=nil, requestid=nil)
2542
+ @OriginalPrice = originalprice
2543
+ @Price = price
2544
+ @RequestId = requestid
2545
+ end
2546
+
2547
+ def deserialize(params)
2548
+ @OriginalPrice = params['OriginalPrice']
2549
+ @Price = params['Price']
2550
+ @RequestId = params['RequestId']
2551
+ end
2552
+ end
2553
+
2554
+ # InquiryPriceUpgradeDBInstance请求参数结构体
2555
+ class InquiryPriceUpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel
2556
+ # @param Storage: 实例的磁盘大小,单位GB
2557
+ # @type Storage: Integer
2558
+ # @param Memory: 实例的内存大小,单位GB
2559
+ # @type Memory: Integer
2560
+ # @param DBInstanceId: 实例ID,形如postgres-hez4fh0v
2561
+ # @type DBInstanceId: String
2562
+ # @param InstanceChargeType: 实例计费类型,预付费或者后付费。PREPAID-预付费。目前只支持预付费。
2563
+ # @type InstanceChargeType: String
2564
+
2565
+ attr_accessor :Storage, :Memory, :DBInstanceId, :InstanceChargeType
2566
+
2567
+ def initialize(storage=nil, memory=nil, dbinstanceid=nil, instancechargetype=nil)
2568
+ @Storage = storage
2569
+ @Memory = memory
2570
+ @DBInstanceId = dbinstanceid
2571
+ @InstanceChargeType = instancechargetype
2572
+ end
2573
+
2574
+ def deserialize(params)
2575
+ @Storage = params['Storage']
2576
+ @Memory = params['Memory']
2577
+ @DBInstanceId = params['DBInstanceId']
2578
+ @InstanceChargeType = params['InstanceChargeType']
2579
+ end
2580
+ end
2581
+
2582
+ # InquiryPriceUpgradeDBInstance返回参数结构体
2583
+ class InquiryPriceUpgradeDBInstanceResponse < TencentCloud::Common::AbstractModel
2584
+ # @param OriginalPrice: 总费用,打折前的
2585
+ # @type OriginalPrice: Integer
2586
+ # @param Price: 实际需要付款金额
2587
+ # @type Price: Integer
2588
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2589
+ # @type RequestId: String
2590
+
2591
+ attr_accessor :OriginalPrice, :Price, :RequestId
2592
+
2593
+ def initialize(originalprice=nil, price=nil, requestid=nil)
2594
+ @OriginalPrice = originalprice
2595
+ @Price = price
2596
+ @RequestId = requestid
2597
+ end
2598
+
2599
+ def deserialize(params)
2600
+ @OriginalPrice = params['OriginalPrice']
2601
+ @Price = params['Price']
2602
+ @RequestId = params['RequestId']
2603
+ end
2604
+ end
2605
+
2606
+ # IsolateDBInstances请求参数结构体
2607
+ class IsolateDBInstancesRequest < TencentCloud::Common::AbstractModel
2608
+ # @param DBInstanceIdSet: 实例ID集合
2609
+ # @type DBInstanceIdSet: Array
2610
+
2611
+ attr_accessor :DBInstanceIdSet
2612
+
2613
+ def initialize(dbinstanceidset=nil)
2614
+ @DBInstanceIdSet = dbinstanceidset
2615
+ end
2616
+
2617
+ def deserialize(params)
2618
+ @DBInstanceIdSet = params['DBInstanceIdSet']
2619
+ end
2620
+ end
2621
+
2622
+ # IsolateDBInstances返回参数结构体
2623
+ class IsolateDBInstancesResponse < TencentCloud::Common::AbstractModel
2624
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2625
+ # @type RequestId: String
2626
+
2627
+ attr_accessor :RequestId
2628
+
2629
+ def initialize(requestid=nil)
2630
+ @RequestId = requestid
2631
+ end
2632
+
2633
+ def deserialize(params)
2634
+ @RequestId = params['RequestId']
2635
+ end
2636
+ end
2637
+
2638
+ # ModifyAccountRemark请求参数结构体
2639
+ class ModifyAccountRemarkRequest < TencentCloud::Common::AbstractModel
2640
+ # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv
2641
+ # @type DBInstanceId: String
2642
+ # @param UserName: 实例用户名
2643
+ # @type UserName: String
2644
+ # @param Remark: 用户UserName对应的新备注
2645
+ # @type Remark: String
2646
+
2647
+ attr_accessor :DBInstanceId, :UserName, :Remark
2648
+
2649
+ def initialize(dbinstanceid=nil, username=nil, remark=nil)
2650
+ @DBInstanceId = dbinstanceid
2651
+ @UserName = username
2652
+ @Remark = remark
2653
+ end
2654
+
2655
+ def deserialize(params)
2656
+ @DBInstanceId = params['DBInstanceId']
2657
+ @UserName = params['UserName']
2658
+ @Remark = params['Remark']
2659
+ end
2660
+ end
2661
+
2662
+ # ModifyAccountRemark返回参数结构体
2663
+ class ModifyAccountRemarkResponse < TencentCloud::Common::AbstractModel
2664
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2665
+ # @type RequestId: String
2666
+
2667
+ attr_accessor :RequestId
2668
+
2669
+ def initialize(requestid=nil)
2670
+ @RequestId = requestid
2671
+ end
2672
+
2673
+ def deserialize(params)
2674
+ @RequestId = params['RequestId']
2675
+ end
2676
+ end
2677
+
2678
+ # ModifyDBInstanceName请求参数结构体
2679
+ class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel
2680
+ # @param DBInstanceId: 数据库实例ID,形如postgres-6fego161
2681
+ # @type DBInstanceId: String
2682
+ # @param InstanceName: 新的数据库实例名字
2683
+ # @type InstanceName: String
2684
+
2685
+ attr_accessor :DBInstanceId, :InstanceName
2686
+
2687
+ def initialize(dbinstanceid=nil, instancename=nil)
2688
+ @DBInstanceId = dbinstanceid
2689
+ @InstanceName = instancename
2690
+ end
2691
+
2692
+ def deserialize(params)
2693
+ @DBInstanceId = params['DBInstanceId']
2694
+ @InstanceName = params['InstanceName']
2695
+ end
2696
+ end
2697
+
2698
+ # ModifyDBInstanceName返回参数结构体
2699
+ class ModifyDBInstanceNameResponse < TencentCloud::Common::AbstractModel
2700
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2701
+ # @type RequestId: String
2702
+
2703
+ attr_accessor :RequestId
2704
+
2705
+ def initialize(requestid=nil)
2706
+ @RequestId = requestid
2707
+ end
2708
+
2709
+ def deserialize(params)
2710
+ @RequestId = params['RequestId']
2711
+ end
2712
+ end
2713
+
2714
+ # ModifyDBInstanceParameters请求参数结构体
2715
+ class ModifyDBInstanceParametersRequest < TencentCloud::Common::AbstractModel
2716
+ # @param DBInstanceId: 实例ID
2717
+ # @type DBInstanceId: String
2718
+ # @param ParamList: 待修改参数及期望值
2719
+ # @type ParamList: Array
2720
+
2721
+ attr_accessor :DBInstanceId, :ParamList
2722
+
2723
+ def initialize(dbinstanceid=nil, paramlist=nil)
2724
+ @DBInstanceId = dbinstanceid
2725
+ @ParamList = paramlist
2726
+ end
2727
+
2728
+ def deserialize(params)
2729
+ @DBInstanceId = params['DBInstanceId']
2730
+ unless params['ParamList'].nil?
2731
+ @ParamList = []
2732
+ params['ParamList'].each do |i|
2733
+ paramentry_tmp = ParamEntry.new
2734
+ paramentry_tmp.deserialize(i)
2735
+ @ParamList << paramentry_tmp
2736
+ end
2737
+ end
2738
+ end
2739
+ end
2740
+
2741
+ # ModifyDBInstanceParameters返回参数结构体
2742
+ class ModifyDBInstanceParametersResponse < TencentCloud::Common::AbstractModel
2743
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2744
+ # @type RequestId: String
2745
+
2746
+ attr_accessor :RequestId
2747
+
2748
+ def initialize(requestid=nil)
2749
+ @RequestId = requestid
2750
+ end
2751
+
2752
+ def deserialize(params)
2753
+ @RequestId = params['RequestId']
2754
+ end
2755
+ end
2756
+
2757
+ # ModifyDBInstanceReadOnlyGroup请求参数结构体
2758
+ class ModifyDBInstanceReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
2759
+ # @param DBInstanceId: 实例ID
2760
+ # @type DBInstanceId: String
2761
+ # @param ReadOnlyGroupId: 当前实例所在只读组ID
2762
+ # @type ReadOnlyGroupId: String
2763
+ # @param NewReadOnlyGroupId: 实例修改的目标只读组ID
2764
+ # @type NewReadOnlyGroupId: String
2765
+
2766
+ attr_accessor :DBInstanceId, :ReadOnlyGroupId, :NewReadOnlyGroupId
2767
+
2768
+ def initialize(dbinstanceid=nil, readonlygroupid=nil, newreadonlygroupid=nil)
2769
+ @DBInstanceId = dbinstanceid
2770
+ @ReadOnlyGroupId = readonlygroupid
2771
+ @NewReadOnlyGroupId = newreadonlygroupid
2772
+ end
2773
+
2774
+ def deserialize(params)
2775
+ @DBInstanceId = params['DBInstanceId']
2776
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
2777
+ @NewReadOnlyGroupId = params['NewReadOnlyGroupId']
2778
+ end
2779
+ end
2780
+
2781
+ # ModifyDBInstanceReadOnlyGroup返回参数结构体
2782
+ class ModifyDBInstanceReadOnlyGroupResponse < TencentCloud::Common::AbstractModel
2783
+ # @param FlowId: 流程ID
2784
+ # @type FlowId: Integer
2785
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2786
+ # @type RequestId: String
2787
+
2788
+ attr_accessor :FlowId, :RequestId
2789
+
2790
+ def initialize(flowid=nil, requestid=nil)
2791
+ @FlowId = flowid
2792
+ @RequestId = requestid
2793
+ end
2794
+
2795
+ def deserialize(params)
2796
+ @FlowId = params['FlowId']
2797
+ @RequestId = params['RequestId']
2798
+ end
2799
+ end
2800
+
2801
+ # ModifyDBInstanceSpec请求参数结构体
2802
+ class ModifyDBInstanceSpecRequest < TencentCloud::Common::AbstractModel
2803
+ # @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。
2804
+ # @type DBInstanceId: String
2805
+ # @param Memory: 修改后的实例内存大小,单位GiB。
2806
+ # @type Memory: Integer
2807
+ # @param Storage: 修改后的实例磁盘大小,单位GiB。
2808
+ # @type Storage: Integer
2809
+ # @param AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用。
2810
+ # @type AutoVoucher: Integer
2811
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
2812
+ # @type VoucherIds: Array
2813
+ # @param ActivityId: 活动ID。
2814
+ # @type ActivityId: Integer
2815
+ # @param SwitchTag: 指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。
2816
+ # @type SwitchTag: Integer
2817
+ # @param SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。
2818
+ # @type SwitchStartTime: String
2819
+ # @param SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。
2820
+ # @type SwitchEndTime: String
2821
+
2822
+ attr_accessor :DBInstanceId, :Memory, :Storage, :AutoVoucher, :VoucherIds, :ActivityId, :SwitchTag, :SwitchStartTime, :SwitchEndTime
2823
+
2824
+ def initialize(dbinstanceid=nil, memory=nil, storage=nil, autovoucher=nil, voucherids=nil, activityid=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil)
2825
+ @DBInstanceId = dbinstanceid
2826
+ @Memory = memory
2827
+ @Storage = storage
2828
+ @AutoVoucher = autovoucher
2829
+ @VoucherIds = voucherids
2830
+ @ActivityId = activityid
2831
+ @SwitchTag = switchtag
2832
+ @SwitchStartTime = switchstarttime
2833
+ @SwitchEndTime = switchendtime
2834
+ end
2835
+
2836
+ def deserialize(params)
2837
+ @DBInstanceId = params['DBInstanceId']
2838
+ @Memory = params['Memory']
2839
+ @Storage = params['Storage']
2840
+ @AutoVoucher = params['AutoVoucher']
2841
+ @VoucherIds = params['VoucherIds']
2842
+ @ActivityId = params['ActivityId']
2843
+ @SwitchTag = params['SwitchTag']
2844
+ @SwitchStartTime = params['SwitchStartTime']
2845
+ @SwitchEndTime = params['SwitchEndTime']
2846
+ end
2847
+ end
2848
+
2849
+ # ModifyDBInstanceSpec返回参数结构体
2850
+ class ModifyDBInstanceSpecResponse < TencentCloud::Common::AbstractModel
2851
+ # @param DealName: 订单号。
2852
+ # @type DealName: String
2853
+ # @param BillId: 冻结流水号。
2854
+ # @type BillId: String
2855
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2856
+ # @type RequestId: String
2857
+
2858
+ attr_accessor :DealName, :BillId, :RequestId
2859
+
2860
+ def initialize(dealname=nil, billid=nil, requestid=nil)
2861
+ @DealName = dealname
2862
+ @BillId = billid
2863
+ @RequestId = requestid
2864
+ end
2865
+
2866
+ def deserialize(params)
2867
+ @DealName = params['DealName']
2868
+ @BillId = params['BillId']
2869
+ @RequestId = params['RequestId']
2870
+ end
2871
+ end
2872
+
2873
+ # ModifyDBInstancesProject请求参数结构体
2874
+ class ModifyDBInstancesProjectRequest < TencentCloud::Common::AbstractModel
2875
+ # @param DBInstanceIdSet: postgresql实例ID数组
2876
+ # @type DBInstanceIdSet: Array
2877
+ # @param ProjectId: postgresql实例所属新项目的ID
2878
+ # @type ProjectId: String
2879
+
2880
+ attr_accessor :DBInstanceIdSet, :ProjectId
2881
+
2882
+ def initialize(dbinstanceidset=nil, projectid=nil)
2883
+ @DBInstanceIdSet = dbinstanceidset
2884
+ @ProjectId = projectid
2885
+ end
2886
+
2887
+ def deserialize(params)
2888
+ @DBInstanceIdSet = params['DBInstanceIdSet']
2889
+ @ProjectId = params['ProjectId']
2890
+ end
2891
+ end
2892
+
2893
+ # ModifyDBInstancesProject返回参数结构体
2894
+ class ModifyDBInstancesProjectResponse < TencentCloud::Common::AbstractModel
2895
+ # @param Count: 转移项目成功的实例个数
2896
+ # @type Count: Integer
2897
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2898
+ # @type RequestId: String
2899
+
2900
+ attr_accessor :Count, :RequestId
2901
+
2902
+ def initialize(count=nil, requestid=nil)
2903
+ @Count = count
2904
+ @RequestId = requestid
2905
+ end
2906
+
2907
+ def deserialize(params)
2908
+ @Count = params['Count']
2909
+ @RequestId = params['RequestId']
2910
+ end
2911
+ end
2912
+
2913
+ # ModifyReadOnlyGroupConfig请求参数结构体
2914
+ class ModifyReadOnlyGroupConfigRequest < TencentCloud::Common::AbstractModel
2915
+ # @param ReadOnlyGroupId: 只读组ID
2916
+ # @type ReadOnlyGroupId: String
2917
+ # @param ReadOnlyGroupName: 只读组名称
2918
+ # @type ReadOnlyGroupName: String
2919
+ # @param ReplayLagEliminate: 延迟时间配置开关:0关、1开
2920
+ # @type ReplayLagEliminate: Integer
2921
+ # @param ReplayLatencyEliminate: 延迟日志大小配置开关:0关、1开
2922
+ # @type ReplayLatencyEliminate: Integer
2923
+ # @param MaxReplayLatency: 延迟日志大小阈值,单位MB
2924
+ # @type MaxReplayLatency: Integer
2925
+ # @param MaxReplayLag: 延迟时间大小阈值,单位ms
2926
+ # @type MaxReplayLag: Integer
2927
+ # @param Rebalance: 自动负载均衡开关:0关、1开
2928
+ # @type Rebalance: Integer
2929
+ # @param MinDelayEliminateReserve: 延迟剔除最小保留实例数
2930
+ # @type MinDelayEliminateReserve: Integer
2931
+
2932
+ attr_accessor :ReadOnlyGroupId, :ReadOnlyGroupName, :ReplayLagEliminate, :ReplayLatencyEliminate, :MaxReplayLatency, :MaxReplayLag, :Rebalance, :MinDelayEliminateReserve
2933
+
2934
+ def initialize(readonlygroupid=nil, readonlygroupname=nil, replaylageliminate=nil, replaylatencyeliminate=nil, maxreplaylatency=nil, maxreplaylag=nil, rebalance=nil, mindelayeliminatereserve=nil)
2935
+ @ReadOnlyGroupId = readonlygroupid
2936
+ @ReadOnlyGroupName = readonlygroupname
2937
+ @ReplayLagEliminate = replaylageliminate
2938
+ @ReplayLatencyEliminate = replaylatencyeliminate
2939
+ @MaxReplayLatency = maxreplaylatency
2940
+ @MaxReplayLag = maxreplaylag
2941
+ @Rebalance = rebalance
2942
+ @MinDelayEliminateReserve = mindelayeliminatereserve
2943
+ end
2944
+
2945
+ def deserialize(params)
2946
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
2947
+ @ReadOnlyGroupName = params['ReadOnlyGroupName']
2948
+ @ReplayLagEliminate = params['ReplayLagEliminate']
2949
+ @ReplayLatencyEliminate = params['ReplayLatencyEliminate']
2950
+ @MaxReplayLatency = params['MaxReplayLatency']
2951
+ @MaxReplayLag = params['MaxReplayLag']
2952
+ @Rebalance = params['Rebalance']
2953
+ @MinDelayEliminateReserve = params['MinDelayEliminateReserve']
2954
+ end
2955
+ end
2956
+
2957
+ # ModifyReadOnlyGroupConfig返回参数结构体
2958
+ class ModifyReadOnlyGroupConfigResponse < TencentCloud::Common::AbstractModel
2959
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2960
+ # @type RequestId: String
2961
+
2962
+ attr_accessor :RequestId
2963
+
2964
+ def initialize(requestid=nil)
2965
+ @RequestId = requestid
2966
+ end
2967
+
2968
+ def deserialize(params)
2969
+ @RequestId = params['RequestId']
2970
+ end
2971
+ end
2972
+
2973
+ # ModifySwitchTimePeriod请求参数结构体
2974
+ class ModifySwitchTimePeriodRequest < TencentCloud::Common::AbstractModel
2975
+ # @param DBInstanceId: 处于等待切换状态中的实例ID
2976
+ # @type DBInstanceId: String
2977
+ # @param SwitchTag: 入参取值为 0 ,代表立即切换。
2978
+ # @type SwitchTag: Integer
2979
+
2980
+ attr_accessor :DBInstanceId, :SwitchTag
2981
+
2982
+ def initialize(dbinstanceid=nil, switchtag=nil)
2983
+ @DBInstanceId = dbinstanceid
2984
+ @SwitchTag = switchtag
2985
+ end
2986
+
2987
+ def deserialize(params)
2988
+ @DBInstanceId = params['DBInstanceId']
2989
+ @SwitchTag = params['SwitchTag']
2990
+ end
2991
+ end
2992
+
2993
+ # ModifySwitchTimePeriod返回参数结构体
2994
+ class ModifySwitchTimePeriodResponse < TencentCloud::Common::AbstractModel
2995
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2996
+ # @type RequestId: String
2997
+
2998
+ attr_accessor :RequestId
2999
+
3000
+ def initialize(requestid=nil)
3001
+ @RequestId = requestid
3002
+ end
3003
+
3004
+ def deserialize(params)
3005
+ @RequestId = params['RequestId']
3006
+ end
3007
+ end
3008
+
3009
+ # 单条SlowQuery信息
3010
+ class NormalQueryItem < TencentCloud::Common::AbstractModel
3011
+ # @param UserName: 用户名
3012
+ # @type UserName: String
3013
+ # @param Calls: 调用次数
3014
+ # @type Calls: Integer
3015
+ # @param CallsGrids: 粒度点
3016
+ # @type CallsGrids: Array
3017
+ # @param CostTime: 花费总时间
3018
+ # @type CostTime: Float
3019
+ # @param Rows: 影响的行数
3020
+ # @type Rows: Integer
3021
+ # @param MinCostTime: 花费最小时间
3022
+ # @type MinCostTime: Float
3023
+ # @param MaxCostTime: 花费最大时间
3024
+ # @type MaxCostTime: Float
3025
+ # @param FirstTime: 最早一条慢SQL时间
3026
+ # @type FirstTime: String
3027
+ # @param LastTime: 最晚一条慢SQL时间
3028
+ # @type LastTime: String
3029
+ # @param SharedReadBlks: 读共享内存块数
3030
+ # @type SharedReadBlks: Integer
3031
+ # @param SharedWriteBlks: 写共享内存块数
3032
+ # @type SharedWriteBlks: Integer
3033
+ # @param ReadCostTime: 读io总耗时
3034
+ # @type ReadCostTime: Integer
3035
+ # @param WriteCostTime: 写io总耗时
3036
+ # @type WriteCostTime: Integer
3037
+ # @param DatabaseName: 数据库名字
3038
+ # @type DatabaseName: String
3039
+ # @param NormalQuery: 脱敏后的慢SQL
3040
+ # @type NormalQuery: String
3041
+
3042
+ attr_accessor :UserName, :Calls, :CallsGrids, :CostTime, :Rows, :MinCostTime, :MaxCostTime, :FirstTime, :LastTime, :SharedReadBlks, :SharedWriteBlks, :ReadCostTime, :WriteCostTime, :DatabaseName, :NormalQuery
3043
+
3044
+ def initialize(username=nil, calls=nil, callsgrids=nil, costtime=nil, rows=nil, mincosttime=nil, maxcosttime=nil, firsttime=nil, lasttime=nil, sharedreadblks=nil, sharedwriteblks=nil, readcosttime=nil, writecosttime=nil, databasename=nil, normalquery=nil)
3045
+ @UserName = username
3046
+ @Calls = calls
3047
+ @CallsGrids = callsgrids
3048
+ @CostTime = costtime
3049
+ @Rows = rows
3050
+ @MinCostTime = mincosttime
3051
+ @MaxCostTime = maxcosttime
3052
+ @FirstTime = firsttime
3053
+ @LastTime = lasttime
3054
+ @SharedReadBlks = sharedreadblks
3055
+ @SharedWriteBlks = sharedwriteblks
3056
+ @ReadCostTime = readcosttime
3057
+ @WriteCostTime = writecosttime
3058
+ @DatabaseName = databasename
3059
+ @NormalQuery = normalquery
3060
+ end
3061
+
3062
+ def deserialize(params)
3063
+ @UserName = params['UserName']
3064
+ @Calls = params['Calls']
3065
+ @CallsGrids = params['CallsGrids']
3066
+ @CostTime = params['CostTime']
3067
+ @Rows = params['Rows']
3068
+ @MinCostTime = params['MinCostTime']
3069
+ @MaxCostTime = params['MaxCostTime']
3070
+ @FirstTime = params['FirstTime']
3071
+ @LastTime = params['LastTime']
3072
+ @SharedReadBlks = params['SharedReadBlks']
3073
+ @SharedWriteBlks = params['SharedWriteBlks']
3074
+ @ReadCostTime = params['ReadCostTime']
3075
+ @WriteCostTime = params['WriteCostTime']
3076
+ @DatabaseName = params['DatabaseName']
3077
+ @NormalQuery = params['NormalQuery']
3078
+ end
3079
+ end
3080
+
3081
+ # OpenDBExtranetAccess请求参数结构体
3082
+ class OpenDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
3083
+ # @param DBInstanceId: 实例ID,形如postgres-hez4fh0v
3084
+ # @type DBInstanceId: String
3085
+ # @param IsIpv6: 是否开通Ipv6外网,1:是,0:否
3086
+ # @type IsIpv6: Integer
3087
+
3088
+ attr_accessor :DBInstanceId, :IsIpv6
3089
+
3090
+ def initialize(dbinstanceid=nil, isipv6=nil)
3091
+ @DBInstanceId = dbinstanceid
3092
+ @IsIpv6 = isipv6
3093
+ end
3094
+
3095
+ def deserialize(params)
3096
+ @DBInstanceId = params['DBInstanceId']
3097
+ @IsIpv6 = params['IsIpv6']
3098
+ end
3099
+ end
3100
+
3101
+ # OpenDBExtranetAccess返回参数结构体
3102
+ class OpenDBExtranetAccessResponse < TencentCloud::Common::AbstractModel
3103
+ # @param FlowId: 异步任务流程ID
3104
+ # @type FlowId: Integer
3105
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3106
+ # @type RequestId: String
3107
+
3108
+ attr_accessor :FlowId, :RequestId
3109
+
3110
+ def initialize(flowid=nil, requestid=nil)
3111
+ @FlowId = flowid
3112
+ @RequestId = requestid
3113
+ end
3114
+
3115
+ def deserialize(params)
3116
+ @FlowId = params['FlowId']
3117
+ @RequestId = params['RequestId']
3118
+ end
3119
+ end
3120
+
3121
+ # OpenServerlessDBExtranetAccess请求参数结构体
3122
+ class OpenServerlessDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
3123
+ # @param DBInstanceId: 实例的唯一标识符
3124
+ # @type DBInstanceId: String
3125
+ # @param DBInstanceName: 实例名称
3126
+ # @type DBInstanceName: String
3127
+
3128
+ attr_accessor :DBInstanceId, :DBInstanceName
3129
+
3130
+ def initialize(dbinstanceid=nil, dbinstancename=nil)
3131
+ @DBInstanceId = dbinstanceid
3132
+ @DBInstanceName = dbinstancename
3133
+ end
3134
+
3135
+ def deserialize(params)
3136
+ @DBInstanceId = params['DBInstanceId']
3137
+ @DBInstanceName = params['DBInstanceName']
3138
+ end
3139
+ end
3140
+
3141
+ # OpenServerlessDBExtranetAccess返回参数结构体
3142
+ class OpenServerlessDBExtranetAccessResponse < TencentCloud::Common::AbstractModel
3143
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3144
+ # @type RequestId: String
3145
+
3146
+ attr_accessor :RequestId
3147
+
3148
+ def initialize(requestid=nil)
3149
+ @RequestId = requestid
3150
+ end
3151
+
3152
+ def deserialize(params)
3153
+ @RequestId = params['RequestId']
3154
+ end
3155
+ end
3156
+
3157
+ # 批量修改参数
3158
+ class ParamEntry < TencentCloud::Common::AbstractModel
3159
+ # @param Name: 参数名
3160
+ # @type Name: String
3161
+ # @param ExpectedValue: 修改参数值。入参均以字符串形式传递,例如:小数”0.1“、整数”1000“、枚举”replica“
3162
+ # @type ExpectedValue: String
3163
+
3164
+ attr_accessor :Name, :ExpectedValue
3165
+
3166
+ def initialize(name=nil, expectedvalue=nil)
3167
+ @Name = name
3168
+ @ExpectedValue = expectedvalue
3169
+ end
3170
+
3171
+ def deserialize(params)
3172
+ @Name = params['Name']
3173
+ @ExpectedValue = params['ExpectedValue']
3174
+ end
3175
+ end
3176
+
3177
+ # 参数详情
3178
+ class ParamInfo < TencentCloud::Common::AbstractModel
3179
+ # @param ID: 参数ID
3180
+ # 注意:此字段可能返回 null,表示取不到有效值。
3181
+ # @type ID: Integer
3182
+ # @param Name: 参数名
3183
+ # 注意:此字段可能返回 null,表示取不到有效值。
3184
+ # @type Name: String
3185
+ # @param ParamValueType: 参数值类型:integer(整型)、real(浮点型)、bool(布尔型)、enum(枚举类型)、mutil_enum(枚举类型、支持多选)。
3186
+ # 当参数类型为integer(整型)、real(浮点型)时,参数的取值范围根据返回值的Max、Min确定;
3187
+ # 当参数类型为bool(布尔型)时,参数设置值取值范围是true | false;
3188
+ # 当参数类型为enum(枚举类型)、mutil_enum(多枚举类型)时,参数的取值范围由返回值中的EnumValue确定。
3189
+ # 注意:此字段可能返回 null,表示取不到有效值。
3190
+ # @type ParamValueType: String
3191
+ # @param Unit: 参数值 单位。参数没有单位是,该字段返回空
3192
+ # 注意:此字段可能返回 null,表示取不到有效值。
3193
+ # @type Unit: String
3194
+ # @param DefaultValue: 参数默认值。以字符串形式返回
3195
+ # 注意:此字段可能返回 null,表示取不到有效值。
3196
+ # @type DefaultValue: String
3197
+ # @param CurrentValue: 参数当前运行值。以字符串形式返回
3198
+ # 注意:此字段可能返回 null,表示取不到有效值。
3199
+ # @type CurrentValue: String
3200
+ # @param EnumValue: 枚举类型参数,取值范围
3201
+ # 注意:此字段可能返回 null,表示取不到有效值。
3202
+ # @type EnumValue: Array
3203
+ # @param Max: 数值类型(integer、real)参数,取值下界
3204
+ # 注意:此字段可能返回 null,表示取不到有效值。
3205
+ # @type Max: Float
3206
+ # @param Min: 数值类型(integer、real)参数,取值上界
3207
+ # 注意:此字段可能返回 null,表示取不到有效值。
3208
+ # @type Min: Float
3209
+ # @param ParamDescriptionCH: 参数中文描述
3210
+ # 注意:此字段可能返回 null,表示取不到有效值。
3211
+ # @type ParamDescriptionCH: String
3212
+ # @param ParamDescriptionEN: 参数英文描述
3213
+ # 注意:此字段可能返回 null,表示取不到有效值。
3214
+ # @type ParamDescriptionEN: String
3215
+ # @param NeedReboot: 参数修改,是否重启生效。(true为需要,false为不需要)
3216
+ # 注意:此字段可能返回 null,表示取不到有效值。
3217
+ # @type NeedReboot: Boolean
3218
+ # @param ClassificationCN: 参数中文分类
3219
+ # 注意:此字段可能返回 null,表示取不到有效值。
3220
+ # @type ClassificationCN: String
3221
+ # @param ClassificationEN: 参数英文分类
3222
+ # 注意:此字段可能返回 null,表示取不到有效值。
3223
+ # @type ClassificationEN: String
3224
+ # @param SpecRelated: 是否和规格相关。(true为相关,false为不想关)
3225
+ # 注意:此字段可能返回 null,表示取不到有效值。
3226
+ # @type SpecRelated: Boolean
3227
+ # @param Advanced: 是否为重点参数。(true为重点参数,修改是需要重点关注,可能会影响实例性能)
3228
+ # 注意:此字段可能返回 null,表示取不到有效值。
3229
+ # @type Advanced: Boolean
3230
+ # @param LastModifyTime: 参数最后一次修改时间
3231
+ # 注意:此字段可能返回 null,表示取不到有效值。
3232
+ # @type LastModifyTime: String
3233
+
3234
+ attr_accessor :ID, :Name, :ParamValueType, :Unit, :DefaultValue, :CurrentValue, :EnumValue, :Max, :Min, :ParamDescriptionCH, :ParamDescriptionEN, :NeedReboot, :ClassificationCN, :ClassificationEN, :SpecRelated, :Advanced, :LastModifyTime
3235
+
3236
+ def initialize(id=nil, name=nil, paramvaluetype=nil, unit=nil, defaultvalue=nil, currentvalue=nil, enumvalue=nil, max=nil, min=nil, paramdescriptionch=nil, paramdescriptionen=nil, needreboot=nil, classificationcn=nil, classificationen=nil, specrelated=nil, advanced=nil, lastmodifytime=nil)
3237
+ @ID = id
3238
+ @Name = name
3239
+ @ParamValueType = paramvaluetype
3240
+ @Unit = unit
3241
+ @DefaultValue = defaultvalue
3242
+ @CurrentValue = currentvalue
3243
+ @EnumValue = enumvalue
3244
+ @Max = max
3245
+ @Min = min
3246
+ @ParamDescriptionCH = paramdescriptionch
3247
+ @ParamDescriptionEN = paramdescriptionen
3248
+ @NeedReboot = needreboot
3249
+ @ClassificationCN = classificationcn
3250
+ @ClassificationEN = classificationen
3251
+ @SpecRelated = specrelated
3252
+ @Advanced = advanced
3253
+ @LastModifyTime = lastmodifytime
3254
+ end
3255
+
3256
+ def deserialize(params)
3257
+ @ID = params['ID']
3258
+ @Name = params['Name']
3259
+ @ParamValueType = params['ParamValueType']
3260
+ @Unit = params['Unit']
3261
+ @DefaultValue = params['DefaultValue']
3262
+ @CurrentValue = params['CurrentValue']
3263
+ @EnumValue = params['EnumValue']
3264
+ @Max = params['Max']
3265
+ @Min = params['Min']
3266
+ @ParamDescriptionCH = params['ParamDescriptionCH']
3267
+ @ParamDescriptionEN = params['ParamDescriptionEN']
3268
+ @NeedReboot = params['NeedReboot']
3269
+ @ClassificationCN = params['ClassificationCN']
3270
+ @ClassificationEN = params['ClassificationEN']
3271
+ @SpecRelated = params['SpecRelated']
3272
+ @Advanced = params['Advanced']
3273
+ @LastModifyTime = params['LastModifyTime']
3274
+ end
3275
+ end
3276
+
3277
+ # 订单详情
3278
+ class PgDeal < TencentCloud::Common::AbstractModel
3279
+ # @param DealName: 订单名
3280
+ # @type DealName: String
3281
+ # @param OwnerUin: 所属用户
3282
+ # @type OwnerUin: String
3283
+ # @param Count: 订单涉及多少个实例
3284
+ # @type Count: Integer
3285
+ # @param PayMode: 付费模式。1-预付费;0-后付费
3286
+ # @type PayMode: Integer
3287
+ # @param FlowId: 异步任务流程ID
3288
+ # @type FlowId: Integer
3289
+ # @param DBInstanceIdSet: 实例ID数组
3290
+ # @type DBInstanceIdSet: Array
3291
+
3292
+ attr_accessor :DealName, :OwnerUin, :Count, :PayMode, :FlowId, :DBInstanceIdSet
3293
+
3294
+ def initialize(dealname=nil, owneruin=nil, count=nil, paymode=nil, flowid=nil, dbinstanceidset=nil)
3295
+ @DealName = dealname
3296
+ @OwnerUin = owneruin
3297
+ @Count = count
3298
+ @PayMode = paymode
3299
+ @FlowId = flowid
3300
+ @DBInstanceIdSet = dbinstanceidset
3301
+ end
3302
+
3303
+ def deserialize(params)
3304
+ @DealName = params['DealName']
3305
+ @OwnerUin = params['OwnerUin']
3306
+ @Count = params['Count']
3307
+ @PayMode = params['PayMode']
3308
+ @FlowId = params['FlowId']
3309
+ @DBInstanceIdSet = params['DBInstanceIdSet']
3310
+ end
3311
+ end
3312
+
3313
+ # 慢SQL查询接口返回 慢SQL列表详情
3314
+ class RawSlowQuery < TencentCloud::Common::AbstractModel
3315
+ # @param RawQuery: 慢SQL 语句
3316
+ # @type RawQuery: String
3317
+ # @param DatabaseName: 慢SQL 查询的数据库
3318
+ # @type DatabaseName: String
3319
+ # @param Duration: 慢SQL执行 耗时
3320
+ # @type Duration: Float
3321
+ # @param ClientAddr: 执行慢SQL的客户端
3322
+ # @type ClientAddr: String
3323
+ # @param UserName: 执行慢SQL的用户名
3324
+ # @type UserName: String
3325
+ # @param SessionStartTime: 慢SQL执行的开始时间
3326
+ # @type SessionStartTime: String
3327
+
3328
+ attr_accessor :RawQuery, :DatabaseName, :Duration, :ClientAddr, :UserName, :SessionStartTime
3329
+
3330
+ def initialize(rawquery=nil, databasename=nil, duration=nil, clientaddr=nil, username=nil, sessionstarttime=nil)
3331
+ @RawQuery = rawquery
3332
+ @DatabaseName = databasename
3333
+ @Duration = duration
3334
+ @ClientAddr = clientaddr
3335
+ @UserName = username
3336
+ @SessionStartTime = sessionstarttime
3337
+ end
3338
+
3339
+ def deserialize(params)
3340
+ @RawQuery = params['RawQuery']
3341
+ @DatabaseName = params['DatabaseName']
3342
+ @Duration = params['Duration']
3343
+ @ClientAddr = params['ClientAddr']
3344
+ @UserName = params['UserName']
3345
+ @SessionStartTime = params['SessionStartTime']
3346
+ end
3347
+ end
3348
+
3349
+ # 只读组信息
3350
+ class ReadOnlyGroup < TencentCloud::Common::AbstractModel
3351
+ # @param ReadOnlyGroupId: 只读组标识
3352
+ # 注意:此字段可能返回 null,表示取不到有效值。
3353
+ # @type ReadOnlyGroupId: String
3354
+ # @param ReadOnlyGroupName: 只读组名字
3355
+ # 注意:此字段可能返回 null,表示取不到有效值。
3356
+ # @type ReadOnlyGroupName: String
3357
+ # @param ProjectId: 项目id
3358
+ # 注意:此字段可能返回 null,表示取不到有效值。
3359
+ # @type ProjectId: Integer
3360
+ # @param MasterDBInstanceId: 主实例id
3361
+ # 注意:此字段可能返回 null,表示取不到有效值。
3362
+ # @type MasterDBInstanceId: String
3363
+ # @param MinDelayEliminateReserve: 最小保留实例数
3364
+ # 注意:此字段可能返回 null,表示取不到有效值。
3365
+ # @type MinDelayEliminateReserve: Integer
3366
+ # @param MaxReplayLatency: 延迟空间大小阈值
3367
+ # @type MaxReplayLatency: Integer
3368
+ # @param ReplayLatencyEliminate: 延迟大小开关
3369
+ # @type ReplayLatencyEliminate: Integer
3370
+ # @param MaxReplayLag: 延迟时间大小阈值
3371
+ # @type MaxReplayLag: Float
3372
+ # @param ReplayLagEliminate: 延迟时间开关
3373
+ # @type ReplayLagEliminate: Integer
3374
+ # @param VpcId: 虚拟网络id
3375
+ # @type VpcId: String
3376
+ # @param SubnetId: 子网id
3377
+ # 注意:此字段可能返回 null,表示取不到有效值。
3378
+ # @type SubnetId: String
3379
+ # @param Region: 地域id
3380
+ # @type Region: String
3381
+ # @param Zone: 地区id
3382
+ # @type Zone: String
3383
+ # @param Status: 状态
3384
+ # @type Status: String
3385
+ # @param ReadOnlyDBInstanceList: 实例详细信息
3386
+ # @type ReadOnlyDBInstanceList: Array
3387
+ # @param Rebalance: 自动负载均衡开关
3388
+ # @type Rebalance: Integer
3389
+ # @param DBInstanceNetInfo: 网络信息
3390
+ # @type DBInstanceNetInfo: Array
3391
+
3392
+ attr_accessor :ReadOnlyGroupId, :ReadOnlyGroupName, :ProjectId, :MasterDBInstanceId, :MinDelayEliminateReserve, :MaxReplayLatency, :ReplayLatencyEliminate, :MaxReplayLag, :ReplayLagEliminate, :VpcId, :SubnetId, :Region, :Zone, :Status, :ReadOnlyDBInstanceList, :Rebalance, :DBInstanceNetInfo
3393
+
3394
+ def initialize(readonlygroupid=nil, readonlygroupname=nil, projectid=nil, masterdbinstanceid=nil, mindelayeliminatereserve=nil, maxreplaylatency=nil, replaylatencyeliminate=nil, maxreplaylag=nil, replaylageliminate=nil, vpcid=nil, subnetid=nil, region=nil, zone=nil, status=nil, readonlydbinstancelist=nil, rebalance=nil, dbinstancenetinfo=nil)
3395
+ @ReadOnlyGroupId = readonlygroupid
3396
+ @ReadOnlyGroupName = readonlygroupname
3397
+ @ProjectId = projectid
3398
+ @MasterDBInstanceId = masterdbinstanceid
3399
+ @MinDelayEliminateReserve = mindelayeliminatereserve
3400
+ @MaxReplayLatency = maxreplaylatency
3401
+ @ReplayLatencyEliminate = replaylatencyeliminate
3402
+ @MaxReplayLag = maxreplaylag
3403
+ @ReplayLagEliminate = replaylageliminate
3404
+ @VpcId = vpcid
3405
+ @SubnetId = subnetid
3406
+ @Region = region
3407
+ @Zone = zone
3408
+ @Status = status
3409
+ @ReadOnlyDBInstanceList = readonlydbinstancelist
3410
+ @Rebalance = rebalance
3411
+ @DBInstanceNetInfo = dbinstancenetinfo
3412
+ end
3413
+
3414
+ def deserialize(params)
3415
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
3416
+ @ReadOnlyGroupName = params['ReadOnlyGroupName']
3417
+ @ProjectId = params['ProjectId']
3418
+ @MasterDBInstanceId = params['MasterDBInstanceId']
3419
+ @MinDelayEliminateReserve = params['MinDelayEliminateReserve']
3420
+ @MaxReplayLatency = params['MaxReplayLatency']
3421
+ @ReplayLatencyEliminate = params['ReplayLatencyEliminate']
3422
+ @MaxReplayLag = params['MaxReplayLag']
3423
+ @ReplayLagEliminate = params['ReplayLagEliminate']
3424
+ @VpcId = params['VpcId']
3425
+ @SubnetId = params['SubnetId']
3426
+ @Region = params['Region']
3427
+ @Zone = params['Zone']
3428
+ @Status = params['Status']
3429
+ unless params['ReadOnlyDBInstanceList'].nil?
3430
+ @ReadOnlyDBInstanceList = []
3431
+ params['ReadOnlyDBInstanceList'].each do |i|
3432
+ dbinstance_tmp = DBInstance.new
3433
+ dbinstance_tmp.deserialize(i)
3434
+ @ReadOnlyDBInstanceList << dbinstance_tmp
3435
+ end
3436
+ end
3437
+ @Rebalance = params['Rebalance']
3438
+ unless params['DBInstanceNetInfo'].nil?
3439
+ @DBInstanceNetInfo = []
3440
+ params['DBInstanceNetInfo'].each do |i|
3441
+ dbinstancenetinfo_tmp = DBInstanceNetInfo.new
3442
+ dbinstancenetinfo_tmp.deserialize(i)
3443
+ @DBInstanceNetInfo << dbinstancenetinfo_tmp
3444
+ end
3445
+ end
3446
+ end
3447
+ end
3448
+
3449
+ # RebalanceReadOnlyGroup请求参数结构体
3450
+ class RebalanceReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
3451
+ # @param ReadOnlyGroupId: 只读组ID
3452
+ # @type ReadOnlyGroupId: String
3453
+
3454
+ attr_accessor :ReadOnlyGroupId
3455
+
3456
+ def initialize(readonlygroupid=nil)
3457
+ @ReadOnlyGroupId = readonlygroupid
3458
+ end
3459
+
3460
+ def deserialize(params)
3461
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
3462
+ end
3463
+ end
3464
+
3465
+ # RebalanceReadOnlyGroup返回参数结构体
3466
+ class RebalanceReadOnlyGroupResponse < TencentCloud::Common::AbstractModel
3467
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3468
+ # @type RequestId: String
3469
+
3470
+ attr_accessor :RequestId
3471
+
3472
+ def initialize(requestid=nil)
3473
+ @RequestId = requestid
3474
+ end
3475
+
3476
+ def deserialize(params)
3477
+ @RequestId = params['RequestId']
3478
+ end
3479
+ end
3480
+
3481
+ # 描述地域的编码和状态等信息
3482
+ class RegionInfo < TencentCloud::Common::AbstractModel
3483
+ # @param Region: 该地域对应的英文名称
3484
+ # @type Region: String
3485
+ # @param RegionName: 该地域对应的中文名称
3486
+ # @type RegionName: String
3487
+ # @param RegionId: 该地域对应的数字编号
3488
+ # @type RegionId: Integer
3489
+ # @param RegionState: 可用状态,UNAVAILABLE表示不可用,AVAILABLE表示可用
3490
+ # @type RegionState: String
3491
+ # @param SupportInternational: 该地域是否支持国际站售卖,0:不支持,1:支持
3492
+ # 注意:此字段可能返回 null,表示取不到有效值。
3493
+ # @type SupportInternational: Integer
3494
+
3495
+ attr_accessor :Region, :RegionName, :RegionId, :RegionState, :SupportInternational
3496
+
3497
+ def initialize(region=nil, regionname=nil, regionid=nil, regionstate=nil, supportinternational=nil)
3498
+ @Region = region
3499
+ @RegionName = regionname
3500
+ @RegionId = regionid
3501
+ @RegionState = regionstate
3502
+ @SupportInternational = supportinternational
3503
+ end
3504
+
3505
+ def deserialize(params)
3506
+ @Region = params['Region']
3507
+ @RegionName = params['RegionName']
3508
+ @RegionId = params['RegionId']
3509
+ @RegionState = params['RegionState']
3510
+ @SupportInternational = params['SupportInternational']
3511
+ end
3512
+ end
3513
+
3514
+ # RemoveDBInstanceFromReadOnlyGroup请求参数结构体
3515
+ class RemoveDBInstanceFromReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
3516
+ # @param DBInstanceId: 实例ID
3517
+ # @type DBInstanceId: String
3518
+ # @param ReadOnlyGroupId: 只读组ID
3519
+ # @type ReadOnlyGroupId: String
3520
+
3521
+ attr_accessor :DBInstanceId, :ReadOnlyGroupId
3522
+
3523
+ def initialize(dbinstanceid=nil, readonlygroupid=nil)
3524
+ @DBInstanceId = dbinstanceid
3525
+ @ReadOnlyGroupId = readonlygroupid
3526
+ end
3527
+
3528
+ def deserialize(params)
3529
+ @DBInstanceId = params['DBInstanceId']
3530
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
3531
+ end
3532
+ end
3533
+
3534
+ # RemoveDBInstanceFromReadOnlyGroup返回参数结构体
3535
+ class RemoveDBInstanceFromReadOnlyGroupResponse < TencentCloud::Common::AbstractModel
3536
+ # @param FlowId: 流程ID
3537
+ # @type FlowId: Integer
3538
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3539
+ # @type RequestId: String
3540
+
3541
+ attr_accessor :FlowId, :RequestId
3542
+
3543
+ def initialize(flowid=nil, requestid=nil)
3544
+ @FlowId = flowid
3545
+ @RequestId = requestid
3546
+ end
3547
+
3548
+ def deserialize(params)
3549
+ @FlowId = params['FlowId']
3550
+ @RequestId = params['RequestId']
3551
+ end
3552
+ end
3553
+
3554
+ # RenewInstance请求参数结构体
3555
+ class RenewInstanceRequest < TencentCloud::Common::AbstractModel
3556
+ # @param DBInstanceId: 实例ID,形如postgres-6fego161
3557
+ # @type DBInstanceId: String
3558
+ # @param Period: 续费多少个月
3559
+ # @type Period: Integer
3560
+ # @param AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用
3561
+ # @type AutoVoucher: Integer
3562
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券
3563
+ # @type VoucherIds: Array
3564
+
3565
+ attr_accessor :DBInstanceId, :Period, :AutoVoucher, :VoucherIds
3566
+
3567
+ def initialize(dbinstanceid=nil, period=nil, autovoucher=nil, voucherids=nil)
3568
+ @DBInstanceId = dbinstanceid
3569
+ @Period = period
3570
+ @AutoVoucher = autovoucher
3571
+ @VoucherIds = voucherids
3572
+ end
3573
+
3574
+ def deserialize(params)
3575
+ @DBInstanceId = params['DBInstanceId']
3576
+ @Period = params['Period']
3577
+ @AutoVoucher = params['AutoVoucher']
3578
+ @VoucherIds = params['VoucherIds']
3579
+ end
3580
+ end
3581
+
3582
+ # RenewInstance返回参数结构体
3583
+ class RenewInstanceResponse < TencentCloud::Common::AbstractModel
3584
+ # @param DealName: 订单名
3585
+ # @type DealName: String
3586
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3587
+ # @type RequestId: String
3588
+
3589
+ attr_accessor :DealName, :RequestId
3590
+
3591
+ def initialize(dealname=nil, requestid=nil)
3592
+ @DealName = dealname
3593
+ @RequestId = requestid
3594
+ end
3595
+
3596
+ def deserialize(params)
3597
+ @DealName = params['DealName']
3598
+ @RequestId = params['RequestId']
3599
+ end
3600
+ end
3601
+
3602
+ # ResetAccountPassword请求参数结构体
3603
+ class ResetAccountPasswordRequest < TencentCloud::Common::AbstractModel
3604
+ # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv
3605
+ # @type DBInstanceId: String
3606
+ # @param UserName: 实例账户名
3607
+ # @type UserName: String
3608
+ # @param Password: UserName账户对应的新密码
3609
+ # @type Password: String
3610
+
3611
+ attr_accessor :DBInstanceId, :UserName, :Password
3612
+
3613
+ def initialize(dbinstanceid=nil, username=nil, password=nil)
3614
+ @DBInstanceId = dbinstanceid
3615
+ @UserName = username
3616
+ @Password = password
3617
+ end
3618
+
3619
+ def deserialize(params)
3620
+ @DBInstanceId = params['DBInstanceId']
3621
+ @UserName = params['UserName']
3622
+ @Password = params['Password']
3623
+ end
3624
+ end
3625
+
3626
+ # ResetAccountPassword返回参数结构体
3627
+ class ResetAccountPasswordResponse < TencentCloud::Common::AbstractModel
3628
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3629
+ # @type RequestId: String
3630
+
3631
+ attr_accessor :RequestId
3632
+
3633
+ def initialize(requestid=nil)
3634
+ @RequestId = requestid
3635
+ end
3636
+
3637
+ def deserialize(params)
3638
+ @RequestId = params['RequestId']
3639
+ end
3640
+ end
3641
+
3642
+ # RestartDBInstance请求参数结构体
3643
+ class RestartDBInstanceRequest < TencentCloud::Common::AbstractModel
3644
+ # @param DBInstanceId: 实例ID,形如postgres-6r233v55
3645
+ # @type DBInstanceId: String
3646
+
3647
+ attr_accessor :DBInstanceId
3648
+
3649
+ def initialize(dbinstanceid=nil)
3650
+ @DBInstanceId = dbinstanceid
3651
+ end
3652
+
3653
+ def deserialize(params)
3654
+ @DBInstanceId = params['DBInstanceId']
3655
+ end
3656
+ end
3657
+
3658
+ # RestartDBInstance返回参数结构体
3659
+ class RestartDBInstanceResponse < TencentCloud::Common::AbstractModel
3660
+ # @param FlowId: 异步流程ID
3661
+ # @type FlowId: Integer
3662
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3663
+ # @type RequestId: String
3664
+
3665
+ attr_accessor :FlowId, :RequestId
3666
+
3667
+ def initialize(flowid=nil, requestid=nil)
3668
+ @FlowId = flowid
3669
+ @RequestId = requestid
3670
+ end
3671
+
3672
+ def deserialize(params)
3673
+ @FlowId = params['FlowId']
3674
+ @RequestId = params['RequestId']
3675
+ end
3676
+ end
3677
+
3678
+ # serverless账号描述
3679
+ class ServerlessDBAccount < TencentCloud::Common::AbstractModel
3680
+ # @param DBUser: 用户名
3681
+ # 注意:此字段可能返回 null,表示取不到有效值。
3682
+ # @type DBUser: String
3683
+ # @param DBPassword: 密码
3684
+ # 注意:此字段可能返回 null,表示取不到有效值。
3685
+ # @type DBPassword: String
3686
+ # @param DBConnLimit: 连接数限制
3687
+ # 注意:此字段可能返回 null,表示取不到有效值。
3688
+ # @type DBConnLimit: Integer
3689
+
3690
+ attr_accessor :DBUser, :DBPassword, :DBConnLimit
3691
+
3692
+ def initialize(dbuser=nil, dbpassword=nil, dbconnlimit=nil)
3693
+ @DBUser = dbuser
3694
+ @DBPassword = dbpassword
3695
+ @DBConnLimit = dbconnlimit
3696
+ end
3697
+
3698
+ def deserialize(params)
3699
+ @DBUser = params['DBUser']
3700
+ @DBPassword = params['DBPassword']
3701
+ @DBConnLimit = params['DBConnLimit']
3702
+ end
3703
+ end
3704
+
3705
+ # serverless实例描述
3706
+ class ServerlessDBInstance < TencentCloud::Common::AbstractModel
3707
+ # @param DBInstanceId: 实例id,唯一标识符
3708
+ # 注意:此字段可能返回 null,表示取不到有效值。
3709
+ # @type DBInstanceId: String
3710
+ # @param DBInstanceName: 实例名称
3711
+ # 注意:此字段可能返回 null,表示取不到有效值。
3712
+ # @type DBInstanceName: String
3713
+ # @param DBInstanceStatus: 实例状态
3714
+ # 注意:此字段可能返回 null,表示取不到有效值。
3715
+ # @type DBInstanceStatus: String
3716
+ # @param Region: 地域
3717
+ # 注意:此字段可能返回 null,表示取不到有效值。
3718
+ # @type Region: String
3719
+ # @param Zone: 可用区
3720
+ # 注意:此字段可能返回 null,表示取不到有效值。
3721
+ # @type Zone: String
3722
+ # @param ProjectId: 项目id
3723
+ # 注意:此字段可能返回 null,表示取不到有效值。
3724
+ # @type ProjectId: Integer
3725
+ # @param VpcId: 私有网络Id
3726
+ # 注意:此字段可能返回 null,表示取不到有效值。
3727
+ # @type VpcId: String
3728
+ # @param SubnetId: 子网id
3729
+ # 注意:此字段可能返回 null,表示取不到有效值。
3730
+ # @type SubnetId: String
3731
+ # @param DBCharset: 字符集
3732
+ # 注意:此字段可能返回 null,表示取不到有效值。
3733
+ # @type DBCharset: String
3734
+ # @param DBVersion: 数据库版本
3735
+ # 注意:此字段可能返回 null,表示取不到有效值。
3736
+ # @type DBVersion: String
3737
+ # @param CreateTime: 创建时间
3738
+ # 注意:此字段可能返回 null,表示取不到有效值。
3739
+ # @type CreateTime: String
3740
+ # @param DBInstanceNetInfo: 实例网络信息
3741
+ # 注意:此字段可能返回 null,表示取不到有效值。
3742
+ # @type DBInstanceNetInfo: Array
3743
+ # @param DBAccountSet: 实例账户信息
3744
+ # 注意:此字段可能返回 null,表示取不到有效值。
3745
+ # @type DBAccountSet: Array
3746
+ # @param DBDatabaseList: 实例下的db信息
3747
+ # 注意:此字段可能返回 null,表示取不到有效值。
3748
+ # @type DBDatabaseList: Array
3749
+ # @param TagList: 实例绑定的标签数组
3750
+ # 注意:此字段可能返回 null,表示取不到有效值。
3751
+ # @type TagList: Array
3752
+
3753
+ attr_accessor :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBCharset, :DBVersion, :CreateTime, :DBInstanceNetInfo, :DBAccountSet, :DBDatabaseList, :TagList
3754
+
3755
+ def initialize(dbinstanceid=nil, dbinstancename=nil, dbinstancestatus=nil, region=nil, zone=nil, projectid=nil, vpcid=nil, subnetid=nil, dbcharset=nil, dbversion=nil, createtime=nil, dbinstancenetinfo=nil, dbaccountset=nil, dbdatabaselist=nil, taglist=nil)
3756
+ @DBInstanceId = dbinstanceid
3757
+ @DBInstanceName = dbinstancename
3758
+ @DBInstanceStatus = dbinstancestatus
3759
+ @Region = region
3760
+ @Zone = zone
3761
+ @ProjectId = projectid
3762
+ @VpcId = vpcid
3763
+ @SubnetId = subnetid
3764
+ @DBCharset = dbcharset
3765
+ @DBVersion = dbversion
3766
+ @CreateTime = createtime
3767
+ @DBInstanceNetInfo = dbinstancenetinfo
3768
+ @DBAccountSet = dbaccountset
3769
+ @DBDatabaseList = dbdatabaselist
3770
+ @TagList = taglist
3771
+ end
3772
+
3773
+ def deserialize(params)
3774
+ @DBInstanceId = params['DBInstanceId']
3775
+ @DBInstanceName = params['DBInstanceName']
3776
+ @DBInstanceStatus = params['DBInstanceStatus']
3777
+ @Region = params['Region']
3778
+ @Zone = params['Zone']
3779
+ @ProjectId = params['ProjectId']
3780
+ @VpcId = params['VpcId']
3781
+ @SubnetId = params['SubnetId']
3782
+ @DBCharset = params['DBCharset']
3783
+ @DBVersion = params['DBVersion']
3784
+ @CreateTime = params['CreateTime']
3785
+ unless params['DBInstanceNetInfo'].nil?
3786
+ @DBInstanceNetInfo = []
3787
+ params['DBInstanceNetInfo'].each do |i|
3788
+ serverlessdbinstancenetinfo_tmp = ServerlessDBInstanceNetInfo.new
3789
+ serverlessdbinstancenetinfo_tmp.deserialize(i)
3790
+ @DBInstanceNetInfo << serverlessdbinstancenetinfo_tmp
3791
+ end
3792
+ end
3793
+ unless params['DBAccountSet'].nil?
3794
+ @DBAccountSet = []
3795
+ params['DBAccountSet'].each do |i|
3796
+ serverlessdbaccount_tmp = ServerlessDBAccount.new
3797
+ serverlessdbaccount_tmp.deserialize(i)
3798
+ @DBAccountSet << serverlessdbaccount_tmp
3799
+ end
3800
+ end
3801
+ @DBDatabaseList = params['DBDatabaseList']
3802
+ unless params['TagList'].nil?
3803
+ @TagList = []
3804
+ params['TagList'].each do |i|
3805
+ tag_tmp = Tag.new
3806
+ tag_tmp.deserialize(i)
3807
+ @TagList << tag_tmp
3808
+ end
3809
+ end
3810
+ end
3811
+ end
3812
+
3813
+ # serverless实例网络信息描述
3814
+ class ServerlessDBInstanceNetInfo < TencentCloud::Common::AbstractModel
3815
+ # @param Address: 地址
3816
+ # 注意:此字段可能返回 null,表示取不到有效值。
3817
+ # @type Address: String
3818
+ # @param Ip: ip地址
3819
+ # 注意:此字段可能返回 null,表示取不到有效值。
3820
+ # @type Ip: String
3821
+ # @param Port: 端口号
3822
+ # 注意:此字段可能返回 null,表示取不到有效值。
3823
+ # @type Port: Integer
3824
+ # @param Status: 状态
3825
+ # 注意:此字段可能返回 null,表示取不到有效值。
3826
+ # @type Status: String
3827
+ # @param NetType: 网络类型
3828
+ # 注意:此字段可能返回 null,表示取不到有效值。
3829
+ # @type NetType: String
3830
+
3831
+ attr_accessor :Address, :Ip, :Port, :Status, :NetType
3832
+
3833
+ def initialize(address=nil, ip=nil, port=nil, status=nil, nettype=nil)
3834
+ @Address = address
3835
+ @Ip = ip
3836
+ @Port = port
3837
+ @Status = status
3838
+ @NetType = nettype
3839
+ end
3840
+
3841
+ def deserialize(params)
3842
+ @Address = params['Address']
3843
+ @Ip = params['Ip']
3844
+ @Port = params['Port']
3845
+ @Status = params['Status']
3846
+ @NetType = params['NetType']
3847
+ end
3848
+ end
3849
+
3850
+ # SetAutoRenewFlag请求参数结构体
3851
+ class SetAutoRenewFlagRequest < TencentCloud::Common::AbstractModel
3852
+ # @param DBInstanceIdSet: 实例ID数组
3853
+ # @type DBInstanceIdSet: Array
3854
+ # @param AutoRenewFlag: 续费标记。0-正常续费;1-自动续费;2-到期不续费
3855
+ # @type AutoRenewFlag: Integer
3856
+
3857
+ attr_accessor :DBInstanceIdSet, :AutoRenewFlag
3858
+
3859
+ def initialize(dbinstanceidset=nil, autorenewflag=nil)
3860
+ @DBInstanceIdSet = dbinstanceidset
3861
+ @AutoRenewFlag = autorenewflag
3862
+ end
3863
+
3864
+ def deserialize(params)
3865
+ @DBInstanceIdSet = params['DBInstanceIdSet']
3866
+ @AutoRenewFlag = params['AutoRenewFlag']
3867
+ end
3868
+ end
3869
+
3870
+ # SetAutoRenewFlag返回参数结构体
3871
+ class SetAutoRenewFlagResponse < TencentCloud::Common::AbstractModel
3872
+ # @param Count: 设置成功的实例个数
3873
+ # @type Count: Integer
3874
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3875
+ # @type RequestId: String
3876
+
3877
+ attr_accessor :Count, :RequestId
3878
+
3879
+ def initialize(count=nil, requestid=nil)
3880
+ @Count = count
3881
+ @RequestId = requestid
3882
+ end
3883
+
3884
+ def deserialize(params)
3885
+ @Count = params['Count']
3886
+ @RequestId = params['RequestId']
3887
+ end
3888
+ end
3889
+
3890
+ # 慢查询详情
3891
+ class SlowlogDetail < TencentCloud::Common::AbstractModel
3892
+ # @param TotalTime: 花费总时间
3893
+ # @type TotalTime: Float
3894
+ # @param TotalCalls: 调用总次数
3895
+ # @type TotalCalls: Integer
3896
+ # @param NormalQueries: 脱敏后的慢SQL列表
3897
+ # @type NormalQueries: Array
3898
+
3899
+ attr_accessor :TotalTime, :TotalCalls, :NormalQueries
3900
+
3901
+ def initialize(totaltime=nil, totalcalls=nil, normalqueries=nil)
3902
+ @TotalTime = totaltime
3903
+ @TotalCalls = totalcalls
3904
+ @NormalQueries = normalqueries
3905
+ end
3906
+
3907
+ def deserialize(params)
3908
+ @TotalTime = params['TotalTime']
3909
+ @TotalCalls = params['TotalCalls']
3910
+ unless params['NormalQueries'].nil?
3911
+ @NormalQueries = []
3912
+ params['NormalQueries'].each do |i|
3913
+ normalqueryitem_tmp = NormalQueryItem.new
3914
+ normalqueryitem_tmp.deserialize(i)
3915
+ @NormalQueries << normalqueryitem_tmp
3916
+ end
3917
+ end
3918
+ end
3919
+ end
3920
+
3921
+ # 描述某个地域下某个可用区的可售卖规格详细信息。
3922
+ class SpecInfo < TencentCloud::Common::AbstractModel
3923
+ # @param Region: 地域英文编码,对应RegionSet的Region字段
3924
+ # @type Region: String
3925
+ # @param Zone: 区域英文编码,对应ZoneSet的Zone字段
3926
+ # @type Zone: String
3927
+ # @param SpecItemInfoList: 规格详细信息列表
3928
+ # @type SpecItemInfoList: Array
3929
+
3930
+ attr_accessor :Region, :Zone, :SpecItemInfoList
3931
+
3932
+ def initialize(region=nil, zone=nil, speciteminfolist=nil)
3933
+ @Region = region
3934
+ @Zone = zone
3935
+ @SpecItemInfoList = speciteminfolist
3936
+ end
3937
+
3938
+ def deserialize(params)
3939
+ @Region = params['Region']
3940
+ @Zone = params['Zone']
3941
+ unless params['SpecItemInfoList'].nil?
3942
+ @SpecItemInfoList = []
3943
+ params['SpecItemInfoList'].each do |i|
3944
+ speciteminfo_tmp = SpecItemInfo.new
3945
+ speciteminfo_tmp.deserialize(i)
3946
+ @SpecItemInfoList << speciteminfo_tmp
3947
+ end
3948
+ end
3949
+ end
3950
+ end
3951
+
3952
+ # 描述一种规格的信息
3953
+ class SpecItemInfo < TencentCloud::Common::AbstractModel
3954
+ # @param SpecCode: 规格ID
3955
+ # @type SpecCode: String
3956
+ # @param Version: PostgreSQL的内核版本编号
3957
+ # @type Version: String
3958
+ # @param VersionName: 内核编号对应的完整版本名称
3959
+ # @type VersionName: String
3960
+ # @param Cpu: CPU核数
3961
+ # @type Cpu: Integer
3962
+ # @param Memory: 内存大小,单位:MB
3963
+ # @type Memory: Integer
3964
+ # @param MaxStorage: 该规格所支持最大存储容量,单位:GB
3965
+ # @type MaxStorage: Integer
3966
+ # @param MinStorage: 该规格所支持最小存储容量,单位:GB
3967
+ # @type MinStorage: Integer
3968
+ # @param Qps: 该规格的预估QPS
3969
+ # @type Qps: Integer
3970
+ # @param Pid: 该规格对应的计费ID
3971
+ # @type Pid: Integer
3972
+ # @param Type: 机器类型
3973
+ # @type Type: String
3974
+
3975
+ attr_accessor :SpecCode, :Version, :VersionName, :Cpu, :Memory, :MaxStorage, :MinStorage, :Qps, :Pid, :Type
3976
+
3977
+ def initialize(speccode=nil, version=nil, versionname=nil, cpu=nil, memory=nil, maxstorage=nil, minstorage=nil, qps=nil, pid=nil, type=nil)
3978
+ @SpecCode = speccode
3979
+ @Version = version
3980
+ @VersionName = versionname
3981
+ @Cpu = cpu
3982
+ @Memory = memory
3983
+ @MaxStorage = maxstorage
3984
+ @MinStorage = minstorage
3985
+ @Qps = qps
3986
+ @Pid = pid
3987
+ @Type = type
3988
+ end
3989
+
3990
+ def deserialize(params)
3991
+ @SpecCode = params['SpecCode']
3992
+ @Version = params['Version']
3993
+ @VersionName = params['VersionName']
3994
+ @Cpu = params['Cpu']
3995
+ @Memory = params['Memory']
3996
+ @MaxStorage = params['MaxStorage']
3997
+ @MinStorage = params['MinStorage']
3998
+ @Qps = params['Qps']
3999
+ @Pid = params['Pid']
4000
+ @Type = params['Type']
4001
+ end
4002
+ end
4003
+
4004
+ # 实例绑定的标签信息,包含标签键TagKey和标签值TagValue
4005
+ class Tag < TencentCloud::Common::AbstractModel
4006
+ # @param TagKey: 标签键
4007
+ # @type TagKey: String
4008
+ # @param TagValue: 标签值
4009
+ # @type TagValue: String
4010
+
4011
+ attr_accessor :TagKey, :TagValue
4012
+
4013
+ def initialize(tagkey=nil, tagvalue=nil)
4014
+ @TagKey = tagkey
4015
+ @TagValue = tagvalue
4016
+ end
4017
+
4018
+ def deserialize(params)
4019
+ @TagKey = params['TagKey']
4020
+ @TagValue = params['TagValue']
4021
+ end
4022
+ end
4023
+
4024
+ # UpgradeDBInstance请求参数结构体
4025
+ class UpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel
4026
+ # @param Memory: 升级后的实例内存大小,单位GB
4027
+ # @type Memory: Integer
4028
+ # @param Storage: 升级后的实例磁盘大小,单位GB
4029
+ # @type Storage: Integer
4030
+ # @param DBInstanceId: 实例ID,形如postgres-lnp6j617
4031
+ # @type DBInstanceId: String
4032
+ # @param AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用
4033
+ # @type AutoVoucher: Integer
4034
+ # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券
4035
+ # @type VoucherIds: Array
4036
+ # @param ActivityId: 活动ID
4037
+ # @type ActivityId: Integer
4038
+ # @param SwitchTag: 指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。
4039
+ # @type SwitchTag: Integer
4040
+ # @param SwitchStartTime: 切换开始时间
4041
+ # @type SwitchStartTime: String
4042
+ # @param SwitchEndTime: 切换截止时间
4043
+ # @type SwitchEndTime: String
4044
+
4045
+ attr_accessor :Memory, :Storage, :DBInstanceId, :AutoVoucher, :VoucherIds, :ActivityId, :SwitchTag, :SwitchStartTime, :SwitchEndTime
4046
+
4047
+ def initialize(memory=nil, storage=nil, dbinstanceid=nil, autovoucher=nil, voucherids=nil, activityid=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil)
4048
+ @Memory = memory
4049
+ @Storage = storage
4050
+ @DBInstanceId = dbinstanceid
4051
+ @AutoVoucher = autovoucher
4052
+ @VoucherIds = voucherids
4053
+ @ActivityId = activityid
4054
+ @SwitchTag = switchtag
4055
+ @SwitchStartTime = switchstarttime
4056
+ @SwitchEndTime = switchendtime
4057
+ end
4058
+
4059
+ def deserialize(params)
4060
+ @Memory = params['Memory']
4061
+ @Storage = params['Storage']
4062
+ @DBInstanceId = params['DBInstanceId']
4063
+ @AutoVoucher = params['AutoVoucher']
4064
+ @VoucherIds = params['VoucherIds']
4065
+ @ActivityId = params['ActivityId']
4066
+ @SwitchTag = params['SwitchTag']
4067
+ @SwitchStartTime = params['SwitchStartTime']
4068
+ @SwitchEndTime = params['SwitchEndTime']
4069
+ end
4070
+ end
4071
+
4072
+ # UpgradeDBInstance返回参数结构体
4073
+ class UpgradeDBInstanceResponse < TencentCloud::Common::AbstractModel
4074
+ # @param DealName: 交易名字。
4075
+ # @type DealName: String
4076
+ # @param BillId: 冻结流水号
4077
+ # @type BillId: String
4078
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4079
+ # @type RequestId: String
4080
+
4081
+ attr_accessor :DealName, :BillId, :RequestId
4082
+
4083
+ def initialize(dealname=nil, billid=nil, requestid=nil)
4084
+ @DealName = dealname
4085
+ @BillId = billid
4086
+ @RequestId = requestid
4087
+ end
4088
+
4089
+ def deserialize(params)
4090
+ @DealName = params['DealName']
4091
+ @BillId = params['BillId']
4092
+ @RequestId = params['RequestId']
4093
+ end
4094
+ end
4095
+
4096
+ # 数据库Xlog信息
4097
+ class Xlog < TencentCloud::Common::AbstractModel
4098
+ # @param Id: 备份文件唯一标识
4099
+ # @type Id: Integer
4100
+ # @param StartTime: 文件生成的开始时间
4101
+ # @type StartTime: String
4102
+ # @param EndTime: 文件生成的结束时间
4103
+ # @type EndTime: String
4104
+ # @param InternalAddr: 内网下载地址
4105
+ # @type InternalAddr: String
4106
+ # @param ExternalAddr: 外网下载地址
4107
+ # @type ExternalAddr: String
4108
+ # @param Size: 备份文件大小
4109
+ # @type Size: Integer
4110
+
4111
+ attr_accessor :Id, :StartTime, :EndTime, :InternalAddr, :ExternalAddr, :Size
4112
+
4113
+ def initialize(id=nil, starttime=nil, endtime=nil, internaladdr=nil, externaladdr=nil, size=nil)
4114
+ @Id = id
4115
+ @StartTime = starttime
4116
+ @EndTime = endtime
4117
+ @InternalAddr = internaladdr
4118
+ @ExternalAddr = externaladdr
4119
+ @Size = size
4120
+ end
4121
+
4122
+ def deserialize(params)
4123
+ @Id = params['Id']
4124
+ @StartTime = params['StartTime']
4125
+ @EndTime = params['EndTime']
4126
+ @InternalAddr = params['InternalAddr']
4127
+ @ExternalAddr = params['ExternalAddr']
4128
+ @Size = params['Size']
4129
+ end
4130
+ end
4131
+
4132
+ # 描述可用区的编码和状态信息
4133
+ class ZoneInfo < TencentCloud::Common::AbstractModel
4134
+ # @param Zone: 该可用区的英文名称
4135
+ # @type Zone: String
4136
+ # @param ZoneName: 该可用区的中文名称
4137
+ # @type ZoneName: String
4138
+ # @param ZoneId: 该可用区对应的数字编号
4139
+ # @type ZoneId: Integer
4140
+ # @param ZoneState: 可用状态,UNAVAILABLE表示不可用,AVAILABLE表示可用
4141
+ # @type ZoneState: String
4142
+ # @param ZoneSupportIpv6: 该可用区是否支持Ipv6
4143
+ # @type ZoneSupportIpv6: Integer
4144
+
4145
+ attr_accessor :Zone, :ZoneName, :ZoneId, :ZoneState, :ZoneSupportIpv6
4146
+
4147
+ def initialize(zone=nil, zonename=nil, zoneid=nil, zonestate=nil, zonesupportipv6=nil)
4148
+ @Zone = zone
4149
+ @ZoneName = zonename
4150
+ @ZoneId = zoneid
4151
+ @ZoneState = zonestate
4152
+ @ZoneSupportIpv6 = zonesupportipv6
4153
+ end
4154
+
4155
+ def deserialize(params)
4156
+ @Zone = params['Zone']
4157
+ @ZoneName = params['ZoneName']
4158
+ @ZoneId = params['ZoneId']
4159
+ @ZoneState = params['ZoneState']
4160
+ @ZoneSupportIpv6 = params['ZoneSupportIpv6']
4161
+ end
4162
+ end
4163
+
4164
+ end
4165
+ end
4166
+ end
4167
+