tencentcloud-sdk-trocket 3.0.666 → 3.0.667
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20230308/client.rb +98 -0
- data/lib/v20230308/models.rb +247 -0
- 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: 57ef3155d5f563537c717c57f2e9120aa6dd5635
|
4
|
+
data.tar.gz: ae54be1e4aa7988fa67b22f8d6118e42e8029193
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ee304d9b3a8983c04853afb18e7d372cddb8796811042dde1513fc20bc809379ab4cc2b75263450d4b842d94d0ec6fa6a31b78390b375c5de2fbae0d881daa2
|
7
|
+
data.tar.gz: 04e0752ba0c4bfa9c6a3e0975325fd80b89f2b9db1a87fe79fca0e71a8e48664467c7cb870a2dee43d18043feee95a26b19070da54c3316313bfc0716755df44
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.667
|
data/lib/v20230308/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 添加角色
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateRole.
|
83
|
+
# @type request: :class:`Tencentcloud::trocket::V20230308::CreateRoleRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::trocket::V20230308::CreateRoleResponse`
|
85
|
+
def CreateRole(request)
|
86
|
+
body = send_request('CreateRole', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateRoleResponse.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
|
+
|
80
104
|
# 创建主题
|
81
105
|
|
82
106
|
# @param request: Request instance for CreateTopic.
|
@@ -149,6 +173,30 @@ module TencentCloud
|
|
149
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
174
|
end
|
151
175
|
|
176
|
+
# 删除角色
|
177
|
+
|
178
|
+
# @param request: Request instance for DeleteRole.
|
179
|
+
# @type request: :class:`Tencentcloud::trocket::V20230308::DeleteRoleRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::trocket::V20230308::DeleteRoleResponse`
|
181
|
+
def DeleteRole(request)
|
182
|
+
body = send_request('DeleteRole', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DeleteRoleResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
152
200
|
# 删除主题
|
153
201
|
|
154
202
|
# @param request: Request instance for DeleteTopic.
|
@@ -251,6 +299,32 @@ module TencentCloud
|
|
251
299
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
252
300
|
end
|
253
301
|
|
302
|
+
# 查询角色列表,Filter参数使用说明如下:
|
303
|
+
|
304
|
+
# 1. RoleName,角色名称模糊搜索
|
305
|
+
|
306
|
+
# @param request: Request instance for DescribeRoleList.
|
307
|
+
# @type request: :class:`Tencentcloud::trocket::V20230308::DescribeRoleListRequest`
|
308
|
+
# @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeRoleListResponse`
|
309
|
+
def DescribeRoleList(request)
|
310
|
+
body = send_request('DescribeRoleList', request.serialize)
|
311
|
+
response = JSON.parse(body)
|
312
|
+
if response['Response'].key?('Error') == false
|
313
|
+
model = DescribeRoleListResponse.new
|
314
|
+
model.deserialize(response['Response'])
|
315
|
+
model
|
316
|
+
else
|
317
|
+
code = response['Response']['Error']['Code']
|
318
|
+
message = response['Response']['Error']['Message']
|
319
|
+
reqid = response['Response']['RequestId']
|
320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
321
|
+
end
|
322
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
323
|
+
raise e
|
324
|
+
rescue StandardError => e
|
325
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
326
|
+
end
|
327
|
+
|
254
328
|
# 查询主题详情,Offset和Limit参数是指订阅该主题的消费组查询分页参数,Filter参数使用说明如下:
|
255
329
|
|
256
330
|
# ConsumerGroup,消费组名称过滤
|
@@ -376,6 +450,30 @@ module TencentCloud
|
|
376
450
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
377
451
|
end
|
378
452
|
|
453
|
+
# 修改角色
|
454
|
+
|
455
|
+
# @param request: Request instance for ModifyRole.
|
456
|
+
# @type request: :class:`Tencentcloud::trocket::V20230308::ModifyRoleRequest`
|
457
|
+
# @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyRoleResponse`
|
458
|
+
def ModifyRole(request)
|
459
|
+
body = send_request('ModifyRole', request.serialize)
|
460
|
+
response = JSON.parse(body)
|
461
|
+
if response['Response'].key?('Error') == false
|
462
|
+
model = ModifyRoleResponse.new
|
463
|
+
model.deserialize(response['Response'])
|
464
|
+
model
|
465
|
+
else
|
466
|
+
code = response['Response']['Error']['Code']
|
467
|
+
message = response['Response']['Error']['Message']
|
468
|
+
reqid = response['Response']['RequestId']
|
469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
470
|
+
end
|
471
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
472
|
+
raise e
|
473
|
+
rescue StandardError => e
|
474
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
475
|
+
end
|
476
|
+
|
379
477
|
# 修改主题属性
|
380
478
|
|
381
479
|
# @param request: Request instance for ModifyTopic.
|
data/lib/v20230308/models.rb
CHANGED
@@ -180,6 +180,58 @@ module TencentCloud
|
|
180
180
|
end
|
181
181
|
end
|
182
182
|
|
183
|
+
# CreateRole请求参数结构体
|
184
|
+
class CreateRoleRequest < TencentCloud::Common::AbstractModel
|
185
|
+
# @param InstanceId: 实例ID
|
186
|
+
# @type InstanceId: String
|
187
|
+
# @param Role: 角色名称
|
188
|
+
# @type Role: String
|
189
|
+
# @param Remark: 备注
|
190
|
+
# @type Remark: String
|
191
|
+
# @param PermWrite: 是否开启生产权限
|
192
|
+
# @type PermWrite: Boolean
|
193
|
+
# @param PermRead: 是否开启消费权限
|
194
|
+
# @type PermRead: Boolean
|
195
|
+
|
196
|
+
attr_accessor :InstanceId, :Role, :Remark, :PermWrite, :PermRead
|
197
|
+
|
198
|
+
def initialize(instanceid=nil, role=nil, remark=nil, permwrite=nil, permread=nil)
|
199
|
+
@InstanceId = instanceid
|
200
|
+
@Role = role
|
201
|
+
@Remark = remark
|
202
|
+
@PermWrite = permwrite
|
203
|
+
@PermRead = permread
|
204
|
+
end
|
205
|
+
|
206
|
+
def deserialize(params)
|
207
|
+
@InstanceId = params['InstanceId']
|
208
|
+
@Role = params['Role']
|
209
|
+
@Remark = params['Remark']
|
210
|
+
@PermWrite = params['PermWrite']
|
211
|
+
@PermRead = params['PermRead']
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# CreateRole返回参数结构体
|
216
|
+
class CreateRoleResponse < TencentCloud::Common::AbstractModel
|
217
|
+
# @param Role: 角色名
|
218
|
+
# @type Role: String
|
219
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
220
|
+
# @type RequestId: String
|
221
|
+
|
222
|
+
attr_accessor :Role, :RequestId
|
223
|
+
|
224
|
+
def initialize(role=nil, requestid=nil)
|
225
|
+
@Role = role
|
226
|
+
@RequestId = requestid
|
227
|
+
end
|
228
|
+
|
229
|
+
def deserialize(params)
|
230
|
+
@Role = params['Role']
|
231
|
+
@RequestId = params['RequestId']
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
183
235
|
# CreateTopic请求参数结构体
|
184
236
|
class CreateTopicRequest < TencentCloud::Common::AbstractModel
|
185
237
|
# @param InstanceId: 实例ID
|
@@ -309,6 +361,42 @@ module TencentCloud
|
|
309
361
|
end
|
310
362
|
end
|
311
363
|
|
364
|
+
# DeleteRole请求参数结构体
|
365
|
+
class DeleteRoleRequest < TencentCloud::Common::AbstractModel
|
366
|
+
# @param InstanceId: 实例ID
|
367
|
+
# @type InstanceId: String
|
368
|
+
# @param Role: 角色名称
|
369
|
+
# @type Role: String
|
370
|
+
|
371
|
+
attr_accessor :InstanceId, :Role
|
372
|
+
|
373
|
+
def initialize(instanceid=nil, role=nil)
|
374
|
+
@InstanceId = instanceid
|
375
|
+
@Role = role
|
376
|
+
end
|
377
|
+
|
378
|
+
def deserialize(params)
|
379
|
+
@InstanceId = params['InstanceId']
|
380
|
+
@Role = params['Role']
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
# DeleteRole返回参数结构体
|
385
|
+
class DeleteRoleResponse < TencentCloud::Common::AbstractModel
|
386
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
387
|
+
# @type RequestId: String
|
388
|
+
|
389
|
+
attr_accessor :RequestId
|
390
|
+
|
391
|
+
def initialize(requestid=nil)
|
392
|
+
@RequestId = requestid
|
393
|
+
end
|
394
|
+
|
395
|
+
def deserialize(params)
|
396
|
+
@RequestId = params['RequestId']
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
312
400
|
# DeleteTopic请求参数结构体
|
313
401
|
class DeleteTopicRequest < TencentCloud::Common::AbstractModel
|
314
402
|
# @param InstanceId: 实例ID
|
@@ -637,6 +725,73 @@ module TencentCloud
|
|
637
725
|
end
|
638
726
|
end
|
639
727
|
|
728
|
+
# DescribeRoleList请求参数结构体
|
729
|
+
class DescribeRoleListRequest < TencentCloud::Common::AbstractModel
|
730
|
+
# @param InstanceId: 实例ID
|
731
|
+
# @type InstanceId: String
|
732
|
+
# @param Offset: 查询起始位置
|
733
|
+
# @type Offset: Integer
|
734
|
+
# @param Limit: 查询结果限制数量
|
735
|
+
# @type Limit: Integer
|
736
|
+
# @param Filters: 查询条件列表
|
737
|
+
# @type Filters: Array
|
738
|
+
|
739
|
+
attr_accessor :InstanceId, :Offset, :Limit, :Filters
|
740
|
+
|
741
|
+
def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
|
742
|
+
@InstanceId = instanceid
|
743
|
+
@Offset = offset
|
744
|
+
@Limit = limit
|
745
|
+
@Filters = filters
|
746
|
+
end
|
747
|
+
|
748
|
+
def deserialize(params)
|
749
|
+
@InstanceId = params['InstanceId']
|
750
|
+
@Offset = params['Offset']
|
751
|
+
@Limit = params['Limit']
|
752
|
+
unless params['Filters'].nil?
|
753
|
+
@Filters = []
|
754
|
+
params['Filters'].each do |i|
|
755
|
+
filter_tmp = Filter.new
|
756
|
+
filter_tmp.deserialize(i)
|
757
|
+
@Filters << filter_tmp
|
758
|
+
end
|
759
|
+
end
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
763
|
+
# DescribeRoleList返回参数结构体
|
764
|
+
class DescribeRoleListResponse < TencentCloud::Common::AbstractModel
|
765
|
+
# @param TotalCount: 查询总数
|
766
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
767
|
+
# @type TotalCount: Integer
|
768
|
+
# @param Data: 角色信息列表
|
769
|
+
# @type Data: Array
|
770
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
771
|
+
# @type RequestId: String
|
772
|
+
|
773
|
+
attr_accessor :TotalCount, :Data, :RequestId
|
774
|
+
|
775
|
+
def initialize(totalcount=nil, data=nil, requestid=nil)
|
776
|
+
@TotalCount = totalcount
|
777
|
+
@Data = data
|
778
|
+
@RequestId = requestid
|
779
|
+
end
|
780
|
+
|
781
|
+
def deserialize(params)
|
782
|
+
@TotalCount = params['TotalCount']
|
783
|
+
unless params['Data'].nil?
|
784
|
+
@Data = []
|
785
|
+
params['Data'].each do |i|
|
786
|
+
roleitem_tmp = RoleItem.new
|
787
|
+
roleitem_tmp.deserialize(i)
|
788
|
+
@Data << roleitem_tmp
|
789
|
+
end
|
790
|
+
end
|
791
|
+
@RequestId = params['RequestId']
|
792
|
+
end
|
793
|
+
end
|
794
|
+
|
640
795
|
# DescribeTopicList请求参数结构体
|
641
796
|
class DescribeTopicListRequest < TencentCloud::Common::AbstractModel
|
642
797
|
# @param InstanceId: 实例ID
|
@@ -1167,6 +1322,54 @@ module TencentCloud
|
|
1167
1322
|
end
|
1168
1323
|
end
|
1169
1324
|
|
1325
|
+
# ModifyRole请求参数结构体
|
1326
|
+
class ModifyRoleRequest < TencentCloud::Common::AbstractModel
|
1327
|
+
# @param InstanceId: 实例ID
|
1328
|
+
# @type InstanceId: String
|
1329
|
+
# @param Role: 角色名称
|
1330
|
+
# @type Role: String
|
1331
|
+
# @param PermRead: 是否开启消费
|
1332
|
+
# @type PermRead: Boolean
|
1333
|
+
# @param PermWrite: 是否开启生产
|
1334
|
+
# @type PermWrite: Boolean
|
1335
|
+
# @param Remark: 备注
|
1336
|
+
# @type Remark: String
|
1337
|
+
|
1338
|
+
attr_accessor :InstanceId, :Role, :PermRead, :PermWrite, :Remark
|
1339
|
+
|
1340
|
+
def initialize(instanceid=nil, role=nil, permread=nil, permwrite=nil, remark=nil)
|
1341
|
+
@InstanceId = instanceid
|
1342
|
+
@Role = role
|
1343
|
+
@PermRead = permread
|
1344
|
+
@PermWrite = permwrite
|
1345
|
+
@Remark = remark
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
def deserialize(params)
|
1349
|
+
@InstanceId = params['InstanceId']
|
1350
|
+
@Role = params['Role']
|
1351
|
+
@PermRead = params['PermRead']
|
1352
|
+
@PermWrite = params['PermWrite']
|
1353
|
+
@Remark = params['Remark']
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
# ModifyRole返回参数结构体
|
1358
|
+
class ModifyRoleResponse < TencentCloud::Common::AbstractModel
|
1359
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1360
|
+
# @type RequestId: String
|
1361
|
+
|
1362
|
+
attr_accessor :RequestId
|
1363
|
+
|
1364
|
+
def initialize(requestid=nil)
|
1365
|
+
@RequestId = requestid
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
def deserialize(params)
|
1369
|
+
@RequestId = params['RequestId']
|
1370
|
+
end
|
1371
|
+
end
|
1372
|
+
|
1170
1373
|
# ModifyTopic请求参数结构体
|
1171
1374
|
class ModifyTopicRequest < TencentCloud::Common::AbstractModel
|
1172
1375
|
# @param InstanceId: 实例ID
|
@@ -1211,6 +1414,50 @@ module TencentCloud
|
|
1211
1414
|
end
|
1212
1415
|
end
|
1213
1416
|
|
1417
|
+
# 角色信息
|
1418
|
+
class RoleItem < TencentCloud::Common::AbstractModel
|
1419
|
+
# @param RoleName: 角色名称
|
1420
|
+
# @type RoleName: String
|
1421
|
+
# @param AccessKey: Access Key
|
1422
|
+
# @type AccessKey: String
|
1423
|
+
# @param SecretKey: Secret Key
|
1424
|
+
# @type SecretKey: String
|
1425
|
+
# @param PermRead: 是否开启消费
|
1426
|
+
# @type PermRead: Boolean
|
1427
|
+
# @param PermWrite: 是否开启生产
|
1428
|
+
# @type PermWrite: Boolean
|
1429
|
+
# @param Remark: 备注信息
|
1430
|
+
# @type Remark: String
|
1431
|
+
# @param CreatedTime: 创建时间,秒为单位
|
1432
|
+
# @type CreatedTime: Integer
|
1433
|
+
# @param ModifiedTime: 修改时间,秒为单位
|
1434
|
+
# @type ModifiedTime: Integer
|
1435
|
+
|
1436
|
+
attr_accessor :RoleName, :AccessKey, :SecretKey, :PermRead, :PermWrite, :Remark, :CreatedTime, :ModifiedTime
|
1437
|
+
|
1438
|
+
def initialize(rolename=nil, accesskey=nil, secretkey=nil, permread=nil, permwrite=nil, remark=nil, createdtime=nil, modifiedtime=nil)
|
1439
|
+
@RoleName = rolename
|
1440
|
+
@AccessKey = accesskey
|
1441
|
+
@SecretKey = secretkey
|
1442
|
+
@PermRead = permread
|
1443
|
+
@PermWrite = permwrite
|
1444
|
+
@Remark = remark
|
1445
|
+
@CreatedTime = createdtime
|
1446
|
+
@ModifiedTime = modifiedtime
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
def deserialize(params)
|
1450
|
+
@RoleName = params['RoleName']
|
1451
|
+
@AccessKey = params['AccessKey']
|
1452
|
+
@SecretKey = params['SecretKey']
|
1453
|
+
@PermRead = params['PermRead']
|
1454
|
+
@PermWrite = params['PermWrite']
|
1455
|
+
@Remark = params['Remark']
|
1456
|
+
@CreatedTime = params['CreatedTime']
|
1457
|
+
@ModifiedTime = params['ModifiedTime']
|
1458
|
+
end
|
1459
|
+
end
|
1460
|
+
|
1214
1461
|
# 主题与消费组的订阅关系数据
|
1215
1462
|
class SubscriptionData < TencentCloud::Common::AbstractModel
|
1216
1463
|
# @param InstanceId: 实例ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-trocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.667
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|