tencentcloud-sdk-tdmq 3.0.624 → 3.0.626
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/v20200217/client.rb +48 -0
- data/lib/v20200217/models.rb +144 -6
- 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: 760e062d59058dc3dde7cab410558a53214437aa
|
4
|
+
data.tar.gz: 5ac0741f15ab20e37fdf2c0dc582e79b3ea3b5f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa249b178aeb6d0710c6cf3901ddcedff0e2c5c03195e4b1173ddee3e287a28dbbdbcc84d498149bb2fb0019025917661a219efe383a0a6a8f3602698b9a96c
|
7
|
+
data.tar.gz: a1878407de3660eecd849290f5876e047879d21314e0fd21f4e510d3270dc2c51b516ca1e02f37b2ef4179e203d2d9c7093fd91fa2f70d0452abb7f042e07cbf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.626
|
data/lib/v20200217/client.rb
CHANGED
@@ -413,6 +413,30 @@ module TencentCloud
|
|
413
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
414
|
end
|
415
415
|
|
416
|
+
# 创建RocketMQ专享实例
|
417
|
+
|
418
|
+
# @param request: Request instance for CreateRocketMQVipInstance.
|
419
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::CreateRocketMQVipInstanceRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateRocketMQVipInstanceResponse`
|
421
|
+
def CreateRocketMQVipInstance(request)
|
422
|
+
body = send_request('CreateRocketMQVipInstance', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = CreateRocketMQVipInstanceResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
416
440
|
# 创建角色
|
417
441
|
|
418
442
|
# @param request: Request instance for CreateRole.
|
@@ -797,6 +821,30 @@ module TencentCloud
|
|
797
821
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
822
|
end
|
799
823
|
|
824
|
+
# 删除RocketMQ专享实例
|
825
|
+
|
826
|
+
# @param request: Request instance for DeleteRocketMQVipInstance.
|
827
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteRocketMQVipInstanceRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteRocketMQVipInstanceResponse`
|
829
|
+
def DeleteRocketMQVipInstance(request)
|
830
|
+
body = send_request('DeleteRocketMQVipInstance', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = DeleteRocketMQVipInstanceResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
800
848
|
# 删除角色,支持批量。
|
801
849
|
|
802
850
|
# @param request: Request instance for DeleteRoles.
|
data/lib/v20200217/models.rb
CHANGED
@@ -715,10 +715,13 @@ module TencentCloud
|
|
715
715
|
# @param NotifyContentFormat: 推送内容的格式。取值:(1)JSON;(2)SIMPLIFIED,即 raw 格式。如果 protocol 是 queue,则取值必须为 SIMPLIFIED。如果 protocol 是 HTTP,两个值均可以,默认值是 JSON。
|
716
716
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
717
717
|
# @type NotifyContentFormat: String
|
718
|
+
# @param TopicName: 订阅所属的主题名称
|
719
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
720
|
+
# @type TopicName: String
|
718
721
|
|
719
|
-
attr_accessor :SubscriptionName, :SubscriptionId, :TopicOwner, :MsgCount, :LastModifyTime, :CreateTime, :BindingKey, :Endpoint, :FilterTags, :Protocol, :NotifyStrategy, :NotifyContentFormat
|
722
|
+
attr_accessor :SubscriptionName, :SubscriptionId, :TopicOwner, :MsgCount, :LastModifyTime, :CreateTime, :BindingKey, :Endpoint, :FilterTags, :Protocol, :NotifyStrategy, :NotifyContentFormat, :TopicName
|
720
723
|
|
721
|
-
def initialize(subscriptionname=nil, subscriptionid=nil, topicowner=nil, msgcount=nil, lastmodifytime=nil, createtime=nil, bindingkey=nil, endpoint=nil, filtertags=nil, protocol=nil, notifystrategy=nil, notifycontentformat=nil)
|
724
|
+
def initialize(subscriptionname=nil, subscriptionid=nil, topicowner=nil, msgcount=nil, lastmodifytime=nil, createtime=nil, bindingkey=nil, endpoint=nil, filtertags=nil, protocol=nil, notifystrategy=nil, notifycontentformat=nil, topicname=nil)
|
722
725
|
@SubscriptionName = subscriptionname
|
723
726
|
@SubscriptionId = subscriptionid
|
724
727
|
@TopicOwner = topicowner
|
@@ -731,6 +734,7 @@ module TencentCloud
|
|
731
734
|
@Protocol = protocol
|
732
735
|
@NotifyStrategy = notifystrategy
|
733
736
|
@NotifyContentFormat = notifycontentformat
|
737
|
+
@TopicName = topicname
|
734
738
|
end
|
735
739
|
|
736
740
|
def deserialize(params)
|
@@ -746,6 +750,7 @@ module TencentCloud
|
|
746
750
|
@Protocol = params['Protocol']
|
747
751
|
@NotifyStrategy = params['NotifyStrategy']
|
748
752
|
@NotifyContentFormat = params['NotifyContentFormat']
|
753
|
+
@TopicName = params['TopicName']
|
749
754
|
end
|
750
755
|
end
|
751
756
|
|
@@ -801,10 +806,13 @@ module TencentCloud
|
|
801
806
|
# @param BrokerType: 0表示pulsar,1表示rocketmq
|
802
807
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
803
808
|
# @type BrokerType: Integer
|
809
|
+
# @param SubscriptionCount: 订阅数量
|
810
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
811
|
+
# @type SubscriptionCount: Integer
|
804
812
|
|
805
|
-
attr_accessor :TopicId, :TopicName, :MsgRetentionSeconds, :MaxMsgSize, :Qps, :FilterType, :CreateTime, :LastModifyTime, :MsgCount, :CreateUin, :Tags, :Trace, :TenantId, :NamespaceName, :Status, :BrokerType
|
813
|
+
attr_accessor :TopicId, :TopicName, :MsgRetentionSeconds, :MaxMsgSize, :Qps, :FilterType, :CreateTime, :LastModifyTime, :MsgCount, :CreateUin, :Tags, :Trace, :TenantId, :NamespaceName, :Status, :BrokerType, :SubscriptionCount
|
806
814
|
|
807
|
-
def initialize(topicid=nil, topicname=nil, msgretentionseconds=nil, maxmsgsize=nil, qps=nil, filtertype=nil, createtime=nil, lastmodifytime=nil, msgcount=nil, createuin=nil, tags=nil, trace=nil, tenantid=nil, namespacename=nil, status=nil, brokertype=nil)
|
815
|
+
def initialize(topicid=nil, topicname=nil, msgretentionseconds=nil, maxmsgsize=nil, qps=nil, filtertype=nil, createtime=nil, lastmodifytime=nil, msgcount=nil, createuin=nil, tags=nil, trace=nil, tenantid=nil, namespacename=nil, status=nil, brokertype=nil, subscriptioncount=nil)
|
808
816
|
@TopicId = topicid
|
809
817
|
@TopicName = topicname
|
810
818
|
@MsgRetentionSeconds = msgretentionseconds
|
@@ -821,6 +829,7 @@ module TencentCloud
|
|
821
829
|
@NamespaceName = namespacename
|
822
830
|
@Status = status
|
823
831
|
@BrokerType = brokertype
|
832
|
+
@SubscriptionCount = subscriptioncount
|
824
833
|
end
|
825
834
|
|
826
835
|
def deserialize(params)
|
@@ -847,6 +856,7 @@ module TencentCloud
|
|
847
856
|
@NamespaceName = params['NamespaceName']
|
848
857
|
@Status = params['Status']
|
849
858
|
@BrokerType = params['BrokerType']
|
859
|
+
@SubscriptionCount = params['SubscriptionCount']
|
850
860
|
end
|
851
861
|
end
|
852
862
|
|
@@ -1745,6 +1755,73 @@ module TencentCloud
|
|
1745
1755
|
end
|
1746
1756
|
end
|
1747
1757
|
|
1758
|
+
# CreateRocketMQVipInstance请求参数结构体
|
1759
|
+
class CreateRocketMQVipInstanceRequest < TencentCloud::Common::AbstractModel
|
1760
|
+
# @param Name: 实例名称
|
1761
|
+
# @type Name: String
|
1762
|
+
# @param Spec: 实例规格:
|
1763
|
+
# 基础型,rocket-vip-basic-1
|
1764
|
+
# 标准型,rocket-vip-basic-2
|
1765
|
+
# 高阶Ⅰ型,rocket-vip-basic-3
|
1766
|
+
# 高阶Ⅱ型,rocket-vip-basic-4
|
1767
|
+
# @type Spec: String
|
1768
|
+
# @param NodeCount: 节点数量,最小2,最大20
|
1769
|
+
# @type NodeCount: Integer
|
1770
|
+
# @param StorageSize: 单节点存储空间,GB为单位,最低200GB
|
1771
|
+
# @type StorageSize: Integer
|
1772
|
+
# @param ZoneIds: 节点部署的区域ID列表,如广州一区,则是100001,具体可查询腾讯云官网
|
1773
|
+
# @type ZoneIds: Array
|
1774
|
+
# @param VpcInfo: VPC信息
|
1775
|
+
# @type VpcInfo: :class:`Tencentcloud::Tdmq.v20200217.models.VpcInfo`
|
1776
|
+
# @param TimeSpan: 购买时长,月为单位
|
1777
|
+
# @type TimeSpan: Integer
|
1778
|
+
|
1779
|
+
attr_accessor :Name, :Spec, :NodeCount, :StorageSize, :ZoneIds, :VpcInfo, :TimeSpan
|
1780
|
+
|
1781
|
+
def initialize(name=nil, spec=nil, nodecount=nil, storagesize=nil, zoneids=nil, vpcinfo=nil, timespan=nil)
|
1782
|
+
@Name = name
|
1783
|
+
@Spec = spec
|
1784
|
+
@NodeCount = nodecount
|
1785
|
+
@StorageSize = storagesize
|
1786
|
+
@ZoneIds = zoneids
|
1787
|
+
@VpcInfo = vpcinfo
|
1788
|
+
@TimeSpan = timespan
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
def deserialize(params)
|
1792
|
+
@Name = params['Name']
|
1793
|
+
@Spec = params['Spec']
|
1794
|
+
@NodeCount = params['NodeCount']
|
1795
|
+
@StorageSize = params['StorageSize']
|
1796
|
+
@ZoneIds = params['ZoneIds']
|
1797
|
+
unless params['VpcInfo'].nil?
|
1798
|
+
@VpcInfo = VpcInfo.new
|
1799
|
+
@VpcInfo.deserialize(params['VpcInfo'])
|
1800
|
+
end
|
1801
|
+
@TimeSpan = params['TimeSpan']
|
1802
|
+
end
|
1803
|
+
end
|
1804
|
+
|
1805
|
+
# CreateRocketMQVipInstance返回参数结构体
|
1806
|
+
class CreateRocketMQVipInstanceResponse < TencentCloud::Common::AbstractModel
|
1807
|
+
# @param ClusterId: 集群ID
|
1808
|
+
# @type ClusterId: String
|
1809
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1810
|
+
# @type RequestId: String
|
1811
|
+
|
1812
|
+
attr_accessor :ClusterId, :RequestId
|
1813
|
+
|
1814
|
+
def initialize(clusterid=nil, requestid=nil)
|
1815
|
+
@ClusterId = clusterid
|
1816
|
+
@RequestId = requestid
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
def deserialize(params)
|
1820
|
+
@ClusterId = params['ClusterId']
|
1821
|
+
@RequestId = params['RequestId']
|
1822
|
+
end
|
1823
|
+
end
|
1824
|
+
|
1748
1825
|
# CreateRole请求参数结构体
|
1749
1826
|
class CreateRoleRequest < TencentCloud::Common::AbstractModel
|
1750
1827
|
# @param RoleName: 角色名称,不支持中字以及除了短线和下划线外的特殊字符且长度必须大于0且小等于32。
|
@@ -2443,6 +2520,38 @@ module TencentCloud
|
|
2443
2520
|
end
|
2444
2521
|
end
|
2445
2522
|
|
2523
|
+
# DeleteRocketMQVipInstance请求参数结构体
|
2524
|
+
class DeleteRocketMQVipInstanceRequest < TencentCloud::Common::AbstractModel
|
2525
|
+
# @param ClusterId: 实例的集群ID
|
2526
|
+
# @type ClusterId: String
|
2527
|
+
|
2528
|
+
attr_accessor :ClusterId
|
2529
|
+
|
2530
|
+
def initialize(clusterid=nil)
|
2531
|
+
@ClusterId = clusterid
|
2532
|
+
end
|
2533
|
+
|
2534
|
+
def deserialize(params)
|
2535
|
+
@ClusterId = params['ClusterId']
|
2536
|
+
end
|
2537
|
+
end
|
2538
|
+
|
2539
|
+
# DeleteRocketMQVipInstance返回参数结构体
|
2540
|
+
class DeleteRocketMQVipInstanceResponse < TencentCloud::Common::AbstractModel
|
2541
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2542
|
+
# @type RequestId: String
|
2543
|
+
|
2544
|
+
attr_accessor :RequestId
|
2545
|
+
|
2546
|
+
def initialize(requestid=nil)
|
2547
|
+
@RequestId = requestid
|
2548
|
+
end
|
2549
|
+
|
2550
|
+
def deserialize(params)
|
2551
|
+
@RequestId = params['RequestId']
|
2552
|
+
end
|
2553
|
+
end
|
2554
|
+
|
2446
2555
|
# DeleteRoles请求参数结构体
|
2447
2556
|
class DeleteRolesRequest < TencentCloud::Common::AbstractModel
|
2448
2557
|
# @param RoleNames: 角色名称数组。
|
@@ -3150,14 +3259,21 @@ module TencentCloud
|
|
3150
3259
|
# @type Limit: Integer
|
3151
3260
|
# @param SubscriptionName: 根据SubscriptionName进行模糊搜索
|
3152
3261
|
# @type SubscriptionName: String
|
3262
|
+
# @param QueueName: 队列名称,订阅绑定的endpoint
|
3263
|
+
# @type QueueName: String
|
3264
|
+
# @param QueryType: 查询类型。取值:(1)topic;(2)queue。
|
3265
|
+
# 默认值是topic。如果 queryType 是 topic,则查询主题下的订阅列表;如果 queryType 是 queue,则查询队列绑定的订阅列表。
|
3266
|
+
# @type QueryType: String
|
3153
3267
|
|
3154
|
-
attr_accessor :TopicName, :Offset, :Limit, :SubscriptionName
|
3268
|
+
attr_accessor :TopicName, :Offset, :Limit, :SubscriptionName, :QueueName, :QueryType
|
3155
3269
|
|
3156
|
-
def initialize(topicname=nil, offset=nil, limit=nil, subscriptionname=nil)
|
3270
|
+
def initialize(topicname=nil, offset=nil, limit=nil, subscriptionname=nil, queuename=nil, querytype=nil)
|
3157
3271
|
@TopicName = topicname
|
3158
3272
|
@Offset = offset
|
3159
3273
|
@Limit = limit
|
3160
3274
|
@SubscriptionName = subscriptionname
|
3275
|
+
@QueueName = queuename
|
3276
|
+
@QueryType = querytype
|
3161
3277
|
end
|
3162
3278
|
|
3163
3279
|
def deserialize(params)
|
@@ -3165,6 +3281,8 @@ module TencentCloud
|
|
3165
3281
|
@Offset = params['Offset']
|
3166
3282
|
@Limit = params['Limit']
|
3167
3283
|
@SubscriptionName = params['SubscriptionName']
|
3284
|
+
@QueueName = params['QueueName']
|
3285
|
+
@QueryType = params['QueryType']
|
3168
3286
|
end
|
3169
3287
|
end
|
3170
3288
|
|
@@ -8915,6 +9033,26 @@ module TencentCloud
|
|
8915
9033
|
end
|
8916
9034
|
end
|
8917
9035
|
|
9036
|
+
# vpc信息(由UniqVpcId和UniqSubnetId组成)
|
9037
|
+
class VpcInfo < TencentCloud::Common::AbstractModel
|
9038
|
+
# @param VpcId: vpc信息
|
9039
|
+
# @type VpcId: String
|
9040
|
+
# @param SubnetId: 子网信息
|
9041
|
+
# @type SubnetId: String
|
9042
|
+
|
9043
|
+
attr_accessor :VpcId, :SubnetId
|
9044
|
+
|
9045
|
+
def initialize(vpcid=nil, subnetid=nil)
|
9046
|
+
@VpcId = vpcid
|
9047
|
+
@SubnetId = subnetid
|
9048
|
+
end
|
9049
|
+
|
9050
|
+
def deserialize(params)
|
9051
|
+
@VpcId = params['VpcId']
|
9052
|
+
@SubnetId = params['SubnetId']
|
9053
|
+
end
|
9054
|
+
end
|
9055
|
+
|
8918
9056
|
end
|
8919
9057
|
end
|
8920
9058
|
end
|
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.
|
4
|
+
version: 3.0.626
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|