tencentcloud-sdk-tdmq 3.0.563 → 3.0.565

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: b2a53f7df8ee135ab69a596c40908aa510a297ae
4
- data.tar.gz: 7b146c1252969a213515e8f81ba9e70c15e7d543
3
+ metadata.gz: 4d5ad2d32c28f1af97859eccfe6913028fd8c5cd
4
+ data.tar.gz: c2dcb3e28cbfec727b822fe09cc44eb4b095d456
5
5
  SHA512:
6
- metadata.gz: 3c124e745c9712f3f9c3779db27072d5003066374ecfbc0957980ad7adfe3c10ccdcba591232b2b81d0b4c7d03bd907f4dae53177b3d687410278bb628f4e804
7
- data.tar.gz: f54931e2e78440ecb2ea30fb7de326f09bffcbc59e9d1c90db858a5c83e5cfbe64d021dddc08c78172f2ea46d161ad62f0c27ffb51bc1c6ae24462af3fbe0160
6
+ metadata.gz: 3c937e34350aeb942ed07c81a566c12fa7417be1c97941ddc8c5951681e845fda3f6199fb64d177afaeb47f5eb74b4290e42546aa085d33a8475e8cd000ac649
7
+ data.tar.gz: 49b532033bc72960f5e674218bd93be77a84b4ffe587e22d9893e48930538a2caf61d3dc5f7b23db756dc6e3e9a7a99e2d9c83ed9a1f9fbb55b9eebfbd022646
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.563
1
+ 3.0.565
@@ -375,6 +375,30 @@ module TencentCloud
375
375
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
376
376
  end
377
377
 
378
+ # 创建RabbitMQ的用户
379
+
380
+ # @param request: Request instance for CreateRabbitMQUser.
381
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::CreateRabbitMQUserRequest`
382
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateRabbitMQUserResponse`
383
+ def CreateRabbitMQUser(request)
384
+ body = send_request('CreateRabbitMQUser', request.serialize)
385
+ response = JSON.parse(body)
386
+ if response['Response'].key?('Error') == false
387
+ model = CreateRabbitMQUserResponse.new
388
+ model.deserialize(response['Response'])
389
+ model
390
+ else
391
+ code = response['Response']['Error']['Code']
392
+ message = response['Response']['Error']['Message']
393
+ reqid = response['Response']['RequestId']
394
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
395
+ end
396
+ rescue TencentCloud::Common::TencentCloudSDKException => e
397
+ raise e
398
+ rescue StandardError => e
399
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
400
+ end
401
+
378
402
  # 创建RabbitMQ专享版实例
379
403
 
380
404
  # @param request: Request instance for CreateRabbitMQVipInstance.
@@ -399,6 +423,30 @@ module TencentCloud
399
423
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
400
424
  end
401
425
 
426
+ # 创建RabbitMQ的vhost
427
+
428
+ # @param request: Request instance for CreateRabbitMQVirtualHost.
429
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::CreateRabbitMQVirtualHostRequest`
430
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateRabbitMQVirtualHostResponse`
431
+ def CreateRabbitMQVirtualHost(request)
432
+ body = send_request('CreateRabbitMQVirtualHost', request.serialize)
433
+ response = JSON.parse(body)
434
+ if response['Response'].key?('Error') == false
435
+ model = CreateRabbitMQVirtualHostResponse.new
436
+ model.deserialize(response['Response'])
437
+ model
438
+ else
439
+ code = response['Response']['Error']['Code']
440
+ message = response['Response']['Error']['Message']
441
+ reqid = response['Response']['RequestId']
442
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
443
+ end
444
+ rescue TencentCloud::Common::TencentCloudSDKException => e
445
+ raise e
446
+ rescue StandardError => e
447
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
448
+ end
449
+
402
450
  # 此接口用于创建一个RocketMQ集群
403
451
 
404
452
  # @param request: Request instance for CreateRocketMQCluster.
@@ -1860,6 +1860,67 @@ module TencentCloud
1860
1860
  end
1861
1861
  end
1862
1862
 
1863
+ # CreateRabbitMQUser请求参数结构体
1864
+ class CreateRabbitMQUserRequest < TencentCloud::Common::AbstractModel
1865
+ # @param InstanceId: 集群实例Id
1866
+ # @type InstanceId: String
1867
+ # @param User: 用户名,登录时使用
1868
+ # @type User: String
1869
+ # @param Password: 密码,登录时使用
1870
+ # @type Password: String
1871
+ # @param Description: 描述
1872
+ # @type Description: String
1873
+ # @param Tags: 用户标签,用于决定改用户访问RabbitMQ Management的权限范围
1874
+ # management:普通控制台用户,monitoring:管理型控制台用户,其他值:非控制台用户
1875
+ # @type Tags: Array
1876
+ # @param MaxConnections: 该用户的最大连接数,不填写则不限制
1877
+ # @type MaxConnections: Integer
1878
+ # @param MaxChannels: 该用户的最大channel数,不填写则不限制
1879
+ # @type MaxChannels: Integer
1880
+
1881
+ attr_accessor :InstanceId, :User, :Password, :Description, :Tags, :MaxConnections, :MaxChannels
1882
+
1883
+ def initialize(instanceid=nil, user=nil, password=nil, description=nil, tags=nil, maxconnections=nil, maxchannels=nil)
1884
+ @InstanceId = instanceid
1885
+ @User = user
1886
+ @Password = password
1887
+ @Description = description
1888
+ @Tags = tags
1889
+ @MaxConnections = maxconnections
1890
+ @MaxChannels = maxchannels
1891
+ end
1892
+
1893
+ def deserialize(params)
1894
+ @InstanceId = params['InstanceId']
1895
+ @User = params['User']
1896
+ @Password = params['Password']
1897
+ @Description = params['Description']
1898
+ @Tags = params['Tags']
1899
+ @MaxConnections = params['MaxConnections']
1900
+ @MaxChannels = params['MaxChannels']
1901
+ end
1902
+ end
1903
+
1904
+ # CreateRabbitMQUser返回参数结构体
1905
+ class CreateRabbitMQUserResponse < TencentCloud::Common::AbstractModel
1906
+ # @param User: 用户名,登录时使用
1907
+ # @type User: String
1908
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1909
+ # @type RequestId: String
1910
+
1911
+ attr_accessor :User, :RequestId
1912
+
1913
+ def initialize(user=nil, requestid=nil)
1914
+ @User = user
1915
+ @RequestId = requestid
1916
+ end
1917
+
1918
+ def deserialize(params)
1919
+ @User = params['User']
1920
+ @RequestId = params['RequestId']
1921
+ end
1922
+ end
1923
+
1863
1924
  # CreateRabbitMQVipInstance请求参数结构体
1864
1925
  class CreateRabbitMQVipInstanceRequest < TencentCloud::Common::AbstractModel
1865
1926
  # @param ZoneIds: 可用区
@@ -1938,6 +1999,54 @@ module TencentCloud
1938
1999
  end
1939
2000
  end
1940
2001
 
2002
+ # CreateRabbitMQVirtualHost请求参数结构体
2003
+ class CreateRabbitMQVirtualHostRequest < TencentCloud::Common::AbstractModel
2004
+ # @param InstanceId: 集群实例Id
2005
+ # @type InstanceId: String
2006
+ # @param VirtualHost: vhost名
2007
+ # @type VirtualHost: String
2008
+ # @param Description: 描述
2009
+ # @type Description: String
2010
+ # @param TraceFlag: 消息轨迹开关,true打开,false关闭,默认关闭
2011
+ # @type TraceFlag: Boolean
2012
+
2013
+ attr_accessor :InstanceId, :VirtualHost, :Description, :TraceFlag
2014
+
2015
+ def initialize(instanceid=nil, virtualhost=nil, description=nil, traceflag=nil)
2016
+ @InstanceId = instanceid
2017
+ @VirtualHost = virtualhost
2018
+ @Description = description
2019
+ @TraceFlag = traceflag
2020
+ end
2021
+
2022
+ def deserialize(params)
2023
+ @InstanceId = params['InstanceId']
2024
+ @VirtualHost = params['VirtualHost']
2025
+ @Description = params['Description']
2026
+ @TraceFlag = params['TraceFlag']
2027
+ end
2028
+ end
2029
+
2030
+ # CreateRabbitMQVirtualHost返回参数结构体
2031
+ class CreateRabbitMQVirtualHostResponse < TencentCloud::Common::AbstractModel
2032
+ # @param VirtualHost: vhost名
2033
+ # @type VirtualHost: String
2034
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2035
+ # @type RequestId: String
2036
+
2037
+ attr_accessor :VirtualHost, :RequestId
2038
+
2039
+ def initialize(virtualhost=nil, requestid=nil)
2040
+ @VirtualHost = virtualhost
2041
+ @RequestId = requestid
2042
+ end
2043
+
2044
+ def deserialize(params)
2045
+ @VirtualHost = params['VirtualHost']
2046
+ @RequestId = params['RequestId']
2047
+ end
2048
+ end
2049
+
1941
2050
  # CreateRocketMQCluster请求参数结构体
1942
2051
  class CreateRocketMQClusterRequest < TencentCloud::Common::AbstractModel
1943
2052
  # @param Name: 集群名称,3-64个字符,只能包含字母、数字、“-”及“_”
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.563
4
+ version: 3.0.565
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-05-01 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common