tencentcloud-sdk-tdmq 3.0.1119 → 3.0.1127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d0c687c418c650f1736af5a425076e6e8f46d61
4
- data.tar.gz: a747b84f09ce12ca4ec22c1e581b018589cebc20
3
+ metadata.gz: 764d7c9b577a8aa0123cb6dac19994cb490e5498
4
+ data.tar.gz: bffb131befa38fe2bdf1f1acce4f4994bdb9f230
5
5
  SHA512:
6
- metadata.gz: a10d007cb0aed09bdacf991bb3d69df4c8a7cf527f4de4eb1d152697462d2dadda4184f5d5b420b99533eeb68d5a11c0395e0194c4f321064490bad6b2c080e6
7
- data.tar.gz: 0e6af63ff106a012c77c428612037aeceb005514c89e18901793055602d55a365d4cf2e0ae15d65a9da20acf33470693a97f82009474229635063ed9c79b5da8
6
+ metadata.gz: eb836cc37892f135c5116b958b618555ca3d2bd28f743e737328a5da79628d13351524dddd46bf74568045942922f704a7ca115b747d7a430dc5b3f60064794d
7
+ data.tar.gz: ea4d40e6609467f44bc5f968a2256a2b6675da6bac3fd49343c60d4b79c4fb2245c2d78a3c3fc032eae23a3d527191151acfee6b9959d307a9ddfe27043c8c20
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1119
1
+ 3.0.1127
@@ -2653,6 +2653,30 @@ module TencentCloud
2653
2653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2654
2654
  end
2655
2655
 
2656
+ # 执行域名异地访问切换,域名的访问指向将切换至备份集群。
2657
+
2658
+ # @param request: Request instance for ExecuteDisasterRecovery.
2659
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::ExecuteDisasterRecoveryRequest`
2660
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::ExecuteDisasterRecoveryResponse`
2661
+ def ExecuteDisasterRecovery(request)
2662
+ body = send_request('ExecuteDisasterRecovery', request.serialize)
2663
+ response = JSON.parse(body)
2664
+ if response['Response'].key?('Error') == false
2665
+ model = ExecuteDisasterRecoveryResponse.new
2666
+ model.deserialize(response['Response'])
2667
+ model
2668
+ else
2669
+ code = response['Response']['Error']['Code']
2670
+ message = response['Response']['Error']['Message']
2671
+ reqid = response['Response']['RequestId']
2672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2673
+ end
2674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2675
+ raise e
2676
+ rescue StandardError => e
2677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2678
+ end
2679
+
2656
2680
  # 导出RocketMQ消息详情
2657
2681
 
2658
2682
  # @param request: Request instance for ExportRocketMQMessageDetail.
@@ -3515,7 +3539,7 @@ module TencentCloud
3515
3539
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3516
3540
  end
3517
3541
 
3518
- # 发送RocketMQ消息
3542
+ # 发送 RocketMQ 消息,该接口仅用于控制台发送少量测试消息,不保证SLA,且云 API 存在限流,在真实业务场景下,请使用 RocketMQ SDK 发送消息。
3519
3543
 
3520
3544
  # @param request: Request instance for SendRocketMQMessage.
3521
3545
  # @type request: :class:`Tencentcloud::tdmq::V20200217::SendRocketMQMessageRequest`
@@ -4174,14 +4174,14 @@ module TencentCloud
4174
4174
 
4175
4175
  # DescribeEnvironmentRoles请求参数结构体
4176
4176
  class DescribeEnvironmentRolesRequest < TencentCloud::Common::AbstractModel
4177
- # @param EnvironmentId: 必填字段,环境(命名空间)名称。
4177
+ # @param ClusterId: Pulsar 集群的ID
4178
+ # @type ClusterId: String
4179
+ # @param EnvironmentId: 环境(命名空间)名称。
4178
4180
  # @type EnvironmentId: String
4179
4181
  # @param Offset: 起始下标,不填默认为0。
4180
4182
  # @type Offset: Integer
4181
4183
  # @param Limit: 返回数量,不填则默认为10,最大值为20。
4182
4184
  # @type Limit: Integer
4183
- # @param ClusterId: 必填字段,Pulsar 集群的ID
4184
- # @type ClusterId: String
4185
4185
  # @param RoleName: 角色名称
4186
4186
  # @type RoleName: String
4187
4187
  # @param Filters: * RoleName
@@ -4190,22 +4190,22 @@ module TencentCloud
4190
4190
  # 必选:否
4191
4191
  # @type Filters: Array
4192
4192
 
4193
- attr_accessor :EnvironmentId, :Offset, :Limit, :ClusterId, :RoleName, :Filters
4193
+ attr_accessor :ClusterId, :EnvironmentId, :Offset, :Limit, :RoleName, :Filters
4194
4194
 
4195
- def initialize(environmentid=nil, offset=nil, limit=nil, clusterid=nil, rolename=nil, filters=nil)
4195
+ def initialize(clusterid=nil, environmentid=nil, offset=nil, limit=nil, rolename=nil, filters=nil)
4196
+ @ClusterId = clusterid
4196
4197
  @EnvironmentId = environmentid
4197
4198
  @Offset = offset
4198
4199
  @Limit = limit
4199
- @ClusterId = clusterid
4200
4200
  @RoleName = rolename
4201
4201
  @Filters = filters
4202
4202
  end
4203
4203
 
4204
4204
  def deserialize(params)
4205
+ @ClusterId = params['ClusterId']
4205
4206
  @EnvironmentId = params['EnvironmentId']
4206
4207
  @Offset = params['Offset']
4207
4208
  @Limit = params['Limit']
4208
- @ClusterId = params['ClusterId']
4209
4209
  @RoleName = params['RoleName']
4210
4210
  unless params['Filters'].nil?
4211
4211
  @Filters = []
@@ -8222,6 +8222,33 @@ module TencentCloud
8222
8222
  end
8223
8223
  end
8224
8224
 
8225
+ # ExecuteDisasterRecovery请求参数结构体
8226
+ class ExecuteDisasterRecoveryRequest < TencentCloud::Common::AbstractModel
8227
+
8228
+
8229
+ def initialize()
8230
+ end
8231
+
8232
+ def deserialize(params)
8233
+ end
8234
+ end
8235
+
8236
+ # ExecuteDisasterRecovery返回参数结构体
8237
+ class ExecuteDisasterRecoveryResponse < TencentCloud::Common::AbstractModel
8238
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8239
+ # @type RequestId: String
8240
+
8241
+ attr_accessor :RequestId
8242
+
8243
+ def initialize(requestid=nil)
8244
+ @RequestId = requestid
8245
+ end
8246
+
8247
+ def deserialize(params)
8248
+ @RequestId = params['RequestId']
8249
+ end
8250
+ end
8251
+
8225
8252
  # ExportRocketMQMessageDetail请求参数结构体
8226
8253
  class ExportRocketMQMessageDetailRequest < TencentCloud::Common::AbstractModel
8227
8254
  # @param ClusterId: 集群id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tdmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1119
4
+ version: 3.0.1127
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-06 00:00:00.000000000 Z
11
+ date: 2025-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common