tencentcloud-sdk-tdmq 3.0.970 → 3.0.972

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f15c29537870fcc6f38abeb3c0eb0239d84935f
4
- data.tar.gz: 49652089aab402cb88b333850049a53c5daa3fe0
3
+ metadata.gz: 4eb8c50229adc46f9fef0d2492c075a660c70d8f
4
+ data.tar.gz: 591812dc551201847d42433c913b6ebabe082ff9
5
5
  SHA512:
6
- metadata.gz: 1e4f028116da46a6b524b0e60adcf3c72b5956f6fea8a496f20d48ace78807578ee40c80d452dceb384709b6a37721f5355c02e025ca75ab8d192f6533e5b8fc
7
- data.tar.gz: cb3e8f72f37a8b743faf661e0729204c8d98b0dcbc1a3c81dc54f97cc607e25aa9d34b3dbdb5be95aabcefe7821062016371ee74520ea3ecb6405884cd343d4f
6
+ metadata.gz: 2ec3abb1bb9bb9ac0faabdcaba72662def9c82cbdf5f0327bd7c055e8341714706fc9b220e0ea82ca8b2e7c6d9f226abedb6091483a67b00e15e1fb720a21b6f
7
+ data.tar.gz: 6772f096b06cfb57469fd096209ad531db55dbfd937bb4235c56f3852d0520e93f637c6d7aac4e829912fdc72add88c4f78f0a251387bf50c075ebc113455ff7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.970
1
+ 3.0.972
@@ -797,6 +797,30 @@ module TencentCloud
797
797
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
798
  end
799
799
 
800
+ # 删除RabbitMQ的权限
801
+
802
+ # @param request: Request instance for DeleteRabbitMQPermission.
803
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteRabbitMQPermissionRequest`
804
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteRabbitMQPermissionResponse`
805
+ def DeleteRabbitMQPermission(request)
806
+ body = send_request('DeleteRabbitMQPermission', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = DeleteRabbitMQPermissionResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
800
824
  # 删除RabbitMQ的用户
801
825
 
802
826
  # @param request: Request instance for DeleteRabbitMQUser.
@@ -1735,6 +1759,30 @@ module TencentCloud
1735
1759
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1736
1760
  end
1737
1761
 
1762
+ # 查询RabbitMQ权限列表
1763
+
1764
+ # @param request: Request instance for DescribeRabbitMQPermission.
1765
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQPermissionRequest`
1766
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQPermissionResponse`
1767
+ def DescribeRabbitMQPermission(request)
1768
+ body = send_request('DescribeRabbitMQPermission', request.serialize)
1769
+ response = JSON.parse(body)
1770
+ if response['Response'].key?('Error') == false
1771
+ model = DescribeRabbitMQPermissionResponse.new
1772
+ model.deserialize(response['Response'])
1773
+ model
1774
+ else
1775
+ code = response['Response']['Error']['Code']
1776
+ message = response['Response']['Error']['Message']
1777
+ reqid = response['Response']['RequestId']
1778
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1779
+ end
1780
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1781
+ raise e
1782
+ rescue StandardError => e
1783
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1784
+ end
1785
+
1738
1786
  # 查询RabbitMQ队列详情
1739
1787
 
1740
1788
  # @param request: Request instance for DescribeRabbitMQQueueDetail.
@@ -2891,6 +2939,30 @@ module TencentCloud
2891
2939
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2892
2940
  end
2893
2941
 
2942
+ # 修改RabbitMQ的权限
2943
+
2944
+ # @param request: Request instance for ModifyRabbitMQPermission.
2945
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyRabbitMQPermissionRequest`
2946
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyRabbitMQPermissionResponse`
2947
+ def ModifyRabbitMQPermission(request)
2948
+ body = send_request('ModifyRabbitMQPermission', request.serialize)
2949
+ response = JSON.parse(body)
2950
+ if response['Response'].key?('Error') == false
2951
+ model = ModifyRabbitMQPermissionResponse.new
2952
+ model.deserialize(response['Response'])
2953
+ model
2954
+ else
2955
+ code = response['Response']['Error']['Code']
2956
+ message = response['Response']['Error']['Message']
2957
+ reqid = response['Response']['RequestId']
2958
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2959
+ end
2960
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2961
+ raise e
2962
+ rescue StandardError => e
2963
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2964
+ end
2965
+
2894
2966
  # 修改RabbitMQ的用户
2895
2967
 
2896
2968
  # @param request: Request instance for ModifyRabbitMQUser.
@@ -2459,10 +2459,12 @@ module TencentCloud
2459
2459
  # @type PulsarTopicType: Integer
2460
2460
  # @param MsgTTL: 未消费消息过期时间,单位:秒,取值范围:60秒~15天。
2461
2461
  # @type MsgTTL: Integer
2462
+ # @param UnackPolicy: 不传默认是原生策略,DefaultPolicy表示当订阅下达到最大未确认消息数 5000 时,服务端将不再向当前订阅下的所有消费者推送消息,DynamicPolicy表示动态调整订阅下的最大未确认消息数,具体配额是在 5000 和消费者数量*20之间取最大值。每个消费者默认最大 unack 消息数为 20,超过该限制时仅影响该消费者,不影响其他消费者。
2463
+ # @type UnackPolicy: String
2462
2464
 
2463
- attr_accessor :EnvironmentId, :TopicName, :Partitions, :ClusterId, :Remark, :TopicType, :PulsarTopicType, :MsgTTL
2465
+ attr_accessor :EnvironmentId, :TopicName, :Partitions, :ClusterId, :Remark, :TopicType, :PulsarTopicType, :MsgTTL, :UnackPolicy
2464
2466
 
2465
- def initialize(environmentid=nil, topicname=nil, partitions=nil, clusterid=nil, remark=nil, topictype=nil, pulsartopictype=nil, msgttl=nil)
2467
+ def initialize(environmentid=nil, topicname=nil, partitions=nil, clusterid=nil, remark=nil, topictype=nil, pulsartopictype=nil, msgttl=nil, unackpolicy=nil)
2466
2468
  @EnvironmentId = environmentid
2467
2469
  @TopicName = topicname
2468
2470
  @Partitions = partitions
@@ -2471,6 +2473,7 @@ module TencentCloud
2471
2473
  @TopicType = topictype
2472
2474
  @PulsarTopicType = pulsartopictype
2473
2475
  @MsgTTL = msgttl
2476
+ @UnackPolicy = unackpolicy
2474
2477
  end
2475
2478
 
2476
2479
  def deserialize(params)
@@ -2482,6 +2485,7 @@ module TencentCloud
2482
2485
  @TopicType = params['TopicType']
2483
2486
  @PulsarTopicType = params['PulsarTopicType']
2484
2487
  @MsgTTL = params['MsgTTL']
2488
+ @UnackPolicy = params['UnackPolicy']
2485
2489
  end
2486
2490
  end
2487
2491
 
@@ -2834,6 +2838,46 @@ module TencentCloud
2834
2838
  end
2835
2839
  end
2836
2840
 
2841
+ # DeleteRabbitMQPermission请求参数结构体
2842
+ class DeleteRabbitMQPermissionRequest < TencentCloud::Common::AbstractModel
2843
+ # @param InstanceId: 集群实例Id
2844
+ # @type InstanceId: String
2845
+ # @param User: 用户名,登录时使用
2846
+ # @type User: String
2847
+ # @param VirtualHost: vhost名
2848
+ # @type VirtualHost: String
2849
+
2850
+ attr_accessor :InstanceId, :User, :VirtualHost
2851
+
2852
+ def initialize(instanceid=nil, user=nil, virtualhost=nil)
2853
+ @InstanceId = instanceid
2854
+ @User = user
2855
+ @VirtualHost = virtualhost
2856
+ end
2857
+
2858
+ def deserialize(params)
2859
+ @InstanceId = params['InstanceId']
2860
+ @User = params['User']
2861
+ @VirtualHost = params['VirtualHost']
2862
+ end
2863
+ end
2864
+
2865
+ # DeleteRabbitMQPermission返回参数结构体
2866
+ class DeleteRabbitMQPermissionResponse < TencentCloud::Common::AbstractModel
2867
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2868
+ # @type RequestId: String
2869
+
2870
+ attr_accessor :RequestId
2871
+
2872
+ def initialize(requestid=nil)
2873
+ @RequestId = requestid
2874
+ end
2875
+
2876
+ def deserialize(params)
2877
+ @RequestId = params['RequestId']
2878
+ end
2879
+ end
2880
+
2837
2881
  # DeleteRabbitMQUser请求参数结构体
2838
2882
  class DeleteRabbitMQUserRequest < TencentCloud::Common::AbstractModel
2839
2883
  # @param InstanceId: 集群实例Id
@@ -5090,6 +5134,69 @@ module TencentCloud
5090
5134
  end
5091
5135
  end
5092
5136
 
5137
+ # DescribeRabbitMQPermission请求参数结构体
5138
+ class DescribeRabbitMQPermissionRequest < TencentCloud::Common::AbstractModel
5139
+ # @param InstanceId: 集群实例id
5140
+ # @type InstanceId: String
5141
+ # @param User: 用户名,用于查询过滤,不传则查询全部
5142
+ # @type User: String
5143
+ # @param VirtualHost: vhost名,用于查询过滤,不传则查询全部
5144
+ # @type VirtualHost: String
5145
+ # @param Offset: 分页Offset
5146
+ # @type Offset: Integer
5147
+ # @param Limit: 分页Limit
5148
+ # @type Limit: Integer
5149
+
5150
+ attr_accessor :InstanceId, :User, :VirtualHost, :Offset, :Limit
5151
+
5152
+ def initialize(instanceid=nil, user=nil, virtualhost=nil, offset=nil, limit=nil)
5153
+ @InstanceId = instanceid
5154
+ @User = user
5155
+ @VirtualHost = virtualhost
5156
+ @Offset = offset
5157
+ @Limit = limit
5158
+ end
5159
+
5160
+ def deserialize(params)
5161
+ @InstanceId = params['InstanceId']
5162
+ @User = params['User']
5163
+ @VirtualHost = params['VirtualHost']
5164
+ @Offset = params['Offset']
5165
+ @Limit = params['Limit']
5166
+ end
5167
+ end
5168
+
5169
+ # DescribeRabbitMQPermission返回参数结构体
5170
+ class DescribeRabbitMQPermissionResponse < TencentCloud::Common::AbstractModel
5171
+ # @param TotalCount: 返回权限数量
5172
+ # @type TotalCount: Integer
5173
+ # @param RabbitMQPermissionList: 权限详情列表
5174
+ # @type RabbitMQPermissionList: Array
5175
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5176
+ # @type RequestId: String
5177
+
5178
+ attr_accessor :TotalCount, :RabbitMQPermissionList, :RequestId
5179
+
5180
+ def initialize(totalcount=nil, rabbitmqpermissionlist=nil, requestid=nil)
5181
+ @TotalCount = totalcount
5182
+ @RabbitMQPermissionList = rabbitmqpermissionlist
5183
+ @RequestId = requestid
5184
+ end
5185
+
5186
+ def deserialize(params)
5187
+ @TotalCount = params['TotalCount']
5188
+ unless params['RabbitMQPermissionList'].nil?
5189
+ @RabbitMQPermissionList = []
5190
+ params['RabbitMQPermissionList'].each do |i|
5191
+ rabbitmqpermission_tmp = RabbitMQPermission.new
5192
+ rabbitmqpermission_tmp.deserialize(i)
5193
+ @RabbitMQPermissionList << rabbitmqpermission_tmp
5194
+ end
5195
+ end
5196
+ @RequestId = params['RequestId']
5197
+ end
5198
+ end
5199
+
5093
5200
  # DescribeRabbitMQQueueDetail请求参数结构体
5094
5201
  class DescribeRabbitMQQueueDetailRequest < TencentCloud::Common::AbstractModel
5095
5202
  # @param InstanceId: 实例Id
@@ -8927,6 +9034,58 @@ module TencentCloud
8927
9034
  end
8928
9035
  end
8929
9036
 
9037
+ # ModifyRabbitMQPermission请求参数结构体
9038
+ class ModifyRabbitMQPermissionRequest < TencentCloud::Common::AbstractModel
9039
+ # @param InstanceId: 集群实例Id
9040
+ # @type InstanceId: String
9041
+ # @param User: 用户名,权限关联的用户
9042
+ # @type User: String
9043
+ # @param VirtualHost: vhost名称
9044
+ # @type VirtualHost: String
9045
+ # @param ConfigRegexp: 权限类型,declare相关操作,该用户可操作该vhost下的资源名称正则表达式
9046
+ # @type ConfigRegexp: String
9047
+ # @param WriteRegexp: 权限类型,消息写入相关操作,该用户可操作该vhost下的资源名称正则表达式
9048
+ # @type WriteRegexp: String
9049
+ # @param ReadRegexp: 权限类型,消息读取相关操作,该用户可操作该vhost下的资源名称正则表达式
9050
+ # @type ReadRegexp: String
9051
+
9052
+ attr_accessor :InstanceId, :User, :VirtualHost, :ConfigRegexp, :WriteRegexp, :ReadRegexp
9053
+
9054
+ def initialize(instanceid=nil, user=nil, virtualhost=nil, configregexp=nil, writeregexp=nil, readregexp=nil)
9055
+ @InstanceId = instanceid
9056
+ @User = user
9057
+ @VirtualHost = virtualhost
9058
+ @ConfigRegexp = configregexp
9059
+ @WriteRegexp = writeregexp
9060
+ @ReadRegexp = readregexp
9061
+ end
9062
+
9063
+ def deserialize(params)
9064
+ @InstanceId = params['InstanceId']
9065
+ @User = params['User']
9066
+ @VirtualHost = params['VirtualHost']
9067
+ @ConfigRegexp = params['ConfigRegexp']
9068
+ @WriteRegexp = params['WriteRegexp']
9069
+ @ReadRegexp = params['ReadRegexp']
9070
+ end
9071
+ end
9072
+
9073
+ # ModifyRabbitMQPermission返回参数结构体
9074
+ class ModifyRabbitMQPermissionResponse < TencentCloud::Common::AbstractModel
9075
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9076
+ # @type RequestId: String
9077
+
9078
+ attr_accessor :RequestId
9079
+
9080
+ def initialize(requestid=nil)
9081
+ @RequestId = requestid
9082
+ end
9083
+
9084
+ def deserialize(params)
9085
+ @RequestId = params['RequestId']
9086
+ end
9087
+ end
9088
+
8930
9089
  # ModifyRabbitMQUser请求参数结构体
8931
9090
  class ModifyRabbitMQUserRequest < TencentCloud::Common::AbstractModel
8932
9091
  # @param InstanceId: 集群实例Id
@@ -9538,16 +9697,19 @@ module TencentCloud
9538
9697
  # @type Remark: String
9539
9698
  # @param MsgTTL: 未消费消息过期时间,单位:秒,取值范围:60秒~15天。
9540
9699
  # @type MsgTTL: Integer
9700
+ # @param UnackPolicy: 不传默认是原生策略,DefaultPolicy表示当订阅下达到最大未确认消息数 5000 时,服务端将不再向当前订阅下的所有消费者推送消息,DynamicPolicy表示动态调整订阅下的最大未确认消息数,具体配额是在 5000 和消费者数量*20之间取最大值。每个消费者默认最大 unack 消息数为 20,超过该限制时仅影响该消费者,不影响其他消费者。
9701
+ # @type UnackPolicy: String
9541
9702
 
9542
- attr_accessor :EnvironmentId, :TopicName, :Partitions, :ClusterId, :Remark, :MsgTTL
9703
+ attr_accessor :EnvironmentId, :TopicName, :Partitions, :ClusterId, :Remark, :MsgTTL, :UnackPolicy
9543
9704
 
9544
- def initialize(environmentid=nil, topicname=nil, partitions=nil, clusterid=nil, remark=nil, msgttl=nil)
9705
+ def initialize(environmentid=nil, topicname=nil, partitions=nil, clusterid=nil, remark=nil, msgttl=nil, unackpolicy=nil)
9545
9706
  @EnvironmentId = environmentid
9546
9707
  @TopicName = topicname
9547
9708
  @Partitions = partitions
9548
9709
  @ClusterId = clusterid
9549
9710
  @Remark = remark
9550
9711
  @MsgTTL = msgttl
9712
+ @UnackPolicy = unackpolicy
9551
9713
  end
9552
9714
 
9553
9715
  def deserialize(params)
@@ -9557,6 +9719,7 @@ module TencentCloud
9557
9719
  @ClusterId = params['ClusterId']
9558
9720
  @Remark = params['Remark']
9559
9721
  @MsgTTL = params['MsgTTL']
9722
+ @UnackPolicy = params['UnackPolicy']
9560
9723
  end
9561
9724
  end
9562
9725
 
@@ -10628,6 +10791,55 @@ module TencentCloud
10628
10791
  end
10629
10792
  end
10630
10793
 
10794
+ # RabbitMQ权限详情
10795
+ class RabbitMQPermission < TencentCloud::Common::AbstractModel
10796
+ # @param InstanceId: 集群实例Id
10797
+ # @type InstanceId: String
10798
+ # @param User: 用户名,权限关联的用户
10799
+ # @type User: String
10800
+ # @param VirtualHost: vhost名
10801
+ # @type VirtualHost: String
10802
+ # @param ConfigRegexp: 权限类型,declare相关操作,该用户可操作该vhost下的资源名称正则表达式
10803
+ # 注意:此字段可能返回 null,表示取不到有效值。
10804
+ # @type ConfigRegexp: String
10805
+ # @param WriteRegexp: 权限类型,消息写入相关操作,该用户可操作该vhost下的资源名称正则表达式
10806
+ # 注意:此字段可能返回 null,表示取不到有效值。
10807
+ # @type WriteRegexp: String
10808
+ # @param ReadRegexp: 权限类型,消息读取相关操作,该用户可操作该vhost下的资源名称正则表达式
10809
+ # 注意:此字段可能返回 null,表示取不到有效值。
10810
+ # @type ReadRegexp: String
10811
+ # @param CreateTime: 创建时间
10812
+ # 注意:此字段可能返回 null,表示取不到有效值。
10813
+ # @type CreateTime: String
10814
+ # @param ModifyTime: 修改时间
10815
+ # 注意:此字段可能返回 null,表示取不到有效值。
10816
+ # @type ModifyTime: String
10817
+
10818
+ attr_accessor :InstanceId, :User, :VirtualHost, :ConfigRegexp, :WriteRegexp, :ReadRegexp, :CreateTime, :ModifyTime
10819
+
10820
+ def initialize(instanceid=nil, user=nil, virtualhost=nil, configregexp=nil, writeregexp=nil, readregexp=nil, createtime=nil, modifytime=nil)
10821
+ @InstanceId = instanceid
10822
+ @User = user
10823
+ @VirtualHost = virtualhost
10824
+ @ConfigRegexp = configregexp
10825
+ @WriteRegexp = writeregexp
10826
+ @ReadRegexp = readregexp
10827
+ @CreateTime = createtime
10828
+ @ModifyTime = modifytime
10829
+ end
10830
+
10831
+ def deserialize(params)
10832
+ @InstanceId = params['InstanceId']
10833
+ @User = params['User']
10834
+ @VirtualHost = params['VirtualHost']
10835
+ @ConfigRegexp = params['ConfigRegexp']
10836
+ @WriteRegexp = params['WriteRegexp']
10837
+ @ReadRegexp = params['ReadRegexp']
10838
+ @CreateTime = params['CreateTime']
10839
+ @ModifyTime = params['ModifyTime']
10840
+ end
10841
+ end
10842
+
10631
10843
  # RabbitMQ节点信息
10632
10844
  class RabbitMQPrivateNode < TencentCloud::Common::AbstractModel
10633
10845
  # @param NodeName: 节点名字
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.970
4
+ version: 3.0.972
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-12-26 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common