tencentcloud-sdk-ctsdb 3.0.1105
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-ctsdb.rb +11 -0
- data/lib/v20230202/client.rb +91 -0
- data/lib/v20230202/models.rb +506 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e32638aef7c5cd79cc6b74a16394f9cc394dbba2
|
4
|
+
data.tar.gz: 3901ba9923018b9eefde74ee72a9e46f4e6f38d9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6ae72494c11c7b5a26cff8da03b04de64d02ebb80f205ab0f7551b3b913730c1c61469de91da566a4988ce6274b6d9498a77d24197a1615b50126722659a863c
|
7
|
+
data.tar.gz: d88ce82b9c3f4624cd034dba0cfca46cb116e0afdaa45a8649d289353d007e87898bef24ad9ef4bd25528e66c5b5878e69ca824db09fe39b6f200f3465494d1b
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.1105
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2025 Tencent. 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 Ctsdb
|
21
|
+
module V20230202
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2023-02-02'
|
26
|
+
api_endpoint = 'ctsdb.tencentcloudapi.com'
|
27
|
+
sdk_version = 'CTSDB_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 查询实例列表及详情
|
33
|
+
|
34
|
+
# @param request: Request instance for DescribeClusters.
|
35
|
+
# @type request: :class:`Tencentcloud::ctsdb::V20230202::DescribeClustersRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::ctsdb::V20230202::DescribeClustersResponse`
|
37
|
+
def DescribeClusters(request)
|
38
|
+
body = send_request('DescribeClusters', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DescribeClustersResponse.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
|
+
# ```
|
59
|
+
# "Database":{
|
60
|
+
# "ClusterID":"ctsdbi-rebg0ghl",
|
61
|
+
# "Name":"" //不指定则查询实例下所有db
|
62
|
+
# }
|
63
|
+
# ```
|
64
|
+
|
65
|
+
# @param request: Request instance for DescribeDatabases.
|
66
|
+
# @type request: :class:`Tencentcloud::ctsdb::V20230202::DescribeDatabasesRequest`
|
67
|
+
# @rtype: :class:`Tencentcloud::ctsdb::V20230202::DescribeDatabasesResponse`
|
68
|
+
def DescribeDatabases(request)
|
69
|
+
body = send_request('DescribeDatabases', request.serialize)
|
70
|
+
response = JSON.parse(body)
|
71
|
+
if response['Response'].key?('Error') == false
|
72
|
+
model = DescribeDatabasesResponse.new
|
73
|
+
model.deserialize(response['Response'])
|
74
|
+
model
|
75
|
+
else
|
76
|
+
code = response['Response']['Error']['Code']
|
77
|
+
message = response['Response']['Error']['Message']
|
78
|
+
reqid = response['Response']['RequestId']
|
79
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
80
|
+
end
|
81
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
82
|
+
raise e
|
83
|
+
rescue StandardError => e
|
84
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
85
|
+
end
|
86
|
+
|
87
|
+
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,506 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2025 Tencent. 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 Ctsdb
|
19
|
+
module V20230202
|
20
|
+
# 实例相关信息
|
21
|
+
class Cluster < TencentCloud::Common::AbstractModel
|
22
|
+
# @param AppID: 用户APPID
|
23
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
|
+
# @type AppID: Integer
|
25
|
+
# @param ClusterID: 实例id
|
26
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
|
+
# @type ClusterID: String
|
28
|
+
# @param AccountID: 账号id
|
29
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
30
|
+
# @type AccountID: String
|
31
|
+
# @param Name: 自定义实例名
|
32
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
33
|
+
# @type Name: String
|
34
|
+
# @param Region: 地域
|
35
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
36
|
+
# @type Region: String
|
37
|
+
# @param Zones: 可用区
|
38
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
39
|
+
# @type Zones: String
|
40
|
+
# @param Networks: 网络信息
|
41
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
42
|
+
# @type Networks: Array
|
43
|
+
# @param Spec: 实例规格
|
44
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
45
|
+
# @type Spec: :class:`Tencentcloud::Ctsdb.v20230202.models.Spec`
|
46
|
+
# @param Status: 实例状态:0:运行中,1:创建中 ,16:变配中,17:隔离中,18:待销毁,19:恢复中,20:关机 , 21:销毁中 ,22:已销毁
|
47
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
48
|
+
# @type Status: Integer
|
49
|
+
# @param Period: 实例有效期
|
50
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
51
|
+
# @type Period: :class:`Tencentcloud::Ctsdb.v20230202.models.Period`
|
52
|
+
# @param CreatedAt: 创建时间
|
53
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
54
|
+
# @type CreatedAt: String
|
55
|
+
# @param UpdatedAt: 最后修改时间
|
56
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
57
|
+
# @type UpdatedAt: String
|
58
|
+
# @param Tenant: 产品内部特性
|
59
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
60
|
+
# @type Tenant: :class:`Tencentcloud::Ctsdb.v20230202.models.Tenant`
|
61
|
+
# @param Tags: 标签
|
62
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
63
|
+
# @type Tags: Array
|
64
|
+
# @param Security: 安全组信息
|
65
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
66
|
+
# @type Security: Array
|
67
|
+
|
68
|
+
attr_accessor :AppID, :ClusterID, :AccountID, :Name, :Region, :Zones, :Networks, :Spec, :Status, :Period, :CreatedAt, :UpdatedAt, :Tenant, :Tags, :Security
|
69
|
+
extend Gem::Deprecate
|
70
|
+
deprecate :Networks, :none, 2025, 7
|
71
|
+
deprecate :Networks=, :none, 2025, 7
|
72
|
+
deprecate :Spec, :none, 2025, 7
|
73
|
+
deprecate :Spec=, :none, 2025, 7
|
74
|
+
|
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
|
+
@AppID = appid
|
77
|
+
@ClusterID = clusterid
|
78
|
+
@AccountID = accountid
|
79
|
+
@Name = name
|
80
|
+
@Region = region
|
81
|
+
@Zones = zones
|
82
|
+
@Networks = networks
|
83
|
+
@Spec = spec
|
84
|
+
@Status = status
|
85
|
+
@Period = period
|
86
|
+
@CreatedAt = createdat
|
87
|
+
@UpdatedAt = updatedat
|
88
|
+
@Tenant = tenant
|
89
|
+
@Tags = tags
|
90
|
+
@Security = security
|
91
|
+
end
|
92
|
+
|
93
|
+
def deserialize(params)
|
94
|
+
@AppID = params['AppID']
|
95
|
+
@ClusterID = params['ClusterID']
|
96
|
+
@AccountID = params['AccountID']
|
97
|
+
@Name = params['Name']
|
98
|
+
@Region = params['Region']
|
99
|
+
@Zones = params['Zones']
|
100
|
+
unless params['Networks'].nil?
|
101
|
+
@Networks = []
|
102
|
+
params['Networks'].each do |i|
|
103
|
+
network_tmp = Network.new
|
104
|
+
network_tmp.deserialize(i)
|
105
|
+
@Networks << network_tmp
|
106
|
+
end
|
107
|
+
end
|
108
|
+
unless params['Spec'].nil?
|
109
|
+
@Spec = Spec.new
|
110
|
+
@Spec.deserialize(params['Spec'])
|
111
|
+
end
|
112
|
+
@Status = params['Status']
|
113
|
+
unless params['Period'].nil?
|
114
|
+
@Period = Period.new
|
115
|
+
@Period.deserialize(params['Period'])
|
116
|
+
end
|
117
|
+
@CreatedAt = params['CreatedAt']
|
118
|
+
@UpdatedAt = params['UpdatedAt']
|
119
|
+
unless params['Tenant'].nil?
|
120
|
+
@Tenant = Tenant.new
|
121
|
+
@Tenant.deserialize(params['Tenant'])
|
122
|
+
end
|
123
|
+
unless params['Tags'].nil?
|
124
|
+
@Tags = []
|
125
|
+
params['Tags'].each do |i|
|
126
|
+
tag_tmp = Tag.new
|
127
|
+
tag_tmp.deserialize(i)
|
128
|
+
@Tags << tag_tmp
|
129
|
+
end
|
130
|
+
end
|
131
|
+
@Security = params['Security']
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# 数据库相关信息
|
136
|
+
class Database < TencentCloud::Common::AbstractModel
|
137
|
+
# @param ClusterID: 实例ID
|
138
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
139
|
+
# @type ClusterID: String
|
140
|
+
# @param Name: 数据库名
|
141
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
142
|
+
# @type Name: String
|
143
|
+
# @param CoolDownInDays: 降冷时间(天)
|
144
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
145
|
+
# @type CoolDownInDays: Integer
|
146
|
+
# @param RetentionInDays: 数据保留时间(天)
|
147
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
148
|
+
# @type RetentionInDays: Integer
|
149
|
+
# @param Remark: 备注
|
150
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
151
|
+
# @type Remark: String
|
152
|
+
# @param Status: 状态:0: 资源初始化中, 1: 资源创建中, 2: 正常状态, 3: 资源删除中, 4: 资源已删除, 5: 资源禁用中, 6: 资源已禁用, 7: 资源异常,需要人工操作
|
153
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
154
|
+
# @type Status: Integer
|
155
|
+
# @param CreatedAt: 创建时间
|
156
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
157
|
+
# @type CreatedAt: String
|
158
|
+
# @param UpdatedAt: 最后修改时间
|
159
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
160
|
+
# @type UpdatedAt: String
|
161
|
+
|
162
|
+
attr_accessor :ClusterID, :Name, :CoolDownInDays, :RetentionInDays, :Remark, :Status, :CreatedAt, :UpdatedAt
|
163
|
+
|
164
|
+
def initialize(clusterid=nil, name=nil, cooldownindays=nil, retentionindays=nil, remark=nil, status=nil, createdat=nil, updatedat=nil)
|
165
|
+
@ClusterID = clusterid
|
166
|
+
@Name = name
|
167
|
+
@CoolDownInDays = cooldownindays
|
168
|
+
@RetentionInDays = retentionindays
|
169
|
+
@Remark = remark
|
170
|
+
@Status = status
|
171
|
+
@CreatedAt = createdat
|
172
|
+
@UpdatedAt = updatedat
|
173
|
+
end
|
174
|
+
|
175
|
+
def deserialize(params)
|
176
|
+
@ClusterID = params['ClusterID']
|
177
|
+
@Name = params['Name']
|
178
|
+
@CoolDownInDays = params['CoolDownInDays']
|
179
|
+
@RetentionInDays = params['RetentionInDays']
|
180
|
+
@Remark = params['Remark']
|
181
|
+
@Status = params['Status']
|
182
|
+
@CreatedAt = params['CreatedAt']
|
183
|
+
@UpdatedAt = params['UpdatedAt']
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# DescribeClusters请求参数结构体
|
188
|
+
class DescribeClustersRequest < TencentCloud::Common::AbstractModel
|
189
|
+
# @param PageNumber: 当前页数
|
190
|
+
# @type PageNumber: Integer
|
191
|
+
# @param PageSize: 单页大小
|
192
|
+
# @type PageSize: Integer
|
193
|
+
# @param Filters: 查询参数:支持通过实例ID(cluster_id)和实例名称(name)进行过滤查询
|
194
|
+
# @type Filters: Array
|
195
|
+
# @param Orders: 排序参数:支持通过创建时间字段(created_at)进行排序,Type可指定为DESC(降序)或ASC(升序)
|
196
|
+
# @type Orders: Array
|
197
|
+
|
198
|
+
attr_accessor :PageNumber, :PageSize, :Filters, :Orders
|
199
|
+
|
200
|
+
def initialize(pagenumber=nil, pagesize=nil, filters=nil, orders=nil)
|
201
|
+
@PageNumber = pagenumber
|
202
|
+
@PageSize = pagesize
|
203
|
+
@Filters = filters
|
204
|
+
@Orders = orders
|
205
|
+
end
|
206
|
+
|
207
|
+
def deserialize(params)
|
208
|
+
@PageNumber = params['PageNumber']
|
209
|
+
@PageSize = params['PageSize']
|
210
|
+
unless params['Filters'].nil?
|
211
|
+
@Filters = []
|
212
|
+
params['Filters'].each do |i|
|
213
|
+
filter_tmp = Filter.new
|
214
|
+
filter_tmp.deserialize(i)
|
215
|
+
@Filters << filter_tmp
|
216
|
+
end
|
217
|
+
end
|
218
|
+
unless params['Orders'].nil?
|
219
|
+
@Orders = []
|
220
|
+
params['Orders'].each do |i|
|
221
|
+
order_tmp = Order.new
|
222
|
+
order_tmp.deserialize(i)
|
223
|
+
@Orders << order_tmp
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# DescribeClusters返回参数结构体
|
230
|
+
class DescribeClustersResponse < TencentCloud::Common::AbstractModel
|
231
|
+
# @param TotalCount: 当前条件下的总记录数
|
232
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
233
|
+
# @type TotalCount: Integer
|
234
|
+
# @param Clusters: 符合条件的实例列表
|
235
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
236
|
+
# @type Clusters: Array
|
237
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
238
|
+
# @type RequestId: String
|
239
|
+
|
240
|
+
attr_accessor :TotalCount, :Clusters, :RequestId
|
241
|
+
|
242
|
+
def initialize(totalcount=nil, clusters=nil, requestid=nil)
|
243
|
+
@TotalCount = totalcount
|
244
|
+
@Clusters = clusters
|
245
|
+
@RequestId = requestid
|
246
|
+
end
|
247
|
+
|
248
|
+
def deserialize(params)
|
249
|
+
@TotalCount = params['TotalCount']
|
250
|
+
unless params['Clusters'].nil?
|
251
|
+
@Clusters = []
|
252
|
+
params['Clusters'].each do |i|
|
253
|
+
cluster_tmp = Cluster.new
|
254
|
+
cluster_tmp.deserialize(i)
|
255
|
+
@Clusters << cluster_tmp
|
256
|
+
end
|
257
|
+
end
|
258
|
+
@RequestId = params['RequestId']
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# DescribeDatabases请求参数结构体
|
263
|
+
class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel
|
264
|
+
# @param Database: 数据库参数
|
265
|
+
# @type Database: :class:`Tencentcloud::Ctsdb.v20230202.models.Database`
|
266
|
+
# @param PageSize: 分页大小
|
267
|
+
# @type PageSize: Integer
|
268
|
+
# @param PageNumber: 分页页面
|
269
|
+
# @type PageNumber: Integer
|
270
|
+
|
271
|
+
attr_accessor :Database, :PageSize, :PageNumber
|
272
|
+
|
273
|
+
def initialize(database=nil, pagesize=nil, pagenumber=nil)
|
274
|
+
@Database = database
|
275
|
+
@PageSize = pagesize
|
276
|
+
@PageNumber = pagenumber
|
277
|
+
end
|
278
|
+
|
279
|
+
def deserialize(params)
|
280
|
+
unless params['Database'].nil?
|
281
|
+
@Database = Database.new
|
282
|
+
@Database.deserialize(params['Database'])
|
283
|
+
end
|
284
|
+
@PageSize = params['PageSize']
|
285
|
+
@PageNumber = params['PageNumber']
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# DescribeDatabases返回参数结构体
|
290
|
+
class DescribeDatabasesResponse < TencentCloud::Common::AbstractModel
|
291
|
+
# @param Databases: 数据库列表
|
292
|
+
# @type Databases: Array
|
293
|
+
# @param TotalCount: 数量
|
294
|
+
# @type TotalCount: Integer
|
295
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
296
|
+
# @type RequestId: String
|
297
|
+
|
298
|
+
attr_accessor :Databases, :TotalCount, :RequestId
|
299
|
+
|
300
|
+
def initialize(databases=nil, totalcount=nil, requestid=nil)
|
301
|
+
@Databases = databases
|
302
|
+
@TotalCount = totalcount
|
303
|
+
@RequestId = requestid
|
304
|
+
end
|
305
|
+
|
306
|
+
def deserialize(params)
|
307
|
+
unless params['Databases'].nil?
|
308
|
+
@Databases = []
|
309
|
+
params['Databases'].each do |i|
|
310
|
+
database_tmp = Database.new
|
311
|
+
database_tmp.deserialize(i)
|
312
|
+
@Databases << database_tmp
|
313
|
+
end
|
314
|
+
end
|
315
|
+
@TotalCount = params['TotalCount']
|
316
|
+
@RequestId = params['RequestId']
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
# 查询过滤器
|
321
|
+
class Filter < TencentCloud::Common::AbstractModel
|
322
|
+
# @param Name: 过滤参数
|
323
|
+
# @type Name: String
|
324
|
+
# @param Op: 过滤表达式
|
325
|
+
# @type Op: String
|
326
|
+
# @param Values: 参与过滤的值
|
327
|
+
# @type Values: Array
|
328
|
+
|
329
|
+
attr_accessor :Name, :Op, :Values
|
330
|
+
|
331
|
+
def initialize(name=nil, op=nil, values=nil)
|
332
|
+
@Name = name
|
333
|
+
@Op = op
|
334
|
+
@Values = values
|
335
|
+
end
|
336
|
+
|
337
|
+
def deserialize(params)
|
338
|
+
@Name = params['Name']
|
339
|
+
@Op = params['Op']
|
340
|
+
@Values = params['Values']
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
# 实例网络信息(influxdb)
|
345
|
+
class Network < TencentCloud::Common::AbstractModel
|
346
|
+
# @param VpcId: vpc id
|
347
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
348
|
+
# @type VpcId: String
|
349
|
+
# @param SubnetId: vpc subnet id
|
350
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
351
|
+
# @type SubnetId: String
|
352
|
+
# @param VIP: vpc ip地址
|
353
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
354
|
+
# @type VIP: String
|
355
|
+
# @param Port: vpc port地址
|
356
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
357
|
+
# @type Port: Integer
|
358
|
+
|
359
|
+
attr_accessor :VpcId, :SubnetId, :VIP, :Port
|
360
|
+
|
361
|
+
def initialize(vpcid=nil, subnetid=nil, vip=nil, port=nil)
|
362
|
+
@VpcId = vpcid
|
363
|
+
@SubnetId = subnetid
|
364
|
+
@VIP = vip
|
365
|
+
@Port = port
|
366
|
+
end
|
367
|
+
|
368
|
+
def deserialize(params)
|
369
|
+
@VpcId = params['VpcId']
|
370
|
+
@SubnetId = params['SubnetId']
|
371
|
+
@VIP = params['VIP']
|
372
|
+
@Port = params['Port']
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
# 排序参数,用于排序查询结果
|
377
|
+
class Order < TencentCloud::Common::AbstractModel
|
378
|
+
# @param Name: 排序字段
|
379
|
+
# @type Name: String
|
380
|
+
# @param Type: 排序方式
|
381
|
+
# @type Type: String
|
382
|
+
|
383
|
+
attr_accessor :Name, :Type
|
384
|
+
|
385
|
+
def initialize(name=nil, type=nil)
|
386
|
+
@Name = name
|
387
|
+
@Type = type
|
388
|
+
end
|
389
|
+
|
390
|
+
def deserialize(params)
|
391
|
+
@Name = params['Name']
|
392
|
+
@Type = params['Type']
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
# 有效期
|
397
|
+
class Period < TencentCloud::Common::AbstractModel
|
398
|
+
# @param StartTime: 开始时间
|
399
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
400
|
+
# @type StartTime: String
|
401
|
+
# @param EndTime: 结束时间
|
402
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
403
|
+
# @type EndTime: String
|
404
|
+
|
405
|
+
attr_accessor :StartTime, :EndTime
|
406
|
+
|
407
|
+
def initialize(starttime=nil, endtime=nil)
|
408
|
+
@StartTime = starttime
|
409
|
+
@EndTime = endtime
|
410
|
+
end
|
411
|
+
|
412
|
+
def deserialize(params)
|
413
|
+
@StartTime = params['StartTime']
|
414
|
+
@EndTime = params['EndTime']
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# 实例规格信息(influxdb)
|
419
|
+
class Spec < TencentCloud::Common::AbstractModel
|
420
|
+
# @param PayMode: 1:包年包月、2:按小时计费
|
421
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
422
|
+
# @type PayMode: Integer
|
423
|
+
# @param RequestUnit: 请求单元,为0则表示走资源配置
|
424
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
425
|
+
# @type RequestUnit: Integer
|
426
|
+
# @param CpuLimit: CPU 核数最大限制
|
427
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
428
|
+
# @type CpuLimit: Float
|
429
|
+
# @param MemoryLimit: 内存 最大限制(Gi)
|
430
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
431
|
+
# @type MemoryLimit: Float
|
432
|
+
# @param DiskLimit: 磁盘 最大限制(Gi)
|
433
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
434
|
+
# @type DiskLimit: Integer
|
435
|
+
# @param Shards: 业务分片数
|
436
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
437
|
+
# @type Shards: Integer
|
438
|
+
# @param Replicas: 业务节点数
|
439
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
440
|
+
# @type Replicas: Integer
|
441
|
+
|
442
|
+
attr_accessor :PayMode, :RequestUnit, :CpuLimit, :MemoryLimit, :DiskLimit, :Shards, :Replicas
|
443
|
+
|
444
|
+
def initialize(paymode=nil, requestunit=nil, cpulimit=nil, memorylimit=nil, disklimit=nil, shards=nil, replicas=nil)
|
445
|
+
@PayMode = paymode
|
446
|
+
@RequestUnit = requestunit
|
447
|
+
@CpuLimit = cpulimit
|
448
|
+
@MemoryLimit = memorylimit
|
449
|
+
@DiskLimit = disklimit
|
450
|
+
@Shards = shards
|
451
|
+
@Replicas = replicas
|
452
|
+
end
|
453
|
+
|
454
|
+
def deserialize(params)
|
455
|
+
@PayMode = params['PayMode']
|
456
|
+
@RequestUnit = params['RequestUnit']
|
457
|
+
@CpuLimit = params['CpuLimit']
|
458
|
+
@MemoryLimit = params['MemoryLimit']
|
459
|
+
@DiskLimit = params['DiskLimit']
|
460
|
+
@Shards = params['Shards']
|
461
|
+
@Replicas = params['Replicas']
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
# 标签
|
466
|
+
class Tag < TencentCloud::Common::AbstractModel
|
467
|
+
# @param Key: 键
|
468
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
469
|
+
# @type Key: String
|
470
|
+
# @param Value: 值
|
471
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
472
|
+
# @type Value: String
|
473
|
+
|
474
|
+
attr_accessor :Key, :Value
|
475
|
+
|
476
|
+
def initialize(key=nil, value=nil)
|
477
|
+
@Key = key
|
478
|
+
@Value = value
|
479
|
+
end
|
480
|
+
|
481
|
+
def deserialize(params)
|
482
|
+
@Key = params['Key']
|
483
|
+
@Value = params['Value']
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# 产品内部特性
|
488
|
+
class Tenant < TencentCloud::Common::AbstractModel
|
489
|
+
# @param IsPasswordEncrypted: 密码是否已加密
|
490
|
+
# @type IsPasswordEncrypted: Boolean
|
491
|
+
|
492
|
+
attr_accessor :IsPasswordEncrypted
|
493
|
+
|
494
|
+
def initialize(ispasswordencrypted=nil)
|
495
|
+
@IsPasswordEncrypted = ispasswordencrypted
|
496
|
+
end
|
497
|
+
|
498
|
+
def deserialize(params)
|
499
|
+
@IsPasswordEncrypted = params['IsPasswordEncrypted']
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
503
|
+
end
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-ctsdb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.1105
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-07-21 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: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.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
|
+
CTSDB.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/tencentcloud-sdk-ctsdb.rb
|
37
|
+
- lib/v20230202/client.rb
|
38
|
+
- lib/v20230202/models.rb
|
39
|
+
- lib/VERSION
|
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-ctsdb
|
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.0.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - CTSDB
|
66
|
+
test_files: []
|