tencentcloud-sdk-tdmq 3.0.590 → 3.0.592
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 +168 -26
 - data/lib/v20200217/models.rb +811 -346
 - 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: 45507ff006e7a05ca566a7cdec7b3fffa45aca24
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4f5e9e12a57a95a4635312fd3aca23957492ac0a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 364c18c70d4e83211232a944832862e53acca60985a3fed18fd76b341bb81a6493580e0b12d9d73b219cb4820665d1dc58fea86ffc6a0bb7df3fd79e43f97513
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2239d32490f1cace877d8062138026f562d3eae3be0a430803c999e74913cb100e5384b5a953cc90003a2fca68b336f5d14ea00ee67aa29a208d19cc689c046f
         
     | 
    
        data/lib/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            3.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            3.0.592
         
     | 
    
        data/lib/v20200217/client.rb
    CHANGED
    
    | 
         @@ -889,6 +889,54 @@ module TencentCloud 
     | 
|
| 
       889 
889 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       890 
890 
     | 
    
         
             
                    end
         
     | 
| 
       891 
891 
     | 
    
         | 
| 
      
 892 
     | 
    
         
            +
                    # 删除RabbitMQ的用户
         
     | 
| 
      
 893 
     | 
    
         
            +
             
     | 
| 
      
 894 
     | 
    
         
            +
                    # @param request: Request instance for DeleteRabbitMQUser.
         
     | 
| 
      
 895 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteRabbitMQUserRequest`
         
     | 
| 
      
 896 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteRabbitMQUserResponse`
         
     | 
| 
      
 897 
     | 
    
         
            +
                    def DeleteRabbitMQUser(request)
         
     | 
| 
      
 898 
     | 
    
         
            +
                      body = send_request('DeleteRabbitMQUser', request.serialize)
         
     | 
| 
      
 899 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 900 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 901 
     | 
    
         
            +
                        model = DeleteRabbitMQUserResponse.new
         
     | 
| 
      
 902 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 903 
     | 
    
         
            +
                        model
         
     | 
| 
      
 904 
     | 
    
         
            +
                      else
         
     | 
| 
      
 905 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 906 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 907 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 908 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 909 
     | 
    
         
            +
                      end
         
     | 
| 
      
 910 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 911 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 912 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 913 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 914 
     | 
    
         
            +
                    end
         
     | 
| 
      
 915 
     | 
    
         
            +
             
     | 
| 
      
 916 
     | 
    
         
            +
                    # 删除RabbitMQ的vhost
         
     | 
| 
      
 917 
     | 
    
         
            +
             
     | 
| 
      
 918 
     | 
    
         
            +
                    # @param request: Request instance for DeleteRabbitMQVirtualHost.
         
     | 
| 
      
 919 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteRabbitMQVirtualHostRequest`
         
     | 
| 
      
 920 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteRabbitMQVirtualHostResponse`
         
     | 
| 
      
 921 
     | 
    
         
            +
                    def DeleteRabbitMQVirtualHost(request)
         
     | 
| 
      
 922 
     | 
    
         
            +
                      body = send_request('DeleteRabbitMQVirtualHost', request.serialize)
         
     | 
| 
      
 923 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 924 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 925 
     | 
    
         
            +
                        model = DeleteRabbitMQVirtualHostResponse.new
         
     | 
| 
      
 926 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 927 
     | 
    
         
            +
                        model
         
     | 
| 
      
 928 
     | 
    
         
            +
                      else
         
     | 
| 
      
 929 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 930 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 931 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 932 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 933 
     | 
    
         
            +
                      end
         
     | 
| 
      
 934 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 935 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 936 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 937 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 938 
     | 
    
         
            +
                    end
         
     | 
| 
      
 939 
     | 
    
         
            +
             
     | 
| 
       892 
940 
     | 
    
         
             
                    # 删除RocketMQ集群
         
     | 
| 
       893 
941 
     | 
    
         | 
| 
       894 
942 
     | 
    
         
             
                    # @param request: Request instance for DeleteRocketMQCluster.
         
     | 
| 
         @@ -1741,6 +1789,30 @@ module TencentCloud 
     | 
|
| 
       1741 
1789 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       1742 
1790 
     | 
    
         
             
                    end
         
     | 
| 
       1743 
1791 
     | 
    
         | 
| 
      
 1792 
     | 
    
         
            +
                    # 查询RabbitMQ用户列表
         
     | 
| 
      
 1793 
     | 
    
         
            +
             
     | 
| 
      
 1794 
     | 
    
         
            +
                    # @param request: Request instance for DescribeRabbitMQUser.
         
     | 
| 
      
 1795 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQUserRequest`
         
     | 
| 
      
 1796 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQUserResponse`
         
     | 
| 
      
 1797 
     | 
    
         
            +
                    def DescribeRabbitMQUser(request)
         
     | 
| 
      
 1798 
     | 
    
         
            +
                      body = send_request('DescribeRabbitMQUser', request.serialize)
         
     | 
| 
      
 1799 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 1800 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 1801 
     | 
    
         
            +
                        model = DescribeRabbitMQUserResponse.new
         
     | 
| 
      
 1802 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 1803 
     | 
    
         
            +
                        model
         
     | 
| 
      
 1804 
     | 
    
         
            +
                      else
         
     | 
| 
      
 1805 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 1806 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 1807 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 1808 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 1809 
     | 
    
         
            +
                      end
         
     | 
| 
      
 1810 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 1811 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 1812 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 1813 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 1814 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1815 
     | 
    
         
            +
             
     | 
| 
       1744 
1816 
     | 
    
         
             
                    # 获取单个RabbitMQ专享实例信息
         
     | 
| 
       1745 
1817 
     | 
    
         | 
| 
       1746 
1818 
     | 
    
         
             
                    # @param request: Request instance for DescribeRabbitMQVipInstance.
         
     | 
| 
         @@ -1789,6 +1861,54 @@ module TencentCloud 
     | 
|
| 
       1789 
1861 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       1790 
1862 
     | 
    
         
             
                    end
         
     | 
| 
       1791 
1863 
     | 
    
         | 
| 
      
 1864 
     | 
    
         
            +
                    # 查询RabbitMQ vhost列表
         
     | 
| 
      
 1865 
     | 
    
         
            +
             
     | 
| 
      
 1866 
     | 
    
         
            +
                    # @param request: Request instance for DescribeRabbitMQVirtualHost.
         
     | 
| 
      
 1867 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVirtualHostRequest`
         
     | 
| 
      
 1868 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVirtualHostResponse`
         
     | 
| 
      
 1869 
     | 
    
         
            +
                    def DescribeRabbitMQVirtualHost(request)
         
     | 
| 
      
 1870 
     | 
    
         
            +
                      body = send_request('DescribeRabbitMQVirtualHost', request.serialize)
         
     | 
| 
      
 1871 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 1872 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 1873 
     | 
    
         
            +
                        model = DescribeRabbitMQVirtualHostResponse.new
         
     | 
| 
      
 1874 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 1875 
     | 
    
         
            +
                        model
         
     | 
| 
      
 1876 
     | 
    
         
            +
                      else
         
     | 
| 
      
 1877 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 1878 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 1879 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 1880 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 1881 
     | 
    
         
            +
                      end
         
     | 
| 
      
 1882 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 1883 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 1884 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 1885 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 1886 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1887 
     | 
    
         
            +
             
     | 
| 
      
 1888 
     | 
    
         
            +
                    # RabbitMQ专享版查询虚拟主机列表
         
     | 
| 
      
 1889 
     | 
    
         
            +
             
     | 
| 
      
 1890 
     | 
    
         
            +
                    # @param request: Request instance for DescribeRabbitMQVirtualHostList.
         
     | 
| 
      
 1891 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVirtualHostListRequest`
         
     | 
| 
      
 1892 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVirtualHostListResponse`
         
     | 
| 
      
 1893 
     | 
    
         
            +
                    def DescribeRabbitMQVirtualHostList(request)
         
     | 
| 
      
 1894 
     | 
    
         
            +
                      body = send_request('DescribeRabbitMQVirtualHostList', request.serialize)
         
     | 
| 
      
 1895 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 1896 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 1897 
     | 
    
         
            +
                        model = DescribeRabbitMQVirtualHostListResponse.new
         
     | 
| 
      
 1898 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 1899 
     | 
    
         
            +
                        model
         
     | 
| 
      
 1900 
     | 
    
         
            +
                      else
         
     | 
| 
      
 1901 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 1902 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 1903 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 1904 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 1905 
     | 
    
         
            +
                      end
         
     | 
| 
      
 1906 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 1907 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 1908 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 1909 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 1910 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1911 
     | 
    
         
            +
             
     | 
| 
       1792 
1912 
     | 
    
         
             
                    # 获取单个RocketMQ集群信息
         
     | 
| 
       1793 
1913 
     | 
    
         | 
| 
       1794 
1914 
     | 
    
         
             
                    # @param request: Request instance for DescribeRocketMQCluster.
         
     | 
| 
         @@ -2129,32 +2249,6 @@ module TencentCloud 
     | 
|
| 
       2129 
2249 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       2130 
2250 
     | 
    
         
             
                    end
         
     | 
| 
       2131 
2251 
     | 
    
         | 
| 
       2132 
     | 
    
         
            -
                    # 产品下线了,对应的接口也要下线。
         
     | 
| 
       2133 
     | 
    
         
            -
             
     | 
| 
       2134 
     | 
    
         
            -
                    # 更新Vhost
         
     | 
| 
       2135 
     | 
    
         
            -
             
     | 
| 
       2136 
     | 
    
         
            -
                    # @param request: Request instance for ModifyAMQPVHost.
         
     | 
| 
       2137 
     | 
    
         
            -
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPVHostRequest`
         
     | 
| 
       2138 
     | 
    
         
            -
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPVHostResponse`
         
     | 
| 
       2139 
     | 
    
         
            -
                    def ModifyAMQPVHost(request)
         
     | 
| 
       2140 
     | 
    
         
            -
                      body = send_request('ModifyAMQPVHost', request.serialize)
         
     | 
| 
       2141 
     | 
    
         
            -
                      response = JSON.parse(body)
         
     | 
| 
       2142 
     | 
    
         
            -
                      if response['Response'].key?('Error') == false
         
     | 
| 
       2143 
     | 
    
         
            -
                        model = ModifyAMQPVHostResponse.new
         
     | 
| 
       2144 
     | 
    
         
            -
                        model.deserialize(response['Response'])
         
     | 
| 
       2145 
     | 
    
         
            -
                        model
         
     | 
| 
       2146 
     | 
    
         
            -
                      else
         
     | 
| 
       2147 
     | 
    
         
            -
                        code = response['Response']['Error']['Code']
         
     | 
| 
       2148 
     | 
    
         
            -
                        message = response['Response']['Error']['Message']
         
     | 
| 
       2149 
     | 
    
         
            -
                        reqid = response['Response']['RequestId']
         
     | 
| 
       2150 
     | 
    
         
            -
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
       2151 
     | 
    
         
            -
                      end
         
     | 
| 
       2152 
     | 
    
         
            -
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
       2153 
     | 
    
         
            -
                      raise e
         
     | 
| 
       2154 
     | 
    
         
            -
                    rescue StandardError => e
         
     | 
| 
       2155 
     | 
    
         
            -
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       2156 
     | 
    
         
            -
                    end
         
     | 
| 
       2157 
     | 
    
         
            -
             
     | 
| 
       2158 
2252 
     | 
    
         
             
                    # 更新集群信息
         
     | 
| 
       2159 
2253 
     | 
    
         | 
| 
       2160 
2254 
     | 
    
         
             
                    # @param request: Request instance for ModifyCluster.
         
     | 
| 
         @@ -2299,6 +2393,30 @@ module TencentCloud 
     | 
|
| 
       2299 
2393 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       2300 
2394 
     | 
    
         
             
                    end
         
     | 
| 
       2301 
2395 
     | 
    
         | 
| 
      
 2396 
     | 
    
         
            +
                    # 修改RabbitMQ的用户
         
     | 
| 
      
 2397 
     | 
    
         
            +
             
     | 
| 
      
 2398 
     | 
    
         
            +
                    # @param request: Request instance for ModifyRabbitMQUser.
         
     | 
| 
      
 2399 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyRabbitMQUserRequest`
         
     | 
| 
      
 2400 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyRabbitMQUserResponse`
         
     | 
| 
      
 2401 
     | 
    
         
            +
                    def ModifyRabbitMQUser(request)
         
     | 
| 
      
 2402 
     | 
    
         
            +
                      body = send_request('ModifyRabbitMQUser', request.serialize)
         
     | 
| 
      
 2403 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 2404 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 2405 
     | 
    
         
            +
                        model = ModifyRabbitMQUserResponse.new
         
     | 
| 
      
 2406 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 2407 
     | 
    
         
            +
                        model
         
     | 
| 
      
 2408 
     | 
    
         
            +
                      else
         
     | 
| 
      
 2409 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 2410 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 2411 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 2412 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 2413 
     | 
    
         
            +
                      end
         
     | 
| 
      
 2414 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 2415 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 2416 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 2417 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 2418 
     | 
    
         
            +
                    end
         
     | 
| 
      
 2419 
     | 
    
         
            +
             
     | 
| 
       2302 
2420 
     | 
    
         
             
                    # 修改RabbitMQ专享版实例
         
     | 
| 
       2303 
2421 
     | 
    
         | 
| 
       2304 
2422 
     | 
    
         
             
                    # @param request: Request instance for ModifyRabbitMQVipInstance.
         
     | 
| 
         @@ -2323,6 +2441,30 @@ module TencentCloud 
     | 
|
| 
       2323 
2441 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       2324 
2442 
     | 
    
         
             
                    end
         
     | 
| 
       2325 
2443 
     | 
    
         | 
| 
      
 2444 
     | 
    
         
            +
                    # 修改RabbitMQ的vhost
         
     | 
| 
      
 2445 
     | 
    
         
            +
             
     | 
| 
      
 2446 
     | 
    
         
            +
                    # @param request: Request instance for ModifyRabbitMQVirtualHost.
         
     | 
| 
      
 2447 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyRabbitMQVirtualHostRequest`
         
     | 
| 
      
 2448 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyRabbitMQVirtualHostResponse`
         
     | 
| 
      
 2449 
     | 
    
         
            +
                    def ModifyRabbitMQVirtualHost(request)
         
     | 
| 
      
 2450 
     | 
    
         
            +
                      body = send_request('ModifyRabbitMQVirtualHost', request.serialize)
         
     | 
| 
      
 2451 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 2452 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 2453 
     | 
    
         
            +
                        model = ModifyRabbitMQVirtualHostResponse.new
         
     | 
| 
      
 2454 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 2455 
     | 
    
         
            +
                        model
         
     | 
| 
      
 2456 
     | 
    
         
            +
                      else
         
     | 
| 
      
 2457 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 2458 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 2459 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 2460 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 2461 
     | 
    
         
            +
                      end
         
     | 
| 
      
 2462 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 2463 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 2464 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 2465 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 2466 
     | 
    
         
            +
                    end
         
     | 
| 
      
 2467 
     | 
    
         
            +
             
     | 
| 
       2326 
2468 
     | 
    
         
             
                    # 更新RocketMQ集群信息
         
     | 
| 
       2327 
2469 
     | 
    
         | 
| 
       2328 
2470 
     | 
    
         
             
                    # @param request: Request instance for ModifyRocketMQCluster.
         
     |