Class: TencentCloud::Trocket::V20230308::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Trocket::V20230308::Client
- Defined in:
- lib/v20230308/client.rb
Instance Method Summary collapse
-
#ChangeMigratingTopicToNextStage(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ChangeMigratingTopicToNextStageResponse. -
#CreateConsumerGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateConsumerGroupResponse. -
#CreateInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateInstanceResponse. -
#CreateMQTTInsPublicEndpoint(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateMQTTInsPublicEndpointResponse. -
#CreateMQTTInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateMQTTInstanceResponse. -
#CreateMQTTTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateMQTTTopicResponse. -
#CreateMQTTUser(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateMQTTUserResponse. -
#CreateRole(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateRoleResponse. -
#CreateTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::CreateTopicResponse. -
#DeleteConsumerGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteConsumerGroupResponse. -
#DeleteInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteInstanceResponse. -
#DeleteMQTTInsPublicEndpoint(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteMQTTInsPublicEndpointResponse. -
#DeleteMQTTInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteMQTTInstanceResponse. -
#DeleteMQTTTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteMQTTTopicResponse. -
#DeleteMQTTUser(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteMQTTUserResponse. -
#DeleteRole(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteRoleResponse. -
#DeleteSmoothMigrationTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteSmoothMigrationTaskResponse. -
#DeleteTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DeleteTopicResponse. -
#DescribeConsumerClient(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeConsumerClientResponse. -
#DescribeConsumerClientList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeConsumerClientListResponse. -
#DescribeConsumerGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeConsumerGroupResponse. -
#DescribeConsumerGroupList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeConsumerGroupListResponse. -
#DescribeConsumerLag(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeConsumerLagResponse. -
#DescribeFusionInstanceList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeFusionInstanceListResponse. -
#DescribeInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeInstanceResponse. -
#DescribeInstanceList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeInstanceListResponse. -
#DescribeMessage(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMessageResponse. -
#DescribeMessageList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMessageListResponse. -
#DescribeMessageTrace(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMessageTraceResponse. -
#DescribeMigratingGroupStats(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMigratingGroupStatsResponse. -
#DescribeMigratingTopicList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMigratingTopicListResponse. -
#DescribeMigratingTopicStats(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMigratingTopicStatsResponse. -
#DescribeMigrationTaskList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMigrationTaskListResponse. -
#DescribeMQTTClient(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTClientResponse. -
#DescribeMQTTInsPublicEndpoints(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTInsPublicEndpointsResponse. -
#DescribeMQTTInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTInstanceResponse. -
#DescribeMQTTInstanceCert(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTInstanceCertResponse. -
#DescribeMQTTInstanceList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTInstanceListResponse. -
#DescribeMQTTInsVPCEndpoints(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTInsVPCEndpointsResponse. -
#DescribeMQTTMessage(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTMessageResponse. -
#DescribeMQTTMessageList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTMessageListResponse. -
#DescribeMQTTProductSKUList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTProductSKUListResponse. -
#DescribeMQTTTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTTopicResponse. -
#DescribeMQTTTopicList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTTopicListResponse. -
#DescribeMQTTUserList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeMQTTUserListResponse. -
#DescribeProducerList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeProducerListResponse. -
#DescribeProductSKUs(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeProductSKUsResponse. -
#DescribeRoleList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeRoleListResponse. -
#DescribeSmoothMigrationTaskList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeSmoothMigrationTaskListResponse. -
#DescribeSourceClusterGroupList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeSourceClusterGroupListResponse. -
#DescribeTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeTopicResponse. -
#DescribeTopicList(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeTopicListResponse. -
#DescribeTopicListByGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DescribeTopicListByGroupResponse. -
#DoHealthCheckOnMigratingTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::DoHealthCheckOnMigratingTopicResponse. -
#ImportSourceClusterConsumerGroups(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ImportSourceClusterConsumerGroupsResponse. -
#ImportSourceClusterTopics(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ImportSourceClusterTopicsResponse. -
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyConsumerGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyConsumerGroupResponse. -
#ModifyInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyInstanceResponse. -
#ModifyInstanceEndpoint(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyInstanceEndpointResponse. -
#ModifyMQTTInsPublicEndpoint(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyMQTTInsPublicEndpointResponse. -
#ModifyMQTTInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyMQTTInstanceResponse. -
#ModifyMQTTInstanceCertBinding(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyMQTTInstanceCertBindingResponse. -
#ModifyMQTTTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyMQTTTopicResponse. -
#ModifyMQTTUser(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyMQTTUserResponse. -
#ModifyRole(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyRoleResponse. -
#ModifyTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ModifyTopicResponse. -
#RemoveMigratingTopic(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::RemoveMigratingTopicResponse. -
#ResendDeadLetterMessage(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ResendDeadLetterMessageResponse. -
#ResetConsumerGroupOffset(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::ResetConsumerGroupOffsetResponse. -
#RollbackMigratingTopicStage(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::RollbackMigratingTopicStageResponse. -
#SendMessage(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::SendMessageResponse. -
#VerifyMessageConsumption(request) ⇒ Object
@rtype: :class:
Tencentcloud::trocket::V20230308::VerifyMessageConsumptionResponse.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20230308/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2023-03-08' api_endpoint = 'trocket.tencentcloudapi.com' sdk_version = 'TROCKET_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#ChangeMigratingTopicToNextStage(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ChangeMigratingTopicToNextStageResponse
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20230308/client.rb', line 37 def ChangeMigratingTopicToNextStage(request) body = send_request('ChangeMigratingTopicToNextStage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ChangeMigratingTopicToNextStageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateConsumerGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateConsumerGroupResponse
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/v20230308/client.rb', line 62 def CreateConsumerGroup(request) body = send_request('CreateConsumerGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateConsumerGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateInstanceResponse
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/v20230308/client.rb', line 87 def CreateInstance(request) body = send_request('CreateInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateMQTTInsPublicEndpoint(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateMQTTInsPublicEndpointResponse
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/v20230308/client.rb', line 113 def CreateMQTTInsPublicEndpoint(request) body = send_request('CreateMQTTInsPublicEndpoint', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMQTTInsPublicEndpointResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateMQTTInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateMQTTInstanceResponse
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/v20230308/client.rb', line 139 def CreateMQTTInstance(request) body = send_request('CreateMQTTInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMQTTInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateMQTTTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateMQTTTopicResponse
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/v20230308/client.rb', line 165 def CreateMQTTTopic(request) body = send_request('CreateMQTTTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMQTTTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateMQTTUser(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateMQTTUserResponse
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/v20230308/client.rb', line 191 def CreateMQTTUser(request) body = send_request('CreateMQTTUser', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMQTTUserResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateRole(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateRoleResponse
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/v20230308/client.rb', line 216 def CreateRole(request) body = send_request('CreateRole', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateRoleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::CreateTopicResponse
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/v20230308/client.rb', line 241 def CreateTopic(request) body = send_request('CreateTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteConsumerGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteConsumerGroupResponse
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/v20230308/client.rb', line 266 def DeleteConsumerGroup(request) body = send_request('DeleteConsumerGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteConsumerGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteInstanceResponse
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/v20230308/client.rb', line 291 def DeleteInstance(request) body = send_request('DeleteInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteMQTTInsPublicEndpoint(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteMQTTInsPublicEndpointResponse
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
# File 'lib/v20230308/client.rb', line 317 def DeleteMQTTInsPublicEndpoint(request) body = send_request('DeleteMQTTInsPublicEndpoint', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMQTTInsPublicEndpointResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteMQTTInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteMQTTInstanceResponse
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/v20230308/client.rb', line 343 def DeleteMQTTInstance(request) body = send_request('DeleteMQTTInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMQTTInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteMQTTTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteMQTTTopicResponse
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 |
# File 'lib/v20230308/client.rb', line 369 def DeleteMQTTTopic(request) body = send_request('DeleteMQTTTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMQTTTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteMQTTUser(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteMQTTUserResponse
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/v20230308/client.rb', line 395 def DeleteMQTTUser(request) body = send_request('DeleteMQTTUser', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMQTTUserResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteRole(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteRoleResponse
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 |
# File 'lib/v20230308/client.rb', line 420 def DeleteRole(request) body = send_request('DeleteRole', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteRoleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteSmoothMigrationTask(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteSmoothMigrationTaskResponse
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/v20230308/client.rb', line 444 def DeleteSmoothMigrationTask(request) body = send_request('DeleteSmoothMigrationTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSmoothMigrationTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DeleteTopicResponse
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/v20230308/client.rb', line 469 def DeleteTopic(request) body = send_request('DeleteTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeConsumerClient(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeConsumerClientResponse
494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 |
# File 'lib/v20230308/client.rb', line 494 def DescribeConsumerClient(request) body = send_request('DescribeConsumerClient', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeConsumerClientResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeConsumerClientList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeConsumerClientListResponse
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/v20230308/client.rb', line 519 def DescribeConsumerClientList(request) body = send_request('DescribeConsumerClientList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeConsumerClientListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeConsumerGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeConsumerGroupResponse
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/v20230308/client.rb', line 544 def DescribeConsumerGroup(request) body = send_request('DescribeConsumerGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeConsumerGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeConsumerGroupList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeConsumerGroupListResponse
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/v20230308/client.rb', line 577 def DescribeConsumerGroupList(request) body = send_request('DescribeConsumerGroupList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeConsumerGroupListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeConsumerLag(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeConsumerLagResponse
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 |
# File 'lib/v20230308/client.rb', line 602 def DescribeConsumerLag(request) body = send_request('DescribeConsumerLag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeConsumerLagResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeFusionInstanceList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeFusionInstanceListResponse
636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 |
# File 'lib/v20230308/client.rb', line 636 def DescribeFusionInstanceList(request) body = send_request('DescribeFusionInstanceList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFusionInstanceListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeInstanceResponse
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 |
# File 'lib/v20230308/client.rb', line 661 def DescribeInstance(request) body = send_request('DescribeInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstanceList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeInstanceListResponse
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 |
# File 'lib/v20230308/client.rb', line 696 def DescribeInstanceList(request) body = send_request('DescribeInstanceList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstanceListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMessage(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMessageResponse
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 |
# File 'lib/v20230308/client.rb', line 1044 def DescribeMessage(request) body = send_request('DescribeMessage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMessageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMessageList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMessageListResponse
1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 |
# File 'lib/v20230308/client.rb', line 1069 def DescribeMessageList(request) body = send_request('DescribeMessageList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMessageListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMessageTrace(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMessageTraceResponse
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 |
# File 'lib/v20230308/client.rb', line 1094 def DescribeMessageTrace(request) body = send_request('DescribeMessageTrace', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMessageTraceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMigratingGroupStats(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMigratingGroupStatsResponse
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 |
# File 'lib/v20230308/client.rb', line 1118 def DescribeMigratingGroupStats(request) body = send_request('DescribeMigratingGroupStats', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMigratingGroupStatsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMigratingTopicList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMigratingTopicListResponse
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 |
# File 'lib/v20230308/client.rb', line 1153 def DescribeMigratingTopicList(request) body = send_request('DescribeMigratingTopicList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMigratingTopicListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMigratingTopicStats(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMigratingTopicStatsResponse
1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/v20230308/client.rb', line 1177 def DescribeMigratingTopicStats(request) body = send_request('DescribeMigratingTopicStats', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMigratingTopicStatsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMigrationTaskList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMigrationTaskListResponse
1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 |
# File 'lib/v20230308/client.rb', line 1205 def DescribeMigrationTaskList(request) body = send_request('DescribeMigrationTaskList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMigrationTaskListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTClient(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTClientResponse
722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 |
# File 'lib/v20230308/client.rb', line 722 def DescribeMQTTClient(request) body = send_request('DescribeMQTTClient', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTClientResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTInsPublicEndpoints(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTInsPublicEndpointsResponse
748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 |
# File 'lib/v20230308/client.rb', line 748 def DescribeMQTTInsPublicEndpoints(request) body = send_request('DescribeMQTTInsPublicEndpoints', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTInsPublicEndpointsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTInstanceResponse
800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 |
# File 'lib/v20230308/client.rb', line 800 def DescribeMQTTInstance(request) body = send_request('DescribeMQTTInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTInstanceCert(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTInstanceCertResponse
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 |
# File 'lib/v20230308/client.rb', line 826 def DescribeMQTTInstanceCert(request) body = send_request('DescribeMQTTInstanceCert', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTInstanceCertResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTInstanceList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTInstanceListResponse
858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 |
# File 'lib/v20230308/client.rb', line 858 def DescribeMQTTInstanceList(request) body = send_request('DescribeMQTTInstanceList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTInstanceListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTInsVPCEndpoints(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTInsVPCEndpointsResponse
774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 |
# File 'lib/v20230308/client.rb', line 774 def DescribeMQTTInsVPCEndpoints(request) body = send_request('DescribeMQTTInsVPCEndpoints', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTInsVPCEndpointsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTMessage(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTMessageResponse
884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 |
# File 'lib/v20230308/client.rb', line 884 def DescribeMQTTMessage(request) body = send_request('DescribeMQTTMessage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTMessageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTMessageList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTMessageListResponse
910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 |
# File 'lib/v20230308/client.rb', line 910 def DescribeMQTTMessageList(request) body = send_request('DescribeMQTTMessageList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTMessageListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTProductSKUList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTProductSKUListResponse
936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 |
# File 'lib/v20230308/client.rb', line 936 def DescribeMQTTProductSKUList(request) body = send_request('DescribeMQTTProductSKUList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTProductSKUListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTTopicResponse
962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 |
# File 'lib/v20230308/client.rb', line 962 def DescribeMQTTTopic(request) body = send_request('DescribeMQTTTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTTopicList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTTopicListResponse
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 |
# File 'lib/v20230308/client.rb', line 991 def DescribeMQTTTopicList(request) body = send_request('DescribeMQTTTopicList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTTopicListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeMQTTUserList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeMQTTUserListResponse
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 |
# File 'lib/v20230308/client.rb', line 1019 def DescribeMQTTUserList(request) body = send_request('DescribeMQTTUserList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMQTTUserListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeProducerList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeProducerListResponse
1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 |
# File 'lib/v20230308/client.rb', line 1232 def DescribeProducerList(request) body = send_request('DescribeProducerList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProducerListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeProductSKUs(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeProductSKUsResponse
1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 |
# File 'lib/v20230308/client.rb', line 1256 def DescribeProductSKUs(request) body = send_request('DescribeProductSKUs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProductSKUsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeRoleList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeRoleListResponse
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 |
# File 'lib/v20230308/client.rb', line 1287 def DescribeRoleList(request) body = send_request('DescribeRoleList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRoleListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeSmoothMigrationTaskList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeSmoothMigrationTaskListResponse
1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 |
# File 'lib/v20230308/client.rb', line 1323 def DescribeSmoothMigrationTaskList(request) body = send_request('DescribeSmoothMigrationTaskList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSmoothMigrationTaskListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeSourceClusterGroupList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeSourceClusterGroupListResponse
1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 |
# File 'lib/v20230308/client.rb', line 1359 def DescribeSourceClusterGroupList(request) body = send_request('DescribeSourceClusterGroupList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSourceClusterGroupListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeTopicResponse
1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 |
# File 'lib/v20230308/client.rb', line 1388 def DescribeTopic(request) body = send_request('DescribeTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTopicList(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeTopicListResponse
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 |
# File 'lib/v20230308/client.rb', line 1419 def DescribeTopicList(request) body = send_request('DescribeTopicList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTopicListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTopicListByGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DescribeTopicListByGroupResponse
1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 |
# File 'lib/v20230308/client.rb', line 1449 def DescribeTopicListByGroup(request) body = send_request('DescribeTopicListByGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTopicListByGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DoHealthCheckOnMigratingTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::DoHealthCheckOnMigratingTopicResponse
1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 |
# File 'lib/v20230308/client.rb', line 1473 def DoHealthCheckOnMigratingTopic(request) body = send_request('DoHealthCheckOnMigratingTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DoHealthCheckOnMigratingTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ImportSourceClusterConsumerGroups(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ImportSourceClusterConsumerGroupsResponse
1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'lib/v20230308/client.rb', line 1497 def ImportSourceClusterConsumerGroups(request) body = send_request('ImportSourceClusterConsumerGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ImportSourceClusterConsumerGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ImportSourceClusterTopics(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ImportSourceClusterTopicsResponse
1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 |
# File 'lib/v20230308/client.rb', line 1521 def ImportSourceClusterTopics(request) body = send_request('ImportSourceClusterTopics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ImportSourceClusterTopicsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyConsumerGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyConsumerGroupResponse
1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 |
# File 'lib/v20230308/client.rb', line 1546 def ModifyConsumerGroup(request) body = send_request('ModifyConsumerGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyConsumerGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyInstanceResponse
1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 |
# File 'lib/v20230308/client.rb', line 1571 def ModifyInstance(request) body = send_request('ModifyInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstanceEndpoint(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyInstanceEndpointResponse
1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 |
# File 'lib/v20230308/client.rb', line 1595 def ModifyInstanceEndpoint(request) body = send_request('ModifyInstanceEndpoint', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstanceEndpointResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyMQTTInsPublicEndpoint(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyMQTTInsPublicEndpointResponse
1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 |
# File 'lib/v20230308/client.rb', line 1621 def ModifyMQTTInsPublicEndpoint(request) body = send_request('ModifyMQTTInsPublicEndpoint', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMQTTInsPublicEndpointResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyMQTTInstance(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyMQTTInstanceResponse
1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 |
# File 'lib/v20230308/client.rb', line 1647 def ModifyMQTTInstance(request) body = send_request('ModifyMQTTInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMQTTInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyMQTTInstanceCertBinding(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyMQTTInstanceCertBindingResponse
1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 |
# File 'lib/v20230308/client.rb', line 1674 def ModifyMQTTInstanceCertBinding(request) body = send_request('ModifyMQTTInstanceCertBinding', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMQTTInstanceCertBindingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyMQTTTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyMQTTTopicResponse
1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'lib/v20230308/client.rb', line 1700 def ModifyMQTTTopic(request) body = send_request('ModifyMQTTTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMQTTTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyMQTTUser(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyMQTTUserResponse
1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 |
# File 'lib/v20230308/client.rb', line 1726 def ModifyMQTTUser(request) body = send_request('ModifyMQTTUser', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMQTTUserResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyRole(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyRoleResponse
1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 |
# File 'lib/v20230308/client.rb', line 1751 def ModifyRole(request) body = send_request('ModifyRole', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyRoleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ModifyTopicResponse
1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 |
# File 'lib/v20230308/client.rb', line 1776 def ModifyTopic(request) body = send_request('ModifyTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RemoveMigratingTopic(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::RemoveMigratingTopicResponse
1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 |
# File 'lib/v20230308/client.rb', line 1800 def RemoveMigratingTopic(request) body = send_request('RemoveMigratingTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RemoveMigratingTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResendDeadLetterMessage(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ResendDeadLetterMessageResponse
1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 |
# File 'lib/v20230308/client.rb', line 1825 def ResendDeadLetterMessage(request) body = send_request('ResendDeadLetterMessage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResendDeadLetterMessageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResetConsumerGroupOffset(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::ResetConsumerGroupOffsetResponse
1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'lib/v20230308/client.rb', line 1850 def ResetConsumerGroupOffset(request) body = send_request('ResetConsumerGroupOffset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetConsumerGroupOffsetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RollbackMigratingTopicStage(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::RollbackMigratingTopicStageResponse
1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 |
# File 'lib/v20230308/client.rb', line 1874 def RollbackMigratingTopicStage(request) body = send_request('RollbackMigratingTopicStage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RollbackMigratingTopicStageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SendMessage(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::SendMessageResponse
1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 |
# File 'lib/v20230308/client.rb', line 1899 def SendMessage(request) body = send_request('SendMessage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SendMessageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VerifyMessageConsumption(request) ⇒ Object
@rtype: :class:Tencentcloud::trocket::V20230308::VerifyMessageConsumptionResponse
1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 |
# File 'lib/v20230308/client.rb', line 1924 def VerifyMessageConsumption(request) body = send_request('VerifyMessageConsumption', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VerifyMessageConsumptionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |