tencentcloud-sdk-cynosdb 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-cynosdb.rb +11 -0
- data/lib/v20190107/client.rb +684 -0
- data/lib/v20190107/models.rb +2755 -0
- metadata +66 -0
@@ -0,0 +1,2755 @@
|
|
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 Cynosdb
|
19
|
+
module V20190107
|
20
|
+
# 数据库账号信息
|
21
|
+
class Account < TencentCloud::Common::AbstractModel
|
22
|
+
# @param AccountName: 数据库账号名
|
23
|
+
# @type AccountName: String
|
24
|
+
# @param Description: 数据库账号描述
|
25
|
+
# @type Description: String
|
26
|
+
# @param CreateTime: 创建时间
|
27
|
+
# @type CreateTime: String
|
28
|
+
# @param UpdateTime: 更新时间
|
29
|
+
# @type UpdateTime: String
|
30
|
+
# @param Host: 主机
|
31
|
+
# @type Host: String
|
32
|
+
|
33
|
+
attr_accessor :AccountName, :Description, :CreateTime, :UpdateTime, :Host
|
34
|
+
|
35
|
+
def initialize(accountname=nil, description=nil, createtime=nil, updatetime=nil, host=nil)
|
36
|
+
@AccountName = accountname
|
37
|
+
@Description = description
|
38
|
+
@CreateTime = createtime
|
39
|
+
@UpdateTime = updatetime
|
40
|
+
@Host = host
|
41
|
+
end
|
42
|
+
|
43
|
+
def deserialize(params)
|
44
|
+
@AccountName = params['AccountName']
|
45
|
+
@Description = params['Description']
|
46
|
+
@CreateTime = params['CreateTime']
|
47
|
+
@UpdateTime = params['UpdateTime']
|
48
|
+
@Host = params['Host']
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# AddInstances请求参数结构体
|
53
|
+
class AddInstancesRequest < TencentCloud::Common::AbstractModel
|
54
|
+
# @param ClusterId: 集群ID
|
55
|
+
# @type ClusterId: String
|
56
|
+
# @param Cpu: Cpu核数
|
57
|
+
# @type Cpu: Integer
|
58
|
+
# @param Memory: 内存
|
59
|
+
# @type Memory: Integer
|
60
|
+
# @param ReadOnlyCount: 新增只读实例数
|
61
|
+
# @type ReadOnlyCount: Integer
|
62
|
+
# @param InstanceGrpId: 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组
|
63
|
+
# @type InstanceGrpId: String
|
64
|
+
# @param VpcId: 所属VPC网络ID
|
65
|
+
# @type VpcId: String
|
66
|
+
# @param SubnetId: 所属子网ID
|
67
|
+
# @type SubnetId: String
|
68
|
+
# @param Port: 新增RO组时使用的Port
|
69
|
+
# @type Port: Integer
|
70
|
+
# @param InstanceName: 实例名称
|
71
|
+
# @type InstanceName: String
|
72
|
+
# @param AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
|
73
|
+
# @type AutoVoucher: Integer
|
74
|
+
# @param DbType: 数据库类型,取值范围:
|
75
|
+
# <li> MYSQL </li>
|
76
|
+
# @type DbType: String
|
77
|
+
# @param OrderSource: 订单来源
|
78
|
+
# @type OrderSource: String
|
79
|
+
# @param DealMode: 交易模式 0-下单并支付 1-下单
|
80
|
+
# @type DealMode: Integer
|
81
|
+
|
82
|
+
attr_accessor :ClusterId, :Cpu, :Memory, :ReadOnlyCount, :InstanceGrpId, :VpcId, :SubnetId, :Port, :InstanceName, :AutoVoucher, :DbType, :OrderSource, :DealMode
|
83
|
+
|
84
|
+
def initialize(clusterid=nil, cpu=nil, memory=nil, readonlycount=nil, instancegrpid=nil, vpcid=nil, subnetid=nil, port=nil, instancename=nil, autovoucher=nil, dbtype=nil, ordersource=nil, dealmode=nil)
|
85
|
+
@ClusterId = clusterid
|
86
|
+
@Cpu = cpu
|
87
|
+
@Memory = memory
|
88
|
+
@ReadOnlyCount = readonlycount
|
89
|
+
@InstanceGrpId = instancegrpid
|
90
|
+
@VpcId = vpcid
|
91
|
+
@SubnetId = subnetid
|
92
|
+
@Port = port
|
93
|
+
@InstanceName = instancename
|
94
|
+
@AutoVoucher = autovoucher
|
95
|
+
@DbType = dbtype
|
96
|
+
@OrderSource = ordersource
|
97
|
+
@DealMode = dealmode
|
98
|
+
end
|
99
|
+
|
100
|
+
def deserialize(params)
|
101
|
+
@ClusterId = params['ClusterId']
|
102
|
+
@Cpu = params['Cpu']
|
103
|
+
@Memory = params['Memory']
|
104
|
+
@ReadOnlyCount = params['ReadOnlyCount']
|
105
|
+
@InstanceGrpId = params['InstanceGrpId']
|
106
|
+
@VpcId = params['VpcId']
|
107
|
+
@SubnetId = params['SubnetId']
|
108
|
+
@Port = params['Port']
|
109
|
+
@InstanceName = params['InstanceName']
|
110
|
+
@AutoVoucher = params['AutoVoucher']
|
111
|
+
@DbType = params['DbType']
|
112
|
+
@OrderSource = params['OrderSource']
|
113
|
+
@DealMode = params['DealMode']
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# AddInstances返回参数结构体
|
118
|
+
class AddInstancesResponse < TencentCloud::Common::AbstractModel
|
119
|
+
# @param TranId: 冻结流水,一次开通一个冻结流水。
|
120
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
121
|
+
# @type TranId: String
|
122
|
+
# @param DealNames: 后付费订单号。
|
123
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
124
|
+
# @type DealNames: Array
|
125
|
+
# @param ResourceIds: 发货资源id列表。
|
126
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
127
|
+
# @type ResourceIds: Array
|
128
|
+
# @param BigDealIds: 大订单号
|
129
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
130
|
+
# @type BigDealIds: Array
|
131
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
132
|
+
# @type RequestId: String
|
133
|
+
|
134
|
+
attr_accessor :TranId, :DealNames, :ResourceIds, :BigDealIds, :RequestId
|
135
|
+
|
136
|
+
def initialize(tranid=nil, dealnames=nil, resourceids=nil, bigdealids=nil, requestid=nil)
|
137
|
+
@TranId = tranid
|
138
|
+
@DealNames = dealnames
|
139
|
+
@ResourceIds = resourceids
|
140
|
+
@BigDealIds = bigdealids
|
141
|
+
@RequestId = requestid
|
142
|
+
end
|
143
|
+
|
144
|
+
def deserialize(params)
|
145
|
+
@TranId = params['TranId']
|
146
|
+
@DealNames = params['DealNames']
|
147
|
+
@ResourceIds = params['ResourceIds']
|
148
|
+
@BigDealIds = params['BigDealIds']
|
149
|
+
@RequestId = params['RequestId']
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# 数据库地址
|
154
|
+
class Addr < TencentCloud::Common::AbstractModel
|
155
|
+
# @param IP: IP
|
156
|
+
# @type IP: String
|
157
|
+
# @param Port: 端口
|
158
|
+
# @type Port: Integer
|
159
|
+
|
160
|
+
attr_accessor :IP, :Port
|
161
|
+
|
162
|
+
def initialize(ip=nil, port=nil)
|
163
|
+
@IP = ip
|
164
|
+
@Port = port
|
165
|
+
end
|
166
|
+
|
167
|
+
def deserialize(params)
|
168
|
+
@IP = params['IP']
|
169
|
+
@Port = params['Port']
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# 备份文件信息
|
174
|
+
class BackupFileInfo < TencentCloud::Common::AbstractModel
|
175
|
+
# @param SnapshotId: 快照文件ID,用于回滚
|
176
|
+
# @type SnapshotId: Integer
|
177
|
+
# @param FileName: 快照文件名
|
178
|
+
# @type FileName: String
|
179
|
+
# @param FileSize: 快照文件大小
|
180
|
+
# @type FileSize: Integer
|
181
|
+
# @param StartTime: 快照备份开始时间
|
182
|
+
# @type StartTime: String
|
183
|
+
# @param FinishTime: 快照备份完成时间
|
184
|
+
# @type FinishTime: String
|
185
|
+
# @param BackupType: 备份类型:snapshot,快照备份;timepoint,时间点备份
|
186
|
+
# @type BackupType: String
|
187
|
+
# @param BackupMethod: 备份方式:auto,自动备份;manual,手动备份
|
188
|
+
# @type BackupMethod: String
|
189
|
+
# @param BackupStatus: 备份文件状态:success:备份成功;fail:备份失败;creating:备份文件创建中;deleting:备份文件删除中
|
190
|
+
# @type BackupStatus: String
|
191
|
+
# @param SnapshotTime: 备份文件时间
|
192
|
+
# @type SnapshotTime: String
|
193
|
+
|
194
|
+
attr_accessor :SnapshotId, :FileName, :FileSize, :StartTime, :FinishTime, :BackupType, :BackupMethod, :BackupStatus, :SnapshotTime
|
195
|
+
|
196
|
+
def initialize(snapshotid=nil, filename=nil, filesize=nil, starttime=nil, finishtime=nil, backuptype=nil, backupmethod=nil, backupstatus=nil, snapshottime=nil)
|
197
|
+
@SnapshotId = snapshotid
|
198
|
+
@FileName = filename
|
199
|
+
@FileSize = filesize
|
200
|
+
@StartTime = starttime
|
201
|
+
@FinishTime = finishtime
|
202
|
+
@BackupType = backuptype
|
203
|
+
@BackupMethod = backupmethod
|
204
|
+
@BackupStatus = backupstatus
|
205
|
+
@SnapshotTime = snapshottime
|
206
|
+
end
|
207
|
+
|
208
|
+
def deserialize(params)
|
209
|
+
@SnapshotId = params['SnapshotId']
|
210
|
+
@FileName = params['FileName']
|
211
|
+
@FileSize = params['FileSize']
|
212
|
+
@StartTime = params['StartTime']
|
213
|
+
@FinishTime = params['FinishTime']
|
214
|
+
@BackupType = params['BackupType']
|
215
|
+
@BackupMethod = params['BackupMethod']
|
216
|
+
@BackupStatus = params['BackupStatus']
|
217
|
+
@SnapshotTime = params['SnapshotTime']
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# 计费资源信息
|
222
|
+
class BillingResourceInfo < TencentCloud::Common::AbstractModel
|
223
|
+
# @param ClusterId: 集群ID
|
224
|
+
# @type ClusterId: String
|
225
|
+
# @param InstanceIds: 实例ID列表
|
226
|
+
# @type InstanceIds: Array
|
227
|
+
|
228
|
+
attr_accessor :ClusterId, :InstanceIds
|
229
|
+
|
230
|
+
def initialize(clusterid=nil, instanceids=nil)
|
231
|
+
@ClusterId = clusterid
|
232
|
+
@InstanceIds = instanceids
|
233
|
+
end
|
234
|
+
|
235
|
+
def deserialize(params)
|
236
|
+
@ClusterId = params['ClusterId']
|
237
|
+
@InstanceIds = params['InstanceIds']
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
# 集群实例信息
|
242
|
+
class ClusterInstanceDetail < TencentCloud::Common::AbstractModel
|
243
|
+
# @param InstanceId: 实例ID
|
244
|
+
# @type InstanceId: String
|
245
|
+
# @param InstanceName: 实例名称
|
246
|
+
# @type InstanceName: String
|
247
|
+
# @param InstanceType: 引擎类型
|
248
|
+
# @type InstanceType: String
|
249
|
+
# @param InstanceStatus: 实例状态
|
250
|
+
# @type InstanceStatus: String
|
251
|
+
# @param InstanceStatusDesc: 实例状态描述
|
252
|
+
# @type InstanceStatusDesc: String
|
253
|
+
# @param InstanceCpu: cpu核数
|
254
|
+
# @type InstanceCpu: Integer
|
255
|
+
# @param InstanceMemory: 内存
|
256
|
+
# @type InstanceMemory: Integer
|
257
|
+
# @param InstanceStorage: 硬盘
|
258
|
+
# @type InstanceStorage: Integer
|
259
|
+
|
260
|
+
attr_accessor :InstanceId, :InstanceName, :InstanceType, :InstanceStatus, :InstanceStatusDesc, :InstanceCpu, :InstanceMemory, :InstanceStorage
|
261
|
+
|
262
|
+
def initialize(instanceid=nil, instancename=nil, instancetype=nil, instancestatus=nil, instancestatusdesc=nil, instancecpu=nil, instancememory=nil, instancestorage=nil)
|
263
|
+
@InstanceId = instanceid
|
264
|
+
@InstanceName = instancename
|
265
|
+
@InstanceType = instancetype
|
266
|
+
@InstanceStatus = instancestatus
|
267
|
+
@InstanceStatusDesc = instancestatusdesc
|
268
|
+
@InstanceCpu = instancecpu
|
269
|
+
@InstanceMemory = instancememory
|
270
|
+
@InstanceStorage = instancestorage
|
271
|
+
end
|
272
|
+
|
273
|
+
def deserialize(params)
|
274
|
+
@InstanceId = params['InstanceId']
|
275
|
+
@InstanceName = params['InstanceName']
|
276
|
+
@InstanceType = params['InstanceType']
|
277
|
+
@InstanceStatus = params['InstanceStatus']
|
278
|
+
@InstanceStatusDesc = params['InstanceStatusDesc']
|
279
|
+
@InstanceCpu = params['InstanceCpu']
|
280
|
+
@InstanceMemory = params['InstanceMemory']
|
281
|
+
@InstanceStorage = params['InstanceStorage']
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# CreateClusters请求参数结构体
|
286
|
+
class CreateClustersRequest < TencentCloud::Common::AbstractModel
|
287
|
+
# @param Zone: 可用区
|
288
|
+
# @type Zone: String
|
289
|
+
# @param VpcId: 所属VPC网络ID
|
290
|
+
# @type VpcId: String
|
291
|
+
# @param SubnetId: 所属子网ID
|
292
|
+
# @type SubnetId: String
|
293
|
+
# @param DbType: 数据库类型,取值范围:
|
294
|
+
# <li> MYSQL </li>
|
295
|
+
# @type DbType: String
|
296
|
+
# @param DbVersion: 数据库版本,取值范围:
|
297
|
+
# <li> MYSQL可选值:5.7 </li>
|
298
|
+
# @type DbVersion: String
|
299
|
+
# @param ProjectId: 所属项目ID
|
300
|
+
# @type ProjectId: Integer
|
301
|
+
# @param Cpu: 普通实例Cpu核数
|
302
|
+
# @type Cpu: Integer
|
303
|
+
# @param Memory: 普通实例内存,单位G
|
304
|
+
# @type Memory: Integer
|
305
|
+
# @param Storage: 存储大小,单位G
|
306
|
+
# @type Storage: Integer
|
307
|
+
# @param ClusterName: 集群名称
|
308
|
+
# @type ClusterName: String
|
309
|
+
# @param AdminPassword: 账号密码(8-64个字符,包含大小写英文字母、数字和符号~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/中的任意三种)
|
310
|
+
# @type AdminPassword: String
|
311
|
+
# @param Port: 端口,默认5432
|
312
|
+
# @type Port: Integer
|
313
|
+
# @param PayMode: 计费模式,按量计费:0,包年包月:1。默认按量计费。
|
314
|
+
# @type PayMode: Integer
|
315
|
+
# @param Count: 购买个数,目前只支持传1(不传默认为1)
|
316
|
+
# @type Count: Integer
|
317
|
+
# @param RollbackStrategy: 回档类型:
|
318
|
+
# noneRollback:不回档;
|
319
|
+
# snapRollback,快照回档;
|
320
|
+
# timeRollback,时间点回档
|
321
|
+
# @type RollbackStrategy: String
|
322
|
+
# @param RollbackId: 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
|
323
|
+
# @type RollbackId: Integer
|
324
|
+
# @param OriginalClusterId: 回档时,传入源集群ID,用于查找源poolId
|
325
|
+
# @type OriginalClusterId: String
|
326
|
+
# @param ExpectTime: 时间点回档,指定时间;快照回档,快照时间
|
327
|
+
# @type ExpectTime: String
|
328
|
+
# @param ExpectTimeThresh: 时间点回档,指定时间允许范围
|
329
|
+
# @type ExpectTimeThresh: Integer
|
330
|
+
# @param StorageLimit: 普通实例存储上限,单位GB
|
331
|
+
# 当DbType为MYSQL,且存储计费模式为预付费时,该参数需不大于cpu与memory对应存储规格上限
|
332
|
+
# @type StorageLimit: Integer
|
333
|
+
# @param InstanceCount: 实例数量
|
334
|
+
# @type InstanceCount: Integer
|
335
|
+
# @param TimeSpan: 包年包月购买时长
|
336
|
+
# @type TimeSpan: Integer
|
337
|
+
# @param TimeUnit: 包年包月购买时长单位
|
338
|
+
# @type TimeUnit: String
|
339
|
+
# @param AutoRenewFlag: 包年包月购买是否自动续费
|
340
|
+
# @type AutoRenewFlag: Integer
|
341
|
+
# @param AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
|
342
|
+
# @type AutoVoucher: Integer
|
343
|
+
# @param HaCount: 实例数量(该参数已不再使用,只做存量兼容处理)
|
344
|
+
# @type HaCount: Integer
|
345
|
+
# @param OrderSource: 订单来源
|
346
|
+
# @type OrderSource: String
|
347
|
+
# @param ResourceTags: 集群创建需要绑定的tag数组信息
|
348
|
+
# @type ResourceTags: Array
|
349
|
+
# @param DbMode: Db类型
|
350
|
+
# 当DbType为MYSQL时可选(默认NORMAL):
|
351
|
+
# <li>NORMAL</li>
|
352
|
+
# <li>SERVERLESS</li>
|
353
|
+
# @type DbMode: String
|
354
|
+
# @param MinCpu: 当DbMode为SEVERLESS时必填
|
355
|
+
# cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
356
|
+
# @type MinCpu: Float
|
357
|
+
# @param MaxCpu: 当DbMode为SEVERLESS时必填:
|
358
|
+
# cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
359
|
+
# @type MaxCpu: Float
|
360
|
+
# @param AutoPause: 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围
|
361
|
+
# <li>yes</li>
|
362
|
+
# <li>no</li>
|
363
|
+
# 默认值:yes
|
364
|
+
# @type AutoPause: String
|
365
|
+
# @param AutoPauseDelay: 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
|
366
|
+
# 默认值:600
|
367
|
+
# @type AutoPauseDelay: Integer
|
368
|
+
# @param StoragePayMode: 集群存储计费模式,按量计费:0,包年包月:1。默认按量计费
|
369
|
+
# 当DbType为MYSQL时,在集群计算计费模式为后付费(包括DbMode为SERVERLESS)时,存储计费模式仅可为按量计费
|
370
|
+
# 回档与克隆均不支持包年包月存储
|
371
|
+
# @type StoragePayMode: Integer
|
372
|
+
# @param SecurityGroupIds: 安全组id数组
|
373
|
+
# @type SecurityGroupIds: Array
|
374
|
+
# @param AlarmPolicyIds: 告警策略Id数组
|
375
|
+
# @type AlarmPolicyIds: Array
|
376
|
+
# @param ClusterParams: 参数数组
|
377
|
+
# @type ClusterParams: Array
|
378
|
+
# @param DealMode: 交易模式,0-下单且支付,1-下单
|
379
|
+
# @type DealMode: Integer
|
380
|
+
# @param ParamTemplateId: 参数模版ID
|
381
|
+
# @type ParamTemplateId: Integer
|
382
|
+
|
383
|
+
attr_accessor :Zone, :VpcId, :SubnetId, :DbType, :DbVersion, :ProjectId, :Cpu, :Memory, :Storage, :ClusterName, :AdminPassword, :Port, :PayMode, :Count, :RollbackStrategy, :RollbackId, :OriginalClusterId, :ExpectTime, :ExpectTimeThresh, :StorageLimit, :InstanceCount, :TimeSpan, :TimeUnit, :AutoRenewFlag, :AutoVoucher, :HaCount, :OrderSource, :ResourceTags, :DbMode, :MinCpu, :MaxCpu, :AutoPause, :AutoPauseDelay, :StoragePayMode, :SecurityGroupIds, :AlarmPolicyIds, :ClusterParams, :DealMode, :ParamTemplateId
|
384
|
+
|
385
|
+
def initialize(zone=nil, vpcid=nil, subnetid=nil, dbtype=nil, dbversion=nil, projectid=nil, cpu=nil, memory=nil, storage=nil, clustername=nil, adminpassword=nil, port=nil, paymode=nil, count=nil, rollbackstrategy=nil, rollbackid=nil, originalclusterid=nil, expecttime=nil, expecttimethresh=nil, storagelimit=nil, instancecount=nil, timespan=nil, timeunit=nil, autorenewflag=nil, autovoucher=nil, hacount=nil, ordersource=nil, resourcetags=nil, dbmode=nil, mincpu=nil, maxcpu=nil, autopause=nil, autopausedelay=nil, storagepaymode=nil, securitygroupids=nil, alarmpolicyids=nil, clusterparams=nil, dealmode=nil, paramtemplateid=nil)
|
386
|
+
@Zone = zone
|
387
|
+
@VpcId = vpcid
|
388
|
+
@SubnetId = subnetid
|
389
|
+
@DbType = dbtype
|
390
|
+
@DbVersion = dbversion
|
391
|
+
@ProjectId = projectid
|
392
|
+
@Cpu = cpu
|
393
|
+
@Memory = memory
|
394
|
+
@Storage = storage
|
395
|
+
@ClusterName = clustername
|
396
|
+
@AdminPassword = adminpassword
|
397
|
+
@Port = port
|
398
|
+
@PayMode = paymode
|
399
|
+
@Count = count
|
400
|
+
@RollbackStrategy = rollbackstrategy
|
401
|
+
@RollbackId = rollbackid
|
402
|
+
@OriginalClusterId = originalclusterid
|
403
|
+
@ExpectTime = expecttime
|
404
|
+
@ExpectTimeThresh = expecttimethresh
|
405
|
+
@StorageLimit = storagelimit
|
406
|
+
@InstanceCount = instancecount
|
407
|
+
@TimeSpan = timespan
|
408
|
+
@TimeUnit = timeunit
|
409
|
+
@AutoRenewFlag = autorenewflag
|
410
|
+
@AutoVoucher = autovoucher
|
411
|
+
@HaCount = hacount
|
412
|
+
@OrderSource = ordersource
|
413
|
+
@ResourceTags = resourcetags
|
414
|
+
@DbMode = dbmode
|
415
|
+
@MinCpu = mincpu
|
416
|
+
@MaxCpu = maxcpu
|
417
|
+
@AutoPause = autopause
|
418
|
+
@AutoPauseDelay = autopausedelay
|
419
|
+
@StoragePayMode = storagepaymode
|
420
|
+
@SecurityGroupIds = securitygroupids
|
421
|
+
@AlarmPolicyIds = alarmpolicyids
|
422
|
+
@ClusterParams = clusterparams
|
423
|
+
@DealMode = dealmode
|
424
|
+
@ParamTemplateId = paramtemplateid
|
425
|
+
end
|
426
|
+
|
427
|
+
def deserialize(params)
|
428
|
+
@Zone = params['Zone']
|
429
|
+
@VpcId = params['VpcId']
|
430
|
+
@SubnetId = params['SubnetId']
|
431
|
+
@DbType = params['DbType']
|
432
|
+
@DbVersion = params['DbVersion']
|
433
|
+
@ProjectId = params['ProjectId']
|
434
|
+
@Cpu = params['Cpu']
|
435
|
+
@Memory = params['Memory']
|
436
|
+
@Storage = params['Storage']
|
437
|
+
@ClusterName = params['ClusterName']
|
438
|
+
@AdminPassword = params['AdminPassword']
|
439
|
+
@Port = params['Port']
|
440
|
+
@PayMode = params['PayMode']
|
441
|
+
@Count = params['Count']
|
442
|
+
@RollbackStrategy = params['RollbackStrategy']
|
443
|
+
@RollbackId = params['RollbackId']
|
444
|
+
@OriginalClusterId = params['OriginalClusterId']
|
445
|
+
@ExpectTime = params['ExpectTime']
|
446
|
+
@ExpectTimeThresh = params['ExpectTimeThresh']
|
447
|
+
@StorageLimit = params['StorageLimit']
|
448
|
+
@InstanceCount = params['InstanceCount']
|
449
|
+
@TimeSpan = params['TimeSpan']
|
450
|
+
@TimeUnit = params['TimeUnit']
|
451
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
452
|
+
@AutoVoucher = params['AutoVoucher']
|
453
|
+
@HaCount = params['HaCount']
|
454
|
+
@OrderSource = params['OrderSource']
|
455
|
+
unless params['ResourceTags'].nil?
|
456
|
+
@ResourceTags = []
|
457
|
+
params['ResourceTags'].each do |i|
|
458
|
+
tag_tmp = Tag.new
|
459
|
+
tag_tmp.deserialize(i)
|
460
|
+
@ResourceTags << tag_tmp
|
461
|
+
end
|
462
|
+
end
|
463
|
+
@DbMode = params['DbMode']
|
464
|
+
@MinCpu = params['MinCpu']
|
465
|
+
@MaxCpu = params['MaxCpu']
|
466
|
+
@AutoPause = params['AutoPause']
|
467
|
+
@AutoPauseDelay = params['AutoPauseDelay']
|
468
|
+
@StoragePayMode = params['StoragePayMode']
|
469
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
470
|
+
@AlarmPolicyIds = params['AlarmPolicyIds']
|
471
|
+
unless params['ClusterParams'].nil?
|
472
|
+
@ClusterParams = []
|
473
|
+
params['ClusterParams'].each do |i|
|
474
|
+
paramitem_tmp = ParamItem.new
|
475
|
+
paramitem_tmp.deserialize(i)
|
476
|
+
@ClusterParams << paramitem_tmp
|
477
|
+
end
|
478
|
+
end
|
479
|
+
@DealMode = params['DealMode']
|
480
|
+
@ParamTemplateId = params['ParamTemplateId']
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# CreateClusters返回参数结构体
|
485
|
+
class CreateClustersResponse < TencentCloud::Common::AbstractModel
|
486
|
+
# @param TranId: 冻结流水ID
|
487
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
488
|
+
# @type TranId: String
|
489
|
+
# @param DealNames: 订单号
|
490
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
491
|
+
# @type DealNames: Array
|
492
|
+
# @param ResourceIds: 资源ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取资源ID)
|
493
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
494
|
+
# @type ResourceIds: Array
|
495
|
+
# @param ClusterIds: 集群ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取集群ID)
|
496
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
497
|
+
# @type ClusterIds: Array
|
498
|
+
# @param BigDealIds: 大订单号
|
499
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
500
|
+
# @type BigDealIds: Array
|
501
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
502
|
+
# @type RequestId: String
|
503
|
+
|
504
|
+
attr_accessor :TranId, :DealNames, :ResourceIds, :ClusterIds, :BigDealIds, :RequestId
|
505
|
+
|
506
|
+
def initialize(tranid=nil, dealnames=nil, resourceids=nil, clusterids=nil, bigdealids=nil, requestid=nil)
|
507
|
+
@TranId = tranid
|
508
|
+
@DealNames = dealnames
|
509
|
+
@ResourceIds = resourceids
|
510
|
+
@ClusterIds = clusterids
|
511
|
+
@BigDealIds = bigdealids
|
512
|
+
@RequestId = requestid
|
513
|
+
end
|
514
|
+
|
515
|
+
def deserialize(params)
|
516
|
+
@TranId = params['TranId']
|
517
|
+
@DealNames = params['DealNames']
|
518
|
+
@ResourceIds = params['ResourceIds']
|
519
|
+
@ClusterIds = params['ClusterIds']
|
520
|
+
@BigDealIds = params['BigDealIds']
|
521
|
+
@RequestId = params['RequestId']
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
# 集群信息
|
526
|
+
class CynosdbCluster < TencentCloud::Common::AbstractModel
|
527
|
+
# @param Status: 集群状态
|
528
|
+
# @type Status: String
|
529
|
+
# @param UpdateTime: 更新时间
|
530
|
+
# @type UpdateTime: String
|
531
|
+
# @param Zone: 可用区
|
532
|
+
# @type Zone: String
|
533
|
+
# @param ClusterName: 集群名称
|
534
|
+
# @type ClusterName: String
|
535
|
+
# @param Region: 地域
|
536
|
+
# @type Region: String
|
537
|
+
# @param DbVersion: 数据库版本
|
538
|
+
# @type DbVersion: String
|
539
|
+
# @param ClusterId: 集群ID
|
540
|
+
# @type ClusterId: String
|
541
|
+
# @param InstanceNum: 实例数
|
542
|
+
# @type InstanceNum: Integer
|
543
|
+
# @param Uin: 用户uin
|
544
|
+
# @type Uin: String
|
545
|
+
# @param DbType: 引擎类型
|
546
|
+
# @type DbType: String
|
547
|
+
# @param AppId: 用户appid
|
548
|
+
# @type AppId: Integer
|
549
|
+
# @param StatusDesc: 集群状态描述
|
550
|
+
# @type StatusDesc: String
|
551
|
+
# @param CreateTime: 集群创建时间
|
552
|
+
# @type CreateTime: String
|
553
|
+
# @param PayMode: 付费模式。0-按量计费,1-包年包月
|
554
|
+
# @type PayMode: Integer
|
555
|
+
# @param PeriodEndTime: 截止时间
|
556
|
+
# @type PeriodEndTime: String
|
557
|
+
# @param Vip: 集群读写vip
|
558
|
+
# @type Vip: String
|
559
|
+
# @param Vport: 集群读写vport
|
560
|
+
# @type Vport: Integer
|
561
|
+
# @param ProjectID: 项目id
|
562
|
+
# @type ProjectID: Integer
|
563
|
+
# @param VpcId: 私有网络ID
|
564
|
+
# @type VpcId: String
|
565
|
+
# @param SubnetId: 子网ID
|
566
|
+
# @type SubnetId: String
|
567
|
+
# @param CynosVersion: cynos内核版本
|
568
|
+
# @type CynosVersion: String
|
569
|
+
# @param StorageLimit: 存储容量
|
570
|
+
# @type StorageLimit: Integer
|
571
|
+
# @param RenewFlag: 续费标志
|
572
|
+
# @type RenewFlag: Integer
|
573
|
+
# @param ProcessingTask: 正在处理的任务
|
574
|
+
# @type ProcessingTask: String
|
575
|
+
# @param Tasks: 集群的任务数组
|
576
|
+
# @type Tasks: Array
|
577
|
+
# @param ResourceTags: 集群绑定的tag数组
|
578
|
+
# @type ResourceTags: Array
|
579
|
+
# @param DbMode: Db类型(NORMAL, SERVERLESS)
|
580
|
+
# @type DbMode: String
|
581
|
+
# @param ServerlessStatus: 当Db类型为SERVERLESS时,serverless集群状态,可选值:
|
582
|
+
# resume
|
583
|
+
# pause
|
584
|
+
# @type ServerlessStatus: String
|
585
|
+
# @param Storage: 集群预付费存储值大小
|
586
|
+
# @type Storage: Integer
|
587
|
+
# @param StorageId: 集群存储为预付费时的存储ID,用于预付费存储变配
|
588
|
+
# @type StorageId: String
|
589
|
+
# @param StoragePayMode: 集群存储付费模式。0-按量计费,1-包年包月
|
590
|
+
# @type StoragePayMode: Integer
|
591
|
+
# @param MinStorageSize: 集群计算规格对应的最小存储值
|
592
|
+
# @type MinStorageSize: Integer
|
593
|
+
# @param MaxStorageSize: 集群计算规格对应的最大存储值
|
594
|
+
# @type MaxStorageSize: Integer
|
595
|
+
# @param NetAddrs: 集群网络信息
|
596
|
+
# @type NetAddrs: Array
|
597
|
+
|
598
|
+
attr_accessor :Status, :UpdateTime, :Zone, :ClusterName, :Region, :DbVersion, :ClusterId, :InstanceNum, :Uin, :DbType, :AppId, :StatusDesc, :CreateTime, :PayMode, :PeriodEndTime, :Vip, :Vport, :ProjectID, :VpcId, :SubnetId, :CynosVersion, :StorageLimit, :RenewFlag, :ProcessingTask, :Tasks, :ResourceTags, :DbMode, :ServerlessStatus, :Storage, :StorageId, :StoragePayMode, :MinStorageSize, :MaxStorageSize, :NetAddrs
|
599
|
+
|
600
|
+
def initialize(status=nil, updatetime=nil, zone=nil, clustername=nil, region=nil, dbversion=nil, clusterid=nil, instancenum=nil, uin=nil, dbtype=nil, appid=nil, statusdesc=nil, createtime=nil, paymode=nil, periodendtime=nil, vip=nil, vport=nil, projectid=nil, vpcid=nil, subnetid=nil, cynosversion=nil, storagelimit=nil, renewflag=nil, processingtask=nil, tasks=nil, resourcetags=nil, dbmode=nil, serverlessstatus=nil, storage=nil, storageid=nil, storagepaymode=nil, minstoragesize=nil, maxstoragesize=nil, netaddrs=nil)
|
601
|
+
@Status = status
|
602
|
+
@UpdateTime = updatetime
|
603
|
+
@Zone = zone
|
604
|
+
@ClusterName = clustername
|
605
|
+
@Region = region
|
606
|
+
@DbVersion = dbversion
|
607
|
+
@ClusterId = clusterid
|
608
|
+
@InstanceNum = instancenum
|
609
|
+
@Uin = uin
|
610
|
+
@DbType = dbtype
|
611
|
+
@AppId = appid
|
612
|
+
@StatusDesc = statusdesc
|
613
|
+
@CreateTime = createtime
|
614
|
+
@PayMode = paymode
|
615
|
+
@PeriodEndTime = periodendtime
|
616
|
+
@Vip = vip
|
617
|
+
@Vport = vport
|
618
|
+
@ProjectID = projectid
|
619
|
+
@VpcId = vpcid
|
620
|
+
@SubnetId = subnetid
|
621
|
+
@CynosVersion = cynosversion
|
622
|
+
@StorageLimit = storagelimit
|
623
|
+
@RenewFlag = renewflag
|
624
|
+
@ProcessingTask = processingtask
|
625
|
+
@Tasks = tasks
|
626
|
+
@ResourceTags = resourcetags
|
627
|
+
@DbMode = dbmode
|
628
|
+
@ServerlessStatus = serverlessstatus
|
629
|
+
@Storage = storage
|
630
|
+
@StorageId = storageid
|
631
|
+
@StoragePayMode = storagepaymode
|
632
|
+
@MinStorageSize = minstoragesize
|
633
|
+
@MaxStorageSize = maxstoragesize
|
634
|
+
@NetAddrs = netaddrs
|
635
|
+
end
|
636
|
+
|
637
|
+
def deserialize(params)
|
638
|
+
@Status = params['Status']
|
639
|
+
@UpdateTime = params['UpdateTime']
|
640
|
+
@Zone = params['Zone']
|
641
|
+
@ClusterName = params['ClusterName']
|
642
|
+
@Region = params['Region']
|
643
|
+
@DbVersion = params['DbVersion']
|
644
|
+
@ClusterId = params['ClusterId']
|
645
|
+
@InstanceNum = params['InstanceNum']
|
646
|
+
@Uin = params['Uin']
|
647
|
+
@DbType = params['DbType']
|
648
|
+
@AppId = params['AppId']
|
649
|
+
@StatusDesc = params['StatusDesc']
|
650
|
+
@CreateTime = params['CreateTime']
|
651
|
+
@PayMode = params['PayMode']
|
652
|
+
@PeriodEndTime = params['PeriodEndTime']
|
653
|
+
@Vip = params['Vip']
|
654
|
+
@Vport = params['Vport']
|
655
|
+
@ProjectID = params['ProjectID']
|
656
|
+
@VpcId = params['VpcId']
|
657
|
+
@SubnetId = params['SubnetId']
|
658
|
+
@CynosVersion = params['CynosVersion']
|
659
|
+
@StorageLimit = params['StorageLimit']
|
660
|
+
@RenewFlag = params['RenewFlag']
|
661
|
+
@ProcessingTask = params['ProcessingTask']
|
662
|
+
unless params['Tasks'].nil?
|
663
|
+
@Tasks = []
|
664
|
+
params['Tasks'].each do |i|
|
665
|
+
objecttask_tmp = ObjectTask.new
|
666
|
+
objecttask_tmp.deserialize(i)
|
667
|
+
@Tasks << objecttask_tmp
|
668
|
+
end
|
669
|
+
end
|
670
|
+
unless params['ResourceTags'].nil?
|
671
|
+
@ResourceTags = []
|
672
|
+
params['ResourceTags'].each do |i|
|
673
|
+
tag_tmp = Tag.new
|
674
|
+
tag_tmp.deserialize(i)
|
675
|
+
@ResourceTags << tag_tmp
|
676
|
+
end
|
677
|
+
end
|
678
|
+
@DbMode = params['DbMode']
|
679
|
+
@ServerlessStatus = params['ServerlessStatus']
|
680
|
+
@Storage = params['Storage']
|
681
|
+
@StorageId = params['StorageId']
|
682
|
+
@StoragePayMode = params['StoragePayMode']
|
683
|
+
@MinStorageSize = params['MinStorageSize']
|
684
|
+
@MaxStorageSize = params['MaxStorageSize']
|
685
|
+
unless params['NetAddrs'].nil?
|
686
|
+
@NetAddrs = []
|
687
|
+
params['NetAddrs'].each do |i|
|
688
|
+
netaddr_tmp = NetAddr.new
|
689
|
+
netaddr_tmp.deserialize(i)
|
690
|
+
@NetAddrs << netaddr_tmp
|
691
|
+
end
|
692
|
+
end
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
# 集群详情详细信息
|
697
|
+
class CynosdbClusterDetail < TencentCloud::Common::AbstractModel
|
698
|
+
# @param ClusterId: 集群ID
|
699
|
+
# @type ClusterId: String
|
700
|
+
# @param ClusterName: 集群名称
|
701
|
+
# @type ClusterName: String
|
702
|
+
# @param Region: 地域
|
703
|
+
# @type Region: String
|
704
|
+
# @param Status: 状态
|
705
|
+
# @type Status: String
|
706
|
+
# @param StatusDesc: 状态描述
|
707
|
+
# @type StatusDesc: String
|
708
|
+
# @param VpcName: VPC名称
|
709
|
+
# @type VpcName: String
|
710
|
+
# @param VpcId: vpc唯一id
|
711
|
+
# @type VpcId: String
|
712
|
+
# @param SubnetName: 子网名称
|
713
|
+
# @type SubnetName: String
|
714
|
+
# @param SubnetId: 子网ID
|
715
|
+
# @type SubnetId: String
|
716
|
+
# @param Charset: 字符集
|
717
|
+
# @type Charset: String
|
718
|
+
# @param CreateTime: 创建时间
|
719
|
+
# @type CreateTime: String
|
720
|
+
# @param DbType: 数据库类型
|
721
|
+
# @type DbType: String
|
722
|
+
# @param DbVersion: 数据库版本
|
723
|
+
# @type DbVersion: String
|
724
|
+
# @param UsedStorage: 使用容量
|
725
|
+
# @type UsedStorage: Integer
|
726
|
+
# @param RoAddr: 读写分离Vport
|
727
|
+
# @type RoAddr: Array
|
728
|
+
# @param InstanceSet: 实例信息
|
729
|
+
# @type InstanceSet: Array
|
730
|
+
# @param PayMode: 付费模式
|
731
|
+
# @type PayMode: Integer
|
732
|
+
# @param PeriodEndTime: 到期时间
|
733
|
+
# @type PeriodEndTime: String
|
734
|
+
# @param Vip: vip地址
|
735
|
+
# @type Vip: String
|
736
|
+
# @param Vport: vport端口
|
737
|
+
# @type Vport: Integer
|
738
|
+
# @param ProjectID: 项目id
|
739
|
+
# @type ProjectID: Integer
|
740
|
+
# @param Zone: 可用区
|
741
|
+
# @type Zone: String
|
742
|
+
# @param ResourceTags: 实例绑定的tag数组信息
|
743
|
+
# @type ResourceTags: Array
|
744
|
+
# @param ServerlessStatus: 当Db类型为SERVERLESS时,serverless集群状态,可选值:
|
745
|
+
# resume
|
746
|
+
# resuming
|
747
|
+
# pause
|
748
|
+
# pausing
|
749
|
+
# @type ServerlessStatus: String
|
750
|
+
|
751
|
+
attr_accessor :ClusterId, :ClusterName, :Region, :Status, :StatusDesc, :VpcName, :VpcId, :SubnetName, :SubnetId, :Charset, :CreateTime, :DbType, :DbVersion, :UsedStorage, :RoAddr, :InstanceSet, :PayMode, :PeriodEndTime, :Vip, :Vport, :ProjectID, :Zone, :ResourceTags, :ServerlessStatus
|
752
|
+
|
753
|
+
def initialize(clusterid=nil, clustername=nil, region=nil, status=nil, statusdesc=nil, vpcname=nil, vpcid=nil, subnetname=nil, subnetid=nil, charset=nil, createtime=nil, dbtype=nil, dbversion=nil, usedstorage=nil, roaddr=nil, instanceset=nil, paymode=nil, periodendtime=nil, vip=nil, vport=nil, projectid=nil, zone=nil, resourcetags=nil, serverlessstatus=nil)
|
754
|
+
@ClusterId = clusterid
|
755
|
+
@ClusterName = clustername
|
756
|
+
@Region = region
|
757
|
+
@Status = status
|
758
|
+
@StatusDesc = statusdesc
|
759
|
+
@VpcName = vpcname
|
760
|
+
@VpcId = vpcid
|
761
|
+
@SubnetName = subnetname
|
762
|
+
@SubnetId = subnetid
|
763
|
+
@Charset = charset
|
764
|
+
@CreateTime = createtime
|
765
|
+
@DbType = dbtype
|
766
|
+
@DbVersion = dbversion
|
767
|
+
@UsedStorage = usedstorage
|
768
|
+
@RoAddr = roaddr
|
769
|
+
@InstanceSet = instanceset
|
770
|
+
@PayMode = paymode
|
771
|
+
@PeriodEndTime = periodendtime
|
772
|
+
@Vip = vip
|
773
|
+
@Vport = vport
|
774
|
+
@ProjectID = projectid
|
775
|
+
@Zone = zone
|
776
|
+
@ResourceTags = resourcetags
|
777
|
+
@ServerlessStatus = serverlessstatus
|
778
|
+
end
|
779
|
+
|
780
|
+
def deserialize(params)
|
781
|
+
@ClusterId = params['ClusterId']
|
782
|
+
@ClusterName = params['ClusterName']
|
783
|
+
@Region = params['Region']
|
784
|
+
@Status = params['Status']
|
785
|
+
@StatusDesc = params['StatusDesc']
|
786
|
+
@VpcName = params['VpcName']
|
787
|
+
@VpcId = params['VpcId']
|
788
|
+
@SubnetName = params['SubnetName']
|
789
|
+
@SubnetId = params['SubnetId']
|
790
|
+
@Charset = params['Charset']
|
791
|
+
@CreateTime = params['CreateTime']
|
792
|
+
@DbType = params['DbType']
|
793
|
+
@DbVersion = params['DbVersion']
|
794
|
+
@UsedStorage = params['UsedStorage']
|
795
|
+
unless params['RoAddr'].nil?
|
796
|
+
@RoAddr = []
|
797
|
+
params['RoAddr'].each do |i|
|
798
|
+
addr_tmp = Addr.new
|
799
|
+
addr_tmp.deserialize(i)
|
800
|
+
@RoAddr << addr_tmp
|
801
|
+
end
|
802
|
+
end
|
803
|
+
unless params['InstanceSet'].nil?
|
804
|
+
@InstanceSet = []
|
805
|
+
params['InstanceSet'].each do |i|
|
806
|
+
clusterinstancedetail_tmp = ClusterInstanceDetail.new
|
807
|
+
clusterinstancedetail_tmp.deserialize(i)
|
808
|
+
@InstanceSet << clusterinstancedetail_tmp
|
809
|
+
end
|
810
|
+
end
|
811
|
+
@PayMode = params['PayMode']
|
812
|
+
@PeriodEndTime = params['PeriodEndTime']
|
813
|
+
@Vip = params['Vip']
|
814
|
+
@Vport = params['Vport']
|
815
|
+
@ProjectID = params['ProjectID']
|
816
|
+
@Zone = params['Zone']
|
817
|
+
unless params['ResourceTags'].nil?
|
818
|
+
@ResourceTags = []
|
819
|
+
params['ResourceTags'].each do |i|
|
820
|
+
tag_tmp = Tag.new
|
821
|
+
tag_tmp.deserialize(i)
|
822
|
+
@ResourceTags << tag_tmp
|
823
|
+
end
|
824
|
+
end
|
825
|
+
@ServerlessStatus = params['ServerlessStatus']
|
826
|
+
end
|
827
|
+
end
|
828
|
+
|
829
|
+
# 实例信息
|
830
|
+
class CynosdbInstance < TencentCloud::Common::AbstractModel
|
831
|
+
# @param Uin: 用户Uin
|
832
|
+
# @type Uin: String
|
833
|
+
# @param AppId: 用户AppId
|
834
|
+
# @type AppId: Integer
|
835
|
+
# @param ClusterId: 集群ID
|
836
|
+
# @type ClusterId: String
|
837
|
+
# @param ClusterName: 集群名称
|
838
|
+
# @type ClusterName: String
|
839
|
+
# @param InstanceId: 实例ID
|
840
|
+
# @type InstanceId: String
|
841
|
+
# @param InstanceName: 实例名称
|
842
|
+
# @type InstanceName: String
|
843
|
+
# @param ProjectId: 项目ID
|
844
|
+
# @type ProjectId: Integer
|
845
|
+
# @param Region: 地域
|
846
|
+
# @type Region: String
|
847
|
+
# @param Zone: 可用区
|
848
|
+
# @type Zone: String
|
849
|
+
# @param Status: 实例状态
|
850
|
+
# @type Status: String
|
851
|
+
# @param StatusDesc: 实例状态中文描述
|
852
|
+
# @type StatusDesc: String
|
853
|
+
# @param DbType: 数据库类型
|
854
|
+
# @type DbType: String
|
855
|
+
# @param DbVersion: 数据库版本
|
856
|
+
# @type DbVersion: String
|
857
|
+
# @param Cpu: Cpu,单位:核
|
858
|
+
# @type Cpu: Integer
|
859
|
+
# @param Memory: 内存,单位:GB
|
860
|
+
# @type Memory: Integer
|
861
|
+
# @param Storage: 存储量,单位:GB
|
862
|
+
# @type Storage: Integer
|
863
|
+
# @param InstanceType: 实例类型
|
864
|
+
# @type InstanceType: String
|
865
|
+
# @param InstanceRole: 实例当前角色
|
866
|
+
# @type InstanceRole: String
|
867
|
+
# @param UpdateTime: 更新时间
|
868
|
+
# @type UpdateTime: String
|
869
|
+
# @param CreateTime: 创建时间
|
870
|
+
# @type CreateTime: String
|
871
|
+
# @param VpcId: VPC网络ID
|
872
|
+
# @type VpcId: String
|
873
|
+
# @param SubnetId: 子网ID
|
874
|
+
# @type SubnetId: String
|
875
|
+
# @param Vip: 实例内网IP
|
876
|
+
# @type Vip: String
|
877
|
+
# @param Vport: 实例内网端口
|
878
|
+
# @type Vport: Integer
|
879
|
+
# @param PayMode: 付费模式
|
880
|
+
# @type PayMode: Integer
|
881
|
+
# @param PeriodEndTime: 实例过期时间
|
882
|
+
# @type PeriodEndTime: String
|
883
|
+
# @param DestroyDeadlineText: 销毁期限
|
884
|
+
# @type DestroyDeadlineText: String
|
885
|
+
# @param IsolateTime: 隔离时间
|
886
|
+
# @type IsolateTime: String
|
887
|
+
# @param NetType: 网络类型
|
888
|
+
# @type NetType: Integer
|
889
|
+
# @param WanDomain: 外网域名
|
890
|
+
# @type WanDomain: String
|
891
|
+
# @param WanIP: 外网IP
|
892
|
+
# @type WanIP: String
|
893
|
+
# @param WanPort: 外网端口
|
894
|
+
# @type WanPort: Integer
|
895
|
+
# @param WanStatus: 外网状态
|
896
|
+
# @type WanStatus: String
|
897
|
+
# @param DestroyTime: 实例销毁时间
|
898
|
+
# @type DestroyTime: String
|
899
|
+
# @param CynosVersion: Cynos内核版本
|
900
|
+
# @type CynosVersion: String
|
901
|
+
# @param ProcessingTask: 正在处理的任务
|
902
|
+
# @type ProcessingTask: String
|
903
|
+
# @param RenewFlag: 续费标志
|
904
|
+
# @type RenewFlag: Integer
|
905
|
+
# @param MinCpu: serverless实例cpu下限
|
906
|
+
# @type MinCpu: Float
|
907
|
+
# @param MaxCpu: serverless实例cpu上限
|
908
|
+
# @type MaxCpu: Float
|
909
|
+
# @param ServerlessStatus: serverless实例状态, 可选值:
|
910
|
+
# resume
|
911
|
+
# pause
|
912
|
+
# @type ServerlessStatus: String
|
913
|
+
# @param StorageId: 预付费存储Id
|
914
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
915
|
+
# @type StorageId: String
|
916
|
+
# @param StoragePayMode: 存储付费类型
|
917
|
+
# @type StoragePayMode: Integer
|
918
|
+
|
919
|
+
attr_accessor :Uin, :AppId, :ClusterId, :ClusterName, :InstanceId, :InstanceName, :ProjectId, :Region, :Zone, :Status, :StatusDesc, :DbType, :DbVersion, :Cpu, :Memory, :Storage, :InstanceType, :InstanceRole, :UpdateTime, :CreateTime, :VpcId, :SubnetId, :Vip, :Vport, :PayMode, :PeriodEndTime, :DestroyDeadlineText, :IsolateTime, :NetType, :WanDomain, :WanIP, :WanPort, :WanStatus, :DestroyTime, :CynosVersion, :ProcessingTask, :RenewFlag, :MinCpu, :MaxCpu, :ServerlessStatus, :StorageId, :StoragePayMode
|
920
|
+
|
921
|
+
def initialize(uin=nil, appid=nil, clusterid=nil, clustername=nil, instanceid=nil, instancename=nil, projectid=nil, region=nil, zone=nil, status=nil, statusdesc=nil, dbtype=nil, dbversion=nil, cpu=nil, memory=nil, storage=nil, instancetype=nil, instancerole=nil, updatetime=nil, createtime=nil, vpcid=nil, subnetid=nil, vip=nil, vport=nil, paymode=nil, periodendtime=nil, destroydeadlinetext=nil, isolatetime=nil, nettype=nil, wandomain=nil, wanip=nil, wanport=nil, wanstatus=nil, destroytime=nil, cynosversion=nil, processingtask=nil, renewflag=nil, mincpu=nil, maxcpu=nil, serverlessstatus=nil, storageid=nil, storagepaymode=nil)
|
922
|
+
@Uin = uin
|
923
|
+
@AppId = appid
|
924
|
+
@ClusterId = clusterid
|
925
|
+
@ClusterName = clustername
|
926
|
+
@InstanceId = instanceid
|
927
|
+
@InstanceName = instancename
|
928
|
+
@ProjectId = projectid
|
929
|
+
@Region = region
|
930
|
+
@Zone = zone
|
931
|
+
@Status = status
|
932
|
+
@StatusDesc = statusdesc
|
933
|
+
@DbType = dbtype
|
934
|
+
@DbVersion = dbversion
|
935
|
+
@Cpu = cpu
|
936
|
+
@Memory = memory
|
937
|
+
@Storage = storage
|
938
|
+
@InstanceType = instancetype
|
939
|
+
@InstanceRole = instancerole
|
940
|
+
@UpdateTime = updatetime
|
941
|
+
@CreateTime = createtime
|
942
|
+
@VpcId = vpcid
|
943
|
+
@SubnetId = subnetid
|
944
|
+
@Vip = vip
|
945
|
+
@Vport = vport
|
946
|
+
@PayMode = paymode
|
947
|
+
@PeriodEndTime = periodendtime
|
948
|
+
@DestroyDeadlineText = destroydeadlinetext
|
949
|
+
@IsolateTime = isolatetime
|
950
|
+
@NetType = nettype
|
951
|
+
@WanDomain = wandomain
|
952
|
+
@WanIP = wanip
|
953
|
+
@WanPort = wanport
|
954
|
+
@WanStatus = wanstatus
|
955
|
+
@DestroyTime = destroytime
|
956
|
+
@CynosVersion = cynosversion
|
957
|
+
@ProcessingTask = processingtask
|
958
|
+
@RenewFlag = renewflag
|
959
|
+
@MinCpu = mincpu
|
960
|
+
@MaxCpu = maxcpu
|
961
|
+
@ServerlessStatus = serverlessstatus
|
962
|
+
@StorageId = storageid
|
963
|
+
@StoragePayMode = storagepaymode
|
964
|
+
end
|
965
|
+
|
966
|
+
def deserialize(params)
|
967
|
+
@Uin = params['Uin']
|
968
|
+
@AppId = params['AppId']
|
969
|
+
@ClusterId = params['ClusterId']
|
970
|
+
@ClusterName = params['ClusterName']
|
971
|
+
@InstanceId = params['InstanceId']
|
972
|
+
@InstanceName = params['InstanceName']
|
973
|
+
@ProjectId = params['ProjectId']
|
974
|
+
@Region = params['Region']
|
975
|
+
@Zone = params['Zone']
|
976
|
+
@Status = params['Status']
|
977
|
+
@StatusDesc = params['StatusDesc']
|
978
|
+
@DbType = params['DbType']
|
979
|
+
@DbVersion = params['DbVersion']
|
980
|
+
@Cpu = params['Cpu']
|
981
|
+
@Memory = params['Memory']
|
982
|
+
@Storage = params['Storage']
|
983
|
+
@InstanceType = params['InstanceType']
|
984
|
+
@InstanceRole = params['InstanceRole']
|
985
|
+
@UpdateTime = params['UpdateTime']
|
986
|
+
@CreateTime = params['CreateTime']
|
987
|
+
@VpcId = params['VpcId']
|
988
|
+
@SubnetId = params['SubnetId']
|
989
|
+
@Vip = params['Vip']
|
990
|
+
@Vport = params['Vport']
|
991
|
+
@PayMode = params['PayMode']
|
992
|
+
@PeriodEndTime = params['PeriodEndTime']
|
993
|
+
@DestroyDeadlineText = params['DestroyDeadlineText']
|
994
|
+
@IsolateTime = params['IsolateTime']
|
995
|
+
@NetType = params['NetType']
|
996
|
+
@WanDomain = params['WanDomain']
|
997
|
+
@WanIP = params['WanIP']
|
998
|
+
@WanPort = params['WanPort']
|
999
|
+
@WanStatus = params['WanStatus']
|
1000
|
+
@DestroyTime = params['DestroyTime']
|
1001
|
+
@CynosVersion = params['CynosVersion']
|
1002
|
+
@ProcessingTask = params['ProcessingTask']
|
1003
|
+
@RenewFlag = params['RenewFlag']
|
1004
|
+
@MinCpu = params['MinCpu']
|
1005
|
+
@MaxCpu = params['MaxCpu']
|
1006
|
+
@ServerlessStatus = params['ServerlessStatus']
|
1007
|
+
@StorageId = params['StorageId']
|
1008
|
+
@StoragePayMode = params['StoragePayMode']
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
# 实例详情
|
1013
|
+
class CynosdbInstanceDetail < TencentCloud::Common::AbstractModel
|
1014
|
+
# @param Uin: 用户Uin
|
1015
|
+
# @type Uin: String
|
1016
|
+
# @param AppId: 用户AppId
|
1017
|
+
# @type AppId: Integer
|
1018
|
+
# @param ClusterId: 集群ID
|
1019
|
+
# @type ClusterId: String
|
1020
|
+
# @param ClusterName: 集群名称
|
1021
|
+
# @type ClusterName: String
|
1022
|
+
# @param InstanceId: 实例ID
|
1023
|
+
# @type InstanceId: String
|
1024
|
+
# @param InstanceName: 实例名称
|
1025
|
+
# @type InstanceName: String
|
1026
|
+
# @param ProjectId: 项目ID
|
1027
|
+
# @type ProjectId: Integer
|
1028
|
+
# @param Region: 地域
|
1029
|
+
# @type Region: String
|
1030
|
+
# @param Zone: 可用区
|
1031
|
+
# @type Zone: String
|
1032
|
+
# @param Status: 实例状态
|
1033
|
+
# @type Status: String
|
1034
|
+
# @param StatusDesc: 实例状态中文描述
|
1035
|
+
# @type StatusDesc: String
|
1036
|
+
# @param DbType: 数据库类型
|
1037
|
+
# @type DbType: String
|
1038
|
+
# @param DbVersion: 数据库版本
|
1039
|
+
# @type DbVersion: String
|
1040
|
+
# @param Cpu: Cpu,单位:核
|
1041
|
+
# @type Cpu: Integer
|
1042
|
+
# @param Memory: 内存,单位:GB
|
1043
|
+
# @type Memory: Integer
|
1044
|
+
# @param Storage: 存储量,单位:GB
|
1045
|
+
# @type Storage: Integer
|
1046
|
+
# @param InstanceType: 实例类型
|
1047
|
+
# @type InstanceType: String
|
1048
|
+
# @param InstanceRole: 实例当前角色
|
1049
|
+
# @type InstanceRole: String
|
1050
|
+
# @param UpdateTime: 更新时间
|
1051
|
+
# @type UpdateTime: String
|
1052
|
+
# @param CreateTime: 创建时间
|
1053
|
+
# @type CreateTime: String
|
1054
|
+
# @param PayMode: 付费模式
|
1055
|
+
# @type PayMode: Integer
|
1056
|
+
# @param PeriodEndTime: 实例过期时间
|
1057
|
+
# @type PeriodEndTime: String
|
1058
|
+
# @param NetType: 网络类型
|
1059
|
+
# @type NetType: Integer
|
1060
|
+
# @param VpcId: VPC网络ID
|
1061
|
+
# @type VpcId: String
|
1062
|
+
# @param SubnetId: 子网ID
|
1063
|
+
# @type SubnetId: String
|
1064
|
+
# @param Vip: 实例内网IP
|
1065
|
+
# @type Vip: String
|
1066
|
+
# @param Vport: 实例内网端口
|
1067
|
+
# @type Vport: Integer
|
1068
|
+
# @param WanDomain: 实例外网域名
|
1069
|
+
# @type WanDomain: String
|
1070
|
+
# @param Charset: 字符集
|
1071
|
+
# @type Charset: String
|
1072
|
+
# @param CynosVersion: Cynos内核版本
|
1073
|
+
# @type CynosVersion: String
|
1074
|
+
# @param RenewFlag: 续费标志
|
1075
|
+
# @type RenewFlag: Integer
|
1076
|
+
# @param MinCpu: serverless实例cpu下限
|
1077
|
+
# @type MinCpu: Float
|
1078
|
+
# @param MaxCpu: serverless实例cpu上限
|
1079
|
+
# @type MaxCpu: Float
|
1080
|
+
# @param ServerlessStatus: serverless实例状态, 可能值:
|
1081
|
+
# resume
|
1082
|
+
# pause
|
1083
|
+
# @type ServerlessStatus: String
|
1084
|
+
|
1085
|
+
attr_accessor :Uin, :AppId, :ClusterId, :ClusterName, :InstanceId, :InstanceName, :ProjectId, :Region, :Zone, :Status, :StatusDesc, :DbType, :DbVersion, :Cpu, :Memory, :Storage, :InstanceType, :InstanceRole, :UpdateTime, :CreateTime, :PayMode, :PeriodEndTime, :NetType, :VpcId, :SubnetId, :Vip, :Vport, :WanDomain, :Charset, :CynosVersion, :RenewFlag, :MinCpu, :MaxCpu, :ServerlessStatus
|
1086
|
+
|
1087
|
+
def initialize(uin=nil, appid=nil, clusterid=nil, clustername=nil, instanceid=nil, instancename=nil, projectid=nil, region=nil, zone=nil, status=nil, statusdesc=nil, dbtype=nil, dbversion=nil, cpu=nil, memory=nil, storage=nil, instancetype=nil, instancerole=nil, updatetime=nil, createtime=nil, paymode=nil, periodendtime=nil, nettype=nil, vpcid=nil, subnetid=nil, vip=nil, vport=nil, wandomain=nil, charset=nil, cynosversion=nil, renewflag=nil, mincpu=nil, maxcpu=nil, serverlessstatus=nil)
|
1088
|
+
@Uin = uin
|
1089
|
+
@AppId = appid
|
1090
|
+
@ClusterId = clusterid
|
1091
|
+
@ClusterName = clustername
|
1092
|
+
@InstanceId = instanceid
|
1093
|
+
@InstanceName = instancename
|
1094
|
+
@ProjectId = projectid
|
1095
|
+
@Region = region
|
1096
|
+
@Zone = zone
|
1097
|
+
@Status = status
|
1098
|
+
@StatusDesc = statusdesc
|
1099
|
+
@DbType = dbtype
|
1100
|
+
@DbVersion = dbversion
|
1101
|
+
@Cpu = cpu
|
1102
|
+
@Memory = memory
|
1103
|
+
@Storage = storage
|
1104
|
+
@InstanceType = instancetype
|
1105
|
+
@InstanceRole = instancerole
|
1106
|
+
@UpdateTime = updatetime
|
1107
|
+
@CreateTime = createtime
|
1108
|
+
@PayMode = paymode
|
1109
|
+
@PeriodEndTime = periodendtime
|
1110
|
+
@NetType = nettype
|
1111
|
+
@VpcId = vpcid
|
1112
|
+
@SubnetId = subnetid
|
1113
|
+
@Vip = vip
|
1114
|
+
@Vport = vport
|
1115
|
+
@WanDomain = wandomain
|
1116
|
+
@Charset = charset
|
1117
|
+
@CynosVersion = cynosversion
|
1118
|
+
@RenewFlag = renewflag
|
1119
|
+
@MinCpu = mincpu
|
1120
|
+
@MaxCpu = maxcpu
|
1121
|
+
@ServerlessStatus = serverlessstatus
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
def deserialize(params)
|
1125
|
+
@Uin = params['Uin']
|
1126
|
+
@AppId = params['AppId']
|
1127
|
+
@ClusterId = params['ClusterId']
|
1128
|
+
@ClusterName = params['ClusterName']
|
1129
|
+
@InstanceId = params['InstanceId']
|
1130
|
+
@InstanceName = params['InstanceName']
|
1131
|
+
@ProjectId = params['ProjectId']
|
1132
|
+
@Region = params['Region']
|
1133
|
+
@Zone = params['Zone']
|
1134
|
+
@Status = params['Status']
|
1135
|
+
@StatusDesc = params['StatusDesc']
|
1136
|
+
@DbType = params['DbType']
|
1137
|
+
@DbVersion = params['DbVersion']
|
1138
|
+
@Cpu = params['Cpu']
|
1139
|
+
@Memory = params['Memory']
|
1140
|
+
@Storage = params['Storage']
|
1141
|
+
@InstanceType = params['InstanceType']
|
1142
|
+
@InstanceRole = params['InstanceRole']
|
1143
|
+
@UpdateTime = params['UpdateTime']
|
1144
|
+
@CreateTime = params['CreateTime']
|
1145
|
+
@PayMode = params['PayMode']
|
1146
|
+
@PeriodEndTime = params['PeriodEndTime']
|
1147
|
+
@NetType = params['NetType']
|
1148
|
+
@VpcId = params['VpcId']
|
1149
|
+
@SubnetId = params['SubnetId']
|
1150
|
+
@Vip = params['Vip']
|
1151
|
+
@Vport = params['Vport']
|
1152
|
+
@WanDomain = params['WanDomain']
|
1153
|
+
@Charset = params['Charset']
|
1154
|
+
@CynosVersion = params['CynosVersion']
|
1155
|
+
@RenewFlag = params['RenewFlag']
|
1156
|
+
@MinCpu = params['MinCpu']
|
1157
|
+
@MaxCpu = params['MaxCpu']
|
1158
|
+
@ServerlessStatus = params['ServerlessStatus']
|
1159
|
+
end
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
# 实例组信息
|
1163
|
+
class CynosdbInstanceGrp < TencentCloud::Common::AbstractModel
|
1164
|
+
# @param AppId: appId
|
1165
|
+
# @type AppId: Integer
|
1166
|
+
# @param ClusterId: 集群ID
|
1167
|
+
# @type ClusterId: String
|
1168
|
+
# @param CreatedTime: 创建时间
|
1169
|
+
# @type CreatedTime: String
|
1170
|
+
# @param DeletedTime: 删除时间
|
1171
|
+
# @type DeletedTime: String
|
1172
|
+
# @param InstanceGrpId: 实例组ID
|
1173
|
+
# @type InstanceGrpId: String
|
1174
|
+
# @param Status: 状态
|
1175
|
+
# @type Status: String
|
1176
|
+
# @param Type: 实例组类型。ha-ha组;ro-只读组
|
1177
|
+
# @type Type: String
|
1178
|
+
# @param UpdatedTime: 更新时间
|
1179
|
+
# @type UpdatedTime: String
|
1180
|
+
# @param Vip: 内网IP
|
1181
|
+
# @type Vip: String
|
1182
|
+
# @param Vport: 内网端口
|
1183
|
+
# @type Vport: Integer
|
1184
|
+
# @param WanDomain: 外网域名
|
1185
|
+
# @type WanDomain: String
|
1186
|
+
# @param WanIP: 外网ip
|
1187
|
+
# @type WanIP: String
|
1188
|
+
# @param WanPort: 外网端口
|
1189
|
+
# @type WanPort: Integer
|
1190
|
+
# @param WanStatus: 外网状态
|
1191
|
+
# @type WanStatus: String
|
1192
|
+
# @param InstanceSet: 实例组包含实例信息
|
1193
|
+
# @type InstanceSet: Array
|
1194
|
+
|
1195
|
+
attr_accessor :AppId, :ClusterId, :CreatedTime, :DeletedTime, :InstanceGrpId, :Status, :Type, :UpdatedTime, :Vip, :Vport, :WanDomain, :WanIP, :WanPort, :WanStatus, :InstanceSet
|
1196
|
+
|
1197
|
+
def initialize(appid=nil, clusterid=nil, createdtime=nil, deletedtime=nil, instancegrpid=nil, status=nil, type=nil, updatedtime=nil, vip=nil, vport=nil, wandomain=nil, wanip=nil, wanport=nil, wanstatus=nil, instanceset=nil)
|
1198
|
+
@AppId = appid
|
1199
|
+
@ClusterId = clusterid
|
1200
|
+
@CreatedTime = createdtime
|
1201
|
+
@DeletedTime = deletedtime
|
1202
|
+
@InstanceGrpId = instancegrpid
|
1203
|
+
@Status = status
|
1204
|
+
@Type = type
|
1205
|
+
@UpdatedTime = updatedtime
|
1206
|
+
@Vip = vip
|
1207
|
+
@Vport = vport
|
1208
|
+
@WanDomain = wandomain
|
1209
|
+
@WanIP = wanip
|
1210
|
+
@WanPort = wanport
|
1211
|
+
@WanStatus = wanstatus
|
1212
|
+
@InstanceSet = instanceset
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
def deserialize(params)
|
1216
|
+
@AppId = params['AppId']
|
1217
|
+
@ClusterId = params['ClusterId']
|
1218
|
+
@CreatedTime = params['CreatedTime']
|
1219
|
+
@DeletedTime = params['DeletedTime']
|
1220
|
+
@InstanceGrpId = params['InstanceGrpId']
|
1221
|
+
@Status = params['Status']
|
1222
|
+
@Type = params['Type']
|
1223
|
+
@UpdatedTime = params['UpdatedTime']
|
1224
|
+
@Vip = params['Vip']
|
1225
|
+
@Vport = params['Vport']
|
1226
|
+
@WanDomain = params['WanDomain']
|
1227
|
+
@WanIP = params['WanIP']
|
1228
|
+
@WanPort = params['WanPort']
|
1229
|
+
@WanStatus = params['WanStatus']
|
1230
|
+
unless params['InstanceSet'].nil?
|
1231
|
+
@InstanceSet = []
|
1232
|
+
params['InstanceSet'].each do |i|
|
1233
|
+
cynosdbinstance_tmp = CynosdbInstance.new
|
1234
|
+
cynosdbinstance_tmp.deserialize(i)
|
1235
|
+
@InstanceSet << cynosdbinstance_tmp
|
1236
|
+
end
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
# DescribeAccounts请求参数结构体
|
1242
|
+
class DescribeAccountsRequest < TencentCloud::Common::AbstractModel
|
1243
|
+
# @param ClusterId: 集群ID
|
1244
|
+
# @type ClusterId: String
|
1245
|
+
# @param AccountNames: 需要过滤的账户列表
|
1246
|
+
# @type AccountNames: Array
|
1247
|
+
# @param DbType: 数据库类型,取值范围:
|
1248
|
+
# <li> MYSQL </li>
|
1249
|
+
# @type DbType: String
|
1250
|
+
|
1251
|
+
attr_accessor :ClusterId, :AccountNames, :DbType
|
1252
|
+
|
1253
|
+
def initialize(clusterid=nil, accountnames=nil, dbtype=nil)
|
1254
|
+
@ClusterId = clusterid
|
1255
|
+
@AccountNames = accountnames
|
1256
|
+
@DbType = dbtype
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
def deserialize(params)
|
1260
|
+
@ClusterId = params['ClusterId']
|
1261
|
+
@AccountNames = params['AccountNames']
|
1262
|
+
@DbType = params['DbType']
|
1263
|
+
end
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
# DescribeAccounts返回参数结构体
|
1267
|
+
class DescribeAccountsResponse < TencentCloud::Common::AbstractModel
|
1268
|
+
# @param AccountSet: 数据库账号列表
|
1269
|
+
# @type AccountSet: Array
|
1270
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1271
|
+
# @type RequestId: String
|
1272
|
+
|
1273
|
+
attr_accessor :AccountSet, :RequestId
|
1274
|
+
|
1275
|
+
def initialize(accountset=nil, requestid=nil)
|
1276
|
+
@AccountSet = accountset
|
1277
|
+
@RequestId = requestid
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
def deserialize(params)
|
1281
|
+
unless params['AccountSet'].nil?
|
1282
|
+
@AccountSet = []
|
1283
|
+
params['AccountSet'].each do |i|
|
1284
|
+
account_tmp = Account.new
|
1285
|
+
account_tmp.deserialize(i)
|
1286
|
+
@AccountSet << account_tmp
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
@RequestId = params['RequestId']
|
1290
|
+
end
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
# DescribeBackupConfig请求参数结构体
|
1294
|
+
class DescribeBackupConfigRequest < TencentCloud::Common::AbstractModel
|
1295
|
+
# @param ClusterId: 集群ID
|
1296
|
+
# @type ClusterId: String
|
1297
|
+
|
1298
|
+
attr_accessor :ClusterId
|
1299
|
+
|
1300
|
+
def initialize(clusterid=nil)
|
1301
|
+
@ClusterId = clusterid
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
def deserialize(params)
|
1305
|
+
@ClusterId = params['ClusterId']
|
1306
|
+
end
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
# DescribeBackupConfig返回参数结构体
|
1310
|
+
class DescribeBackupConfigResponse < TencentCloud::Common::AbstractModel
|
1311
|
+
# @param BackupTimeBeg: 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
|
1312
|
+
# @type BackupTimeBeg: Integer
|
1313
|
+
# @param BackupTimeEnd: 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
|
1314
|
+
# @type BackupTimeEnd: Integer
|
1315
|
+
# @param ReserveDuration: 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800
|
1316
|
+
# @type ReserveDuration: Integer
|
1317
|
+
# @param BackupFreq: 备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
|
1318
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1319
|
+
# @type BackupFreq: Array
|
1320
|
+
# @param BackupType: 备份方式,logic-逻辑备份,snapshot-快照备份
|
1321
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1322
|
+
# @type BackupType: String
|
1323
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1324
|
+
# @type RequestId: String
|
1325
|
+
|
1326
|
+
attr_accessor :BackupTimeBeg, :BackupTimeEnd, :ReserveDuration, :BackupFreq, :BackupType, :RequestId
|
1327
|
+
|
1328
|
+
def initialize(backuptimebeg=nil, backuptimeend=nil, reserveduration=nil, backupfreq=nil, backuptype=nil, requestid=nil)
|
1329
|
+
@BackupTimeBeg = backuptimebeg
|
1330
|
+
@BackupTimeEnd = backuptimeend
|
1331
|
+
@ReserveDuration = reserveduration
|
1332
|
+
@BackupFreq = backupfreq
|
1333
|
+
@BackupType = backuptype
|
1334
|
+
@RequestId = requestid
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
def deserialize(params)
|
1338
|
+
@BackupTimeBeg = params['BackupTimeBeg']
|
1339
|
+
@BackupTimeEnd = params['BackupTimeEnd']
|
1340
|
+
@ReserveDuration = params['ReserveDuration']
|
1341
|
+
@BackupFreq = params['BackupFreq']
|
1342
|
+
@BackupType = params['BackupType']
|
1343
|
+
@RequestId = params['RequestId']
|
1344
|
+
end
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
# DescribeBackupList请求参数结构体
|
1348
|
+
class DescribeBackupListRequest < TencentCloud::Common::AbstractModel
|
1349
|
+
# @param ClusterId: 集群ID
|
1350
|
+
# @type ClusterId: String
|
1351
|
+
# @param Limit: 备份文件列表偏移
|
1352
|
+
# @type Limit: Integer
|
1353
|
+
# @param Offset: 备份文件列表起始
|
1354
|
+
# @type Offset: Integer
|
1355
|
+
# @param DbType: 数据库类型,取值范围:
|
1356
|
+
# <li> MYSQL </li>
|
1357
|
+
# @type DbType: String
|
1358
|
+
|
1359
|
+
attr_accessor :ClusterId, :Limit, :Offset, :DbType
|
1360
|
+
|
1361
|
+
def initialize(clusterid=nil, limit=nil, offset=nil, dbtype=nil)
|
1362
|
+
@ClusterId = clusterid
|
1363
|
+
@Limit = limit
|
1364
|
+
@Offset = offset
|
1365
|
+
@DbType = dbtype
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
def deserialize(params)
|
1369
|
+
@ClusterId = params['ClusterId']
|
1370
|
+
@Limit = params['Limit']
|
1371
|
+
@Offset = params['Offset']
|
1372
|
+
@DbType = params['DbType']
|
1373
|
+
end
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# DescribeBackupList返回参数结构体
|
1377
|
+
class DescribeBackupListResponse < TencentCloud::Common::AbstractModel
|
1378
|
+
# @param TotalCount: 总共备份文件个数
|
1379
|
+
# @type TotalCount: Integer
|
1380
|
+
# @param BackupList: 备份文件列表
|
1381
|
+
# @type BackupList: Array
|
1382
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1383
|
+
# @type RequestId: String
|
1384
|
+
|
1385
|
+
attr_accessor :TotalCount, :BackupList, :RequestId
|
1386
|
+
|
1387
|
+
def initialize(totalcount=nil, backuplist=nil, requestid=nil)
|
1388
|
+
@TotalCount = totalcount
|
1389
|
+
@BackupList = backuplist
|
1390
|
+
@RequestId = requestid
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
def deserialize(params)
|
1394
|
+
@TotalCount = params['TotalCount']
|
1395
|
+
unless params['BackupList'].nil?
|
1396
|
+
@BackupList = []
|
1397
|
+
params['BackupList'].each do |i|
|
1398
|
+
backupfileinfo_tmp = BackupFileInfo.new
|
1399
|
+
backupfileinfo_tmp.deserialize(i)
|
1400
|
+
@BackupList << backupfileinfo_tmp
|
1401
|
+
end
|
1402
|
+
end
|
1403
|
+
@RequestId = params['RequestId']
|
1404
|
+
end
|
1405
|
+
end
|
1406
|
+
|
1407
|
+
# DescribeClusterDetail请求参数结构体
|
1408
|
+
class DescribeClusterDetailRequest < TencentCloud::Common::AbstractModel
|
1409
|
+
# @param ClusterId: 集群Id
|
1410
|
+
# @type ClusterId: String
|
1411
|
+
|
1412
|
+
attr_accessor :ClusterId
|
1413
|
+
|
1414
|
+
def initialize(clusterid=nil)
|
1415
|
+
@ClusterId = clusterid
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
def deserialize(params)
|
1419
|
+
@ClusterId = params['ClusterId']
|
1420
|
+
end
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
# DescribeClusterDetail返回参数结构体
|
1424
|
+
class DescribeClusterDetailResponse < TencentCloud::Common::AbstractModel
|
1425
|
+
# @param Detail: 集群详细信息
|
1426
|
+
# @type Detail: :class:`Tencentcloud::Cynosdb.v20190107.models.CynosdbClusterDetail`
|
1427
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1428
|
+
# @type RequestId: String
|
1429
|
+
|
1430
|
+
attr_accessor :Detail, :RequestId
|
1431
|
+
|
1432
|
+
def initialize(detail=nil, requestid=nil)
|
1433
|
+
@Detail = detail
|
1434
|
+
@RequestId = requestid
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
def deserialize(params)
|
1438
|
+
unless params['Detail'].nil?
|
1439
|
+
@Detail = CynosdbClusterDetail.new
|
1440
|
+
@Detail.deserialize(params['Detail'])
|
1441
|
+
end
|
1442
|
+
@RequestId = params['RequestId']
|
1443
|
+
end
|
1444
|
+
end
|
1445
|
+
|
1446
|
+
# DescribeClusterInstanceGrps请求参数结构体
|
1447
|
+
class DescribeClusterInstanceGrpsRequest < TencentCloud::Common::AbstractModel
|
1448
|
+
# @param ClusterId: 集群ID
|
1449
|
+
# @type ClusterId: String
|
1450
|
+
|
1451
|
+
attr_accessor :ClusterId
|
1452
|
+
|
1453
|
+
def initialize(clusterid=nil)
|
1454
|
+
@ClusterId = clusterid
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
def deserialize(params)
|
1458
|
+
@ClusterId = params['ClusterId']
|
1459
|
+
end
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
# DescribeClusterInstanceGrps返回参数结构体
|
1463
|
+
class DescribeClusterInstanceGrpsResponse < TencentCloud::Common::AbstractModel
|
1464
|
+
# @param TotalCount: 实例组个数
|
1465
|
+
# @type TotalCount: Integer
|
1466
|
+
# @param InstanceGrpInfoList: 实例组列表
|
1467
|
+
# @type InstanceGrpInfoList: Array
|
1468
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1469
|
+
# @type RequestId: String
|
1470
|
+
|
1471
|
+
attr_accessor :TotalCount, :InstanceGrpInfoList, :RequestId
|
1472
|
+
|
1473
|
+
def initialize(totalcount=nil, instancegrpinfolist=nil, requestid=nil)
|
1474
|
+
@TotalCount = totalcount
|
1475
|
+
@InstanceGrpInfoList = instancegrpinfolist
|
1476
|
+
@RequestId = requestid
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
def deserialize(params)
|
1480
|
+
@TotalCount = params['TotalCount']
|
1481
|
+
unless params['InstanceGrpInfoList'].nil?
|
1482
|
+
@InstanceGrpInfoList = []
|
1483
|
+
params['InstanceGrpInfoList'].each do |i|
|
1484
|
+
cynosdbinstancegrp_tmp = CynosdbInstanceGrp.new
|
1485
|
+
cynosdbinstancegrp_tmp.deserialize(i)
|
1486
|
+
@InstanceGrpInfoList << cynosdbinstancegrp_tmp
|
1487
|
+
end
|
1488
|
+
end
|
1489
|
+
@RequestId = params['RequestId']
|
1490
|
+
end
|
1491
|
+
end
|
1492
|
+
|
1493
|
+
# DescribeClusters请求参数结构体
|
1494
|
+
class DescribeClustersRequest < TencentCloud::Common::AbstractModel
|
1495
|
+
# @param DbType: 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
|
1496
|
+
# @type DbType: String
|
1497
|
+
# @param Limit: 返回数量,默认为 20,最大值为 100
|
1498
|
+
# @type Limit: Integer
|
1499
|
+
# @param Offset: 记录偏移量,默认值为0
|
1500
|
+
# @type Offset: Integer
|
1501
|
+
# @param OrderBy: 排序字段,取值范围:
|
1502
|
+
# <li> CREATETIME:创建时间</li>
|
1503
|
+
# <li> PERIODENDTIME:过期时间</li>
|
1504
|
+
# @type OrderBy: String
|
1505
|
+
# @param OrderByType: 排序类型,取值范围:
|
1506
|
+
# <li> ASC:升序排序 </li>
|
1507
|
+
# <li> DESC:降序排序 </li>
|
1508
|
+
# @type OrderByType: String
|
1509
|
+
# @param Filters: 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
|
1510
|
+
# @type Filters: Array
|
1511
|
+
|
1512
|
+
attr_accessor :DbType, :Limit, :Offset, :OrderBy, :OrderByType, :Filters
|
1513
|
+
|
1514
|
+
def initialize(dbtype=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil, filters=nil)
|
1515
|
+
@DbType = dbtype
|
1516
|
+
@Limit = limit
|
1517
|
+
@Offset = offset
|
1518
|
+
@OrderBy = orderby
|
1519
|
+
@OrderByType = orderbytype
|
1520
|
+
@Filters = filters
|
1521
|
+
end
|
1522
|
+
|
1523
|
+
def deserialize(params)
|
1524
|
+
@DbType = params['DbType']
|
1525
|
+
@Limit = params['Limit']
|
1526
|
+
@Offset = params['Offset']
|
1527
|
+
@OrderBy = params['OrderBy']
|
1528
|
+
@OrderByType = params['OrderByType']
|
1529
|
+
unless params['Filters'].nil?
|
1530
|
+
@Filters = []
|
1531
|
+
params['Filters'].each do |i|
|
1532
|
+
queryfilter_tmp = QueryFilter.new
|
1533
|
+
queryfilter_tmp.deserialize(i)
|
1534
|
+
@Filters << queryfilter_tmp
|
1535
|
+
end
|
1536
|
+
end
|
1537
|
+
end
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
# DescribeClusters返回参数结构体
|
1541
|
+
class DescribeClustersResponse < TencentCloud::Common::AbstractModel
|
1542
|
+
# @param TotalCount: 集群数
|
1543
|
+
# @type TotalCount: Integer
|
1544
|
+
# @param ClusterSet: 集群列表
|
1545
|
+
# @type ClusterSet: Array
|
1546
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1547
|
+
# @type RequestId: String
|
1548
|
+
|
1549
|
+
attr_accessor :TotalCount, :ClusterSet, :RequestId
|
1550
|
+
|
1551
|
+
def initialize(totalcount=nil, clusterset=nil, requestid=nil)
|
1552
|
+
@TotalCount = totalcount
|
1553
|
+
@ClusterSet = clusterset
|
1554
|
+
@RequestId = requestid
|
1555
|
+
end
|
1556
|
+
|
1557
|
+
def deserialize(params)
|
1558
|
+
@TotalCount = params['TotalCount']
|
1559
|
+
unless params['ClusterSet'].nil?
|
1560
|
+
@ClusterSet = []
|
1561
|
+
params['ClusterSet'].each do |i|
|
1562
|
+
cynosdbcluster_tmp = CynosdbCluster.new
|
1563
|
+
cynosdbcluster_tmp.deserialize(i)
|
1564
|
+
@ClusterSet << cynosdbcluster_tmp
|
1565
|
+
end
|
1566
|
+
end
|
1567
|
+
@RequestId = params['RequestId']
|
1568
|
+
end
|
1569
|
+
end
|
1570
|
+
|
1571
|
+
# DescribeDBSecurityGroups请求参数结构体
|
1572
|
+
class DescribeDBSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
1573
|
+
# @param InstanceId: 实例组ID
|
1574
|
+
# @type InstanceId: String
|
1575
|
+
|
1576
|
+
attr_accessor :InstanceId
|
1577
|
+
|
1578
|
+
def initialize(instanceid=nil)
|
1579
|
+
@InstanceId = instanceid
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
def deserialize(params)
|
1583
|
+
@InstanceId = params['InstanceId']
|
1584
|
+
end
|
1585
|
+
end
|
1586
|
+
|
1587
|
+
# DescribeDBSecurityGroups返回参数结构体
|
1588
|
+
class DescribeDBSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
1589
|
+
# @param Groups: 安全组信息
|
1590
|
+
# @type Groups: Array
|
1591
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1592
|
+
# @type RequestId: String
|
1593
|
+
|
1594
|
+
attr_accessor :Groups, :RequestId
|
1595
|
+
|
1596
|
+
def initialize(groups=nil, requestid=nil)
|
1597
|
+
@Groups = groups
|
1598
|
+
@RequestId = requestid
|
1599
|
+
end
|
1600
|
+
|
1601
|
+
def deserialize(params)
|
1602
|
+
unless params['Groups'].nil?
|
1603
|
+
@Groups = []
|
1604
|
+
params['Groups'].each do |i|
|
1605
|
+
securitygroup_tmp = SecurityGroup.new
|
1606
|
+
securitygroup_tmp.deserialize(i)
|
1607
|
+
@Groups << securitygroup_tmp
|
1608
|
+
end
|
1609
|
+
end
|
1610
|
+
@RequestId = params['RequestId']
|
1611
|
+
end
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
# DescribeInstanceDetail请求参数结构体
|
1615
|
+
class DescribeInstanceDetailRequest < TencentCloud::Common::AbstractModel
|
1616
|
+
# @param InstanceId: 实例ID
|
1617
|
+
# @type InstanceId: String
|
1618
|
+
|
1619
|
+
attr_accessor :InstanceId
|
1620
|
+
|
1621
|
+
def initialize(instanceid=nil)
|
1622
|
+
@InstanceId = instanceid
|
1623
|
+
end
|
1624
|
+
|
1625
|
+
def deserialize(params)
|
1626
|
+
@InstanceId = params['InstanceId']
|
1627
|
+
end
|
1628
|
+
end
|
1629
|
+
|
1630
|
+
# DescribeInstanceDetail返回参数结构体
|
1631
|
+
class DescribeInstanceDetailResponse < TencentCloud::Common::AbstractModel
|
1632
|
+
# @param Detail: 实例详情
|
1633
|
+
# @type Detail: :class:`Tencentcloud::Cynosdb.v20190107.models.CynosdbInstanceDetail`
|
1634
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1635
|
+
# @type RequestId: String
|
1636
|
+
|
1637
|
+
attr_accessor :Detail, :RequestId
|
1638
|
+
|
1639
|
+
def initialize(detail=nil, requestid=nil)
|
1640
|
+
@Detail = detail
|
1641
|
+
@RequestId = requestid
|
1642
|
+
end
|
1643
|
+
|
1644
|
+
def deserialize(params)
|
1645
|
+
unless params['Detail'].nil?
|
1646
|
+
@Detail = CynosdbInstanceDetail.new
|
1647
|
+
@Detail.deserialize(params['Detail'])
|
1648
|
+
end
|
1649
|
+
@RequestId = params['RequestId']
|
1650
|
+
end
|
1651
|
+
end
|
1652
|
+
|
1653
|
+
# DescribeInstanceSpecs请求参数结构体
|
1654
|
+
class DescribeInstanceSpecsRequest < TencentCloud::Common::AbstractModel
|
1655
|
+
# @param DbType: 数据库类型,取值范围:
|
1656
|
+
# <li> MYSQL </li>
|
1657
|
+
# @type DbType: String
|
1658
|
+
|
1659
|
+
attr_accessor :DbType
|
1660
|
+
|
1661
|
+
def initialize(dbtype=nil)
|
1662
|
+
@DbType = dbtype
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
def deserialize(params)
|
1666
|
+
@DbType = params['DbType']
|
1667
|
+
end
|
1668
|
+
end
|
1669
|
+
|
1670
|
+
# DescribeInstanceSpecs返回参数结构体
|
1671
|
+
class DescribeInstanceSpecsResponse < TencentCloud::Common::AbstractModel
|
1672
|
+
# @param InstanceSpecSet: 规格信息
|
1673
|
+
# @type InstanceSpecSet: Array
|
1674
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1675
|
+
# @type RequestId: String
|
1676
|
+
|
1677
|
+
attr_accessor :InstanceSpecSet, :RequestId
|
1678
|
+
|
1679
|
+
def initialize(instancespecset=nil, requestid=nil)
|
1680
|
+
@InstanceSpecSet = instancespecset
|
1681
|
+
@RequestId = requestid
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
def deserialize(params)
|
1685
|
+
unless params['InstanceSpecSet'].nil?
|
1686
|
+
@InstanceSpecSet = []
|
1687
|
+
params['InstanceSpecSet'].each do |i|
|
1688
|
+
instancespec_tmp = InstanceSpec.new
|
1689
|
+
instancespec_tmp.deserialize(i)
|
1690
|
+
@InstanceSpecSet << instancespec_tmp
|
1691
|
+
end
|
1692
|
+
end
|
1693
|
+
@RequestId = params['RequestId']
|
1694
|
+
end
|
1695
|
+
end
|
1696
|
+
|
1697
|
+
# DescribeInstances请求参数结构体
|
1698
|
+
class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
|
1699
|
+
# @param Limit: 返回数量,默认为 20,最大值为 100
|
1700
|
+
# @type Limit: Integer
|
1701
|
+
# @param Offset: 记录偏移量,默认值为0
|
1702
|
+
# @type Offset: Integer
|
1703
|
+
# @param OrderBy: 排序字段,取值范围:
|
1704
|
+
# <li> CREATETIME:创建时间</li>
|
1705
|
+
# <li> PERIODENDTIME:过期时间</li>
|
1706
|
+
# @type OrderBy: String
|
1707
|
+
# @param OrderByType: 排序类型,取值范围:
|
1708
|
+
# <li> ASC:升序排序 </li>
|
1709
|
+
# <li> DESC:降序排序 </li>
|
1710
|
+
# @type OrderByType: String
|
1711
|
+
# @param Filters: 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
|
1712
|
+
# @type Filters: Array
|
1713
|
+
# @param DbType: 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
|
1714
|
+
# @type DbType: String
|
1715
|
+
# @param Status: 实例状态
|
1716
|
+
# @type Status: String
|
1717
|
+
# @param InstanceIds: 实例id列表
|
1718
|
+
# @type InstanceIds: Array
|
1719
|
+
|
1720
|
+
attr_accessor :Limit, :Offset, :OrderBy, :OrderByType, :Filters, :DbType, :Status, :InstanceIds
|
1721
|
+
|
1722
|
+
def initialize(limit=nil, offset=nil, orderby=nil, orderbytype=nil, filters=nil, dbtype=nil, status=nil, instanceids=nil)
|
1723
|
+
@Limit = limit
|
1724
|
+
@Offset = offset
|
1725
|
+
@OrderBy = orderby
|
1726
|
+
@OrderByType = orderbytype
|
1727
|
+
@Filters = filters
|
1728
|
+
@DbType = dbtype
|
1729
|
+
@Status = status
|
1730
|
+
@InstanceIds = instanceids
|
1731
|
+
end
|
1732
|
+
|
1733
|
+
def deserialize(params)
|
1734
|
+
@Limit = params['Limit']
|
1735
|
+
@Offset = params['Offset']
|
1736
|
+
@OrderBy = params['OrderBy']
|
1737
|
+
@OrderByType = params['OrderByType']
|
1738
|
+
unless params['Filters'].nil?
|
1739
|
+
@Filters = []
|
1740
|
+
params['Filters'].each do |i|
|
1741
|
+
queryfilter_tmp = QueryFilter.new
|
1742
|
+
queryfilter_tmp.deserialize(i)
|
1743
|
+
@Filters << queryfilter_tmp
|
1744
|
+
end
|
1745
|
+
end
|
1746
|
+
@DbType = params['DbType']
|
1747
|
+
@Status = params['Status']
|
1748
|
+
@InstanceIds = params['InstanceIds']
|
1749
|
+
end
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
# DescribeInstances返回参数结构体
|
1753
|
+
class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
|
1754
|
+
# @param TotalCount: 实例个数
|
1755
|
+
# @type TotalCount: Integer
|
1756
|
+
# @param InstanceSet: 实例列表
|
1757
|
+
# @type InstanceSet: Array
|
1758
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1759
|
+
# @type RequestId: String
|
1760
|
+
|
1761
|
+
attr_accessor :TotalCount, :InstanceSet, :RequestId
|
1762
|
+
|
1763
|
+
def initialize(totalcount=nil, instanceset=nil, requestid=nil)
|
1764
|
+
@TotalCount = totalcount
|
1765
|
+
@InstanceSet = instanceset
|
1766
|
+
@RequestId = requestid
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
def deserialize(params)
|
1770
|
+
@TotalCount = params['TotalCount']
|
1771
|
+
unless params['InstanceSet'].nil?
|
1772
|
+
@InstanceSet = []
|
1773
|
+
params['InstanceSet'].each do |i|
|
1774
|
+
cynosdbinstance_tmp = CynosdbInstance.new
|
1775
|
+
cynosdbinstance_tmp.deserialize(i)
|
1776
|
+
@InstanceSet << cynosdbinstance_tmp
|
1777
|
+
end
|
1778
|
+
end
|
1779
|
+
@RequestId = params['RequestId']
|
1780
|
+
end
|
1781
|
+
end
|
1782
|
+
|
1783
|
+
# DescribeMaintainPeriod请求参数结构体
|
1784
|
+
class DescribeMaintainPeriodRequest < TencentCloud::Common::AbstractModel
|
1785
|
+
# @param InstanceId: 实例ID
|
1786
|
+
# @type InstanceId: String
|
1787
|
+
|
1788
|
+
attr_accessor :InstanceId
|
1789
|
+
|
1790
|
+
def initialize(instanceid=nil)
|
1791
|
+
@InstanceId = instanceid
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
def deserialize(params)
|
1795
|
+
@InstanceId = params['InstanceId']
|
1796
|
+
end
|
1797
|
+
end
|
1798
|
+
|
1799
|
+
# DescribeMaintainPeriod返回参数结构体
|
1800
|
+
class DescribeMaintainPeriodResponse < TencentCloud::Common::AbstractModel
|
1801
|
+
# @param MaintainWeekDays: 维护week days
|
1802
|
+
# @type MaintainWeekDays: Array
|
1803
|
+
# @param MaintainStartTime: 维护开始时间,单位秒
|
1804
|
+
# @type MaintainStartTime: Integer
|
1805
|
+
# @param MaintainDuration: 维护时长,单位秒
|
1806
|
+
# @type MaintainDuration: Integer
|
1807
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1808
|
+
# @type RequestId: String
|
1809
|
+
|
1810
|
+
attr_accessor :MaintainWeekDays, :MaintainStartTime, :MaintainDuration, :RequestId
|
1811
|
+
|
1812
|
+
def initialize(maintainweekdays=nil, maintainstarttime=nil, maintainduration=nil, requestid=nil)
|
1813
|
+
@MaintainWeekDays = maintainweekdays
|
1814
|
+
@MaintainStartTime = maintainstarttime
|
1815
|
+
@MaintainDuration = maintainduration
|
1816
|
+
@RequestId = requestid
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
def deserialize(params)
|
1820
|
+
@MaintainWeekDays = params['MaintainWeekDays']
|
1821
|
+
@MaintainStartTime = params['MaintainStartTime']
|
1822
|
+
@MaintainDuration = params['MaintainDuration']
|
1823
|
+
@RequestId = params['RequestId']
|
1824
|
+
end
|
1825
|
+
end
|
1826
|
+
|
1827
|
+
# DescribeProjectSecurityGroups请求参数结构体
|
1828
|
+
class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
1829
|
+
# @param ProjectId: 项目ID
|
1830
|
+
# @type ProjectId: Integer
|
1831
|
+
|
1832
|
+
attr_accessor :ProjectId
|
1833
|
+
|
1834
|
+
def initialize(projectid=nil)
|
1835
|
+
@ProjectId = projectid
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
def deserialize(params)
|
1839
|
+
@ProjectId = params['ProjectId']
|
1840
|
+
end
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
# DescribeProjectSecurityGroups返回参数结构体
|
1844
|
+
class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
1845
|
+
# @param Groups: 安全组详情
|
1846
|
+
# @type Groups: Array
|
1847
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1848
|
+
# @type RequestId: String
|
1849
|
+
|
1850
|
+
attr_accessor :Groups, :RequestId
|
1851
|
+
|
1852
|
+
def initialize(groups=nil, requestid=nil)
|
1853
|
+
@Groups = groups
|
1854
|
+
@RequestId = requestid
|
1855
|
+
end
|
1856
|
+
|
1857
|
+
def deserialize(params)
|
1858
|
+
unless params['Groups'].nil?
|
1859
|
+
@Groups = []
|
1860
|
+
params['Groups'].each do |i|
|
1861
|
+
securitygroup_tmp = SecurityGroup.new
|
1862
|
+
securitygroup_tmp.deserialize(i)
|
1863
|
+
@Groups << securitygroup_tmp
|
1864
|
+
end
|
1865
|
+
end
|
1866
|
+
@RequestId = params['RequestId']
|
1867
|
+
end
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
# DescribeResourcesByDealName请求参数结构体
|
1871
|
+
class DescribeResourcesByDealNameRequest < TencentCloud::Common::AbstractModel
|
1872
|
+
# @param DealName: 计费订单id(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)
|
1873
|
+
# @type DealName: String
|
1874
|
+
|
1875
|
+
attr_accessor :DealName
|
1876
|
+
|
1877
|
+
def initialize(dealname=nil)
|
1878
|
+
@DealName = dealname
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
def deserialize(params)
|
1882
|
+
@DealName = params['DealName']
|
1883
|
+
end
|
1884
|
+
end
|
1885
|
+
|
1886
|
+
# DescribeResourcesByDealName返回参数结构体
|
1887
|
+
class DescribeResourcesByDealNameResponse < TencentCloud::Common::AbstractModel
|
1888
|
+
# @param BillingResourceInfos: 计费资源id信息数组
|
1889
|
+
# @type BillingResourceInfos: Array
|
1890
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1891
|
+
# @type RequestId: String
|
1892
|
+
|
1893
|
+
attr_accessor :BillingResourceInfos, :RequestId
|
1894
|
+
|
1895
|
+
def initialize(billingresourceinfos=nil, requestid=nil)
|
1896
|
+
@BillingResourceInfos = billingresourceinfos
|
1897
|
+
@RequestId = requestid
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
def deserialize(params)
|
1901
|
+
unless params['BillingResourceInfos'].nil?
|
1902
|
+
@BillingResourceInfos = []
|
1903
|
+
params['BillingResourceInfos'].each do |i|
|
1904
|
+
billingresourceinfo_tmp = BillingResourceInfo.new
|
1905
|
+
billingresourceinfo_tmp.deserialize(i)
|
1906
|
+
@BillingResourceInfos << billingresourceinfo_tmp
|
1907
|
+
end
|
1908
|
+
end
|
1909
|
+
@RequestId = params['RequestId']
|
1910
|
+
end
|
1911
|
+
end
|
1912
|
+
|
1913
|
+
# DescribeRollbackTimeRange请求参数结构体
|
1914
|
+
class DescribeRollbackTimeRangeRequest < TencentCloud::Common::AbstractModel
|
1915
|
+
# @param ClusterId: 集群ID
|
1916
|
+
# @type ClusterId: String
|
1917
|
+
|
1918
|
+
attr_accessor :ClusterId
|
1919
|
+
|
1920
|
+
def initialize(clusterid=nil)
|
1921
|
+
@ClusterId = clusterid
|
1922
|
+
end
|
1923
|
+
|
1924
|
+
def deserialize(params)
|
1925
|
+
@ClusterId = params['ClusterId']
|
1926
|
+
end
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
# DescribeRollbackTimeRange返回参数结构体
|
1930
|
+
class DescribeRollbackTimeRangeResponse < TencentCloud::Common::AbstractModel
|
1931
|
+
# @param TimeRangeStart: 有效回归时间范围开始时间点
|
1932
|
+
# @type TimeRangeStart: String
|
1933
|
+
# @param TimeRangeEnd: 有效回归时间范围结束时间点
|
1934
|
+
# @type TimeRangeEnd: String
|
1935
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1936
|
+
# @type RequestId: String
|
1937
|
+
|
1938
|
+
attr_accessor :TimeRangeStart, :TimeRangeEnd, :RequestId
|
1939
|
+
|
1940
|
+
def initialize(timerangestart=nil, timerangeend=nil, requestid=nil)
|
1941
|
+
@TimeRangeStart = timerangestart
|
1942
|
+
@TimeRangeEnd = timerangeend
|
1943
|
+
@RequestId = requestid
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
def deserialize(params)
|
1947
|
+
@TimeRangeStart = params['TimeRangeStart']
|
1948
|
+
@TimeRangeEnd = params['TimeRangeEnd']
|
1949
|
+
@RequestId = params['RequestId']
|
1950
|
+
end
|
1951
|
+
end
|
1952
|
+
|
1953
|
+
# DescribeRollbackTimeValidity请求参数结构体
|
1954
|
+
class DescribeRollbackTimeValidityRequest < TencentCloud::Common::AbstractModel
|
1955
|
+
# @param ClusterId: 集群ID
|
1956
|
+
# @type ClusterId: String
|
1957
|
+
# @param ExpectTime: 期望回滚的时间点
|
1958
|
+
# @type ExpectTime: String
|
1959
|
+
# @param ExpectTimeThresh: 回滚时间点的允许误差范围
|
1960
|
+
# @type ExpectTimeThresh: Integer
|
1961
|
+
|
1962
|
+
attr_accessor :ClusterId, :ExpectTime, :ExpectTimeThresh
|
1963
|
+
|
1964
|
+
def initialize(clusterid=nil, expecttime=nil, expecttimethresh=nil)
|
1965
|
+
@ClusterId = clusterid
|
1966
|
+
@ExpectTime = expecttime
|
1967
|
+
@ExpectTimeThresh = expecttimethresh
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
def deserialize(params)
|
1971
|
+
@ClusterId = params['ClusterId']
|
1972
|
+
@ExpectTime = params['ExpectTime']
|
1973
|
+
@ExpectTimeThresh = params['ExpectTimeThresh']
|
1974
|
+
end
|
1975
|
+
end
|
1976
|
+
|
1977
|
+
# DescribeRollbackTimeValidity返回参数结构体
|
1978
|
+
class DescribeRollbackTimeValidityResponse < TencentCloud::Common::AbstractModel
|
1979
|
+
# @param PoolId: 存储poolID
|
1980
|
+
# @type PoolId: Integer
|
1981
|
+
# @param QueryId: 回滚任务ID,后续按该时间点回滚时,需要传入
|
1982
|
+
# @type QueryId: Integer
|
1983
|
+
# @param Status: 时间点是否有效:pass,检测通过;fail,检测失败
|
1984
|
+
# @type Status: String
|
1985
|
+
# @param SuggestTime: 建议时间点,在Status为fail时,该值才有效
|
1986
|
+
# @type SuggestTime: String
|
1987
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1988
|
+
# @type RequestId: String
|
1989
|
+
|
1990
|
+
attr_accessor :PoolId, :QueryId, :Status, :SuggestTime, :RequestId
|
1991
|
+
|
1992
|
+
def initialize(poolid=nil, queryid=nil, status=nil, suggesttime=nil, requestid=nil)
|
1993
|
+
@PoolId = poolid
|
1994
|
+
@QueryId = queryid
|
1995
|
+
@Status = status
|
1996
|
+
@SuggestTime = suggesttime
|
1997
|
+
@RequestId = requestid
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
def deserialize(params)
|
2001
|
+
@PoolId = params['PoolId']
|
2002
|
+
@QueryId = params['QueryId']
|
2003
|
+
@Status = params['Status']
|
2004
|
+
@SuggestTime = params['SuggestTime']
|
2005
|
+
@RequestId = params['RequestId']
|
2006
|
+
end
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
# 实例可售卖规格详细信息,创建实例时Cpu/Memory确定实例规格,存储可选大小为[MinStorageSize,MaxStorageSize]
|
2010
|
+
class InstanceSpec < TencentCloud::Common::AbstractModel
|
2011
|
+
# @param Cpu: 实例CPU,单位:核
|
2012
|
+
# @type Cpu: Integer
|
2013
|
+
# @param Memory: 实例内存,单位:GB
|
2014
|
+
# @type Memory: Integer
|
2015
|
+
# @param MaxStorageSize: 实例最大可用存储,单位:GB
|
2016
|
+
# @type MaxStorageSize: Integer
|
2017
|
+
# @param MinStorageSize: 实例最小可用存储,单位:GB
|
2018
|
+
# @type MinStorageSize: Integer
|
2019
|
+
|
2020
|
+
attr_accessor :Cpu, :Memory, :MaxStorageSize, :MinStorageSize
|
2021
|
+
|
2022
|
+
def initialize(cpu=nil, memory=nil, maxstoragesize=nil, minstoragesize=nil)
|
2023
|
+
@Cpu = cpu
|
2024
|
+
@Memory = memory
|
2025
|
+
@MaxStorageSize = maxstoragesize
|
2026
|
+
@MinStorageSize = minstoragesize
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
def deserialize(params)
|
2030
|
+
@Cpu = params['Cpu']
|
2031
|
+
@Memory = params['Memory']
|
2032
|
+
@MaxStorageSize = params['MaxStorageSize']
|
2033
|
+
@MinStorageSize = params['MinStorageSize']
|
2034
|
+
end
|
2035
|
+
end
|
2036
|
+
|
2037
|
+
# IsolateCluster请求参数结构体
|
2038
|
+
class IsolateClusterRequest < TencentCloud::Common::AbstractModel
|
2039
|
+
# @param ClusterId: 集群ID
|
2040
|
+
# @type ClusterId: String
|
2041
|
+
# @param DbType: 数据库类型,取值范围:
|
2042
|
+
# <li> MYSQL </li>
|
2043
|
+
# @type DbType: String
|
2044
|
+
|
2045
|
+
attr_accessor :ClusterId, :DbType
|
2046
|
+
|
2047
|
+
def initialize(clusterid=nil, dbtype=nil)
|
2048
|
+
@ClusterId = clusterid
|
2049
|
+
@DbType = dbtype
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
def deserialize(params)
|
2053
|
+
@ClusterId = params['ClusterId']
|
2054
|
+
@DbType = params['DbType']
|
2055
|
+
end
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
# IsolateCluster返回参数结构体
|
2059
|
+
class IsolateClusterResponse < TencentCloud::Common::AbstractModel
|
2060
|
+
# @param FlowId: 任务流ID
|
2061
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2062
|
+
# @type FlowId: Integer
|
2063
|
+
# @param DealNames: 退款订单号
|
2064
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2065
|
+
# @type DealNames: Array
|
2066
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2067
|
+
# @type RequestId: String
|
2068
|
+
|
2069
|
+
attr_accessor :FlowId, :DealNames, :RequestId
|
2070
|
+
|
2071
|
+
def initialize(flowid=nil, dealnames=nil, requestid=nil)
|
2072
|
+
@FlowId = flowid
|
2073
|
+
@DealNames = dealnames
|
2074
|
+
@RequestId = requestid
|
2075
|
+
end
|
2076
|
+
|
2077
|
+
def deserialize(params)
|
2078
|
+
@FlowId = params['FlowId']
|
2079
|
+
@DealNames = params['DealNames']
|
2080
|
+
@RequestId = params['RequestId']
|
2081
|
+
end
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
# IsolateInstance请求参数结构体
|
2085
|
+
class IsolateInstanceRequest < TencentCloud::Common::AbstractModel
|
2086
|
+
# @param ClusterId: 集群ID
|
2087
|
+
# @type ClusterId: String
|
2088
|
+
# @param InstanceIdList: 实例ID数组
|
2089
|
+
# @type InstanceIdList: Array
|
2090
|
+
# @param DbType: 数据库类型,取值范围:
|
2091
|
+
# <li> MYSQL </li>
|
2092
|
+
# @type DbType: String
|
2093
|
+
|
2094
|
+
attr_accessor :ClusterId, :InstanceIdList, :DbType
|
2095
|
+
|
2096
|
+
def initialize(clusterid=nil, instanceidlist=nil, dbtype=nil)
|
2097
|
+
@ClusterId = clusterid
|
2098
|
+
@InstanceIdList = instanceidlist
|
2099
|
+
@DbType = dbtype
|
2100
|
+
end
|
2101
|
+
|
2102
|
+
def deserialize(params)
|
2103
|
+
@ClusterId = params['ClusterId']
|
2104
|
+
@InstanceIdList = params['InstanceIdList']
|
2105
|
+
@DbType = params['DbType']
|
2106
|
+
end
|
2107
|
+
end
|
2108
|
+
|
2109
|
+
# IsolateInstance返回参数结构体
|
2110
|
+
class IsolateInstanceResponse < TencentCloud::Common::AbstractModel
|
2111
|
+
# @param FlowId: 任务流id
|
2112
|
+
# @type FlowId: Integer
|
2113
|
+
# @param DealNames: 隔离实例的订单id(预付费实例)
|
2114
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2115
|
+
# @type DealNames: Array
|
2116
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2117
|
+
# @type RequestId: String
|
2118
|
+
|
2119
|
+
attr_accessor :FlowId, :DealNames, :RequestId
|
2120
|
+
|
2121
|
+
def initialize(flowid=nil, dealnames=nil, requestid=nil)
|
2122
|
+
@FlowId = flowid
|
2123
|
+
@DealNames = dealnames
|
2124
|
+
@RequestId = requestid
|
2125
|
+
end
|
2126
|
+
|
2127
|
+
def deserialize(params)
|
2128
|
+
@FlowId = params['FlowId']
|
2129
|
+
@DealNames = params['DealNames']
|
2130
|
+
@RequestId = params['RequestId']
|
2131
|
+
end
|
2132
|
+
end
|
2133
|
+
|
2134
|
+
# ModifyBackupConfig请求参数结构体
|
2135
|
+
class ModifyBackupConfigRequest < TencentCloud::Common::AbstractModel
|
2136
|
+
# @param ClusterId: 集群ID
|
2137
|
+
# @type ClusterId: String
|
2138
|
+
# @param BackupTimeBeg: 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
|
2139
|
+
# @type BackupTimeBeg: Integer
|
2140
|
+
# @param BackupTimeEnd: 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
|
2141
|
+
# @type BackupTimeEnd: Integer
|
2142
|
+
# @param ReserveDuration: 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800
|
2143
|
+
# @type ReserveDuration: Integer
|
2144
|
+
# @param BackupFreq: 备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
|
2145
|
+
# @type BackupFreq: Array
|
2146
|
+
# @param BackupType: 备份方式,logic-逻辑备份,snapshot-快照备份
|
2147
|
+
# @type BackupType: String
|
2148
|
+
|
2149
|
+
attr_accessor :ClusterId, :BackupTimeBeg, :BackupTimeEnd, :ReserveDuration, :BackupFreq, :BackupType
|
2150
|
+
|
2151
|
+
def initialize(clusterid=nil, backuptimebeg=nil, backuptimeend=nil, reserveduration=nil, backupfreq=nil, backuptype=nil)
|
2152
|
+
@ClusterId = clusterid
|
2153
|
+
@BackupTimeBeg = backuptimebeg
|
2154
|
+
@BackupTimeEnd = backuptimeend
|
2155
|
+
@ReserveDuration = reserveduration
|
2156
|
+
@BackupFreq = backupfreq
|
2157
|
+
@BackupType = backuptype
|
2158
|
+
end
|
2159
|
+
|
2160
|
+
def deserialize(params)
|
2161
|
+
@ClusterId = params['ClusterId']
|
2162
|
+
@BackupTimeBeg = params['BackupTimeBeg']
|
2163
|
+
@BackupTimeEnd = params['BackupTimeEnd']
|
2164
|
+
@ReserveDuration = params['ReserveDuration']
|
2165
|
+
@BackupFreq = params['BackupFreq']
|
2166
|
+
@BackupType = params['BackupType']
|
2167
|
+
end
|
2168
|
+
end
|
2169
|
+
|
2170
|
+
# ModifyBackupConfig返回参数结构体
|
2171
|
+
class ModifyBackupConfigResponse < TencentCloud::Common::AbstractModel
|
2172
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2173
|
+
# @type RequestId: String
|
2174
|
+
|
2175
|
+
attr_accessor :RequestId
|
2176
|
+
|
2177
|
+
def initialize(requestid=nil)
|
2178
|
+
@RequestId = requestid
|
2179
|
+
end
|
2180
|
+
|
2181
|
+
def deserialize(params)
|
2182
|
+
@RequestId = params['RequestId']
|
2183
|
+
end
|
2184
|
+
end
|
2185
|
+
|
2186
|
+
# ModifyClusterParam请求参数结构体
|
2187
|
+
class ModifyClusterParamRequest < TencentCloud::Common::AbstractModel
|
2188
|
+
# @param ClusterId: 集群ID
|
2189
|
+
# @type ClusterId: String
|
2190
|
+
# @param ParamList: 修改参数列表
|
2191
|
+
# @type ParamList: Array
|
2192
|
+
|
2193
|
+
attr_accessor :ClusterId, :ParamList
|
2194
|
+
|
2195
|
+
def initialize(clusterid=nil, paramlist=nil)
|
2196
|
+
@ClusterId = clusterid
|
2197
|
+
@ParamList = paramlist
|
2198
|
+
end
|
2199
|
+
|
2200
|
+
def deserialize(params)
|
2201
|
+
@ClusterId = params['ClusterId']
|
2202
|
+
unless params['ParamList'].nil?
|
2203
|
+
@ParamList = []
|
2204
|
+
params['ParamList'].each do |i|
|
2205
|
+
paramitem_tmp = ParamItem.new
|
2206
|
+
paramitem_tmp.deserialize(i)
|
2207
|
+
@ParamList << paramitem_tmp
|
2208
|
+
end
|
2209
|
+
end
|
2210
|
+
end
|
2211
|
+
end
|
2212
|
+
|
2213
|
+
# ModifyClusterParam返回参数结构体
|
2214
|
+
class ModifyClusterParamResponse < TencentCloud::Common::AbstractModel
|
2215
|
+
# @param AsyncRequestId: 异步请求Id,用于查询结果
|
2216
|
+
# @type AsyncRequestId: String
|
2217
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2218
|
+
# @type RequestId: String
|
2219
|
+
|
2220
|
+
attr_accessor :AsyncRequestId, :RequestId
|
2221
|
+
|
2222
|
+
def initialize(asyncrequestid=nil, requestid=nil)
|
2223
|
+
@AsyncRequestId = asyncrequestid
|
2224
|
+
@RequestId = requestid
|
2225
|
+
end
|
2226
|
+
|
2227
|
+
def deserialize(params)
|
2228
|
+
@AsyncRequestId = params['AsyncRequestId']
|
2229
|
+
@RequestId = params['RequestId']
|
2230
|
+
end
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
# ModifyDBInstanceSecurityGroups请求参数结构体
|
2234
|
+
class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
2235
|
+
# @param InstanceId: 实例组ID
|
2236
|
+
# @type InstanceId: String
|
2237
|
+
# @param SecurityGroupIds: 要修改的安全组ID列表,一个或者多个安全组Id组成的数组。
|
2238
|
+
# @type SecurityGroupIds: Array
|
2239
|
+
# @param Zone: 可用区
|
2240
|
+
# @type Zone: String
|
2241
|
+
|
2242
|
+
attr_accessor :InstanceId, :SecurityGroupIds, :Zone
|
2243
|
+
|
2244
|
+
def initialize(instanceid=nil, securitygroupids=nil, zone=nil)
|
2245
|
+
@InstanceId = instanceid
|
2246
|
+
@SecurityGroupIds = securitygroupids
|
2247
|
+
@Zone = zone
|
2248
|
+
end
|
2249
|
+
|
2250
|
+
def deserialize(params)
|
2251
|
+
@InstanceId = params['InstanceId']
|
2252
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
2253
|
+
@Zone = params['Zone']
|
2254
|
+
end
|
2255
|
+
end
|
2256
|
+
|
2257
|
+
# ModifyDBInstanceSecurityGroups返回参数结构体
|
2258
|
+
class ModifyDBInstanceSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
2259
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2260
|
+
# @type RequestId: String
|
2261
|
+
|
2262
|
+
attr_accessor :RequestId
|
2263
|
+
|
2264
|
+
def initialize(requestid=nil)
|
2265
|
+
@RequestId = requestid
|
2266
|
+
end
|
2267
|
+
|
2268
|
+
def deserialize(params)
|
2269
|
+
@RequestId = params['RequestId']
|
2270
|
+
end
|
2271
|
+
end
|
2272
|
+
|
2273
|
+
# ModifyMaintainPeriodConfig请求参数结构体
|
2274
|
+
class ModifyMaintainPeriodConfigRequest < TencentCloud::Common::AbstractModel
|
2275
|
+
# @param InstanceId: 实例ID
|
2276
|
+
# @type InstanceId: String
|
2277
|
+
# @param MaintainStartTime: 维护开始时间,单位为秒,如3:00为10800
|
2278
|
+
# @type MaintainStartTime: Integer
|
2279
|
+
# @param MaintainDuration: 维护持续时间,单位为秒,如1小时为3600
|
2280
|
+
# @type MaintainDuration: Integer
|
2281
|
+
# @param MaintainWeekDays: 每周维护日期
|
2282
|
+
# @type MaintainWeekDays: Array
|
2283
|
+
|
2284
|
+
attr_accessor :InstanceId, :MaintainStartTime, :MaintainDuration, :MaintainWeekDays
|
2285
|
+
|
2286
|
+
def initialize(instanceid=nil, maintainstarttime=nil, maintainduration=nil, maintainweekdays=nil)
|
2287
|
+
@InstanceId = instanceid
|
2288
|
+
@MaintainStartTime = maintainstarttime
|
2289
|
+
@MaintainDuration = maintainduration
|
2290
|
+
@MaintainWeekDays = maintainweekdays
|
2291
|
+
end
|
2292
|
+
|
2293
|
+
def deserialize(params)
|
2294
|
+
@InstanceId = params['InstanceId']
|
2295
|
+
@MaintainStartTime = params['MaintainStartTime']
|
2296
|
+
@MaintainDuration = params['MaintainDuration']
|
2297
|
+
@MaintainWeekDays = params['MaintainWeekDays']
|
2298
|
+
end
|
2299
|
+
end
|
2300
|
+
|
2301
|
+
# ModifyMaintainPeriodConfig返回参数结构体
|
2302
|
+
class ModifyMaintainPeriodConfigResponse < TencentCloud::Common::AbstractModel
|
2303
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2304
|
+
# @type RequestId: String
|
2305
|
+
|
2306
|
+
attr_accessor :RequestId
|
2307
|
+
|
2308
|
+
def initialize(requestid=nil)
|
2309
|
+
@RequestId = requestid
|
2310
|
+
end
|
2311
|
+
|
2312
|
+
def deserialize(params)
|
2313
|
+
@RequestId = params['RequestId']
|
2314
|
+
end
|
2315
|
+
end
|
2316
|
+
|
2317
|
+
# 网络信息
|
2318
|
+
class NetAddr < TencentCloud::Common::AbstractModel
|
2319
|
+
# @param Vip: 内网ip
|
2320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2321
|
+
# @type Vip: String
|
2322
|
+
# @param Vport: 内网端口号
|
2323
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2324
|
+
# @type Vport: Integer
|
2325
|
+
# @param WanDomain: 外网域名
|
2326
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2327
|
+
# @type WanDomain: String
|
2328
|
+
# @param WanPort: 外网端口号
|
2329
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2330
|
+
# @type WanPort: Integer
|
2331
|
+
# @param NetType: 网络类型(ro-只读,rw/ha-读写)
|
2332
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2333
|
+
# @type NetType: String
|
2334
|
+
|
2335
|
+
attr_accessor :Vip, :Vport, :WanDomain, :WanPort, :NetType
|
2336
|
+
|
2337
|
+
def initialize(vip=nil, vport=nil, wandomain=nil, wanport=nil, nettype=nil)
|
2338
|
+
@Vip = vip
|
2339
|
+
@Vport = vport
|
2340
|
+
@WanDomain = wandomain
|
2341
|
+
@WanPort = wanport
|
2342
|
+
@NetType = nettype
|
2343
|
+
end
|
2344
|
+
|
2345
|
+
def deserialize(params)
|
2346
|
+
@Vip = params['Vip']
|
2347
|
+
@Vport = params['Vport']
|
2348
|
+
@WanDomain = params['WanDomain']
|
2349
|
+
@WanPort = params['WanPort']
|
2350
|
+
@NetType = params['NetType']
|
2351
|
+
end
|
2352
|
+
end
|
2353
|
+
|
2354
|
+
# 任务信息
|
2355
|
+
class ObjectTask < TencentCloud::Common::AbstractModel
|
2356
|
+
# @param TaskId: 任务自增ID
|
2357
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2358
|
+
# @type TaskId: Integer
|
2359
|
+
# @param TaskType: 任务类型
|
2360
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2361
|
+
# @type TaskType: String
|
2362
|
+
# @param TaskStatus: 任务状态
|
2363
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2364
|
+
# @type TaskStatus: String
|
2365
|
+
# @param ObjectId: 任务ID(集群ID|实例组ID|实例ID)
|
2366
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2367
|
+
# @type ObjectId: String
|
2368
|
+
# @param ObjectType: 任务类型
|
2369
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2370
|
+
# @type ObjectType: String
|
2371
|
+
|
2372
|
+
attr_accessor :TaskId, :TaskType, :TaskStatus, :ObjectId, :ObjectType
|
2373
|
+
|
2374
|
+
def initialize(taskid=nil, tasktype=nil, taskstatus=nil, objectid=nil, objecttype=nil)
|
2375
|
+
@TaskId = taskid
|
2376
|
+
@TaskType = tasktype
|
2377
|
+
@TaskStatus = taskstatus
|
2378
|
+
@ObjectId = objectid
|
2379
|
+
@ObjectType = objecttype
|
2380
|
+
end
|
2381
|
+
|
2382
|
+
def deserialize(params)
|
2383
|
+
@TaskId = params['TaskId']
|
2384
|
+
@TaskType = params['TaskType']
|
2385
|
+
@TaskStatus = params['TaskStatus']
|
2386
|
+
@ObjectId = params['ObjectId']
|
2387
|
+
@ObjectType = params['ObjectType']
|
2388
|
+
end
|
2389
|
+
end
|
2390
|
+
|
2391
|
+
# OfflineCluster请求参数结构体
|
2392
|
+
class OfflineClusterRequest < TencentCloud::Common::AbstractModel
|
2393
|
+
# @param ClusterId: 集群ID
|
2394
|
+
# @type ClusterId: String
|
2395
|
+
|
2396
|
+
attr_accessor :ClusterId
|
2397
|
+
|
2398
|
+
def initialize(clusterid=nil)
|
2399
|
+
@ClusterId = clusterid
|
2400
|
+
end
|
2401
|
+
|
2402
|
+
def deserialize(params)
|
2403
|
+
@ClusterId = params['ClusterId']
|
2404
|
+
end
|
2405
|
+
end
|
2406
|
+
|
2407
|
+
# OfflineCluster返回参数结构体
|
2408
|
+
class OfflineClusterResponse < TencentCloud::Common::AbstractModel
|
2409
|
+
# @param FlowId: 任务流ID
|
2410
|
+
# @type FlowId: Integer
|
2411
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2412
|
+
# @type RequestId: String
|
2413
|
+
|
2414
|
+
attr_accessor :FlowId, :RequestId
|
2415
|
+
|
2416
|
+
def initialize(flowid=nil, requestid=nil)
|
2417
|
+
@FlowId = flowid
|
2418
|
+
@RequestId = requestid
|
2419
|
+
end
|
2420
|
+
|
2421
|
+
def deserialize(params)
|
2422
|
+
@FlowId = params['FlowId']
|
2423
|
+
@RequestId = params['RequestId']
|
2424
|
+
end
|
2425
|
+
end
|
2426
|
+
|
2427
|
+
# OfflineInstance请求参数结构体
|
2428
|
+
class OfflineInstanceRequest < TencentCloud::Common::AbstractModel
|
2429
|
+
# @param ClusterId: 集群ID
|
2430
|
+
# @type ClusterId: String
|
2431
|
+
# @param InstanceIdList: 实例ID数组
|
2432
|
+
# @type InstanceIdList: Array
|
2433
|
+
|
2434
|
+
attr_accessor :ClusterId, :InstanceIdList
|
2435
|
+
|
2436
|
+
def initialize(clusterid=nil, instanceidlist=nil)
|
2437
|
+
@ClusterId = clusterid
|
2438
|
+
@InstanceIdList = instanceidlist
|
2439
|
+
end
|
2440
|
+
|
2441
|
+
def deserialize(params)
|
2442
|
+
@ClusterId = params['ClusterId']
|
2443
|
+
@InstanceIdList = params['InstanceIdList']
|
2444
|
+
end
|
2445
|
+
end
|
2446
|
+
|
2447
|
+
# OfflineInstance返回参数结构体
|
2448
|
+
class OfflineInstanceResponse < TencentCloud::Common::AbstractModel
|
2449
|
+
# @param FlowId: 任务流ID
|
2450
|
+
# @type FlowId: Integer
|
2451
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2452
|
+
# @type RequestId: String
|
2453
|
+
|
2454
|
+
attr_accessor :FlowId, :RequestId
|
2455
|
+
|
2456
|
+
def initialize(flowid=nil, requestid=nil)
|
2457
|
+
@FlowId = flowid
|
2458
|
+
@RequestId = requestid
|
2459
|
+
end
|
2460
|
+
|
2461
|
+
def deserialize(params)
|
2462
|
+
@FlowId = params['FlowId']
|
2463
|
+
@RequestId = params['RequestId']
|
2464
|
+
end
|
2465
|
+
end
|
2466
|
+
|
2467
|
+
# 修改参数时,传入参数描述
|
2468
|
+
class ParamItem < TencentCloud::Common::AbstractModel
|
2469
|
+
# @param ParamName: 参数名称
|
2470
|
+
# @type ParamName: String
|
2471
|
+
# @param CurrentValue: 当前值
|
2472
|
+
# @type CurrentValue: String
|
2473
|
+
# @param OldValue: 原有值
|
2474
|
+
# @type OldValue: String
|
2475
|
+
|
2476
|
+
attr_accessor :ParamName, :CurrentValue, :OldValue
|
2477
|
+
|
2478
|
+
def initialize(paramname=nil, currentvalue=nil, oldvalue=nil)
|
2479
|
+
@ParamName = paramname
|
2480
|
+
@CurrentValue = currentvalue
|
2481
|
+
@OldValue = oldvalue
|
2482
|
+
end
|
2483
|
+
|
2484
|
+
def deserialize(params)
|
2485
|
+
@ParamName = params['ParamName']
|
2486
|
+
@CurrentValue = params['CurrentValue']
|
2487
|
+
@OldValue = params['OldValue']
|
2488
|
+
end
|
2489
|
+
end
|
2490
|
+
|
2491
|
+
# 安全组规则
|
2492
|
+
class PolicyRule < TencentCloud::Common::AbstractModel
|
2493
|
+
# @param Action: 策略,ACCEPT或者DROP
|
2494
|
+
# @type Action: String
|
2495
|
+
# @param CidrIp: 来源Ip或Ip段,例如192.168.0.0/16
|
2496
|
+
# @type CidrIp: String
|
2497
|
+
# @param PortRange: 端口
|
2498
|
+
# @type PortRange: String
|
2499
|
+
# @param IpProtocol: 网络协议,支持udp、tcp等
|
2500
|
+
# @type IpProtocol: String
|
2501
|
+
# @param ServiceModule: 协议端口ID或者协议端口组ID。
|
2502
|
+
# @type ServiceModule: String
|
2503
|
+
# @param AddressModule: IP地址ID或者ID地址组ID。
|
2504
|
+
# @type AddressModule: String
|
2505
|
+
# @param Id: id
|
2506
|
+
# @type Id: String
|
2507
|
+
# @param Desc: 描述
|
2508
|
+
# @type Desc: String
|
2509
|
+
|
2510
|
+
attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol, :ServiceModule, :AddressModule, :Id, :Desc
|
2511
|
+
|
2512
|
+
def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, servicemodule=nil, addressmodule=nil, id=nil, desc=nil)
|
2513
|
+
@Action = action
|
2514
|
+
@CidrIp = cidrip
|
2515
|
+
@PortRange = portrange
|
2516
|
+
@IpProtocol = ipprotocol
|
2517
|
+
@ServiceModule = servicemodule
|
2518
|
+
@AddressModule = addressmodule
|
2519
|
+
@Id = id
|
2520
|
+
@Desc = desc
|
2521
|
+
end
|
2522
|
+
|
2523
|
+
def deserialize(params)
|
2524
|
+
@Action = params['Action']
|
2525
|
+
@CidrIp = params['CidrIp']
|
2526
|
+
@PortRange = params['PortRange']
|
2527
|
+
@IpProtocol = params['IpProtocol']
|
2528
|
+
@ServiceModule = params['ServiceModule']
|
2529
|
+
@AddressModule = params['AddressModule']
|
2530
|
+
@Id = params['Id']
|
2531
|
+
@Desc = params['Desc']
|
2532
|
+
end
|
2533
|
+
end
|
2534
|
+
|
2535
|
+
# 查询过滤器
|
2536
|
+
class QueryFilter < TencentCloud::Common::AbstractModel
|
2537
|
+
# @param Names: 搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
|
2538
|
+
# @type Names: Array
|
2539
|
+
# @param Values: 搜索字符串
|
2540
|
+
# @type Values: Array
|
2541
|
+
# @param ExactMatch: 是否精确匹配
|
2542
|
+
# @type ExactMatch: Boolean
|
2543
|
+
# @param Name: 搜索字段
|
2544
|
+
# @type Name: String
|
2545
|
+
|
2546
|
+
attr_accessor :Names, :Values, :ExactMatch, :Name
|
2547
|
+
|
2548
|
+
def initialize(names=nil, values=nil, exactmatch=nil, name=nil)
|
2549
|
+
@Names = names
|
2550
|
+
@Values = values
|
2551
|
+
@ExactMatch = exactmatch
|
2552
|
+
@Name = name
|
2553
|
+
end
|
2554
|
+
|
2555
|
+
def deserialize(params)
|
2556
|
+
@Names = params['Names']
|
2557
|
+
@Values = params['Values']
|
2558
|
+
@ExactMatch = params['ExactMatch']
|
2559
|
+
@Name = params['Name']
|
2560
|
+
end
|
2561
|
+
end
|
2562
|
+
|
2563
|
+
# 安全组详情
|
2564
|
+
class SecurityGroup < TencentCloud::Common::AbstractModel
|
2565
|
+
# @param ProjectId: 项目ID
|
2566
|
+
# @type ProjectId: Integer
|
2567
|
+
# @param CreateTime: 创建时间,时间格式:yyyy-mm-dd hh:mm:ss
|
2568
|
+
# @type CreateTime: String
|
2569
|
+
# @param Inbound: 入站规则
|
2570
|
+
# @type Inbound: Array
|
2571
|
+
# @param Outbound: 出站规则
|
2572
|
+
# @type Outbound: Array
|
2573
|
+
# @param SecurityGroupId: 安全组ID
|
2574
|
+
# @type SecurityGroupId: String
|
2575
|
+
# @param SecurityGroupName: 安全组名称
|
2576
|
+
# @type SecurityGroupName: String
|
2577
|
+
# @param SecurityGroupRemark: 安全组备注
|
2578
|
+
# @type SecurityGroupRemark: String
|
2579
|
+
|
2580
|
+
attr_accessor :ProjectId, :CreateTime, :Inbound, :Outbound, :SecurityGroupId, :SecurityGroupName, :SecurityGroupRemark
|
2581
|
+
|
2582
|
+
def initialize(projectid=nil, createtime=nil, inbound=nil, outbound=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil)
|
2583
|
+
@ProjectId = projectid
|
2584
|
+
@CreateTime = createtime
|
2585
|
+
@Inbound = inbound
|
2586
|
+
@Outbound = outbound
|
2587
|
+
@SecurityGroupId = securitygroupid
|
2588
|
+
@SecurityGroupName = securitygroupname
|
2589
|
+
@SecurityGroupRemark = securitygroupremark
|
2590
|
+
end
|
2591
|
+
|
2592
|
+
def deserialize(params)
|
2593
|
+
@ProjectId = params['ProjectId']
|
2594
|
+
@CreateTime = params['CreateTime']
|
2595
|
+
unless params['Inbound'].nil?
|
2596
|
+
@Inbound = []
|
2597
|
+
params['Inbound'].each do |i|
|
2598
|
+
policyrule_tmp = PolicyRule.new
|
2599
|
+
policyrule_tmp.deserialize(i)
|
2600
|
+
@Inbound << policyrule_tmp
|
2601
|
+
end
|
2602
|
+
end
|
2603
|
+
unless params['Outbound'].nil?
|
2604
|
+
@Outbound = []
|
2605
|
+
params['Outbound'].each do |i|
|
2606
|
+
policyrule_tmp = PolicyRule.new
|
2607
|
+
policyrule_tmp.deserialize(i)
|
2608
|
+
@Outbound << policyrule_tmp
|
2609
|
+
end
|
2610
|
+
end
|
2611
|
+
@SecurityGroupId = params['SecurityGroupId']
|
2612
|
+
@SecurityGroupName = params['SecurityGroupName']
|
2613
|
+
@SecurityGroupRemark = params['SecurityGroupRemark']
|
2614
|
+
end
|
2615
|
+
end
|
2616
|
+
|
2617
|
+
# SetRenewFlag请求参数结构体
|
2618
|
+
class SetRenewFlagRequest < TencentCloud::Common::AbstractModel
|
2619
|
+
# @param ResourceIds: 需操作的实例ID
|
2620
|
+
# @type ResourceIds: Array
|
2621
|
+
# @param AutoRenewFlag: 自动续费标志位
|
2622
|
+
# @type AutoRenewFlag: Integer
|
2623
|
+
|
2624
|
+
attr_accessor :ResourceIds, :AutoRenewFlag
|
2625
|
+
|
2626
|
+
def initialize(resourceids=nil, autorenewflag=nil)
|
2627
|
+
@ResourceIds = resourceids
|
2628
|
+
@AutoRenewFlag = autorenewflag
|
2629
|
+
end
|
2630
|
+
|
2631
|
+
def deserialize(params)
|
2632
|
+
@ResourceIds = params['ResourceIds']
|
2633
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
2634
|
+
end
|
2635
|
+
end
|
2636
|
+
|
2637
|
+
# SetRenewFlag返回参数结构体
|
2638
|
+
class SetRenewFlagResponse < TencentCloud::Common::AbstractModel
|
2639
|
+
# @param Count: 操作成功实例数
|
2640
|
+
# @type Count: Integer
|
2641
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2642
|
+
# @type RequestId: String
|
2643
|
+
|
2644
|
+
attr_accessor :Count, :RequestId
|
2645
|
+
|
2646
|
+
def initialize(count=nil, requestid=nil)
|
2647
|
+
@Count = count
|
2648
|
+
@RequestId = requestid
|
2649
|
+
end
|
2650
|
+
|
2651
|
+
def deserialize(params)
|
2652
|
+
@Count = params['Count']
|
2653
|
+
@RequestId = params['RequestId']
|
2654
|
+
end
|
2655
|
+
end
|
2656
|
+
|
2657
|
+
# 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
|
2658
|
+
class Tag < TencentCloud::Common::AbstractModel
|
2659
|
+
# @param TagKey: 标签键
|
2660
|
+
# @type TagKey: String
|
2661
|
+
# @param TagValue: 标签值
|
2662
|
+
# @type TagValue: String
|
2663
|
+
|
2664
|
+
attr_accessor :TagKey, :TagValue
|
2665
|
+
|
2666
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
2667
|
+
@TagKey = tagkey
|
2668
|
+
@TagValue = tagvalue
|
2669
|
+
end
|
2670
|
+
|
2671
|
+
def deserialize(params)
|
2672
|
+
@TagKey = params['TagKey']
|
2673
|
+
@TagValue = params['TagValue']
|
2674
|
+
end
|
2675
|
+
end
|
2676
|
+
|
2677
|
+
# UpgradeInstance请求参数结构体
|
2678
|
+
class UpgradeInstanceRequest < TencentCloud::Common::AbstractModel
|
2679
|
+
# @param InstanceId: 实例ID
|
2680
|
+
# @type InstanceId: String
|
2681
|
+
# @param Cpu: 数据库CPU
|
2682
|
+
# @type Cpu: Integer
|
2683
|
+
# @param Memory: 数据库内存
|
2684
|
+
# @type Memory: Integer
|
2685
|
+
# @param UpgradeType: 升级类型:upgradeImmediate,upgradeInMaintain
|
2686
|
+
# @type UpgradeType: String
|
2687
|
+
# @param StorageLimit: 存储上限,为0表示使用标准配置
|
2688
|
+
# @type StorageLimit: Integer
|
2689
|
+
# @param AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
|
2690
|
+
# @type AutoVoucher: Integer
|
2691
|
+
# @param DbType: 数据库类型,取值范围:
|
2692
|
+
# <li> MYSQL </li>
|
2693
|
+
# @type DbType: String
|
2694
|
+
# @param DealMode: 交易模式 0-下单并支付 1-下单
|
2695
|
+
# @type DealMode: Integer
|
2696
|
+
|
2697
|
+
attr_accessor :InstanceId, :Cpu, :Memory, :UpgradeType, :StorageLimit, :AutoVoucher, :DbType, :DealMode
|
2698
|
+
|
2699
|
+
def initialize(instanceid=nil, cpu=nil, memory=nil, upgradetype=nil, storagelimit=nil, autovoucher=nil, dbtype=nil, dealmode=nil)
|
2700
|
+
@InstanceId = instanceid
|
2701
|
+
@Cpu = cpu
|
2702
|
+
@Memory = memory
|
2703
|
+
@UpgradeType = upgradetype
|
2704
|
+
@StorageLimit = storagelimit
|
2705
|
+
@AutoVoucher = autovoucher
|
2706
|
+
@DbType = dbtype
|
2707
|
+
@DealMode = dealmode
|
2708
|
+
end
|
2709
|
+
|
2710
|
+
def deserialize(params)
|
2711
|
+
@InstanceId = params['InstanceId']
|
2712
|
+
@Cpu = params['Cpu']
|
2713
|
+
@Memory = params['Memory']
|
2714
|
+
@UpgradeType = params['UpgradeType']
|
2715
|
+
@StorageLimit = params['StorageLimit']
|
2716
|
+
@AutoVoucher = params['AutoVoucher']
|
2717
|
+
@DbType = params['DbType']
|
2718
|
+
@DealMode = params['DealMode']
|
2719
|
+
end
|
2720
|
+
end
|
2721
|
+
|
2722
|
+
# UpgradeInstance返回参数结构体
|
2723
|
+
class UpgradeInstanceResponse < TencentCloud::Common::AbstractModel
|
2724
|
+
# @param TranId: 冻结流水ID
|
2725
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2726
|
+
# @type TranId: String
|
2727
|
+
# @param BigDealIds: 大订单号
|
2728
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2729
|
+
# @type BigDealIds: Array
|
2730
|
+
# @param DealNames: 订单号
|
2731
|
+
# @type DealNames: Array
|
2732
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2733
|
+
# @type RequestId: String
|
2734
|
+
|
2735
|
+
attr_accessor :TranId, :BigDealIds, :DealNames, :RequestId
|
2736
|
+
|
2737
|
+
def initialize(tranid=nil, bigdealids=nil, dealnames=nil, requestid=nil)
|
2738
|
+
@TranId = tranid
|
2739
|
+
@BigDealIds = bigdealids
|
2740
|
+
@DealNames = dealnames
|
2741
|
+
@RequestId = requestid
|
2742
|
+
end
|
2743
|
+
|
2744
|
+
def deserialize(params)
|
2745
|
+
@TranId = params['TranId']
|
2746
|
+
@BigDealIds = params['BigDealIds']
|
2747
|
+
@DealNames = params['DealNames']
|
2748
|
+
@RequestId = params['RequestId']
|
2749
|
+
end
|
2750
|
+
end
|
2751
|
+
|
2752
|
+
end
|
2753
|
+
end
|
2754
|
+
end
|
2755
|
+
|