tencentcloud-sdk-trocket 3.0.833 → 3.0.835
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20230308/client.rb +29 -0
- data/lib/v20230308/models.rb +263 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ade8204d3e01b88f5dc4c31cf9c7724d2a4fe025
|
4
|
+
data.tar.gz: adbccd4f1bad4bf5c378b4f0dc3d9daf954a9bbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26c1d50998a8ede57df417b73db63563349bd937d57a8f5dd38aab6565c487caa676d6306ac60cd010dbc39e4afb6b89ec1e2f96e4af63fdb5c7ed84a98493db
|
7
|
+
data.tar.gz: 8b95419e9cf112a0a44c19abbb3c9dd075e4d385fd8e77a7ba4f72dd2677c7d3964a823b23799520dd343a00e27a54cc1f3e6b3e60ba683f2cf2a4d6896a79d4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.835
|
data/lib/v20230308/client.rb
CHANGED
@@ -464,6 +464,35 @@ module TencentCloud
|
|
464
464
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
465
465
|
end
|
466
466
|
|
467
|
+
# 获取实例列表,Filters参数使用说明如下:
|
468
|
+
# 1. InstanceName, 名称模糊查询
|
469
|
+
# 2. InstanceId,实例ID查询
|
470
|
+
# 3. InstanceType, 实例类型查询,支持多选
|
471
|
+
# 4. Version,实例版本查询
|
472
|
+
# 当使用TagFilters查询时,Filters参数失效。
|
473
|
+
|
474
|
+
# @param request: Request instance for DescribeFusionInstanceList.
|
475
|
+
# @type request: :class:`Tencentcloud::trocket::V20230308::DescribeFusionInstanceListRequest`
|
476
|
+
# @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeFusionInstanceListResponse`
|
477
|
+
def DescribeFusionInstanceList(request)
|
478
|
+
body = send_request('DescribeFusionInstanceList', request.serialize)
|
479
|
+
response = JSON.parse(body)
|
480
|
+
if response['Response'].key?('Error') == false
|
481
|
+
model = DescribeFusionInstanceListResponse.new
|
482
|
+
model.deserialize(response['Response'])
|
483
|
+
model
|
484
|
+
else
|
485
|
+
code = response['Response']['Error']['Code']
|
486
|
+
message = response['Response']['Error']['Message']
|
487
|
+
reqid = response['Response']['RequestId']
|
488
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
489
|
+
end
|
490
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
491
|
+
raise e
|
492
|
+
rescue StandardError => e
|
493
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
494
|
+
end
|
495
|
+
|
467
496
|
# 查询实例信息
|
468
497
|
|
469
498
|
# @param request: Request instance for DescribeInstance.
|
data/lib/v20230308/models.rb
CHANGED
@@ -1057,6 +1057,80 @@ module TencentCloud
|
|
1057
1057
|
end
|
1058
1058
|
end
|
1059
1059
|
|
1060
|
+
# DescribeFusionInstanceList请求参数结构体
|
1061
|
+
class DescribeFusionInstanceListRequest < TencentCloud::Common::AbstractModel
|
1062
|
+
# @param Offset: 查询起始位置
|
1063
|
+
# @type Offset: Integer
|
1064
|
+
# @param Limit: 查询结果限制数量
|
1065
|
+
# @type Limit: Integer
|
1066
|
+
# @param Filters: 查询条件列表
|
1067
|
+
# @type Filters: Array
|
1068
|
+
# @param TagFilters: 标签过滤器
|
1069
|
+
# @type TagFilters: Array
|
1070
|
+
|
1071
|
+
attr_accessor :Offset, :Limit, :Filters, :TagFilters
|
1072
|
+
|
1073
|
+
def initialize(offset=nil, limit=nil, filters=nil, tagfilters=nil)
|
1074
|
+
@Offset = offset
|
1075
|
+
@Limit = limit
|
1076
|
+
@Filters = filters
|
1077
|
+
@TagFilters = tagfilters
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
def deserialize(params)
|
1081
|
+
@Offset = params['Offset']
|
1082
|
+
@Limit = params['Limit']
|
1083
|
+
unless params['Filters'].nil?
|
1084
|
+
@Filters = []
|
1085
|
+
params['Filters'].each do |i|
|
1086
|
+
filter_tmp = Filter.new
|
1087
|
+
filter_tmp.deserialize(i)
|
1088
|
+
@Filters << filter_tmp
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
unless params['TagFilters'].nil?
|
1092
|
+
@TagFilters = []
|
1093
|
+
params['TagFilters'].each do |i|
|
1094
|
+
tagfilter_tmp = TagFilter.new
|
1095
|
+
tagfilter_tmp.deserialize(i)
|
1096
|
+
@TagFilters << tagfilter_tmp
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
# DescribeFusionInstanceList返回参数结构体
|
1103
|
+
class DescribeFusionInstanceListResponse < TencentCloud::Common::AbstractModel
|
1104
|
+
# @param TotalCount: 查询总数
|
1105
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1106
|
+
# @type TotalCount: Integer
|
1107
|
+
# @param Data: 实例列表
|
1108
|
+
# @type Data: Array
|
1109
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1110
|
+
# @type RequestId: String
|
1111
|
+
|
1112
|
+
attr_accessor :TotalCount, :Data, :RequestId
|
1113
|
+
|
1114
|
+
def initialize(totalcount=nil, data=nil, requestid=nil)
|
1115
|
+
@TotalCount = totalcount
|
1116
|
+
@Data = data
|
1117
|
+
@RequestId = requestid
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
def deserialize(params)
|
1121
|
+
@TotalCount = params['TotalCount']
|
1122
|
+
unless params['Data'].nil?
|
1123
|
+
@Data = []
|
1124
|
+
params['Data'].each do |i|
|
1125
|
+
fusioninstanceitem_tmp = FusionInstanceItem.new
|
1126
|
+
fusioninstanceitem_tmp.deserialize(i)
|
1127
|
+
@Data << fusioninstanceitem_tmp
|
1128
|
+
end
|
1129
|
+
end
|
1130
|
+
@RequestId = params['RequestId']
|
1131
|
+
end
|
1132
|
+
end
|
1133
|
+
|
1060
1134
|
# DescribeInstanceList请求参数结构体
|
1061
1135
|
class DescribeInstanceListRequest < TencentCloud::Common::AbstractModel
|
1062
1136
|
# @param Offset: 查询起始位置
|
@@ -2412,6 +2486,138 @@ module TencentCloud
|
|
2412
2486
|
end
|
2413
2487
|
end
|
2414
2488
|
|
2489
|
+
# 实例列表页中的实例信息
|
2490
|
+
class FusionInstanceItem < TencentCloud::Common::AbstractModel
|
2491
|
+
# @param InstanceId: 实例ID
|
2492
|
+
# @type InstanceId: String
|
2493
|
+
# @param InstanceName: 实例名称
|
2494
|
+
# @type InstanceName: String
|
2495
|
+
# @param Version: 实例版本
|
2496
|
+
# @type Version: String
|
2497
|
+
# @param InstanceType: 实例类型,
|
2498
|
+
# EXPERIMENT,体验版
|
2499
|
+
# BASIC,基础版
|
2500
|
+
# PRO,专业版
|
2501
|
+
# PLATINUM,铂金版
|
2502
|
+
# @type InstanceType: String
|
2503
|
+
# @param InstanceStatus: 实例状态,
|
2504
|
+
# RUNNING, 运行中
|
2505
|
+
# MAINTAINING,维护中
|
2506
|
+
# ABNORMAL,异常
|
2507
|
+
# OVERDUE,欠费
|
2508
|
+
# DESTROYED,已删除
|
2509
|
+
# CREATING,创建中
|
2510
|
+
# MODIFYING,变配中
|
2511
|
+
# CREATE_FAILURE,创建失败
|
2512
|
+
# MODIFY_FAILURE,变配失败
|
2513
|
+
# DELETING,删除中
|
2514
|
+
# @type InstanceStatus: String
|
2515
|
+
# @param TopicNumLimit: 实例主题数上限
|
2516
|
+
# @type TopicNumLimit: Integer
|
2517
|
+
# @param GroupNumLimit: 实例消费组数量上限
|
2518
|
+
# @type GroupNumLimit: Integer
|
2519
|
+
# @param PayMode: 计费模式,
|
2520
|
+
# POSTPAID,按量计费
|
2521
|
+
# PREPAID,包年包月
|
2522
|
+
# @type PayMode: String
|
2523
|
+
# @param ExpiryTime: 到期时间,秒为单位
|
2524
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2525
|
+
# @type ExpiryTime: Integer
|
2526
|
+
# @param Remark: 备注信息
|
2527
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2528
|
+
# @type Remark: String
|
2529
|
+
# @param TopicNum: 主题数量
|
2530
|
+
# @type TopicNum: Integer
|
2531
|
+
# @param GroupNum: 消费组数量
|
2532
|
+
# @type GroupNum: Integer
|
2533
|
+
# @param TagList: 标签列表
|
2534
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2535
|
+
# @type TagList: Array
|
2536
|
+
# @param SkuCode: 商品规格
|
2537
|
+
# @type SkuCode: String
|
2538
|
+
# @param TpsLimit: TPS限流值
|
2539
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2540
|
+
# @type TpsLimit: Integer
|
2541
|
+
# @param ScaledTpsLimit: 弹性TPS限流值
|
2542
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2543
|
+
# @type ScaledTpsLimit: Integer
|
2544
|
+
# @param MessageRetention: 消息保留时间,小时为单位
|
2545
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2546
|
+
# @type MessageRetention: Integer
|
2547
|
+
# @param MaxMessageDelay: 延迟消息最大时长,小时为单位
|
2548
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2549
|
+
# @type MaxMessageDelay: Integer
|
2550
|
+
# @param RenewFlag: 是否自动续费
|
2551
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2552
|
+
# @type RenewFlag: Integer
|
2553
|
+
# @param InstanceItemExtraInfo: 4.x独有数据
|
2554
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2555
|
+
# @type InstanceItemExtraInfo: :class:`Tencentcloud::Trocket.v20230308.models.InstanceItemExtraInfo`
|
2556
|
+
# @param DestroyTime: 预销毁时间
|
2557
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2558
|
+
# @type DestroyTime: Integer
|
2559
|
+
|
2560
|
+
attr_accessor :InstanceId, :InstanceName, :Version, :InstanceType, :InstanceStatus, :TopicNumLimit, :GroupNumLimit, :PayMode, :ExpiryTime, :Remark, :TopicNum, :GroupNum, :TagList, :SkuCode, :TpsLimit, :ScaledTpsLimit, :MessageRetention, :MaxMessageDelay, :RenewFlag, :InstanceItemExtraInfo, :DestroyTime
|
2561
|
+
|
2562
|
+
def initialize(instanceid=nil, instancename=nil, version=nil, instancetype=nil, instancestatus=nil, topicnumlimit=nil, groupnumlimit=nil, paymode=nil, expirytime=nil, remark=nil, topicnum=nil, groupnum=nil, taglist=nil, skucode=nil, tpslimit=nil, scaledtpslimit=nil, messageretention=nil, maxmessagedelay=nil, renewflag=nil, instanceitemextrainfo=nil, destroytime=nil)
|
2563
|
+
@InstanceId = instanceid
|
2564
|
+
@InstanceName = instancename
|
2565
|
+
@Version = version
|
2566
|
+
@InstanceType = instancetype
|
2567
|
+
@InstanceStatus = instancestatus
|
2568
|
+
@TopicNumLimit = topicnumlimit
|
2569
|
+
@GroupNumLimit = groupnumlimit
|
2570
|
+
@PayMode = paymode
|
2571
|
+
@ExpiryTime = expirytime
|
2572
|
+
@Remark = remark
|
2573
|
+
@TopicNum = topicnum
|
2574
|
+
@GroupNum = groupnum
|
2575
|
+
@TagList = taglist
|
2576
|
+
@SkuCode = skucode
|
2577
|
+
@TpsLimit = tpslimit
|
2578
|
+
@ScaledTpsLimit = scaledtpslimit
|
2579
|
+
@MessageRetention = messageretention
|
2580
|
+
@MaxMessageDelay = maxmessagedelay
|
2581
|
+
@RenewFlag = renewflag
|
2582
|
+
@InstanceItemExtraInfo = instanceitemextrainfo
|
2583
|
+
@DestroyTime = destroytime
|
2584
|
+
end
|
2585
|
+
|
2586
|
+
def deserialize(params)
|
2587
|
+
@InstanceId = params['InstanceId']
|
2588
|
+
@InstanceName = params['InstanceName']
|
2589
|
+
@Version = params['Version']
|
2590
|
+
@InstanceType = params['InstanceType']
|
2591
|
+
@InstanceStatus = params['InstanceStatus']
|
2592
|
+
@TopicNumLimit = params['TopicNumLimit']
|
2593
|
+
@GroupNumLimit = params['GroupNumLimit']
|
2594
|
+
@PayMode = params['PayMode']
|
2595
|
+
@ExpiryTime = params['ExpiryTime']
|
2596
|
+
@Remark = params['Remark']
|
2597
|
+
@TopicNum = params['TopicNum']
|
2598
|
+
@GroupNum = params['GroupNum']
|
2599
|
+
unless params['TagList'].nil?
|
2600
|
+
@TagList = []
|
2601
|
+
params['TagList'].each do |i|
|
2602
|
+
tag_tmp = Tag.new
|
2603
|
+
tag_tmp.deserialize(i)
|
2604
|
+
@TagList << tag_tmp
|
2605
|
+
end
|
2606
|
+
end
|
2607
|
+
@SkuCode = params['SkuCode']
|
2608
|
+
@TpsLimit = params['TpsLimit']
|
2609
|
+
@ScaledTpsLimit = params['ScaledTpsLimit']
|
2610
|
+
@MessageRetention = params['MessageRetention']
|
2611
|
+
@MaxMessageDelay = params['MaxMessageDelay']
|
2612
|
+
@RenewFlag = params['RenewFlag']
|
2613
|
+
unless params['InstanceItemExtraInfo'].nil?
|
2614
|
+
@InstanceItemExtraInfo = InstanceItemExtraInfo.new
|
2615
|
+
@InstanceItemExtraInfo.deserialize(params['InstanceItemExtraInfo'])
|
2616
|
+
end
|
2617
|
+
@DestroyTime = params['DestroyTime']
|
2618
|
+
end
|
2619
|
+
end
|
2620
|
+
|
2415
2621
|
# ImportSourceClusterConsumerGroups请求参数结构体
|
2416
2622
|
class ImportSourceClusterConsumerGroupsRequest < TencentCloud::Common::AbstractModel
|
2417
2623
|
# @param TaskId: 任务ID
|
@@ -2612,6 +2818,63 @@ module TencentCloud
|
|
2612
2818
|
end
|
2613
2819
|
end
|
2614
2820
|
|
2821
|
+
# 4.x集群和5.0集群列表统一显示 4.x特殊数据承载接口
|
2822
|
+
class InstanceItemExtraInfo < TencentCloud::Common::AbstractModel
|
2823
|
+
# @param IsVip: 是否vip
|
2824
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2825
|
+
# @type IsVip: Boolean
|
2826
|
+
# @param VipInstanceStatus: 4.x专享集群状态
|
2827
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2828
|
+
# @type VipInstanceStatus: Integer
|
2829
|
+
# @param MaxBandWidth: 专享集群峰值带宽
|
2830
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2831
|
+
# @type MaxBandWidth: Integer
|
2832
|
+
# @param SpecName: 专享集群规格
|
2833
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2834
|
+
# @type SpecName: String
|
2835
|
+
# @param NodeCount: 专享集群节点数量
|
2836
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2837
|
+
# @type NodeCount: Integer
|
2838
|
+
# @param MaxStorage: 专享集群最大存储
|
2839
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2840
|
+
# @type MaxStorage: Integer
|
2841
|
+
# @param MaxRetention: 专享集群最大保留时间
|
2842
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2843
|
+
# @type MaxRetention: Integer
|
2844
|
+
# @param MinRetention: 专项集群最大保留时间
|
2845
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2846
|
+
# @type MinRetention: Integer
|
2847
|
+
# @param InstanceStatus: 4.0共享集群
|
2848
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2849
|
+
# @type InstanceStatus: Integer
|
2850
|
+
|
2851
|
+
attr_accessor :IsVip, :VipInstanceStatus, :MaxBandWidth, :SpecName, :NodeCount, :MaxStorage, :MaxRetention, :MinRetention, :InstanceStatus
|
2852
|
+
|
2853
|
+
def initialize(isvip=nil, vipinstancestatus=nil, maxbandwidth=nil, specname=nil, nodecount=nil, maxstorage=nil, maxretention=nil, minretention=nil, instancestatus=nil)
|
2854
|
+
@IsVip = isvip
|
2855
|
+
@VipInstanceStatus = vipinstancestatus
|
2856
|
+
@MaxBandWidth = maxbandwidth
|
2857
|
+
@SpecName = specname
|
2858
|
+
@NodeCount = nodecount
|
2859
|
+
@MaxStorage = maxstorage
|
2860
|
+
@MaxRetention = maxretention
|
2861
|
+
@MinRetention = minretention
|
2862
|
+
@InstanceStatus = instancestatus
|
2863
|
+
end
|
2864
|
+
|
2865
|
+
def deserialize(params)
|
2866
|
+
@IsVip = params['IsVip']
|
2867
|
+
@VipInstanceStatus = params['VipInstanceStatus']
|
2868
|
+
@MaxBandWidth = params['MaxBandWidth']
|
2869
|
+
@SpecName = params['SpecName']
|
2870
|
+
@NodeCount = params['NodeCount']
|
2871
|
+
@MaxStorage = params['MaxStorage']
|
2872
|
+
@MaxRetention = params['MaxRetention']
|
2873
|
+
@MinRetention = params['MinRetention']
|
2874
|
+
@InstanceStatus = params['InstanceStatus']
|
2875
|
+
end
|
2876
|
+
end
|
2877
|
+
|
2615
2878
|
# IP规则
|
2616
2879
|
class IpRule < TencentCloud::Common::AbstractModel
|
2617
2880
|
# @param Ip: IP地址
|
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.
|
4
|
+
version: 3.0.835
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|