tencentcloud-sdk-ckafka 1.0.269 → 1.0.270

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 979e54096233a59641563ab7e7be3838bee97579
4
- data.tar.gz: 88184058eeed3342010027a8483fe3b9ecf31979
3
+ metadata.gz: 37565ff666f5437b3c85d6d92a07ab0c5d742f0f
4
+ data.tar.gz: 7256104e0e6c6f3978ee6e0dbf4575b7ef493d7c
5
5
  SHA512:
6
- metadata.gz: 7b52a68f0cf763bf01e15893108c47e43ba2f0fc361aaa969a90b86ccf39720f717e85f1fb0a7490a1978102004ddc9c71aa42f1f014f0c51e5d737497027a95
7
- data.tar.gz: e2802938c9228f61a4b4e4e719665d3dc0cfbfcf381e464c57cb6e87e545b7c9286d4dcd2076bf6c8d2e1ee0b4edd50dc80548fdeefbfec0cb4f09cdd999fcb7
6
+ metadata.gz: 75d5ec42a578fdec3e9a6a831bf8d8fca32d66888f768ddec409f0f422798df71e78a5efac533145f01bd155af11a6f9c707bfcea4ee54492a9f72ef16e392c1
7
+ data.tar.gz: 6d4b3077f3b1718135fae76ed3316c8bd52c568ecb9037d0891a7a03af8b1bd2e7aaf6edef504b43a8baf54594c0548ea9e5f3033d3d1f41556090e91d1d5858
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.269
1
+ 1.0.270
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 给实例授权token
33
+
34
+ # @param request: Request instance for AuthorizeToken.
35
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::AuthorizeTokenRequest`
36
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::AuthorizeTokenResponse`
37
+ def AuthorizeToken(request)
38
+ body = send_request('AuthorizeToken', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AuthorizeTokenResponse.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
  # 批量添加ACL策略
33
57
 
34
58
  # @param request: Request instance for BatchCreateAcl.
@@ -101,6 +125,30 @@ module TencentCloud
101
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
126
  end
103
127
 
128
+ # 取消授权token
129
+
130
+ # @param request: Request instance for CancelAuthorizationToken.
131
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::CancelAuthorizationTokenRequest`
132
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::CancelAuthorizationTokenResponse`
133
+ def CancelAuthorizationToken(request)
134
+ body = send_request('CancelAuthorizationToken', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CancelAuthorizationTokenResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
104
152
  # 添加 ACL 策略
105
153
 
106
154
  # @param request: Request instance for CreateAcl.
@@ -221,6 +269,30 @@ module TencentCloud
221
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
270
  end
223
271
 
272
+ # 创建最高权限的token
273
+
274
+ # @param request: Request instance for CreateToken.
275
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::CreateTokenRequest`
276
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::CreateTokenResponse`
277
+ def CreateToken(request)
278
+ body = send_request('CreateToken', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = CreateTokenResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
224
296
  # 创建ckafka主题
225
297
 
226
298
  # @param request: Request instance for CreateTopic.
@@ -237,6 +237,51 @@ module TencentCloud
237
237
  end
238
238
  end
239
239
 
240
+ # AuthorizeToken请求参数结构体
241
+ class AuthorizeTokenRequest < TencentCloud::Common::AbstractModel
242
+ # @param InstanceId: 实例ID
243
+ # @type InstanceId: String
244
+ # @param User: 用户
245
+ # @type User: String
246
+ # @param Tokens: token串
247
+ # @type Tokens: String
248
+
249
+ attr_accessor :InstanceId, :User, :Tokens
250
+
251
+ def initialize(instanceid=nil, user=nil, tokens=nil)
252
+ @InstanceId = instanceid
253
+ @User = user
254
+ @Tokens = tokens
255
+ end
256
+
257
+ def deserialize(params)
258
+ @InstanceId = params['InstanceId']
259
+ @User = params['User']
260
+ @Tokens = params['Tokens']
261
+ end
262
+ end
263
+
264
+ # AuthorizeToken返回参数结构体
265
+ class AuthorizeTokenResponse < TencentCloud::Common::AbstractModel
266
+ # @param Result: 0 成功
267
+ # 注意:此字段可能返回 null,表示取不到有效值。
268
+ # @type Result: Integer
269
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
270
+ # @type RequestId: String
271
+
272
+ attr_accessor :Result, :RequestId
273
+
274
+ def initialize(result=nil, requestid=nil)
275
+ @Result = result
276
+ @RequestId = requestid
277
+ end
278
+
279
+ def deserialize(params)
280
+ @Result = params['Result']
281
+ @RequestId = params['RequestId']
282
+ end
283
+ end
284
+
240
285
  # 批量发送消息内容
241
286
  class BatchContent < TencentCloud::Common::AbstractModel
242
287
  # @param Body: 发送的消息体
@@ -511,6 +556,51 @@ module TencentCloud
511
556
  end
512
557
  end
513
558
 
559
+ # CancelAuthorizationToken请求参数结构体
560
+ class CancelAuthorizationTokenRequest < TencentCloud::Common::AbstractModel
561
+ # @param InstanceId: 实例ID
562
+ # @type InstanceId: String
563
+ # @param User: 用户
564
+ # @type User: String
565
+ # @param Tokens: token串
566
+ # @type Tokens: String
567
+
568
+ attr_accessor :InstanceId, :User, :Tokens
569
+
570
+ def initialize(instanceid=nil, user=nil, tokens=nil)
571
+ @InstanceId = instanceid
572
+ @User = user
573
+ @Tokens = tokens
574
+ end
575
+
576
+ def deserialize(params)
577
+ @InstanceId = params['InstanceId']
578
+ @User = params['User']
579
+ @Tokens = params['Tokens']
580
+ end
581
+ end
582
+
583
+ # CancelAuthorizationToken返回参数结构体
584
+ class CancelAuthorizationTokenResponse < TencentCloud::Common::AbstractModel
585
+ # @param Result: 0 成功
586
+ # 注意:此字段可能返回 null,表示取不到有效值。
587
+ # @type Result: Integer
588
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
589
+ # @type RequestId: String
590
+
591
+ attr_accessor :Result, :RequestId
592
+
593
+ def initialize(result=nil, requestid=nil)
594
+ @Result = result
595
+ @RequestId = requestid
596
+ end
597
+
598
+ def deserialize(params)
599
+ @Result = params['Result']
600
+ @RequestId = params['RequestId']
601
+ end
602
+ end
603
+
514
604
  # 集群信息实体
515
605
  class ClusterInfo < TencentCloud::Common::AbstractModel
516
606
  # @param ClusterId: 集群Id
@@ -1188,6 +1278,47 @@ module TencentCloud
1188
1278
  end
1189
1279
  end
1190
1280
 
1281
+ # CreateToken请求参数结构体
1282
+ class CreateTokenRequest < TencentCloud::Common::AbstractModel
1283
+ # @param InstanceId: 实例ID
1284
+ # @type InstanceId: String
1285
+ # @param User: 用户名
1286
+ # @type User: String
1287
+
1288
+ attr_accessor :InstanceId, :User
1289
+
1290
+ def initialize(instanceid=nil, user=nil)
1291
+ @InstanceId = instanceid
1292
+ @User = user
1293
+ end
1294
+
1295
+ def deserialize(params)
1296
+ @InstanceId = params['InstanceId']
1297
+ @User = params['User']
1298
+ end
1299
+ end
1300
+
1301
+ # CreateToken返回参数结构体
1302
+ class CreateTokenResponse < TencentCloud::Common::AbstractModel
1303
+ # @param Result: token串
1304
+ # 注意:此字段可能返回 null,表示取不到有效值。
1305
+ # @type Result: String
1306
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1307
+ # @type RequestId: String
1308
+
1309
+ attr_accessor :Result, :RequestId
1310
+
1311
+ def initialize(result=nil, requestid=nil)
1312
+ @Result = result
1313
+ @RequestId = requestid
1314
+ end
1315
+
1316
+ def deserialize(params)
1317
+ @Result = params['Result']
1318
+ @RequestId = params['RequestId']
1319
+ end
1320
+ end
1321
+
1191
1322
  # CreateTopicIpWhiteList请求参数结构体
1192
1323
  class CreateTopicIpWhiteListRequest < TencentCloud::Common::AbstractModel
1193
1324
  # @param InstanceId: 实例Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ckafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.269
4
+ version: 1.0.270
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-03 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common