tencentcloud-sdk-vdb 3.0.836

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: 1eb4c54b6db57126247677bc699c93f1ba4a881d
4
+ data.tar.gz: b5599d30b8a7a69c743bb231ba0ea0a8de2ad7cd
5
+ SHA512:
6
+ metadata.gz: caf5f44ba543441fcaa6bc4791fddef3f370d1d08122252e28291df3b03e0c5acdd0aa76cd66181095beda187b88d69e8365ad9baffd489bf73c4ce47c925a65
7
+ data.tar.gz: 0d45f729d083ebd87e80735f24a51f924036e28d82f477854dc469e539f4b51516b59e126d931d94b67fc2f211d27ec0f3fe7ab2fc46d1e315a70cb23de22219
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.836
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20230616/client'
6
+ require_relative 'v20230616/models'
7
+
8
+ module TencentCloud
9
+ module Vdb
10
+ end
11
+ end
@@ -0,0 +1,60 @@
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 Vdb
21
+ module V20230616
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2023-06-16'
26
+ api_endpoint = 'vdb.tencentcloudapi.com'
27
+ sdk_version = 'VDB_' + 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 DescribeInstances.
35
+ # @type request: :class:`Tencentcloud::vdb::V20230616::DescribeInstancesRequest`
36
+ # @rtype: :class:`Tencentcloud::vdb::V20230616::DescribeInstancesResponse`
37
+ def DescribeInstances(request)
38
+ body = send_request('DescribeInstances', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeInstancesResponse.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
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,331 @@
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 Vdb
19
+ module V20230616
20
+ # DescribeInstances请求参数结构体
21
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
22
+ # @param InstanceIds: 实例ID数组。
23
+ # @type InstanceIds: Array
24
+ # @param InstanceNames: 实例名称,支持模糊搜索。
25
+ # @type InstanceNames: Array
26
+ # @param InstanceKeys: 实例模糊搜索字段。
27
+ # @type InstanceKeys: Array
28
+ # @param Status: 根据状态获取实例, 为空则获取全部非隔离和非下线的实例。
29
+ # @type Status: Array
30
+ # @param EngineNames: 按照引擎筛选实例。
31
+ # @type EngineNames: Array
32
+ # @param EngineVersions: 按照版本筛选实例。
33
+ # @type EngineVersions: Array
34
+ # @param CreateAt: 按照创建时间筛选实例。
35
+ # @type CreateAt: String
36
+ # @param Zones: 按照可用区筛选实例。
37
+ # @type Zones: Array
38
+ # @param OrderBy: 排序字段。
39
+ # @type OrderBy: String
40
+ # @param OrderDirection: 排序方式。
41
+ # @type OrderDirection: String
42
+ # @param Offset: 查询开始位置。
43
+ # @type Offset: Integer
44
+ # @param Limit: 列表查询数量。
45
+ # @type Limit: Integer
46
+ # @param ResourceTags: 按照标签筛选实例
47
+ # @type ResourceTags: Array
48
+
49
+ attr_accessor :InstanceIds, :InstanceNames, :InstanceKeys, :Status, :EngineNames, :EngineVersions, :CreateAt, :Zones, :OrderBy, :OrderDirection, :Offset, :Limit, :ResourceTags
50
+
51
+ def initialize(instanceids=nil, instancenames=nil, instancekeys=nil, status=nil, enginenames=nil, engineversions=nil, createat=nil, zones=nil, orderby=nil, orderdirection=nil, offset=nil, limit=nil, resourcetags=nil)
52
+ @InstanceIds = instanceids
53
+ @InstanceNames = instancenames
54
+ @InstanceKeys = instancekeys
55
+ @Status = status
56
+ @EngineNames = enginenames
57
+ @EngineVersions = engineversions
58
+ @CreateAt = createat
59
+ @Zones = zones
60
+ @OrderBy = orderby
61
+ @OrderDirection = orderdirection
62
+ @Offset = offset
63
+ @Limit = limit
64
+ @ResourceTags = resourcetags
65
+ end
66
+
67
+ def deserialize(params)
68
+ @InstanceIds = params['InstanceIds']
69
+ @InstanceNames = params['InstanceNames']
70
+ @InstanceKeys = params['InstanceKeys']
71
+ @Status = params['Status']
72
+ @EngineNames = params['EngineNames']
73
+ @EngineVersions = params['EngineVersions']
74
+ @CreateAt = params['CreateAt']
75
+ @Zones = params['Zones']
76
+ @OrderBy = params['OrderBy']
77
+ @OrderDirection = params['OrderDirection']
78
+ @Offset = params['Offset']
79
+ @Limit = params['Limit']
80
+ unless params['ResourceTags'].nil?
81
+ @ResourceTags = []
82
+ params['ResourceTags'].each do |i|
83
+ tag_tmp = Tag.new
84
+ tag_tmp.deserialize(i)
85
+ @ResourceTags << tag_tmp
86
+ end
87
+ end
88
+ end
89
+ end
90
+
91
+ # DescribeInstances返回参数结构体
92
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
93
+ # @param Items: 实例列表。
94
+ # 注意:此字段可能返回 null,表示取不到有效值。
95
+ # @type Items: Array
96
+ # @param TotalCount: 实例总数。
97
+ # @type TotalCount: Integer
98
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
99
+ # @type RequestId: String
100
+
101
+ attr_accessor :Items, :TotalCount, :RequestId
102
+
103
+ def initialize(items=nil, totalcount=nil, requestid=nil)
104
+ @Items = items
105
+ @TotalCount = totalcount
106
+ @RequestId = requestid
107
+ end
108
+
109
+ def deserialize(params)
110
+ unless params['Items'].nil?
111
+ @Items = []
112
+ params['Items'].each do |i|
113
+ instanceinfo_tmp = InstanceInfo.new
114
+ instanceinfo_tmp.deserialize(i)
115
+ @Items << instanceinfo_tmp
116
+ end
117
+ end
118
+ @TotalCount = params['TotalCount']
119
+ @RequestId = params['RequestId']
120
+ end
121
+ end
122
+
123
+ # 实例信息,用于实例列表
124
+ class InstanceInfo < TencentCloud::Common::AbstractModel
125
+ # @param InstanceId: 实例ID。
126
+ # 注意:此字段可能返回 null,表示取不到有效值。
127
+ # @type InstanceId: String
128
+ # @param Name: 实例自定义名称。
129
+ # 注意:此字段可能返回 null,表示取不到有效值。
130
+ # @type Name: String
131
+ # @param AppId: 用户APPID。
132
+ # 注意:此字段可能返回 null,表示取不到有效值。
133
+ # @type AppId: Integer
134
+ # @param Region: 地域。
135
+ # 注意:此字段可能返回 null,表示取不到有效值。
136
+ # @type Region: String
137
+ # @param Zone: 可用区。
138
+ # 注意:此字段可能返回 null,表示取不到有效值。
139
+ # @type Zone: String
140
+ # @param Product: 产品。
141
+ # 注意:此字段可能返回 null,表示取不到有效值。
142
+ # @type Product: String
143
+ # @param Networks: 网络信息。
144
+ # 注意:此字段可能返回 null,表示取不到有效值。
145
+ # @type Networks: Array
146
+ # @param ShardNum: 分片信息。
147
+ # 注意:此字段可能返回 null,表示取不到有效值。
148
+ # @type ShardNum: Integer
149
+ # @param ReplicaNum: 副本数。
150
+ # 注意:此字段可能返回 null,表示取不到有效值。
151
+ # @type ReplicaNum: Integer
152
+ # @param Cpu: CPU.
153
+ # 注意:此字段可能返回 null,表示取不到有效值。
154
+ # @type Cpu: Float
155
+ # @param Memory: 内存。
156
+ # 注意:此字段可能返回 null,表示取不到有效值。
157
+ # @type Memory: Float
158
+ # @param Disk: 磁盘。
159
+ # 注意:此字段可能返回 null,表示取不到有效值。
160
+ # @type Disk: Integer
161
+ # @param HealthScore: 健康得分。
162
+ # 注意:此字段可能返回 null,表示取不到有效值。
163
+ # @type HealthScore: Float
164
+ # @param Warning: 异常告警。
165
+ # 注意:此字段可能返回 null,表示取不到有效值。
166
+ # @type Warning: Integer
167
+ # @param Project: 所属项目。
168
+ # 注意:此字段可能返回 null,表示取不到有效值。
169
+ # @type Project: String
170
+ # @param ResourceTags: 所属标签。
171
+ # 注意:此字段可能返回 null,表示取不到有效值。
172
+ # @type ResourceTags: Array
173
+ # @param CreatedAt: 创建时间。
174
+ # 注意:此字段可能返回 null,表示取不到有效值。
175
+ # @type CreatedAt: String
176
+ # @param Status: 资源状态。
177
+ # 注意:此字段可能返回 null,表示取不到有效值。
178
+ # @type Status: String
179
+ # @param EngineName: 引擎名称。
180
+ # 注意:此字段可能返回 null,表示取不到有效值。
181
+ # @type EngineName: String
182
+ # @param EngineVersion: 引擎版本。
183
+ # 注意:此字段可能返回 null,表示取不到有效值。
184
+ # @type EngineVersion: String
185
+ # @param PayMode: 计费模式。
186
+ # 注意:此字段可能返回 null,表示取不到有效值。
187
+ # @type PayMode: Integer
188
+ # @param Extend: 差异化扩展信息, json格式。
189
+ # 注意:此字段可能返回 null,表示取不到有效值。
190
+ # @type Extend: String
191
+ # @param ExpiredAt: 过期时间。
192
+ # 注意:此字段可能返回 null,表示取不到有效值。
193
+ # @type ExpiredAt: String
194
+ # @param IsNoExpired: 是否不过期(永久)。
195
+ # 注意:此字段可能返回 null,表示取不到有效值。
196
+ # @type IsNoExpired: Boolean
197
+ # @param WanAddress: 外网地址。
198
+ # 注意:此字段可能返回 null,表示取不到有效值。
199
+ # @type WanAddress: String
200
+
201
+ attr_accessor :InstanceId, :Name, :AppId, :Region, :Zone, :Product, :Networks, :ShardNum, :ReplicaNum, :Cpu, :Memory, :Disk, :HealthScore, :Warning, :Project, :ResourceTags, :CreatedAt, :Status, :EngineName, :EngineVersion, :PayMode, :Extend, :ExpiredAt, :IsNoExpired, :WanAddress
202
+
203
+ def initialize(instanceid=nil, name=nil, appid=nil, region=nil, zone=nil, product=nil, networks=nil, shardnum=nil, replicanum=nil, cpu=nil, memory=nil, disk=nil, healthscore=nil, warning=nil, project=nil, resourcetags=nil, createdat=nil, status=nil, enginename=nil, engineversion=nil, paymode=nil, extend=nil, expiredat=nil, isnoexpired=nil, wanaddress=nil)
204
+ @InstanceId = instanceid
205
+ @Name = name
206
+ @AppId = appid
207
+ @Region = region
208
+ @Zone = zone
209
+ @Product = product
210
+ @Networks = networks
211
+ @ShardNum = shardnum
212
+ @ReplicaNum = replicanum
213
+ @Cpu = cpu
214
+ @Memory = memory
215
+ @Disk = disk
216
+ @HealthScore = healthscore
217
+ @Warning = warning
218
+ @Project = project
219
+ @ResourceTags = resourcetags
220
+ @CreatedAt = createdat
221
+ @Status = status
222
+ @EngineName = enginename
223
+ @EngineVersion = engineversion
224
+ @PayMode = paymode
225
+ @Extend = extend
226
+ @ExpiredAt = expiredat
227
+ @IsNoExpired = isnoexpired
228
+ @WanAddress = wanaddress
229
+ end
230
+
231
+ def deserialize(params)
232
+ @InstanceId = params['InstanceId']
233
+ @Name = params['Name']
234
+ @AppId = params['AppId']
235
+ @Region = params['Region']
236
+ @Zone = params['Zone']
237
+ @Product = params['Product']
238
+ unless params['Networks'].nil?
239
+ @Networks = []
240
+ params['Networks'].each do |i|
241
+ network_tmp = Network.new
242
+ network_tmp.deserialize(i)
243
+ @Networks << network_tmp
244
+ end
245
+ end
246
+ @ShardNum = params['ShardNum']
247
+ @ReplicaNum = params['ReplicaNum']
248
+ @Cpu = params['Cpu']
249
+ @Memory = params['Memory']
250
+ @Disk = params['Disk']
251
+ @HealthScore = params['HealthScore']
252
+ @Warning = params['Warning']
253
+ @Project = params['Project']
254
+ unless params['ResourceTags'].nil?
255
+ @ResourceTags = []
256
+ params['ResourceTags'].each do |i|
257
+ tag_tmp = Tag.new
258
+ tag_tmp.deserialize(i)
259
+ @ResourceTags << tag_tmp
260
+ end
261
+ end
262
+ @CreatedAt = params['CreatedAt']
263
+ @Status = params['Status']
264
+ @EngineName = params['EngineName']
265
+ @EngineVersion = params['EngineVersion']
266
+ @PayMode = params['PayMode']
267
+ @Extend = params['Extend']
268
+ @ExpiredAt = params['ExpiredAt']
269
+ @IsNoExpired = params['IsNoExpired']
270
+ @WanAddress = params['WanAddress']
271
+ end
272
+ end
273
+
274
+ # 网路信息
275
+ class Network < TencentCloud::Common::AbstractModel
276
+ # @param VpcId: VpcId(VPC网络下有效)
277
+ # 注意:此字段可能返回 null,表示取不到有效值。
278
+ # @type VpcId: String
279
+ # @param SubnetId: 子网Id(VPC网络下有效)。
280
+ # 注意:此字段可能返回 null,表示取不到有效值。
281
+ # @type SubnetId: String
282
+ # @param Vip: 内网访问IP。
283
+ # 注意:此字段可能返回 null,表示取不到有效值。
284
+ # @type Vip: String
285
+ # @param Port: 内网访问Port。
286
+ # 注意:此字段可能返回 null,表示取不到有效值。
287
+ # @type Port: Integer
288
+
289
+ attr_accessor :VpcId, :SubnetId, :Vip, :Port
290
+
291
+ def initialize(vpcid=nil, subnetid=nil, vip=nil, port=nil)
292
+ @VpcId = vpcid
293
+ @SubnetId = subnetid
294
+ @Vip = vip
295
+ @Port = port
296
+ end
297
+
298
+ def deserialize(params)
299
+ @VpcId = params['VpcId']
300
+ @SubnetId = params['SubnetId']
301
+ @Vip = params['Vip']
302
+ @Port = params['Port']
303
+ end
304
+ end
305
+
306
+ # 标签键值对
307
+ class Tag < TencentCloud::Common::AbstractModel
308
+ # @param TagKey: 标签键
309
+ # 注意:此字段可能返回 null,表示取不到有效值。
310
+ # @type TagKey: String
311
+ # @param TagValue: 标签值
312
+ # 注意:此字段可能返回 null,表示取不到有效值。
313
+ # @type TagValue: String
314
+
315
+ attr_accessor :TagKey, :TagValue
316
+
317
+ def initialize(tagkey=nil, tagvalue=nil)
318
+ @TagKey = tagkey
319
+ @TagValue = tagvalue
320
+ end
321
+
322
+ def deserialize(params)
323
+ @TagKey = params['TagKey']
324
+ @TagValue = params['TagValue']
325
+ end
326
+ end
327
+
328
+ end
329
+ end
330
+ end
331
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-vdb
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.836
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-06-03 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
+ VDB.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/tencentcloud-sdk-vdb.rb
37
+ - lib/v20230616/models.rb
38
+ - lib/v20230616/client.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-vdb
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 - VDB
66
+ test_files: []