tencentcloud-sdk-trocket 3.0.1074 → 3.0.1086

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: 48a5755779cb105fdccd6c6f71b36ce5da1a2ee1
4
- data.tar.gz: 85ecc4ea2ae93b6ca018721711fe69815e01d20e
3
+ metadata.gz: c340355f9aa485cbefdcb798fff48b458c026496
4
+ data.tar.gz: ec3ece722893e4b2da9c1c8c2dcc9f125ab0f5ae
5
5
  SHA512:
6
- metadata.gz: 4889c646dcd9b5335b3414d3679e2dbc9c7acb2aa2ed7d077ff5ccae3cb8e124197324dd7e6e1031fa1eea5030d841bd08595c74c781595c7b9eb21be992875e
7
- data.tar.gz: a340cd5073c0e379efbb2e8b6f8f74613e61093d37944803c9e4accd669550c19c7e46b006e9e556ff9d0769af8b420db13c901ab42ac3f1af8c95f36bfe3532
6
+ metadata.gz: 1a295cebf142d6fbc0f51d1d2accf0fc617ab1990a9d16404c043970fc5ac0b533f9f8020ae8cf4f43242ac6142d52f5eedc2ebbb3c65bc6a7af1e7fb359b00c
7
+ data.tar.gz: 623d285a96d30db317df17ce2291f348d77a06c1197e54da7472e7e42e49732d9eee62aa3e5272ea1b651cb896889b4f78b1da90ef09b1d4f7b2a3c65c5bc0e3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1074
1
+ 3.0.1086
@@ -1087,6 +1087,34 @@ module TencentCloud
1087
1087
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1088
1088
  end
1089
1089
 
1090
+ # 获取数据迁移任务列表,Filter参数使用说明如下:
1091
+
1092
+ # TaskId,根据任务ID精确查找
1093
+ # InstanceId,根据实例ID精确查找
1094
+ # Type,根据任务类型精确查找
1095
+
1096
+ # @param request: Request instance for DescribeMigrationTaskList.
1097
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMigrationTaskListRequest`
1098
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMigrationTaskListResponse`
1099
+ def DescribeMigrationTaskList(request)
1100
+ body = send_request('DescribeMigrationTaskList', request.serialize)
1101
+ response = JSON.parse(body)
1102
+ if response['Response'].key?('Error') == false
1103
+ model = DescribeMigrationTaskListResponse.new
1104
+ model.deserialize(response['Response'])
1105
+ model
1106
+ else
1107
+ code = response['Response']['Error']['Code']
1108
+ message = response['Response']['Error']['Message']
1109
+ reqid = response['Response']['RequestId']
1110
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1111
+ end
1112
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1113
+ raise e
1114
+ rescue StandardError => e
1115
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1116
+ end
1117
+
1090
1118
  # 查询产品售卖规格,针对 RocketMQ 5.x 集群。
1091
1119
 
1092
1120
  # @param request: Request instance for DescribeProductSKUs.
@@ -1138,6 +1166,36 @@ module TencentCloud
1138
1166
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1139
1167
  end
1140
1168
 
1169
+ # 用于查询平滑迁移任务列表
1170
+
1171
+ # 查询参数Filters, 支持的字段如下:
1172
+ # TaskStatus, 支持多选
1173
+ # ConnectionType,支持多选
1174
+ # InstanceId,精确搜索
1175
+ # TaskName,支持模糊搜索
1176
+
1177
+ # @param request: Request instance for DescribeSmoothMigrationTaskList.
1178
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeSmoothMigrationTaskListRequest`
1179
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeSmoothMigrationTaskListResponse`
1180
+ def DescribeSmoothMigrationTaskList(request)
1181
+ body = send_request('DescribeSmoothMigrationTaskList', request.serialize)
1182
+ response = JSON.parse(body)
1183
+ if response['Response'].key?('Error') == false
1184
+ model = DescribeSmoothMigrationTaskListResponse.new
1185
+ model.deserialize(response['Response'])
1186
+ model
1187
+ else
1188
+ code = response['Response']['Error']['Code']
1189
+ message = response['Response']['Error']['Message']
1190
+ reqid = response['Response']['RequestId']
1191
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1192
+ end
1193
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1194
+ raise e
1195
+ rescue StandardError => e
1196
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1197
+ end
1198
+
1141
1199
  # 平滑迁移过程获取源集群group列表接口
1142
1200
 
1143
1201
  # 查询过滤器,支持字段
@@ -2953,6 +2953,69 @@ module TencentCloud
2953
2953
  end
2954
2954
  end
2955
2955
 
2956
+ # DescribeMigrationTaskList请求参数结构体
2957
+ class DescribeMigrationTaskListRequest < TencentCloud::Common::AbstractModel
2958
+ # @param Filters: 查询条件列表
2959
+ # @type Filters: Array
2960
+ # @param Offset: 查询起始位置
2961
+ # @type Offset: Integer
2962
+ # @param Limit: 查询结果限制数量
2963
+ # @type Limit: Integer
2964
+
2965
+ attr_accessor :Filters, :Offset, :Limit
2966
+
2967
+ def initialize(filters=nil, offset=nil, limit=nil)
2968
+ @Filters = filters
2969
+ @Offset = offset
2970
+ @Limit = limit
2971
+ end
2972
+
2973
+ def deserialize(params)
2974
+ unless params['Filters'].nil?
2975
+ @Filters = []
2976
+ params['Filters'].each do |i|
2977
+ filter_tmp = Filter.new
2978
+ filter_tmp.deserialize(i)
2979
+ @Filters << filter_tmp
2980
+ end
2981
+ end
2982
+ @Offset = params['Offset']
2983
+ @Limit = params['Limit']
2984
+ end
2985
+ end
2986
+
2987
+ # DescribeMigrationTaskList返回参数结构体
2988
+ class DescribeMigrationTaskListResponse < TencentCloud::Common::AbstractModel
2989
+ # @param TotalCount: 查询总数
2990
+ # @type TotalCount: Integer
2991
+ # @param Tasks: 迁移任务列表
2992
+ # 注意:此字段可能返回 null,表示取不到有效值。
2993
+ # @type Tasks: Array
2994
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2995
+ # @type RequestId: String
2996
+
2997
+ attr_accessor :TotalCount, :Tasks, :RequestId
2998
+
2999
+ def initialize(totalcount=nil, tasks=nil, requestid=nil)
3000
+ @TotalCount = totalcount
3001
+ @Tasks = tasks
3002
+ @RequestId = requestid
3003
+ end
3004
+
3005
+ def deserialize(params)
3006
+ @TotalCount = params['TotalCount']
3007
+ unless params['Tasks'].nil?
3008
+ @Tasks = []
3009
+ params['Tasks'].each do |i|
3010
+ migrationtaskitem_tmp = MigrationTaskItem.new
3011
+ migrationtaskitem_tmp.deserialize(i)
3012
+ @Tasks << migrationtaskitem_tmp
3013
+ end
3014
+ end
3015
+ @RequestId = params['RequestId']
3016
+ end
3017
+ end
3018
+
2956
3019
  # DescribeProductSKUs请求参数结构体
2957
3020
  class DescribeProductSKUsRequest < TencentCloud::Common::AbstractModel
2958
3021
 
@@ -3058,6 +3121,70 @@ module TencentCloud
3058
3121
  end
3059
3122
  end
3060
3123
 
3124
+ # DescribeSmoothMigrationTaskList请求参数结构体
3125
+ class DescribeSmoothMigrationTaskListRequest < TencentCloud::Common::AbstractModel
3126
+ # @param Offset: 查询起始位置
3127
+ # @type Offset: Integer
3128
+ # @param Limit: 查询结果限制数量
3129
+ # @type Limit: Integer
3130
+ # @param Filters: 查询条件列表
3131
+ # @type Filters: Array
3132
+
3133
+ attr_accessor :Offset, :Limit, :Filters
3134
+
3135
+ def initialize(offset=nil, limit=nil, filters=nil)
3136
+ @Offset = offset
3137
+ @Limit = limit
3138
+ @Filters = filters
3139
+ end
3140
+
3141
+ def deserialize(params)
3142
+ @Offset = params['Offset']
3143
+ @Limit = params['Limit']
3144
+ unless params['Filters'].nil?
3145
+ @Filters = []
3146
+ params['Filters'].each do |i|
3147
+ filter_tmp = Filter.new
3148
+ filter_tmp.deserialize(i)
3149
+ @Filters << filter_tmp
3150
+ end
3151
+ end
3152
+ end
3153
+ end
3154
+
3155
+ # DescribeSmoothMigrationTaskList返回参数结构体
3156
+ class DescribeSmoothMigrationTaskListResponse < TencentCloud::Common::AbstractModel
3157
+ # @param TotalCount: 查询总数
3158
+ # 注意:此字段可能返回 null,表示取不到有效值。
3159
+ # @type TotalCount: Integer
3160
+ # @param Data: 任务列表
3161
+ # 注意:此字段可能返回 null,表示取不到有效值。
3162
+ # @type Data: Array
3163
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3164
+ # @type RequestId: String
3165
+
3166
+ attr_accessor :TotalCount, :Data, :RequestId
3167
+
3168
+ def initialize(totalcount=nil, data=nil, requestid=nil)
3169
+ @TotalCount = totalcount
3170
+ @Data = data
3171
+ @RequestId = requestid
3172
+ end
3173
+
3174
+ def deserialize(params)
3175
+ @TotalCount = params['TotalCount']
3176
+ unless params['Data'].nil?
3177
+ @Data = []
3178
+ params['Data'].each do |i|
3179
+ smoothmigrationtaskitem_tmp = SmoothMigrationTaskItem.new
3180
+ smoothmigrationtaskitem_tmp.deserialize(i)
3181
+ @Data << smoothmigrationtaskitem_tmp
3182
+ end
3183
+ end
3184
+ @RequestId = params['RequestId']
3185
+ end
3186
+ end
3187
+
3061
3188
  # DescribeSourceClusterGroupList请求参数结构体
3062
3189
  class DescribeSourceClusterGroupListRequest < TencentCloud::Common::AbstractModel
3063
3190
  # @param TaskId: 任务ID
@@ -4406,7 +4533,12 @@ module TencentCloud
4406
4533
  class MigratingTopic < TencentCloud::Common::AbstractModel
4407
4534
  # @param TopicName: 主题名称
4408
4535
  # @type TopicName: String
4409
- # @param MigrationStatus: 迁移状态 S_RW_D_NA 源集群读写 S_RW_D_R 源集群读写目标集群读 S_RW_D_RW 源集群读写目标集群读写 S_R_D_RW 源集群读目标集群读写 S_NA_D_RW 目标集群读写
4536
+ # @param MigrationStatus: 迁移状态
4537
+ # S_RW_D_NA 源集群读写,
4538
+ # S_RW_D_R 源集群读写目标集群读,
4539
+ # S_RW_D_RW 源集群读写目标集群读写,
4540
+ # S_R_D_RW 源集群读目标集群读写,
4541
+ # S_NA_D_RW 目标集群读写
4410
4542
  # @type MigrationStatus: String
4411
4543
  # @param HealthCheckPassed: 是否完成健康检查
4412
4544
  # @type HealthCheckPassed: Boolean
@@ -4453,6 +4585,47 @@ module TencentCloud
4453
4585
  end
4454
4586
  end
4455
4587
 
4588
+ # 迁移任务信息
4589
+ class MigrationTaskItem < TencentCloud::Common::AbstractModel
4590
+ # @param TaskId: 任务ID
4591
+ # @type TaskId: String
4592
+ # @param InstanceId: 实例ID
4593
+ # @type InstanceId: String
4594
+ # @param Type: 0 - 未指定(存量)
4595
+ # 1 - 元数据导入
4596
+ # @type Type: Integer
4597
+ # @param TopicNum: 主题总数
4598
+ # @type TopicNum: Integer
4599
+ # @param GroupNum: 消费组总数
4600
+ # @type GroupNum: Integer
4601
+ # @param Status: 任务状态: 0,迁移中 1,迁移成功 2,迁移完成,只有部分数据完成迁移
4602
+ # @type Status: Integer
4603
+ # @param CreateTime: 创建时间
4604
+ # @type CreateTime: Integer
4605
+
4606
+ attr_accessor :TaskId, :InstanceId, :Type, :TopicNum, :GroupNum, :Status, :CreateTime
4607
+
4608
+ def initialize(taskid=nil, instanceid=nil, type=nil, topicnum=nil, groupnum=nil, status=nil, createtime=nil)
4609
+ @TaskId = taskid
4610
+ @InstanceId = instanceid
4611
+ @Type = type
4612
+ @TopicNum = topicnum
4613
+ @GroupNum = groupnum
4614
+ @Status = status
4615
+ @CreateTime = createtime
4616
+ end
4617
+
4618
+ def deserialize(params)
4619
+ @TaskId = params['TaskId']
4620
+ @InstanceId = params['InstanceId']
4621
+ @Type = params['Type']
4622
+ @TopicNum = params['TopicNum']
4623
+ @GroupNum = params['GroupNum']
4624
+ @Status = params['Status']
4625
+ @CreateTime = params['CreateTime']
4626
+ end
4627
+ end
4628
+
4456
4629
  # ModifyConsumerGroup请求参数结构体
4457
4630
  class ModifyConsumerGroupRequest < TencentCloud::Common::AbstractModel
4458
4631
  # @param InstanceId: 集群ID
@@ -5344,6 +5517,63 @@ module TencentCloud
5344
5517
  end
5345
5518
  end
5346
5519
 
5520
+ # 平滑迁移任务
5521
+ class SmoothMigrationTaskItem < TencentCloud::Common::AbstractModel
5522
+ # @param TaskId: 任务ID
5523
+ # 注意:此字段可能返回 null,表示取不到有效值。
5524
+ # @type TaskId: String
5525
+ # @param TaskName: 任务名称
5526
+ # 注意:此字段可能返回 null,表示取不到有效值。
5527
+ # @type TaskName: String
5528
+ # @param SourceClusterName: 源集群名称
5529
+ # 注意:此字段可能返回 null,表示取不到有效值。
5530
+ # @type SourceClusterName: String
5531
+ # @param InstanceId: 目标集群实例ID
5532
+ # 注意:此字段可能返回 null,表示取不到有效值。
5533
+ # @type InstanceId: String
5534
+ # @param ConnectionType: 网络连接类型,
5535
+ # PUBLIC 公网
5536
+ # VPC 私有网络
5537
+ # OTHER 其他
5538
+ # 注意:此字段可能返回 null,表示取不到有效值。
5539
+ # @type ConnectionType: String
5540
+ # @param SourceNameServer: 源集群NameServer地址
5541
+ # 注意:此字段可能返回 null,表示取不到有效值。
5542
+ # @type SourceNameServer: String
5543
+ # @param TaskStatus: 任务状态 Configuration 迁移配置 SourceConnecting 连接源集群中 MetaDataImport 元数据导入 EndpointSetup 切换接入点 ServiceMigration 切流中 Completed 已完成 Cancelled 已取消
5544
+ # 注意:此字段可能返回 null,表示取不到有效值。
5545
+ # @type TaskStatus: String
5546
+ # @param InstanceVersion: 目标集群实例版本,
5547
+ # 4 表示4.x版本
5548
+ # 5 表示5.x版本
5549
+ # 注意:此字段可能返回 null,表示取不到有效值。
5550
+ # @type InstanceVersion: String
5551
+
5552
+ attr_accessor :TaskId, :TaskName, :SourceClusterName, :InstanceId, :ConnectionType, :SourceNameServer, :TaskStatus, :InstanceVersion
5553
+
5554
+ def initialize(taskid=nil, taskname=nil, sourceclustername=nil, instanceid=nil, connectiontype=nil, sourcenameserver=nil, taskstatus=nil, instanceversion=nil)
5555
+ @TaskId = taskid
5556
+ @TaskName = taskname
5557
+ @SourceClusterName = sourceclustername
5558
+ @InstanceId = instanceid
5559
+ @ConnectionType = connectiontype
5560
+ @SourceNameServer = sourcenameserver
5561
+ @TaskStatus = taskstatus
5562
+ @InstanceVersion = instanceversion
5563
+ end
5564
+
5565
+ def deserialize(params)
5566
+ @TaskId = params['TaskId']
5567
+ @TaskName = params['TaskName']
5568
+ @SourceClusterName = params['SourceClusterName']
5569
+ @InstanceId = params['InstanceId']
5570
+ @ConnectionType = params['ConnectionType']
5571
+ @SourceNameServer = params['SourceNameServer']
5572
+ @TaskStatus = params['TaskStatus']
5573
+ @InstanceVersion = params['InstanceVersion']
5574
+ end
5575
+ end
5576
+
5347
5577
  # 消费组配置信息
5348
5578
  class SourceClusterGroupConfig < TencentCloud::Common::AbstractModel
5349
5579
  # @param GroupName: 消费组名称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1074
4
+ version: 3.0.1086
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-06-04 00:00:00.000000000 Z
11
+ date: 2025-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common