tencentcloud-sdk-dbdc 1.0.324

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 68d270f08560a195180b9029e727696e116258d2
4
+ data.tar.gz: f4f0bfd1a6678a5b424794c2e7255c321d9f805e
5
+ SHA512:
6
+ metadata.gz: 36ed6c6ef718759183279813c8139c913ee7836ce7354edb080117efea86d0cd8d37d932cc440eef7680add897337ed5d95ddf1fc20fe000b21072a2e13b84f2
7
+ data.tar.gz: 50c90bed06ae681a2dfe0dc528239f10b0c9a50de56e699b9efc0db1b725619802a658560b864b41dda519f929a511eba1a5556bcc7d7627834c4efbd156daeb
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.324
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20201029/client'
6
+ require_relative 'v20201029/models'
7
+
8
+ module TencentCloud
9
+ module Dbdc
10
+ end
11
+ end
@@ -0,0 +1,156 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Dbdc
21
+ module V20201029
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-10-29'
26
+ api_endpoint = 'dbdc.tencentcloudapi.com'
27
+ sdk_version = 'DBDC_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 本接口用于查询独享集群内的DB实例列表
33
+
34
+ # @param request: Request instance for DescribeDBInstances.
35
+ # @type request: :class:`Tencentcloud::dbdc::V20201029::DescribeDBInstancesRequest`
36
+ # @rtype: :class:`Tencentcloud::dbdc::V20201029::DescribeDBInstancesResponse`
37
+ def DescribeDBInstances(request)
38
+ body = send_request('DescribeDBInstances', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeDBInstancesResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 本接口用于查询独享集群详情
57
+
58
+ # @param request: Request instance for DescribeInstanceDetail.
59
+ # @type request: :class:`Tencentcloud::dbdc::V20201029::DescribeInstanceDetailRequest`
60
+ # @rtype: :class:`Tencentcloud::dbdc::V20201029::DescribeInstanceDetailResponse`
61
+ def DescribeInstanceDetail(request)
62
+ body = send_request('DescribeInstanceDetail', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeInstanceDetailResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 本接口用于查询独享集群实例列表
81
+
82
+ # @param request: Request instance for DescribeInstanceList.
83
+ # @type request: :class:`Tencentcloud::dbdc::V20201029::DescribeInstanceListRequest`
84
+ # @rtype: :class:`Tencentcloud::dbdc::V20201029::DescribeInstanceListResponse`
85
+ def DescribeInstanceList(request)
86
+ body = send_request('DescribeInstanceList', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeInstanceListResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 根据不同地域不同用户,获取集群列表信息
105
+
106
+ # @param request: Request instance for DescribeInstances.
107
+ # @type request: :class:`Tencentcloud::dbdc::V20201029::DescribeInstancesRequest`
108
+ # @rtype: :class:`Tencentcloud::dbdc::V20201029::DescribeInstancesResponse`
109
+ def DescribeInstances(request)
110
+ body = send_request('DescribeInstances', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeInstancesResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 本接口用于修改集群名称
129
+
130
+ # @param request: Request instance for ModifyInstanceName.
131
+ # @type request: :class:`Tencentcloud::dbdc::V20201029::ModifyInstanceNameRequest`
132
+ # @rtype: :class:`Tencentcloud::dbdc::V20201029::ModifyInstanceNameResponse`
133
+ def ModifyInstanceName(request)
134
+ body = send_request('ModifyInstanceName', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = ModifyInstanceNameResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,845 @@
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 Dbdc
19
+ module V20201029
20
+ # DB实例详情
21
+ class DBInstanceDetail < TencentCloud::Common::AbstractModel
22
+ # @param InstanceId: DB实例Id
23
+ # @type InstanceId: String
24
+ # @param InstanceName: DB实例名称
25
+ # @type InstanceName: String
26
+ # @param Status: DB实例状态,-1:已隔离, 0:创建中, 1:流程中, 2:运行中, 3:未初始化
27
+ # @type Status: Integer
28
+ # @param StatusDesc: DB实例状态描述,-1:已隔离, 0:创建中, 1:流程中, 2:运行中, 3:未初始化
29
+ # @type StatusDesc: String
30
+ # @param DbVersion: DB实例版本
31
+ # @type DbVersion: String
32
+ # @param Vip: Vip信息
33
+ # @type Vip: String
34
+ # @param Vport: Vip使用的端口号
35
+ # @type Vport: Integer
36
+ # @param UniqueVpcId: 字符串型的私有网络ID
37
+ # @type UniqueVpcId: String
38
+ # @param UniqueSubnetId: 字符串型的私有网络子网ID
39
+ # @type UniqueSubnetId: String
40
+ # @param Shard: 是否为分布式版本,0:否,1:是
41
+ # @type Shard: Integer
42
+ # @param NodeNum: DB实例节点数
43
+ # @type NodeNum: Integer
44
+ # @param Cpu: CPU规格(单位:核数)
45
+ # @type Cpu: Integer
46
+ # @param Memory: 内存规格(单位:GB)
47
+ # @type Memory: Integer
48
+ # @param Disk: 磁盘规格(单位:GB)
49
+ # @type Disk: Integer
50
+ # @param ShardNum: 分布式类型的实例的分片数
51
+ # @type ShardNum: Integer
52
+ # @param Zone: 可用区
53
+ # @type Zone: String
54
+ # @param DbHosts: Db所在主机列表, 格式: m1,s1|m2,s2
55
+ # @type DbHosts: String
56
+ # @param HostRole: 主机角色, 1:主, 2:从, 3:主+从
57
+ # @type HostRole: Integer
58
+ # @param DbEngine: DB引擎,MySQL,Percona,MariaDB
59
+ # @type DbEngine: String
60
+
61
+ attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :DbVersion, :Vip, :Vport, :UniqueVpcId, :UniqueSubnetId, :Shard, :NodeNum, :Cpu, :Memory, :Disk, :ShardNum, :Zone, :DbHosts, :HostRole, :DbEngine
62
+
63
+ def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, dbversion=nil, vip=nil, vport=nil, uniquevpcid=nil, uniquesubnetid=nil, shard=nil, nodenum=nil, cpu=nil, memory=nil, disk=nil, shardnum=nil, zone=nil, dbhosts=nil, hostrole=nil, dbengine=nil)
64
+ @InstanceId = instanceid
65
+ @InstanceName = instancename
66
+ @Status = status
67
+ @StatusDesc = statusdesc
68
+ @DbVersion = dbversion
69
+ @Vip = vip
70
+ @Vport = vport
71
+ @UniqueVpcId = uniquevpcid
72
+ @UniqueSubnetId = uniquesubnetid
73
+ @Shard = shard
74
+ @NodeNum = nodenum
75
+ @Cpu = cpu
76
+ @Memory = memory
77
+ @Disk = disk
78
+ @ShardNum = shardnum
79
+ @Zone = zone
80
+ @DbHosts = dbhosts
81
+ @HostRole = hostrole
82
+ @DbEngine = dbengine
83
+ end
84
+
85
+ def deserialize(params)
86
+ @InstanceId = params['InstanceId']
87
+ @InstanceName = params['InstanceName']
88
+ @Status = params['Status']
89
+ @StatusDesc = params['StatusDesc']
90
+ @DbVersion = params['DbVersion']
91
+ @Vip = params['Vip']
92
+ @Vport = params['Vport']
93
+ @UniqueVpcId = params['UniqueVpcId']
94
+ @UniqueSubnetId = params['UniqueSubnetId']
95
+ @Shard = params['Shard']
96
+ @NodeNum = params['NodeNum']
97
+ @Cpu = params['Cpu']
98
+ @Memory = params['Memory']
99
+ @Disk = params['Disk']
100
+ @ShardNum = params['ShardNum']
101
+ @Zone = params['Zone']
102
+ @DbHosts = params['DbHosts']
103
+ @HostRole = params['HostRole']
104
+ @DbEngine = params['DbEngine']
105
+ end
106
+ end
107
+
108
+ # DescribeDBInstances请求参数结构体
109
+ class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
110
+ # @param InstanceId: 独享集群实例Id
111
+ # @type InstanceId: String
112
+ # @param HostId: 独享集群主机Id
113
+ # @type HostId: String
114
+ # @param Limit: 分页返回数量
115
+ # @type Limit: Integer
116
+ # @param Offset: 分页偏移量
117
+ # @type Offset: Integer
118
+ # @param ShardType: 实例类型,0:mariadb, 1:tdsql
119
+ # @type ShardType: Array
120
+
121
+ attr_accessor :InstanceId, :HostId, :Limit, :Offset, :ShardType
122
+
123
+ def initialize(instanceid=nil, hostid=nil, limit=nil, offset=nil, shardtype=nil)
124
+ @InstanceId = instanceid
125
+ @HostId = hostid
126
+ @Limit = limit
127
+ @Offset = offset
128
+ @ShardType = shardtype
129
+ end
130
+
131
+ def deserialize(params)
132
+ @InstanceId = params['InstanceId']
133
+ @HostId = params['HostId']
134
+ @Limit = params['Limit']
135
+ @Offset = params['Offset']
136
+ @ShardType = params['ShardType']
137
+ end
138
+ end
139
+
140
+ # DescribeDBInstances返回参数结构体
141
+ class DescribeDBInstancesResponse < TencentCloud::Common::AbstractModel
142
+ # @param Instances: 独享集群内的DB实例列表
143
+ # @type Instances: Array
144
+ # @param TotalCount: 独享集群内的DB实例总数
145
+ # @type TotalCount: Integer
146
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
147
+ # @type RequestId: String
148
+
149
+ attr_accessor :Instances, :TotalCount, :RequestId
150
+
151
+ def initialize(instances=nil, totalcount=nil, requestid=nil)
152
+ @Instances = instances
153
+ @TotalCount = totalcount
154
+ @RequestId = requestid
155
+ end
156
+
157
+ def deserialize(params)
158
+ unless params['Instances'].nil?
159
+ @Instances = []
160
+ params['Instances'].each do |i|
161
+ dbinstancedetail_tmp = DBInstanceDetail.new
162
+ dbinstancedetail_tmp.deserialize(i)
163
+ @Instances << dbinstancedetail_tmp
164
+ end
165
+ end
166
+ @TotalCount = params['TotalCount']
167
+ @RequestId = params['RequestId']
168
+ end
169
+ end
170
+
171
+ # 独享集群详情
172
+ class DescribeInstanceDetail < TencentCloud::Common::AbstractModel
173
+ # @param InstanceId: 独享集群实例Id
174
+ # @type InstanceId: String
175
+ # @param InstanceName: 独享集群实例名称
176
+ # @type InstanceName: String
177
+ # @param Region: 地域
178
+ # @type Region: String
179
+ # @param ProductId: 产品ID, 0:CDB, 1:TDSQL
180
+ # @type ProductId: Integer
181
+ # @param Type: 集群类型, 0:公有云, 1:金融围笼
182
+ # @type Type: Integer
183
+ # @param HostType: 主机类型, 0:物理机, 1:cvm本地盘, 2:cvm云盘
184
+ # @type HostType: Integer
185
+ # @param AutoRenewFlag: 自动续费标志, 0:未设置, 1:自动续费, 2:到期不续费
186
+ # @type AutoRenewFlag: Integer
187
+ # @param Status: 集群状态
188
+ # @type Status: Integer
189
+ # @param StatusDesc: 集群状态描述
190
+ # @type StatusDesc: String
191
+ # @param CreateTime: 创建时间
192
+ # @type CreateTime: String
193
+ # @param PeriodEndTime: 到期时间
194
+ # @type PeriodEndTime: String
195
+ # @param HostNum: 主机数
196
+ # @type HostNum: Integer
197
+ # @param DbNum: DB实例数
198
+ # @type DbNum: Integer
199
+ # @param AssignStrategy: 分配策略, 0:紧凑, 1:均匀
200
+ # @type AssignStrategy: Integer
201
+ # @param CpuSpec: 总主机CPU(单位:核数)
202
+ # @type CpuSpec: Integer
203
+ # @param CpuAssigned: 总已分配CPU(单位:核数)
204
+ # @type CpuAssigned: Integer
205
+ # @param CpuAssignable: 总可分配CPU(单位:核数)
206
+ # @type CpuAssignable: Integer
207
+ # @param MemorySpec: 总主机内存(单位:GB)
208
+ # @type MemorySpec: Integer
209
+ # @param MemoryAssigned: 总已分配内存(单位:GB)
210
+ # @type MemoryAssigned: Integer
211
+ # @param MemoryAssignable: 总可分配内存(单位:GB)
212
+ # @type MemoryAssignable: Integer
213
+ # @param DiskSpec: 总机器磁盘(单位:GB)
214
+ # @type DiskSpec: Integer
215
+ # @param DiskAssigned: 总已分配磁盘(单位:GB)
216
+ # @type DiskAssigned: Integer
217
+ # @param DiskAssignable: 总可分配磁盘(单位:GB)
218
+ # @type DiskAssignable: Integer
219
+ # @param Zone: 可用区
220
+ # @type Zone: String
221
+ # @param FenceId: 围笼ID
222
+ # 注意:此字段可能返回 null,表示取不到有效值。
223
+ # @type FenceId: String
224
+
225
+ attr_accessor :InstanceId, :InstanceName, :Region, :ProductId, :Type, :HostType, :AutoRenewFlag, :Status, :StatusDesc, :CreateTime, :PeriodEndTime, :HostNum, :DbNum, :AssignStrategy, :CpuSpec, :CpuAssigned, :CpuAssignable, :MemorySpec, :MemoryAssigned, :MemoryAssignable, :DiskSpec, :DiskAssigned, :DiskAssignable, :Zone, :FenceId
226
+
227
+ def initialize(instanceid=nil, instancename=nil, region=nil, productid=nil, type=nil, hosttype=nil, autorenewflag=nil, status=nil, statusdesc=nil, createtime=nil, periodendtime=nil, hostnum=nil, dbnum=nil, assignstrategy=nil, cpuspec=nil, cpuassigned=nil, cpuassignable=nil, memoryspec=nil, memoryassigned=nil, memoryassignable=nil, diskspec=nil, diskassigned=nil, diskassignable=nil, zone=nil, fenceid=nil)
228
+ @InstanceId = instanceid
229
+ @InstanceName = instancename
230
+ @Region = region
231
+ @ProductId = productid
232
+ @Type = type
233
+ @HostType = hosttype
234
+ @AutoRenewFlag = autorenewflag
235
+ @Status = status
236
+ @StatusDesc = statusdesc
237
+ @CreateTime = createtime
238
+ @PeriodEndTime = periodendtime
239
+ @HostNum = hostnum
240
+ @DbNum = dbnum
241
+ @AssignStrategy = assignstrategy
242
+ @CpuSpec = cpuspec
243
+ @CpuAssigned = cpuassigned
244
+ @CpuAssignable = cpuassignable
245
+ @MemorySpec = memoryspec
246
+ @MemoryAssigned = memoryassigned
247
+ @MemoryAssignable = memoryassignable
248
+ @DiskSpec = diskspec
249
+ @DiskAssigned = diskassigned
250
+ @DiskAssignable = diskassignable
251
+ @Zone = zone
252
+ @FenceId = fenceid
253
+ end
254
+
255
+ def deserialize(params)
256
+ @InstanceId = params['InstanceId']
257
+ @InstanceName = params['InstanceName']
258
+ @Region = params['Region']
259
+ @ProductId = params['ProductId']
260
+ @Type = params['Type']
261
+ @HostType = params['HostType']
262
+ @AutoRenewFlag = params['AutoRenewFlag']
263
+ @Status = params['Status']
264
+ @StatusDesc = params['StatusDesc']
265
+ @CreateTime = params['CreateTime']
266
+ @PeriodEndTime = params['PeriodEndTime']
267
+ @HostNum = params['HostNum']
268
+ @DbNum = params['DbNum']
269
+ @AssignStrategy = params['AssignStrategy']
270
+ @CpuSpec = params['CpuSpec']
271
+ @CpuAssigned = params['CpuAssigned']
272
+ @CpuAssignable = params['CpuAssignable']
273
+ @MemorySpec = params['MemorySpec']
274
+ @MemoryAssigned = params['MemoryAssigned']
275
+ @MemoryAssignable = params['MemoryAssignable']
276
+ @DiskSpec = params['DiskSpec']
277
+ @DiskAssigned = params['DiskAssigned']
278
+ @DiskAssignable = params['DiskAssignable']
279
+ @Zone = params['Zone']
280
+ @FenceId = params['FenceId']
281
+ end
282
+ end
283
+
284
+ # DescribeInstanceDetail请求参数结构体
285
+ class DescribeInstanceDetailRequest < TencentCloud::Common::AbstractModel
286
+ # @param InstanceId: 独享集群实例Id
287
+ # @type InstanceId: String
288
+
289
+ attr_accessor :InstanceId
290
+
291
+ def initialize(instanceid=nil)
292
+ @InstanceId = instanceid
293
+ end
294
+
295
+ def deserialize(params)
296
+ @InstanceId = params['InstanceId']
297
+ end
298
+ end
299
+
300
+ # DescribeInstanceDetail返回参数结构体
301
+ class DescribeInstanceDetailResponse < TencentCloud::Common::AbstractModel
302
+ # @param InstanceId: 独享集群实例Id
303
+ # @type InstanceId: String
304
+ # @param InstanceName: 独享集群实例名称
305
+ # @type InstanceName: String
306
+ # @param Region: 地域
307
+ # @type Region: String
308
+ # @param ProductId: 产品ID, 0:CDB, 1:TDSQL
309
+ # @type ProductId: Integer
310
+ # @param Type: 集群类型, 0:公有云, 1:金融围笼
311
+ # @type Type: Integer
312
+ # @param HostType: 主机类型, 0:物理机, 1:cvm本地盘, 2:cvm云盘
313
+ # @type HostType: Integer
314
+ # @param AutoRenewFlag: 自动续费标志, 0:未设置, 1:自动续费, 2:到期不续费
315
+ # @type AutoRenewFlag: Integer
316
+ # @param Status: 集群状态
317
+ # @type Status: Integer
318
+ # @param StatusDesc: 集群状态描述
319
+ # @type StatusDesc: String
320
+ # @param CreateTime: 创建时间
321
+ # @type CreateTime: String
322
+ # @param PeriodEndTime: 到期时间
323
+ # @type PeriodEndTime: String
324
+ # @param HostNum: 主机数
325
+ # @type HostNum: Integer
326
+ # @param DbNum: Db实例数
327
+ # @type DbNum: Integer
328
+ # @param AssignStrategy: 分配策略, 0:紧凑, 1:均匀
329
+ # @type AssignStrategy: Integer
330
+ # @param CpuSpec: 总主机CPU(单位:核)
331
+ # @type CpuSpec: Integer
332
+ # @param CpuAssigned: 总已分配CPU(单位:核)
333
+ # @type CpuAssigned: Integer
334
+ # @param CpuAssignable: 总可分配CPU(单位:核)
335
+ # @type CpuAssignable: Integer
336
+ # @param MemorySpec: 总主机内存(单位:GB)
337
+ # @type MemorySpec: Integer
338
+ # @param MemoryAssigned: 总已分配内存(单位:GB)
339
+ # @type MemoryAssigned: Integer
340
+ # @param MemoryAssignable: 总可分配内存(单位:GB)
341
+ # @type MemoryAssignable: Integer
342
+ # @param DiskSpec: 总机器磁盘(单位:GB)
343
+ # @type DiskSpec: Integer
344
+ # @param DiskAssigned: 总已分配磁盘(单位:GB)
345
+ # @type DiskAssigned: Integer
346
+ # @param DiskAssignable: 总可分配磁盘(单位:GB)
347
+ # @type DiskAssignable: Integer
348
+ # @param Zone: 可用区
349
+ # @type Zone: String
350
+ # @param FenceId: 围笼ID
351
+ # 注意:此字段可能返回 null,表示取不到有效值。
352
+ # @type FenceId: String
353
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
354
+ # @type RequestId: String
355
+
356
+ attr_accessor :InstanceId, :InstanceName, :Region, :ProductId, :Type, :HostType, :AutoRenewFlag, :Status, :StatusDesc, :CreateTime, :PeriodEndTime, :HostNum, :DbNum, :AssignStrategy, :CpuSpec, :CpuAssigned, :CpuAssignable, :MemorySpec, :MemoryAssigned, :MemoryAssignable, :DiskSpec, :DiskAssigned, :DiskAssignable, :Zone, :FenceId, :RequestId
357
+
358
+ def initialize(instanceid=nil, instancename=nil, region=nil, productid=nil, type=nil, hosttype=nil, autorenewflag=nil, status=nil, statusdesc=nil, createtime=nil, periodendtime=nil, hostnum=nil, dbnum=nil, assignstrategy=nil, cpuspec=nil, cpuassigned=nil, cpuassignable=nil, memoryspec=nil, memoryassigned=nil, memoryassignable=nil, diskspec=nil, diskassigned=nil, diskassignable=nil, zone=nil, fenceid=nil, requestid=nil)
359
+ @InstanceId = instanceid
360
+ @InstanceName = instancename
361
+ @Region = region
362
+ @ProductId = productid
363
+ @Type = type
364
+ @HostType = hosttype
365
+ @AutoRenewFlag = autorenewflag
366
+ @Status = status
367
+ @StatusDesc = statusdesc
368
+ @CreateTime = createtime
369
+ @PeriodEndTime = periodendtime
370
+ @HostNum = hostnum
371
+ @DbNum = dbnum
372
+ @AssignStrategy = assignstrategy
373
+ @CpuSpec = cpuspec
374
+ @CpuAssigned = cpuassigned
375
+ @CpuAssignable = cpuassignable
376
+ @MemorySpec = memoryspec
377
+ @MemoryAssigned = memoryassigned
378
+ @MemoryAssignable = memoryassignable
379
+ @DiskSpec = diskspec
380
+ @DiskAssigned = diskassigned
381
+ @DiskAssignable = diskassignable
382
+ @Zone = zone
383
+ @FenceId = fenceid
384
+ @RequestId = requestid
385
+ end
386
+
387
+ def deserialize(params)
388
+ @InstanceId = params['InstanceId']
389
+ @InstanceName = params['InstanceName']
390
+ @Region = params['Region']
391
+ @ProductId = params['ProductId']
392
+ @Type = params['Type']
393
+ @HostType = params['HostType']
394
+ @AutoRenewFlag = params['AutoRenewFlag']
395
+ @Status = params['Status']
396
+ @StatusDesc = params['StatusDesc']
397
+ @CreateTime = params['CreateTime']
398
+ @PeriodEndTime = params['PeriodEndTime']
399
+ @HostNum = params['HostNum']
400
+ @DbNum = params['DbNum']
401
+ @AssignStrategy = params['AssignStrategy']
402
+ @CpuSpec = params['CpuSpec']
403
+ @CpuAssigned = params['CpuAssigned']
404
+ @CpuAssignable = params['CpuAssignable']
405
+ @MemorySpec = params['MemorySpec']
406
+ @MemoryAssigned = params['MemoryAssigned']
407
+ @MemoryAssignable = params['MemoryAssignable']
408
+ @DiskSpec = params['DiskSpec']
409
+ @DiskAssigned = params['DiskAssigned']
410
+ @DiskAssignable = params['DiskAssignable']
411
+ @Zone = params['Zone']
412
+ @FenceId = params['FenceId']
413
+ @RequestId = params['RequestId']
414
+ end
415
+ end
416
+
417
+ # DescribeInstanceList请求参数结构体
418
+ class DescribeInstanceListRequest < TencentCloud::Common::AbstractModel
419
+ # @param Limit: 分页返回数量
420
+ # @type Limit: Integer
421
+ # @param Offset: 分页偏移量
422
+ # @type Offset: Integer
423
+ # @param OrderBy: 排序字段,createTime,instancename两者之一
424
+ # @type OrderBy: String
425
+ # @param SortBy: 排序规则,desc,asc两者之一
426
+ # @type SortBy: String
427
+ # @param ProductId: 按产品过滤,0:CDB, 1:TDSQL
428
+ # @type ProductId: Array
429
+ # @param InstanceId: 按实例ID过滤
430
+ # @type InstanceId: Array
431
+ # @param InstanceName: 按实例名称过滤
432
+ # @type InstanceName: Array
433
+ # @param FenceId: 按金融围笼ID过滤
434
+ # @type FenceId: Array
435
+ # @param Status: 按实例状态过滤, -1:已隔离, 0:创建中, 1:运行中, 2:扩容中, 3:删除中
436
+ # @type Status: Array
437
+
438
+ attr_accessor :Limit, :Offset, :OrderBy, :SortBy, :ProductId, :InstanceId, :InstanceName, :FenceId, :Status
439
+
440
+ def initialize(limit=nil, offset=nil, orderby=nil, sortby=nil, productid=nil, instanceid=nil, instancename=nil, fenceid=nil, status=nil)
441
+ @Limit = limit
442
+ @Offset = offset
443
+ @OrderBy = orderby
444
+ @SortBy = sortby
445
+ @ProductId = productid
446
+ @InstanceId = instanceid
447
+ @InstanceName = instancename
448
+ @FenceId = fenceid
449
+ @Status = status
450
+ end
451
+
452
+ def deserialize(params)
453
+ @Limit = params['Limit']
454
+ @Offset = params['Offset']
455
+ @OrderBy = params['OrderBy']
456
+ @SortBy = params['SortBy']
457
+ @ProductId = params['ProductId']
458
+ @InstanceId = params['InstanceId']
459
+ @InstanceName = params['InstanceName']
460
+ @FenceId = params['FenceId']
461
+ @Status = params['Status']
462
+ end
463
+ end
464
+
465
+ # DescribeInstanceList返回参数结构体
466
+ class DescribeInstanceListResponse < TencentCloud::Common::AbstractModel
467
+ # @param Instances: 独享集群列表
468
+ # @type Instances: Array
469
+ # @param TotalCount: 独享集群实例总数
470
+ # @type TotalCount: Integer
471
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
472
+ # @type RequestId: String
473
+
474
+ attr_accessor :Instances, :TotalCount, :RequestId
475
+
476
+ def initialize(instances=nil, totalcount=nil, requestid=nil)
477
+ @Instances = instances
478
+ @TotalCount = totalcount
479
+ @RequestId = requestid
480
+ end
481
+
482
+ def deserialize(params)
483
+ unless params['Instances'].nil?
484
+ @Instances = []
485
+ params['Instances'].each do |i|
486
+ describeinstancedetail_tmp = DescribeInstanceDetail.new
487
+ describeinstancedetail_tmp.deserialize(i)
488
+ @Instances << describeinstancedetail_tmp
489
+ end
490
+ end
491
+ @TotalCount = params['TotalCount']
492
+ @RequestId = params['RequestId']
493
+ end
494
+ end
495
+
496
+ # DescribeInstances请求参数结构体
497
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
498
+ # @param InstanceTypes: 集群类型: 0 一主一备, 1 一主两备...N-1 一主N备
499
+ # @type InstanceTypes: Array
500
+ # @param ProductIds: 产品ID: 0 MYSQL,1 TDSQL
501
+ # @type ProductIds: Array
502
+ # @param InstanceIds: 集群uuid: 如 dbdc-q810131s
503
+ # @type InstanceIds: Array
504
+ # @param FenceFlag: 是否按金融围笼标志搜索
505
+ # @type FenceFlag: Boolean
506
+ # @param InstanceName: 按实例名字模糊匹配
507
+ # @type InstanceName: String
508
+ # @param PageSize: 每页数目, 整型
509
+ # @type PageSize: Integer
510
+ # @param PageNumber: 页码, 整型
511
+ # @type PageNumber: Integer
512
+ # @param OrderBy: 排序字段,枚举:createtime,groupname
513
+ # @type OrderBy: String
514
+ # @param OrderByType: 排序方式: asc升序, desc降序
515
+ # @type OrderByType: String
516
+ # @param InstanceStatus: 集群状态: -2 已删除, -1 已隔离, 0 创建中, 1 运行中, 2 扩容中, 3 删除中
517
+ # @type InstanceStatus: Integer
518
+
519
+ attr_accessor :InstanceTypes, :ProductIds, :InstanceIds, :FenceFlag, :InstanceName, :PageSize, :PageNumber, :OrderBy, :OrderByType, :InstanceStatus
520
+
521
+ def initialize(instancetypes=nil, productids=nil, instanceids=nil, fenceflag=nil, instancename=nil, pagesize=nil, pagenumber=nil, orderby=nil, orderbytype=nil, instancestatus=nil)
522
+ @InstanceTypes = instancetypes
523
+ @ProductIds = productids
524
+ @InstanceIds = instanceids
525
+ @FenceFlag = fenceflag
526
+ @InstanceName = instancename
527
+ @PageSize = pagesize
528
+ @PageNumber = pagenumber
529
+ @OrderBy = orderby
530
+ @OrderByType = orderbytype
531
+ @InstanceStatus = instancestatus
532
+ end
533
+
534
+ def deserialize(params)
535
+ @InstanceTypes = params['InstanceTypes']
536
+ @ProductIds = params['ProductIds']
537
+ @InstanceIds = params['InstanceIds']
538
+ @FenceFlag = params['FenceFlag']
539
+ @InstanceName = params['InstanceName']
540
+ @PageSize = params['PageSize']
541
+ @PageNumber = params['PageNumber']
542
+ @OrderBy = params['OrderBy']
543
+ @OrderByType = params['OrderByType']
544
+ @InstanceStatus = params['InstanceStatus']
545
+ end
546
+ end
547
+
548
+ # DescribeInstances返回参数结构体
549
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
550
+ # @param TotalCount: 集群数量
551
+ # @type TotalCount: Integer
552
+ # @param Instances: 集群扩展信息
553
+ # @type Instances: Array
554
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
555
+ # @type RequestId: String
556
+
557
+ attr_accessor :TotalCount, :Instances, :RequestId
558
+
559
+ def initialize(totalcount=nil, instances=nil, requestid=nil)
560
+ @TotalCount = totalcount
561
+ @Instances = instances
562
+ @RequestId = requestid
563
+ end
564
+
565
+ def deserialize(params)
566
+ @TotalCount = params['TotalCount']
567
+ unless params['Instances'].nil?
568
+ @Instances = []
569
+ params['Instances'].each do |i|
570
+ instanceexpand_tmp = InstanceExpand.new
571
+ instanceexpand_tmp.deserialize(i)
572
+ @Instances << instanceexpand_tmp
573
+ end
574
+ end
575
+ @RequestId = params['RequestId']
576
+ end
577
+ end
578
+
579
+ # 设备信息
580
+ class DeviceInfo < TencentCloud::Common::AbstractModel
581
+ # @param DeviceId: 设备ID
582
+ # @type DeviceId: Integer
583
+ # @param DeviceNo: 设备No
584
+ # @type DeviceNo: String
585
+ # @param DevClass: 设备类型
586
+ # @type DevClass: String
587
+ # @param MaxMemory: 设备总内存,单位GB
588
+ # @type MaxMemory: Float
589
+ # @param MaxDisk: 设备总磁盘,单位GB
590
+ # @type MaxDisk: Float
591
+ # @param RestMemory: 设备剩余内存,单位GB
592
+ # @type RestMemory: Float
593
+ # @param RestDisk: 设备剩余磁盘,单位GB
594
+ # @type RestDisk: Float
595
+ # @param RawDeviceNum: 设备机器个数
596
+ # @type RawDeviceNum: Integer
597
+ # @param InstanceNum: 数据库实例个数
598
+ # @type InstanceNum: Integer
599
+
600
+ attr_accessor :DeviceId, :DeviceNo, :DevClass, :MaxMemory, :MaxDisk, :RestMemory, :RestDisk, :RawDeviceNum, :InstanceNum
601
+
602
+ def initialize(deviceid=nil, deviceno=nil, devclass=nil, maxmemory=nil, maxdisk=nil, restmemory=nil, restdisk=nil, rawdevicenum=nil, instancenum=nil)
603
+ @DeviceId = deviceid
604
+ @DeviceNo = deviceno
605
+ @DevClass = devclass
606
+ @MaxMemory = maxmemory
607
+ @MaxDisk = maxdisk
608
+ @RestMemory = restmemory
609
+ @RestDisk = restdisk
610
+ @RawDeviceNum = rawdevicenum
611
+ @InstanceNum = instancenum
612
+ end
613
+
614
+ def deserialize(params)
615
+ @DeviceId = params['DeviceId']
616
+ @DeviceNo = params['DeviceNo']
617
+ @DevClass = params['DevClass']
618
+ @MaxMemory = params['MaxMemory']
619
+ @MaxDisk = params['MaxDisk']
620
+ @RestMemory = params['RestMemory']
621
+ @RestDisk = params['RestDisk']
622
+ @RawDeviceNum = params['RawDeviceNum']
623
+ @InstanceNum = params['InstanceNum']
624
+ end
625
+ end
626
+
627
+ # 集群容量信息。
628
+ class InstanceDetail < TencentCloud::Common::AbstractModel
629
+ # @param Status: 集群状态,0:运行中,1:不在运行
630
+ # @type Status: Integer
631
+ # @param ReadWriteTotalLeaveMemory: 读写集群剩余内存容量,单位GB
632
+ # @type ReadWriteTotalLeaveMemory: Float
633
+ # @param ReadWriteTotalLeaveDisk: 读写集群剩余磁盘容量,单位GB
634
+ # @type ReadWriteTotalLeaveDisk: Float
635
+ # @param ReadWriteTotalMemory: 读写集群总内存容量,单位GB
636
+ # @type ReadWriteTotalMemory: Float
637
+ # @param ReadWriteTotalDisk: 读写集群总磁盘容量,单位GB
638
+ # @type ReadWriteTotalDisk: Float
639
+ # @param ReadOnlyTotalLeaveMemory: 只读集群剩余内存容量,单位GB
640
+ # @type ReadOnlyTotalLeaveMemory: Float
641
+ # @param ReadOnlyTotalLeaveDisk: 只读集群剩余磁盘容量,单位GB
642
+ # @type ReadOnlyTotalLeaveDisk: Float
643
+ # @param ReadOnlyTotalMemory: 只读集群总内存容量,单位GB
644
+ # @type ReadOnlyTotalMemory: Float
645
+ # @param ReadOnlyTotalDisk: 只读集群总磁盘容量,单位GB
646
+ # @type ReadOnlyTotalDisk: Float
647
+ # @param InstanceDeviceInfos: 集群设备详情
648
+ # @type InstanceDeviceInfos: Array
649
+
650
+ attr_accessor :Status, :ReadWriteTotalLeaveMemory, :ReadWriteTotalLeaveDisk, :ReadWriteTotalMemory, :ReadWriteTotalDisk, :ReadOnlyTotalLeaveMemory, :ReadOnlyTotalLeaveDisk, :ReadOnlyTotalMemory, :ReadOnlyTotalDisk, :InstanceDeviceInfos
651
+
652
+ def initialize(status=nil, readwritetotalleavememory=nil, readwritetotalleavedisk=nil, readwritetotalmemory=nil, readwritetotaldisk=nil, readonlytotalleavememory=nil, readonlytotalleavedisk=nil, readonlytotalmemory=nil, readonlytotaldisk=nil, instancedeviceinfos=nil)
653
+ @Status = status
654
+ @ReadWriteTotalLeaveMemory = readwritetotalleavememory
655
+ @ReadWriteTotalLeaveDisk = readwritetotalleavedisk
656
+ @ReadWriteTotalMemory = readwritetotalmemory
657
+ @ReadWriteTotalDisk = readwritetotaldisk
658
+ @ReadOnlyTotalLeaveMemory = readonlytotalleavememory
659
+ @ReadOnlyTotalLeaveDisk = readonlytotalleavedisk
660
+ @ReadOnlyTotalMemory = readonlytotalmemory
661
+ @ReadOnlyTotalDisk = readonlytotaldisk
662
+ @InstanceDeviceInfos = instancedeviceinfos
663
+ end
664
+
665
+ def deserialize(params)
666
+ @Status = params['Status']
667
+ @ReadWriteTotalLeaveMemory = params['ReadWriteTotalLeaveMemory']
668
+ @ReadWriteTotalLeaveDisk = params['ReadWriteTotalLeaveDisk']
669
+ @ReadWriteTotalMemory = params['ReadWriteTotalMemory']
670
+ @ReadWriteTotalDisk = params['ReadWriteTotalDisk']
671
+ @ReadOnlyTotalLeaveMemory = params['ReadOnlyTotalLeaveMemory']
672
+ @ReadOnlyTotalLeaveDisk = params['ReadOnlyTotalLeaveDisk']
673
+ @ReadOnlyTotalMemory = params['ReadOnlyTotalMemory']
674
+ @ReadOnlyTotalDisk = params['ReadOnlyTotalDisk']
675
+ unless params['InstanceDeviceInfos'].nil?
676
+ @InstanceDeviceInfos = []
677
+ params['InstanceDeviceInfos'].each do |i|
678
+ instancedeviceinfo_tmp = InstanceDeviceInfo.new
679
+ instancedeviceinfo_tmp.deserialize(i)
680
+ @InstanceDeviceInfos << instancedeviceinfo_tmp
681
+ end
682
+ end
683
+ end
684
+ end
685
+
686
+ # 集群设备组信息。
687
+ class InstanceDeviceInfo < TencentCloud::Common::AbstractModel
688
+ # @param InstanceId: 集群ID
689
+ # 注意:此字段可能返回 null,表示取不到有效值。
690
+ # @type InstanceId: String
691
+ # @param ReadWriteDevice: 读写设备组
692
+ # 注意:此字段可能返回 null,表示取不到有效值。
693
+ # @type ReadWriteDevice: Array
694
+ # @param ReadOnlyDevice: 只读设备组
695
+ # 注意:此字段可能返回 null,表示取不到有效值。
696
+ # @type ReadOnlyDevice: Array
697
+ # @param FreeDevice: 空闲设备组
698
+ # 注意:此字段可能返回 null,表示取不到有效值。
699
+ # @type FreeDevice: Array
700
+
701
+ attr_accessor :InstanceId, :ReadWriteDevice, :ReadOnlyDevice, :FreeDevice
702
+
703
+ def initialize(instanceid=nil, readwritedevice=nil, readonlydevice=nil, freedevice=nil)
704
+ @InstanceId = instanceid
705
+ @ReadWriteDevice = readwritedevice
706
+ @ReadOnlyDevice = readonlydevice
707
+ @FreeDevice = freedevice
708
+ end
709
+
710
+ def deserialize(params)
711
+ @InstanceId = params['InstanceId']
712
+ unless params['ReadWriteDevice'].nil?
713
+ @ReadWriteDevice = []
714
+ params['ReadWriteDevice'].each do |i|
715
+ deviceinfo_tmp = DeviceInfo.new
716
+ deviceinfo_tmp.deserialize(i)
717
+ @ReadWriteDevice << deviceinfo_tmp
718
+ end
719
+ end
720
+ unless params['ReadOnlyDevice'].nil?
721
+ @ReadOnlyDevice = []
722
+ params['ReadOnlyDevice'].each do |i|
723
+ deviceinfo_tmp = DeviceInfo.new
724
+ deviceinfo_tmp.deserialize(i)
725
+ @ReadOnlyDevice << deviceinfo_tmp
726
+ end
727
+ end
728
+ unless params['FreeDevice'].nil?
729
+ @FreeDevice = []
730
+ params['FreeDevice'].each do |i|
731
+ deviceinfo_tmp = DeviceInfo.new
732
+ deviceinfo_tmp.deserialize(i)
733
+ @FreeDevice << deviceinfo_tmp
734
+ end
735
+ end
736
+ end
737
+ end
738
+
739
+ # 集群扩展信息。
740
+ class InstanceExpand < TencentCloud::Common::AbstractModel
741
+ # @param InstanceId: 集群ID
742
+ # @type InstanceId: String
743
+ # @param InstanceName: 集群名称
744
+ # @type InstanceName: String
745
+ # @param AppId: 用户ID
746
+ # @type AppId: Integer
747
+ # @param Region: 地域
748
+ # @type Region: String
749
+ # @param Zone: 可用区
750
+ # @type Zone: String
751
+ # @param InstanceType: 集群类型: 0:一主一备,1:一主两备
752
+ # @type InstanceType: Integer
753
+ # @param InstanceStatus: 集群状态: 0 集群创建中, 1 集群有效, 2 集群扩容中, 3 集群删除中, 4 集群缩容中 -1 集群已隔离 -2 集群已删除
754
+ # @type InstanceStatus: Integer
755
+ # @param CreateTime: 创建时间
756
+ # @type CreateTime: String
757
+ # @param AutoRenewFlag: 实例自动续费标识: 0正常续费 1自动续费 2到期不续费
758
+ # @type AutoRenewFlag: Integer
759
+ # @param Machine: 机型
760
+ # @type Machine: String
761
+ # @param PeriodEndTime: 过期时间
762
+ # @type PeriodEndTime: String
763
+ # @param InstanceDetail: 集群信息
764
+ # @type InstanceDetail: :class:`Tencentcloud::Dbdc.v20201029.models.InstanceDetail`
765
+ # @param Pid: 计费侧的产品ID
766
+ # @type Pid: Integer
767
+
768
+ attr_accessor :InstanceId, :InstanceName, :AppId, :Region, :Zone, :InstanceType, :InstanceStatus, :CreateTime, :AutoRenewFlag, :Machine, :PeriodEndTime, :InstanceDetail, :Pid
769
+
770
+ def initialize(instanceid=nil, instancename=nil, appid=nil, region=nil, zone=nil, instancetype=nil, instancestatus=nil, createtime=nil, autorenewflag=nil, machine=nil, periodendtime=nil, instancedetail=nil, pid=nil)
771
+ @InstanceId = instanceid
772
+ @InstanceName = instancename
773
+ @AppId = appid
774
+ @Region = region
775
+ @Zone = zone
776
+ @InstanceType = instancetype
777
+ @InstanceStatus = instancestatus
778
+ @CreateTime = createtime
779
+ @AutoRenewFlag = autorenewflag
780
+ @Machine = machine
781
+ @PeriodEndTime = periodendtime
782
+ @InstanceDetail = instancedetail
783
+ @Pid = pid
784
+ end
785
+
786
+ def deserialize(params)
787
+ @InstanceId = params['InstanceId']
788
+ @InstanceName = params['InstanceName']
789
+ @AppId = params['AppId']
790
+ @Region = params['Region']
791
+ @Zone = params['Zone']
792
+ @InstanceType = params['InstanceType']
793
+ @InstanceStatus = params['InstanceStatus']
794
+ @CreateTime = params['CreateTime']
795
+ @AutoRenewFlag = params['AutoRenewFlag']
796
+ @Machine = params['Machine']
797
+ @PeriodEndTime = params['PeriodEndTime']
798
+ unless params['InstanceDetail'].nil?
799
+ @InstanceDetail = InstanceDetail.new
800
+ @InstanceDetail.deserialize(params['InstanceDetail'])
801
+ end
802
+ @Pid = params['Pid']
803
+ end
804
+ end
805
+
806
+ # ModifyInstanceName请求参数结构体
807
+ class ModifyInstanceNameRequest < TencentCloud::Common::AbstractModel
808
+ # @param InstanceId: 独享集群实例Id
809
+ # @type InstanceId: String
810
+ # @param InstanceName: 独享集群实例名称
811
+ # @type InstanceName: String
812
+
813
+ attr_accessor :InstanceId, :InstanceName
814
+
815
+ def initialize(instanceid=nil, instancename=nil)
816
+ @InstanceId = instanceid
817
+ @InstanceName = instancename
818
+ end
819
+
820
+ def deserialize(params)
821
+ @InstanceId = params['InstanceId']
822
+ @InstanceName = params['InstanceName']
823
+ end
824
+ end
825
+
826
+ # ModifyInstanceName返回参数结构体
827
+ class ModifyInstanceNameResponse < TencentCloud::Common::AbstractModel
828
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
829
+ # @type RequestId: String
830
+
831
+ attr_accessor :RequestId
832
+
833
+ def initialize(requestid=nil)
834
+ @RequestId = requestid
835
+ end
836
+
837
+ def deserialize(params)
838
+ @RequestId = params['RequestId']
839
+ end
840
+ end
841
+
842
+ end
843
+ end
844
+ end
845
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-dbdc
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.324
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ DBDC.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-dbdc.rb
38
+ - lib/v20201029/client.rb
39
+ - lib/v20201029/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-dbdc
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - DBDC
66
+ test_files: []