tencentcloud-sdk-tdmq 3.0.971 → 3.0.973

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: 2e29189bc09aecae6ee6f50217865ac155ae12a6
4
- data.tar.gz: 51ee7583da3a51832e285874c63e4fb04aa9265b
3
+ metadata.gz: 8d14fb5d4ca83d038bf42078a8f8beac6f1696ee
4
+ data.tar.gz: e219362e2b69f4158172e6b1ade6168dbecff5e0
5
5
  SHA512:
6
- metadata.gz: 6c75cb4b0b0233b71f9ff07eab5fdb148ffc15fb2209f8b84af16335888c572e1651795915b05eea4e7e4af71f7bfb210b70a9d33d3044f8bfb6d87dcaaeccc5
7
- data.tar.gz: 0f449eefa58136fb0000884a915181f8d27e522af6a73179cbe01a6b023b881d9179b5081264938262efdf7d4381c35267cf9be9bf96a7bc10e47d8c73943664
6
+ metadata.gz: 8ed0bf403e0145a150e267cadd0086ded89df0e3d380804cfb21085c8527a5e1e1f0fa34cd8ea6be154fd530b4937cfe99ba5e7bc2d3d8c39eb264c64b32340f
7
+ data.tar.gz: 246722c41be15fa637bdf3c35db0987b58de7d01780fea045342d8acabb45fc7668dbf6eda302fa6786e9b3c54eea169f944933a87c2fbb31ee2c0a862981b63
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.971
1
+ 3.0.973
@@ -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.
@@ -2838,6 +2838,46 @@ module TencentCloud
2838
2838
  end
2839
2839
  end
2840
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
+
2841
2881
  # DeleteRabbitMQUser请求参数结构体
2842
2882
  class DeleteRabbitMQUserRequest < TencentCloud::Common::AbstractModel
2843
2883
  # @param InstanceId: 集群实例Id
@@ -5094,6 +5134,69 @@ module TencentCloud
5094
5134
  end
5095
5135
  end
5096
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
+
5097
5200
  # DescribeRabbitMQQueueDetail请求参数结构体
5098
5201
  class DescribeRabbitMQQueueDetailRequest < TencentCloud::Common::AbstractModel
5099
5202
  # @param InstanceId: 实例Id
@@ -8931,6 +9034,58 @@ module TencentCloud
8931
9034
  end
8932
9035
  end
8933
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
+
8934
9089
  # ModifyRabbitMQUser请求参数结构体
8935
9090
  class ModifyRabbitMQUserRequest < TencentCloud::Common::AbstractModel
8936
9091
  # @param InstanceId: 集群实例Id
@@ -10636,6 +10791,55 @@ module TencentCloud
10636
10791
  end
10637
10792
  end
10638
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
+
10639
10843
  # RabbitMQ节点信息
10640
10844
  class RabbitMQPrivateNode < TencentCloud::Common::AbstractModel
10641
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.971
4
+ version: 3.0.973
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-29 00:00:00.000000000 Z
11
+ date: 2024-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common