tencentcloud-sdk-ckafka 1.0.229 → 1.0.230

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: e37c0fe434cd4dd644ab15361e77913338606599
4
- data.tar.gz: 76a3593d24f07f3a5bd67d91122fdf2a69b6bdc0
3
+ metadata.gz: ee37b3c3ee9ef49989f1e16c559ac4563014d58a
4
+ data.tar.gz: b0651d4b2278f3e1dc34b9fee4db7084419b9aab
5
5
  SHA512:
6
- metadata.gz: 870c1c14c1aa0a40ed2d038fcef900146b0e8eb97e296e08bf59e7abf4a4db4a2f2296c39046beda5662dfe5044ba1698a1519c111d2de522b703a24978e2c01
7
- data.tar.gz: 2043494ea1ab7c676edeeaedfb7390131f9ba6b7eebc2e5a0faa1ea630fd161b4df12776d5b03b37a925ee5e7a97da4cec23f92dc896cedfdbf562983663a415
6
+ metadata.gz: f2a2185749796584985dbfaccf17812e17d57d73993f1662d16bf1e35e1e59c9b8dc69b5f0ce85c963d00e6d6803459bc811228265116e36ab17ae4fb03bf86b
7
+ data.tar.gz: ae1db4541cf89a835df2057bef64c1b4d64f9a5be6fae25d65952fd9c96852a9248f42ff857c54c5f369cebb90783e2f46af2d1cf0df8b8e1f9a5debdad6d641
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.229
1
+ 1.0.230
@@ -966,6 +966,30 @@ module TencentCloud
966
966
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
967
967
  end
968
968
 
969
+ # 通过HTTP接入层发送消息
970
+
971
+ # @param request: Request instance for SendMessage.
972
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::SendMessageRequest`
973
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::SendMessageResponse`
974
+ def SendMessage(request)
975
+ body = send_request('SendMessage', request.serialize)
976
+ response = JSON.parse(body)
977
+ if response['Response'].key?('Error') == false
978
+ model = SendMessageResponse.new
979
+ model.deserialize(response['Response'])
980
+ model
981
+ else
982
+ code = response['Response']['Error']['Code']
983
+ message = response['Response']['Error']['Message']
984
+ reqid = response['Response']['RequestId']
985
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
986
+ end
987
+ rescue TencentCloud::Common::TencentCloudSDKException => e
988
+ raise e
989
+ rescue StandardError => e
990
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
991
+ end
992
+
969
993
 
970
994
  end
971
995
  end
@@ -237,6 +237,26 @@ module TencentCloud
237
237
  end
238
238
  end
239
239
 
240
+ # 批量发送消息内容
241
+ class BatchContent < TencentCloud::Common::AbstractModel
242
+ # @param Body: 发送的消息体
243
+ # @type Body: String
244
+ # @param Key: 发送消息的键名
245
+ # @type Key: String
246
+
247
+ attr_accessor :Body, :Key
248
+
249
+ def initialize(body=nil, key=nil)
250
+ @Body = body
251
+ @Key = key
252
+ end
253
+
254
+ def deserialize(params)
255
+ @Body = params['Body']
256
+ @Key = params['Key']
257
+ end
258
+ end
259
+
240
260
  # BatchCreateAcl请求参数结构体
241
261
  class BatchCreateAclRequest < TencentCloud::Common::AbstractModel
242
262
  # @param InstanceId: 实例ID
@@ -3928,6 +3948,53 @@ module TencentCloud
3928
3948
  end
3929
3949
  end
3930
3950
 
3951
+ # SendMessage请求参数结构体
3952
+ class SendMessageRequest < TencentCloud::Common::AbstractModel
3953
+ # @param DataHubId: DataHub接入ID
3954
+ # @type DataHubId: String
3955
+ # @param Message: 发送消息内容
3956
+ # @type Message: Array
3957
+
3958
+ attr_accessor :DataHubId, :Message
3959
+
3960
+ def initialize(datahubid=nil, message=nil)
3961
+ @DataHubId = datahubid
3962
+ @Message = message
3963
+ end
3964
+
3965
+ def deserialize(params)
3966
+ @DataHubId = params['DataHubId']
3967
+ unless params['Message'].nil?
3968
+ @Message = []
3969
+ params['Message'].each do |i|
3970
+ batchcontent_tmp = BatchContent.new
3971
+ batchcontent_tmp.deserialize(i)
3972
+ @Message << batchcontent_tmp
3973
+ end
3974
+ end
3975
+ end
3976
+ end
3977
+
3978
+ # SendMessage返回参数结构体
3979
+ class SendMessageResponse < TencentCloud::Common::AbstractModel
3980
+ # @param MessageId: 消息ID列表
3981
+ # @type MessageId: Array
3982
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3983
+ # @type RequestId: String
3984
+
3985
+ attr_accessor :MessageId, :RequestId
3986
+
3987
+ def initialize(messageid=nil, requestid=nil)
3988
+ @MessageId = messageid
3989
+ @RequestId = requestid
3990
+ end
3991
+
3992
+ def deserialize(params)
3993
+ @MessageId = params['MessageId']
3994
+ @RequestId = params['RequestId']
3995
+ end
3996
+ end
3997
+
3931
3998
  # 订阅信息实体
3932
3999
  class SubscribedInfo < TencentCloud::Common::AbstractModel
3933
4000
  # @param TopicName: 订阅的主题名
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.229
4
+ version: 1.0.230
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-22 00:00:00.000000000 Z
11
+ date: 2021-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common