tencentcloud-sdk-ctsdb 3.0.1210 → 3.0.1213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20230202/client.rb +24 -0
- data/lib/v20230202/models.rb +230 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bcd64140bf767ae75d8f9bba4deac8d7d808107
|
|
4
|
+
data.tar.gz: 590485138c277fa7ed869cb69c1fe6b9be789c98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8b88242e7796f71f5a47198fb8241a7feec14c8f67512807432429d66c8028b612678877210887ecc9fd45c8fa37429c4f67ece057194e292fec4064188d00f
|
|
7
|
+
data.tar.gz: 1d4824b7022cbbe43e4a9983d16746eaa66c27d593183a3a22e61aa7e7a2c64f3569791dd5ae866d08d327b311b65ce938583d77125fd3e280242b8ea5e3cd2f
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1213
|
data/lib/v20230202/client.rb
CHANGED
|
@@ -29,6 +29,30 @@ module TencentCloud
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
# 查询实例详情
|
|
33
|
+
|
|
34
|
+
# @param request: Request instance for DescribeClusterDetail.
|
|
35
|
+
# @type request: :class:`Tencentcloud::ctsdb::V20230202::DescribeClusterDetailRequest`
|
|
36
|
+
# @rtype: :class:`Tencentcloud::ctsdb::V20230202::DescribeClusterDetailResponse`
|
|
37
|
+
def DescribeClusterDetail(request)
|
|
38
|
+
body = send_request('DescribeClusterDetail', request.serialize)
|
|
39
|
+
response = JSON.parse(body)
|
|
40
|
+
if response['Response'].key?('Error') == false
|
|
41
|
+
model = DescribeClusterDetailResponse.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
|
+
|
|
32
56
|
# 查询实例列表及详情
|
|
33
57
|
|
|
34
58
|
# @param request: Request instance for DescribeClusters.
|
data/lib/v20230202/models.rb
CHANGED
|
@@ -67,10 +67,10 @@ module TencentCloud
|
|
|
67
67
|
|
|
68
68
|
attr_accessor :AppID, :ClusterID, :AccountID, :Name, :Region, :Zones, :Networks, :Spec, :Status, :Period, :CreatedAt, :UpdatedAt, :Tenant, :Tags, :Security
|
|
69
69
|
extend Gem::Deprecate
|
|
70
|
-
deprecate :Networks, :none, 2026,
|
|
71
|
-
deprecate :Networks=, :none, 2026,
|
|
72
|
-
deprecate :Spec, :none, 2026,
|
|
73
|
-
deprecate :Spec=, :none, 2026,
|
|
70
|
+
deprecate :Networks, :none, 2026, 2
|
|
71
|
+
deprecate :Networks=, :none, 2026, 2
|
|
72
|
+
deprecate :Spec, :none, 2026, 2
|
|
73
|
+
deprecate :Spec=, :none, 2026, 2
|
|
74
74
|
|
|
75
75
|
def initialize(appid=nil, clusterid=nil, accountid=nil, name=nil, region=nil, zones=nil, networks=nil, spec=nil, status=nil, period=nil, createdat=nil, updatedat=nil, tenant=nil, tags=nil, security=nil)
|
|
76
76
|
@AppID = appid
|
|
@@ -132,6 +132,197 @@ module TencentCloud
|
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
+
# 实例详情信息
|
|
136
|
+
class ClusterDetail < TencentCloud::Common::AbstractModel
|
|
137
|
+
# @param AppID: <p>用户APPID</p>
|
|
138
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
139
|
+
# @type AppID: Integer
|
|
140
|
+
# @param ClusterID: <p>实例id</p>
|
|
141
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
142
|
+
# @type ClusterID: String
|
|
143
|
+
# @param AccountID: <p>账号id</p>
|
|
144
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
145
|
+
# @type AccountID: String
|
|
146
|
+
# @param Name: <p>自定义实例名</p>
|
|
147
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
148
|
+
# @type Name: String
|
|
149
|
+
# @param Region: <p>地域</p>
|
|
150
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
151
|
+
# @type Region: String
|
|
152
|
+
# @param Networks: <p>网络信息</p>
|
|
153
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
154
|
+
# @type Networks: Array
|
|
155
|
+
# @param Status: <p>实例状态</p>枚举值:<ul><li> 0: 运行中</li><li> 1: 创建中</li><li> 16: 变配中</li><li> 17: 隔离中</li><li> 18: 已隔离</li><li> 19: 恢复中</li><li> 20: 已关机</li><li> 21: 销毁中</li><li> 22: 已销毁</li><li> 30: 扩展节点添加中</li><li> 31: 扩展节点变配中</li><li> 32: 扩展节点删除中</li><li> 33: 扩展节点禁用中</li><li> 34: 扩展节点启用中</li></ul>
|
|
156
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
157
|
+
# @type Status: Integer
|
|
158
|
+
# @param CreatedAt: <p>创建时间</p>
|
|
159
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
160
|
+
# @type CreatedAt: String
|
|
161
|
+
# @param UpdatedAt: <p>最后修改时间</p>
|
|
162
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
163
|
+
# @type UpdatedAt: String
|
|
164
|
+
# @param Tags: <p>标签</p>
|
|
165
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
166
|
+
# @type Tags: Array
|
|
167
|
+
# @param Security: <p>安全组信息</p>
|
|
168
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
169
|
+
# @type Security: Array
|
|
170
|
+
# @param Components: <p>组件信息</p>
|
|
171
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
172
|
+
# @type Components: Array
|
|
173
|
+
# @param ExpiredAt: <p>过期时间</p>
|
|
174
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
175
|
+
# @type ExpiredAt: String
|
|
176
|
+
# @param RenewFlag: <p>续费标识</p>枚举值:<ul><li> 0: 默认</li><li> 1: 自动续费</li><li> 2: 不自动续费</li></ul>
|
|
177
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
178
|
+
# @type RenewFlag: Integer
|
|
179
|
+
# @param ShutdownAt: <p>关机时间</p>
|
|
180
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
181
|
+
# @type ShutdownAt: String
|
|
182
|
+
# @param IsolatedAt: <p>隔离时间</p>
|
|
183
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
184
|
+
# @type IsolatedAt: String
|
|
185
|
+
# @param Type: <p>实例类型</p>枚举值:<ul><li> 0: 共享型</li><li> 1: 独享型</li><li> 2: 标准型</li></ul>
|
|
186
|
+
# @type Type: Integer
|
|
187
|
+
|
|
188
|
+
attr_accessor :AppID, :ClusterID, :AccountID, :Name, :Region, :Networks, :Status, :CreatedAt, :UpdatedAt, :Tags, :Security, :Components, :ExpiredAt, :RenewFlag, :ShutdownAt, :IsolatedAt, :Type
|
|
189
|
+
|
|
190
|
+
def initialize(appid=nil, clusterid=nil, accountid=nil, name=nil, region=nil, networks=nil, status=nil, createdat=nil, updatedat=nil, tags=nil, security=nil, components=nil, expiredat=nil, renewflag=nil, shutdownat=nil, isolatedat=nil, type=nil)
|
|
191
|
+
@AppID = appid
|
|
192
|
+
@ClusterID = clusterid
|
|
193
|
+
@AccountID = accountid
|
|
194
|
+
@Name = name
|
|
195
|
+
@Region = region
|
|
196
|
+
@Networks = networks
|
|
197
|
+
@Status = status
|
|
198
|
+
@CreatedAt = createdat
|
|
199
|
+
@UpdatedAt = updatedat
|
|
200
|
+
@Tags = tags
|
|
201
|
+
@Security = security
|
|
202
|
+
@Components = components
|
|
203
|
+
@ExpiredAt = expiredat
|
|
204
|
+
@RenewFlag = renewflag
|
|
205
|
+
@ShutdownAt = shutdownat
|
|
206
|
+
@IsolatedAt = isolatedat
|
|
207
|
+
@Type = type
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
def deserialize(params)
|
|
211
|
+
@AppID = params['AppID']
|
|
212
|
+
@ClusterID = params['ClusterID']
|
|
213
|
+
@AccountID = params['AccountID']
|
|
214
|
+
@Name = params['Name']
|
|
215
|
+
@Region = params['Region']
|
|
216
|
+
unless params['Networks'].nil?
|
|
217
|
+
@Networks = []
|
|
218
|
+
params['Networks'].each do |i|
|
|
219
|
+
network_tmp = Network.new
|
|
220
|
+
network_tmp.deserialize(i)
|
|
221
|
+
@Networks << network_tmp
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
@Status = params['Status']
|
|
225
|
+
@CreatedAt = params['CreatedAt']
|
|
226
|
+
@UpdatedAt = params['UpdatedAt']
|
|
227
|
+
unless params['Tags'].nil?
|
|
228
|
+
@Tags = []
|
|
229
|
+
params['Tags'].each do |i|
|
|
230
|
+
tag_tmp = Tag.new
|
|
231
|
+
tag_tmp.deserialize(i)
|
|
232
|
+
@Tags << tag_tmp
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
@Security = params['Security']
|
|
236
|
+
unless params['Components'].nil?
|
|
237
|
+
@Components = []
|
|
238
|
+
params['Components'].each do |i|
|
|
239
|
+
component_tmp = Component.new
|
|
240
|
+
component_tmp.deserialize(i)
|
|
241
|
+
@Components << component_tmp
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
@ExpiredAt = params['ExpiredAt']
|
|
245
|
+
@RenewFlag = params['RenewFlag']
|
|
246
|
+
@ShutdownAt = params['ShutdownAt']
|
|
247
|
+
@IsolatedAt = params['IsolatedAt']
|
|
248
|
+
@Type = params['Type']
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# 实例组件信息
|
|
253
|
+
class Component < TencentCloud::Common::AbstractModel
|
|
254
|
+
# @param InstanceID: <p>所属实例id</p>
|
|
255
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
256
|
+
# @type InstanceID: String
|
|
257
|
+
# @param Name: <p>名称</p>
|
|
258
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
259
|
+
# @type Name: String
|
|
260
|
+
# @param Type: <p>组件类型</p>枚举值:<ul><li> gateway: 时序节点</li><li> database: 数据节点</li><li> gateway-worker: 扩展节点</li></ul>
|
|
261
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
262
|
+
# @type Type: String
|
|
263
|
+
# @param Cpu: <p>cpu</p>
|
|
264
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
265
|
+
# @type Cpu: Integer
|
|
266
|
+
# @param Memory: <p>内存</p>
|
|
267
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
268
|
+
# @type Memory: Integer
|
|
269
|
+
# @param Disk: <p>磁盘</p>
|
|
270
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
271
|
+
# @type Disk: Integer
|
|
272
|
+
# @param Shards: <p>节点数量</p>
|
|
273
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
274
|
+
# @type Shards: Integer
|
|
275
|
+
# @param Replicas: <p>副本数量</p>
|
|
276
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
277
|
+
# @type Replicas: Integer
|
|
278
|
+
# @param Networks: <p>网络</p>
|
|
279
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
280
|
+
# @type Networks: Array
|
|
281
|
+
# @param State: <p>组件状态</p>枚举值:<ul><li> 0: 运行中</li><li> 1: 创建中</li><li> 2: 变配中</li><li> 3: 隔离中</li><li> 4: 已隔离</li><li> 5: 删除中</li><li> 6: 已删除</li><li> 7: 禁用中</li><li> 8: 已禁用</li><li> 9: 启用中</li></ul>
|
|
282
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
283
|
+
# @type State: Integer
|
|
284
|
+
# @param ID: <p>组件内部ID</p>
|
|
285
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
286
|
+
# @type ID: Integer
|
|
287
|
+
|
|
288
|
+
attr_accessor :InstanceID, :Name, :Type, :Cpu, :Memory, :Disk, :Shards, :Replicas, :Networks, :State, :ID
|
|
289
|
+
|
|
290
|
+
def initialize(instanceid=nil, name=nil, type=nil, cpu=nil, memory=nil, disk=nil, shards=nil, replicas=nil, networks=nil, state=nil, id=nil)
|
|
291
|
+
@InstanceID = instanceid
|
|
292
|
+
@Name = name
|
|
293
|
+
@Type = type
|
|
294
|
+
@Cpu = cpu
|
|
295
|
+
@Memory = memory
|
|
296
|
+
@Disk = disk
|
|
297
|
+
@Shards = shards
|
|
298
|
+
@Replicas = replicas
|
|
299
|
+
@Networks = networks
|
|
300
|
+
@State = state
|
|
301
|
+
@ID = id
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def deserialize(params)
|
|
305
|
+
@InstanceID = params['InstanceID']
|
|
306
|
+
@Name = params['Name']
|
|
307
|
+
@Type = params['Type']
|
|
308
|
+
@Cpu = params['Cpu']
|
|
309
|
+
@Memory = params['Memory']
|
|
310
|
+
@Disk = params['Disk']
|
|
311
|
+
@Shards = params['Shards']
|
|
312
|
+
@Replicas = params['Replicas']
|
|
313
|
+
unless params['Networks'].nil?
|
|
314
|
+
@Networks = []
|
|
315
|
+
params['Networks'].each do |i|
|
|
316
|
+
network_tmp = Network.new
|
|
317
|
+
network_tmp.deserialize(i)
|
|
318
|
+
@Networks << network_tmp
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
@State = params['State']
|
|
322
|
+
@ID = params['ID']
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
|
|
135
326
|
# 数据库相关信息
|
|
136
327
|
class Database < TencentCloud::Common::AbstractModel
|
|
137
328
|
# @param ClusterID: 实例ID
|
|
@@ -184,6 +375,41 @@ module TencentCloud
|
|
|
184
375
|
end
|
|
185
376
|
end
|
|
186
377
|
|
|
378
|
+
# DescribeClusterDetail请求参数结构体
|
|
379
|
+
class DescribeClusterDetailRequest < TencentCloud::Common::AbstractModel
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
def initialize()
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
def deserialize(params)
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# DescribeClusterDetail返回参数结构体
|
|
390
|
+
class DescribeClusterDetailResponse < TencentCloud::Common::AbstractModel
|
|
391
|
+
# @param Cluster: <p>实例详情</p>
|
|
392
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
393
|
+
# @type Cluster: :class:`Tencentcloud::Ctsdb.v20230202.models.ClusterDetail`
|
|
394
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
395
|
+
# @type RequestId: String
|
|
396
|
+
|
|
397
|
+
attr_accessor :Cluster, :RequestId
|
|
398
|
+
|
|
399
|
+
def initialize(cluster=nil, requestid=nil)
|
|
400
|
+
@Cluster = cluster
|
|
401
|
+
@RequestId = requestid
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
def deserialize(params)
|
|
405
|
+
unless params['Cluster'].nil?
|
|
406
|
+
@Cluster = ClusterDetail.new
|
|
407
|
+
@Cluster.deserialize(params['Cluster'])
|
|
408
|
+
end
|
|
409
|
+
@RequestId = params['RequestId']
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
187
413
|
# DescribeClusters请求参数结构体
|
|
188
414
|
class DescribeClustersRequest < TencentCloud::Common::AbstractModel
|
|
189
415
|
# @param PageNumber: 当前页数
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-ctsdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1213
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|