tencentcloud-sdk-trocket 3.0.630

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: 174e99a85373019361e37c2a0aec31d8f2d6ef37
4
+ data.tar.gz: 01082a4709e8fa558d076b27b5a8693f9cf2556b
5
+ SHA512:
6
+ metadata.gz: 6bdb9dbbd43ed4bd754ded6f84435dbfab73f33d421db4e2744cec6265aaf5d30531762def35affbf30092da9ac939773c1ad9a0ee803962291ed1260fc25756
7
+ data.tar.gz: f663c56a64366d29e3ad556e4881562382337f34744ca7b339a4e1541f89e3cc6cf52a7dc52960880271abbcfcd6f8be6d2ee77057d4bfd0f07b8281f2b250f7
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.630
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20230308/client'
6
+ require_relative 'v20230308/models'
7
+
8
+ module TencentCloud
9
+ module Trocket
10
+ end
11
+ end
@@ -0,0 +1,93 @@
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 Trocket
21
+ module V20230308
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2023-03-08'
26
+ api_endpoint = 'trocket.tencentcloudapi.com'
27
+ sdk_version = 'TROCKET_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 获取实例列表,Filters参数使用说明如下:
33
+ # 1. InstanceName, 名称模糊查询
34
+ # 2. InstanceId,实例ID查询
35
+ # 3. InstanceType, 实例类型查询,支持多选
36
+ # 3. InstanceStatus,实例状态查询,支持多选
37
+
38
+ # 当使用TagFilters查询时,Filters参数失效。
39
+
40
+ # @param request: Request instance for DescribeInstanceList.
41
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeInstanceListRequest`
42
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeInstanceListResponse`
43
+ def DescribeInstanceList(request)
44
+ body = send_request('DescribeInstanceList', request.serialize)
45
+ response = JSON.parse(body)
46
+ if response['Response'].key?('Error') == false
47
+ model = DescribeInstanceListResponse.new
48
+ model.deserialize(response['Response'])
49
+ model
50
+ else
51
+ code = response['Response']['Error']['Code']
52
+ message = response['Response']['Error']['Message']
53
+ reqid = response['Response']['RequestId']
54
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
55
+ end
56
+ rescue TencentCloud::Common::TencentCloudSDKException => e
57
+ raise e
58
+ rescue StandardError => e
59
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
60
+ end
61
+
62
+ # 获取主题列表,Filter参数使用说明如下:
63
+
64
+ # 1. TopicName,主题名称模糊搜索
65
+ # 2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
66
+
67
+ # @param request: Request instance for DescribeTopicList.
68
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeTopicListRequest`
69
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeTopicListResponse`
70
+ def DescribeTopicList(request)
71
+ body = send_request('DescribeTopicList', request.serialize)
72
+ response = JSON.parse(body)
73
+ if response['Response'].key?('Error') == false
74
+ model = DescribeTopicListResponse.new
75
+ model.deserialize(response['Response'])
76
+ model
77
+ else
78
+ code = response['Response']['Error']['Code']
79
+ message = response['Response']['Error']['Message']
80
+ reqid = response['Response']['RequestId']
81
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
82
+ end
83
+ rescue TencentCloud::Common::TencentCloudSDKException => e
84
+ raise e
85
+ rescue StandardError => e
86
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
87
+ end
88
+
89
+
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,373 @@
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 Trocket
19
+ module V20230308
20
+ # DescribeInstanceList请求参数结构体
21
+ class DescribeInstanceListRequest < TencentCloud::Common::AbstractModel
22
+ # @param Offset: 查询起始位置
23
+ # @type Offset: Integer
24
+ # @param Limit: 查询结果限制数量
25
+ # @type Limit: Integer
26
+ # @param Filters: 查询条件列表
27
+ # @type Filters: Array
28
+ # @param TagFilters: 标签过滤器
29
+ # @type TagFilters: Array
30
+
31
+ attr_accessor :Offset, :Limit, :Filters, :TagFilters
32
+
33
+ def initialize(offset=nil, limit=nil, filters=nil, tagfilters=nil)
34
+ @Offset = offset
35
+ @Limit = limit
36
+ @Filters = filters
37
+ @TagFilters = tagfilters
38
+ end
39
+
40
+ def deserialize(params)
41
+ @Offset = params['Offset']
42
+ @Limit = params['Limit']
43
+ unless params['Filters'].nil?
44
+ @Filters = []
45
+ params['Filters'].each do |i|
46
+ filter_tmp = Filter.new
47
+ filter_tmp.deserialize(i)
48
+ @Filters << filter_tmp
49
+ end
50
+ end
51
+ unless params['TagFilters'].nil?
52
+ @TagFilters = []
53
+ params['TagFilters'].each do |i|
54
+ tagfilter_tmp = TagFilter.new
55
+ tagfilter_tmp.deserialize(i)
56
+ @TagFilters << tagfilter_tmp
57
+ end
58
+ end
59
+ end
60
+ end
61
+
62
+ # DescribeInstanceList返回参数结构体
63
+ class DescribeInstanceListResponse < TencentCloud::Common::AbstractModel
64
+ # @param TotalCount: 查询总数
65
+ # 注意:此字段可能返回 null,表示取不到有效值。
66
+ # @type TotalCount: Integer
67
+ # @param Data: 实例列表
68
+ # @type Data: Array
69
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
70
+ # @type RequestId: String
71
+
72
+ attr_accessor :TotalCount, :Data, :RequestId
73
+
74
+ def initialize(totalcount=nil, data=nil, requestid=nil)
75
+ @TotalCount = totalcount
76
+ @Data = data
77
+ @RequestId = requestid
78
+ end
79
+
80
+ def deserialize(params)
81
+ @TotalCount = params['TotalCount']
82
+ unless params['Data'].nil?
83
+ @Data = []
84
+ params['Data'].each do |i|
85
+ instanceitem_tmp = InstanceItem.new
86
+ instanceitem_tmp.deserialize(i)
87
+ @Data << instanceitem_tmp
88
+ end
89
+ end
90
+ @RequestId = params['RequestId']
91
+ end
92
+ end
93
+
94
+ # DescribeTopicList请求参数结构体
95
+ class DescribeTopicListRequest < TencentCloud::Common::AbstractModel
96
+ # @param InstanceId: 实例ID
97
+ # @type InstanceId: String
98
+ # @param Offset: 查询起始位置
99
+ # @type Offset: Integer
100
+ # @param Limit: 查询结果限制数量
101
+ # @type Limit: Integer
102
+ # @param Filters: 查询条件列表
103
+ # @type Filters: Array
104
+
105
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters
106
+
107
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
108
+ @InstanceId = instanceid
109
+ @Offset = offset
110
+ @Limit = limit
111
+ @Filters = filters
112
+ end
113
+
114
+ def deserialize(params)
115
+ @InstanceId = params['InstanceId']
116
+ @Offset = params['Offset']
117
+ @Limit = params['Limit']
118
+ unless params['Filters'].nil?
119
+ @Filters = []
120
+ params['Filters'].each do |i|
121
+ filter_tmp = Filter.new
122
+ filter_tmp.deserialize(i)
123
+ @Filters << filter_tmp
124
+ end
125
+ end
126
+ end
127
+ end
128
+
129
+ # DescribeTopicList返回参数结构体
130
+ class DescribeTopicListResponse < TencentCloud::Common::AbstractModel
131
+ # @param TotalCount: 查询总数
132
+ # 注意:此字段可能返回 null,表示取不到有效值。
133
+ # @type TotalCount: Integer
134
+ # @param Data: 主题列表
135
+ # @type Data: Array
136
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
137
+ # @type RequestId: String
138
+
139
+ attr_accessor :TotalCount, :Data, :RequestId
140
+
141
+ def initialize(totalcount=nil, data=nil, requestid=nil)
142
+ @TotalCount = totalcount
143
+ @Data = data
144
+ @RequestId = requestid
145
+ end
146
+
147
+ def deserialize(params)
148
+ @TotalCount = params['TotalCount']
149
+ unless params['Data'].nil?
150
+ @Data = []
151
+ params['Data'].each do |i|
152
+ topicitem_tmp = TopicItem.new
153
+ topicitem_tmp.deserialize(i)
154
+ @Data << topicitem_tmp
155
+ end
156
+ end
157
+ @RequestId = params['RequestId']
158
+ end
159
+ end
160
+
161
+ # 查询过滤器
162
+ class Filter < TencentCloud::Common::AbstractModel
163
+ # @param Name: 过滤条件名
164
+ # @type Name: String
165
+ # @param Values: 过滤条件的值
166
+ # @type Values: Array
167
+
168
+ attr_accessor :Name, :Values
169
+
170
+ def initialize(name=nil, values=nil)
171
+ @Name = name
172
+ @Values = values
173
+ end
174
+
175
+ def deserialize(params)
176
+ @Name = params['Name']
177
+ @Values = params['Values']
178
+ end
179
+ end
180
+
181
+ # 实例列表页中的实例信息
182
+ class InstanceItem < TencentCloud::Common::AbstractModel
183
+ # @param InstanceId: 实例ID
184
+ # @type InstanceId: String
185
+ # @param InstanceName: 实例名称
186
+ # @type InstanceName: String
187
+ # @param Version: 实例版本
188
+ # @type Version: String
189
+ # @param InstanceType: 实例类型,
190
+ # EXPERIMENT,体验版
191
+ # BASIC,基础版
192
+ # PRO,专业版
193
+ # PLATINUM,铂金版
194
+ # @type InstanceType: String
195
+ # @param InstanceStatus: 实例状态,
196
+ # RUNNING, 运行中
197
+ # MAINTAINING,维护中
198
+ # ABNORMAL,异常
199
+ # OVERDUE,欠费
200
+ # DESTROYED,已删除
201
+ # CREATING,创建中
202
+ # MODIFYING,变配中
203
+ # CREATE_FAILURE,创建失败
204
+ # MODIFY_FAILURE,变配失败
205
+ # DELETING,删除中
206
+ # @type InstanceStatus: String
207
+ # @param TopicNumLimit: 实例主题数上限
208
+ # @type TopicNumLimit: Integer
209
+ # @param GroupNumLimit: 实例消费组数量上限
210
+ # @type GroupNumLimit: Integer
211
+ # @param PayMode: 计费模式,
212
+ # POSTPAID,按量计费
213
+ # PREPAID,包年包月
214
+ # @type PayMode: String
215
+ # @param ExpiryTime: 到期时间,秒为单位
216
+ # 注意:此字段可能返回 null,表示取不到有效值。
217
+ # @type ExpiryTime: Integer
218
+ # @param Remark: 备注信息
219
+ # 注意:此字段可能返回 null,表示取不到有效值。
220
+ # @type Remark: String
221
+ # @param TopicNum: 主题数量
222
+ # @type TopicNum: Integer
223
+ # @param GroupNum: 消费组数量
224
+ # @type GroupNum: Integer
225
+ # @param TagList: 标签列表
226
+ # 注意:此字段可能返回 null,表示取不到有效值。
227
+ # @type TagList: Array
228
+ # @param SkuCode: 商品规格
229
+ # @type SkuCode: String
230
+ # @param TpsLimit: TPS限流值
231
+ # 注意:此字段可能返回 null,表示取不到有效值。
232
+ # @type TpsLimit: Integer
233
+ # @param ScaledTpsLimit: 弹性TPS限流值
234
+ # 注意:此字段可能返回 null,表示取不到有效值。
235
+ # @type ScaledTpsLimit: Integer
236
+ # @param MessageRetention: 消息保留时间,小时为单位
237
+ # 注意:此字段可能返回 null,表示取不到有效值。
238
+ # @type MessageRetention: Integer
239
+ # @param MaxMessageDelay: 延迟消息最大时长,小时为单位
240
+ # 注意:此字段可能返回 null,表示取不到有效值。
241
+ # @type MaxMessageDelay: Integer
242
+
243
+ attr_accessor :InstanceId, :InstanceName, :Version, :InstanceType, :InstanceStatus, :TopicNumLimit, :GroupNumLimit, :PayMode, :ExpiryTime, :Remark, :TopicNum, :GroupNum, :TagList, :SkuCode, :TpsLimit, :ScaledTpsLimit, :MessageRetention, :MaxMessageDelay
244
+
245
+ def initialize(instanceid=nil, instancename=nil, version=nil, instancetype=nil, instancestatus=nil, topicnumlimit=nil, groupnumlimit=nil, paymode=nil, expirytime=nil, remark=nil, topicnum=nil, groupnum=nil, taglist=nil, skucode=nil, tpslimit=nil, scaledtpslimit=nil, messageretention=nil, maxmessagedelay=nil)
246
+ @InstanceId = instanceid
247
+ @InstanceName = instancename
248
+ @Version = version
249
+ @InstanceType = instancetype
250
+ @InstanceStatus = instancestatus
251
+ @TopicNumLimit = topicnumlimit
252
+ @GroupNumLimit = groupnumlimit
253
+ @PayMode = paymode
254
+ @ExpiryTime = expirytime
255
+ @Remark = remark
256
+ @TopicNum = topicnum
257
+ @GroupNum = groupnum
258
+ @TagList = taglist
259
+ @SkuCode = skucode
260
+ @TpsLimit = tpslimit
261
+ @ScaledTpsLimit = scaledtpslimit
262
+ @MessageRetention = messageretention
263
+ @MaxMessageDelay = maxmessagedelay
264
+ end
265
+
266
+ def deserialize(params)
267
+ @InstanceId = params['InstanceId']
268
+ @InstanceName = params['InstanceName']
269
+ @Version = params['Version']
270
+ @InstanceType = params['InstanceType']
271
+ @InstanceStatus = params['InstanceStatus']
272
+ @TopicNumLimit = params['TopicNumLimit']
273
+ @GroupNumLimit = params['GroupNumLimit']
274
+ @PayMode = params['PayMode']
275
+ @ExpiryTime = params['ExpiryTime']
276
+ @Remark = params['Remark']
277
+ @TopicNum = params['TopicNum']
278
+ @GroupNum = params['GroupNum']
279
+ unless params['TagList'].nil?
280
+ @TagList = []
281
+ params['TagList'].each do |i|
282
+ tag_tmp = Tag.new
283
+ tag_tmp.deserialize(i)
284
+ @TagList << tag_tmp
285
+ end
286
+ end
287
+ @SkuCode = params['SkuCode']
288
+ @TpsLimit = params['TpsLimit']
289
+ @ScaledTpsLimit = params['ScaledTpsLimit']
290
+ @MessageRetention = params['MessageRetention']
291
+ @MaxMessageDelay = params['MaxMessageDelay']
292
+ end
293
+ end
294
+
295
+ # 标签数据
296
+ class Tag < TencentCloud::Common::AbstractModel
297
+ # @param TagKey: 标签名称
298
+ # 注意:此字段可能返回 null,表示取不到有效值。
299
+ # @type TagKey: String
300
+ # @param TagValue: 标签值
301
+ # 注意:此字段可能返回 null,表示取不到有效值。
302
+ # @type TagValue: String
303
+
304
+ attr_accessor :TagKey, :TagValue
305
+
306
+ def initialize(tagkey=nil, tagvalue=nil)
307
+ @TagKey = tagkey
308
+ @TagValue = tagvalue
309
+ end
310
+
311
+ def deserialize(params)
312
+ @TagKey = params['TagKey']
313
+ @TagValue = params['TagValue']
314
+ end
315
+ end
316
+
317
+ # 标签过滤器
318
+ class TagFilter < TencentCloud::Common::AbstractModel
319
+ # @param TagKey: 标签键名称
320
+ # @type TagKey: String
321
+ # @param TagValues: 标签值列表
322
+ # @type TagValues: Array
323
+
324
+ attr_accessor :TagKey, :TagValues
325
+
326
+ def initialize(tagkey=nil, tagvalues=nil)
327
+ @TagKey = tagkey
328
+ @TagValues = tagvalues
329
+ end
330
+
331
+ def deserialize(params)
332
+ @TagKey = params['TagKey']
333
+ @TagValues = params['TagValues']
334
+ end
335
+ end
336
+
337
+ # 列表上的主题信息
338
+ class TopicItem < TencentCloud::Common::AbstractModel
339
+ # @param InstanceId: 实例ID
340
+ # @type InstanceId: String
341
+ # @param Topic: 主题名称
342
+ # @type Topic: String
343
+ # @param TopicType: 主题类型
344
+ # @type TopicType: String
345
+ # @param QueueNum: 队列数量
346
+ # @type QueueNum: Integer
347
+ # @param Remark: 描述
348
+ # 注意:此字段可能返回 null,表示取不到有效值。
349
+ # @type Remark: String
350
+
351
+ attr_accessor :InstanceId, :Topic, :TopicType, :QueueNum, :Remark
352
+
353
+ def initialize(instanceid=nil, topic=nil, topictype=nil, queuenum=nil, remark=nil)
354
+ @InstanceId = instanceid
355
+ @Topic = topic
356
+ @TopicType = topictype
357
+ @QueueNum = queuenum
358
+ @Remark = remark
359
+ end
360
+
361
+ def deserialize(params)
362
+ @InstanceId = params['InstanceId']
363
+ @Topic = params['Topic']
364
+ @TopicType = params['TopicType']
365
+ @QueueNum = params['QueueNum']
366
+ @Remark = params['Remark']
367
+ end
368
+ end
369
+
370
+ end
371
+ end
372
+ end
373
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-trocket
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.630
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-08-07 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
+ TROCKET.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20230308/models.rb
37
+ - lib/v20230308/client.rb
38
+ - lib/tencentcloud-sdk-trocket.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-trocket
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 - TROCKET
66
+ test_files: []