tencentcloud-sdk-tdmq 1.0.208 → 1.0.209

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: dc5b6db96a5cdfcc1f852a3416413883c9c85bf4
4
- data.tar.gz: 2eea43d95d0790910d2cfcd7758f7c8fc46b13ac
3
+ metadata.gz: eb9e632897aeddfae905a4122d81c3d4f46631d3
4
+ data.tar.gz: fe584543258c2e8253fdd0f68a7735fbe96054b8
5
5
  SHA512:
6
- metadata.gz: e5cbf0b3b32866881a69b275b3ffcbef53f46b89c91d64850e299244aa9121ae35aab4294d040c15fc66ecd179a9654621848fbdb67e66d06e745423c395d864
7
- data.tar.gz: d4e4304c796adebf46e1215ac0a44faa98f5ef5a56bf00595d48e5e6527b1c9122c5e17b07fedb3027157865c9bc403fdda2888e37263e1d44c07f181ca2fc54
6
+ metadata.gz: d40b8212aa69370c3ba651f147220beae30163aa1b1cd9e25ebac40e370c52718c95e0f03cadcadb2648d3a6f63f6008ef7e08080aaca4326b8088d0b838c684
7
+ data.tar.gz: 71d2a9d506466aca707a1919ebabe87a55144f4be64f51351b51fbe3467887c0575eacc3d4f6d75300bc1945cf41cd84ae455b5e07b9c4d2dccd3895a9e788f7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.208
1
+ 1.0.209
@@ -101,6 +101,126 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 创建AMQP集群
105
+
106
+ # @param request: Request instance for CreateAMQPCluster.
107
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPClusterRequest`
108
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPClusterResponse`
109
+ def CreateAMQPCluster(request)
110
+ body = send_request('CreateAMQPCluster', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateAMQPClusterResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 创建AMQP Exchange
129
+
130
+ # @param request: Request instance for CreateAMQPExchange.
131
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPExchangeRequest`
132
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPExchangeResponse`
133
+ def CreateAMQPExchange(request)
134
+ body = send_request('CreateAMQPExchange', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateAMQPExchangeResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 创建AMQP队列
153
+
154
+ # @param request: Request instance for CreateAMQPQueue.
155
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPQueueRequest`
156
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPQueueResponse`
157
+ def CreateAMQPQueue(request)
158
+ body = send_request('CreateAMQPQueue', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = CreateAMQPQueueResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 创建AMQP路由关系
177
+
178
+ # @param request: Request instance for CreateAMQPRouteRelation.
179
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPRouteRelationRequest`
180
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPRouteRelationResponse`
181
+ def CreateAMQPRouteRelation(request)
182
+ body = send_request('CreateAMQPRouteRelation', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CreateAMQPRouteRelationResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 创建Amqp Vhost
201
+
202
+ # @param request: Request instance for CreateAMQPVHost.
203
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPVHostRequest`
204
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateAMQPVHostResponse`
205
+ def CreateAMQPVHost(request)
206
+ body = send_request('CreateAMQPVHost', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CreateAMQPVHostResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
104
224
  # 创建用户的集群
105
225
 
106
226
  # @param request: Request instance for CreateCluster.
@@ -413,6 +533,126 @@ module TencentCloud
413
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
534
  end
415
535
 
536
+ # 删除AMQP集群
537
+
538
+ # @param request: Request instance for DeleteAMQPCluster.
539
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPClusterRequest`
540
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPClusterResponse`
541
+ def DeleteAMQPCluster(request)
542
+ body = send_request('DeleteAMQPCluster', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DeleteAMQPClusterResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 删除Amqp交换机
561
+
562
+ # @param request: Request instance for DeleteAMQPExchange.
563
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPExchangeRequest`
564
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPExchangeResponse`
565
+ def DeleteAMQPExchange(request)
566
+ body = send_request('DeleteAMQPExchange', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DeleteAMQPExchangeResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
584
+ # 删除Amqp队列
585
+
586
+ # @param request: Request instance for DeleteAMQPQueue.
587
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPQueueRequest`
588
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPQueueResponse`
589
+ def DeleteAMQPQueue(request)
590
+ body = send_request('DeleteAMQPQueue', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DeleteAMQPQueueResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
608
+ # 删除Amqp路由关系
609
+
610
+ # @param request: Request instance for DeleteAMQPRouteRelation.
611
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPRouteRelationRequest`
612
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPRouteRelationResponse`
613
+ def DeleteAMQPRouteRelation(request)
614
+ body = send_request('DeleteAMQPRouteRelation', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DeleteAMQPRouteRelationResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
632
+ # 删除Vhost
633
+
634
+ # @param request: Request instance for DeleteAMQPVHost.
635
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPVHostRequest`
636
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DeleteAMQPVHostResponse`
637
+ def DeleteAMQPVHost(request)
638
+ body = send_request('DeleteAMQPVHost', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DeleteAMQPVHostResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
416
656
  # 删除集群
417
657
 
418
658
  # @param request: Request instance for DeleteCluster.
@@ -725,6 +965,174 @@ module TencentCloud
725
965
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
966
  end
727
967
 
968
+ # 获取单个Amqp集群信息
969
+
970
+ # @param request: Request instance for DescribeAMQPCluster.
971
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPClusterRequest`
972
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPClusterResponse`
973
+ def DescribeAMQPCluster(request)
974
+ body = send_request('DescribeAMQPCluster', request.serialize)
975
+ response = JSON.parse(body)
976
+ if response['Response'].key?('Error') == false
977
+ model = DescribeAMQPClusterResponse.new
978
+ model.deserialize(response['Response'])
979
+ model
980
+ else
981
+ code = response['Response']['Error']['Code']
982
+ message = response['Response']['Error']['Message']
983
+ reqid = response['Response']['RequestId']
984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
985
+ end
986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
987
+ raise e
988
+ rescue StandardError => e
989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
+ end
991
+
992
+ # 获取amqp集群列表
993
+
994
+ # @param request: Request instance for DescribeAMQPClusters.
995
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPClustersRequest`
996
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPClustersResponse`
997
+ def DescribeAMQPClusters(request)
998
+ body = send_request('DescribeAMQPClusters', request.serialize)
999
+ response = JSON.parse(body)
1000
+ if response['Response'].key?('Error') == false
1001
+ model = DescribeAMQPClustersResponse.new
1002
+ model.deserialize(response['Response'])
1003
+ model
1004
+ else
1005
+ code = response['Response']['Error']['Code']
1006
+ message = response['Response']['Error']['Message']
1007
+ reqid = response['Response']['RequestId']
1008
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1009
+ end
1010
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1011
+ raise e
1012
+ rescue StandardError => e
1013
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1014
+ end
1015
+
1016
+ # 获取用户的配额,如Queue容量,Exchange容量,Vhost容量,单Vhost Tps数,剩余可创建集群数
1017
+
1018
+ # @param request: Request instance for DescribeAMQPCreateQuota.
1019
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPCreateQuotaRequest`
1020
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPCreateQuotaResponse`
1021
+ def DescribeAMQPCreateQuota(request)
1022
+ body = send_request('DescribeAMQPCreateQuota', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeAMQPCreateQuotaResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
1040
+ # 获取AMQP Exchange列表
1041
+
1042
+ # @param request: Request instance for DescribeAMQPExchanges.
1043
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPExchangesRequest`
1044
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPExchangesResponse`
1045
+ def DescribeAMQPExchanges(request)
1046
+ body = send_request('DescribeAMQPExchanges', request.serialize)
1047
+ response = JSON.parse(body)
1048
+ if response['Response'].key?('Error') == false
1049
+ model = DescribeAMQPExchangesResponse.new
1050
+ model.deserialize(response['Response'])
1051
+ model
1052
+ else
1053
+ code = response['Response']['Error']['Code']
1054
+ message = response['Response']['Error']['Message']
1055
+ reqid = response['Response']['RequestId']
1056
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1057
+ end
1058
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1059
+ raise e
1060
+ rescue StandardError => e
1061
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1062
+ end
1063
+
1064
+ # 获取Amqp队列列表
1065
+
1066
+ # @param request: Request instance for DescribeAMQPQueues.
1067
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPQueuesRequest`
1068
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPQueuesResponse`
1069
+ def DescribeAMQPQueues(request)
1070
+ body = send_request('DescribeAMQPQueues', request.serialize)
1071
+ response = JSON.parse(body)
1072
+ if response['Response'].key?('Error') == false
1073
+ model = DescribeAMQPQueuesResponse.new
1074
+ model.deserialize(response['Response'])
1075
+ model
1076
+ else
1077
+ code = response['Response']['Error']['Code']
1078
+ message = response['Response']['Error']['Message']
1079
+ reqid = response['Response']['RequestId']
1080
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1081
+ end
1082
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1083
+ raise e
1084
+ rescue StandardError => e
1085
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1086
+ end
1087
+
1088
+ # 获取Amqp路由关系列表
1089
+
1090
+ # @param request: Request instance for DescribeAMQPRouteRelations.
1091
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPRouteRelationsRequest`
1092
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPRouteRelationsResponse`
1093
+ def DescribeAMQPRouteRelations(request)
1094
+ body = send_request('DescribeAMQPRouteRelations', request.serialize)
1095
+ response = JSON.parse(body)
1096
+ if response['Response'].key?('Error') == false
1097
+ model = DescribeAMQPRouteRelationsResponse.new
1098
+ model.deserialize(response['Response'])
1099
+ model
1100
+ else
1101
+ code = response['Response']['Error']['Code']
1102
+ message = response['Response']['Error']['Message']
1103
+ reqid = response['Response']['RequestId']
1104
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1105
+ end
1106
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1107
+ raise e
1108
+ rescue StandardError => e
1109
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
+ end
1111
+
1112
+ # 获取Amqp Vhost 列表
1113
+
1114
+ # @param request: Request instance for DescribeAMQPVHosts.
1115
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPVHostsRequest`
1116
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeAMQPVHostsResponse`
1117
+ def DescribeAMQPVHosts(request)
1118
+ body = send_request('DescribeAMQPVHosts', request.serialize)
1119
+ response = JSON.parse(body)
1120
+ if response['Response'].key?('Error') == false
1121
+ model = DescribeAMQPVHostsResponse.new
1122
+ model.deserialize(response['Response'])
1123
+ model
1124
+ else
1125
+ code = response['Response']['Error']['Code']
1126
+ message = response['Response']['Error']['Message']
1127
+ reqid = response['Response']['RequestId']
1128
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1129
+ end
1130
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1131
+ raise e
1132
+ rescue StandardError => e
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
+ end
1135
+
728
1136
  # 获取用户绑定的专享集群列表
729
1137
 
730
1138
  # @param request: Request instance for DescribeBindClusters.
@@ -1301,6 +1709,102 @@ module TencentCloud
1301
1709
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
1710
  end
1303
1711
 
1712
+ # 更新Amqp集群信息
1713
+
1714
+ # @param request: Request instance for ModifyAMQPCluster.
1715
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPClusterRequest`
1716
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPClusterResponse`
1717
+ def ModifyAMQPCluster(request)
1718
+ body = send_request('ModifyAMQPCluster', request.serialize)
1719
+ response = JSON.parse(body)
1720
+ if response['Response'].key?('Error') == false
1721
+ model = ModifyAMQPClusterResponse.new
1722
+ model.deserialize(response['Response'])
1723
+ model
1724
+ else
1725
+ code = response['Response']['Error']['Code']
1726
+ message = response['Response']['Error']['Message']
1727
+ reqid = response['Response']['RequestId']
1728
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1729
+ end
1730
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1731
+ raise e
1732
+ rescue StandardError => e
1733
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1734
+ end
1735
+
1736
+ # 更新Amqp交换机
1737
+
1738
+ # @param request: Request instance for ModifyAMQPExchange.
1739
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPExchangeRequest`
1740
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPExchangeResponse`
1741
+ def ModifyAMQPExchange(request)
1742
+ body = send_request('ModifyAMQPExchange', request.serialize)
1743
+ response = JSON.parse(body)
1744
+ if response['Response'].key?('Error') == false
1745
+ model = ModifyAMQPExchangeResponse.new
1746
+ model.deserialize(response['Response'])
1747
+ model
1748
+ else
1749
+ code = response['Response']['Error']['Code']
1750
+ message = response['Response']['Error']['Message']
1751
+ reqid = response['Response']['RequestId']
1752
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1753
+ end
1754
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1755
+ raise e
1756
+ rescue StandardError => e
1757
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1758
+ end
1759
+
1760
+ # 更新Amqp队列
1761
+
1762
+ # @param request: Request instance for ModifyAMQPQueue.
1763
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPQueueRequest`
1764
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPQueueResponse`
1765
+ def ModifyAMQPQueue(request)
1766
+ body = send_request('ModifyAMQPQueue', request.serialize)
1767
+ response = JSON.parse(body)
1768
+ if response['Response'].key?('Error') == false
1769
+ model = ModifyAMQPQueueResponse.new
1770
+ model.deserialize(response['Response'])
1771
+ model
1772
+ else
1773
+ code = response['Response']['Error']['Code']
1774
+ message = response['Response']['Error']['Message']
1775
+ reqid = response['Response']['RequestId']
1776
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1777
+ end
1778
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1779
+ raise e
1780
+ rescue StandardError => e
1781
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
+ end
1783
+
1784
+ # 更新Vhost
1785
+
1786
+ # @param request: Request instance for ModifyAMQPVHost.
1787
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPVHostRequest`
1788
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::ModifyAMQPVHostResponse`
1789
+ def ModifyAMQPVHost(request)
1790
+ body = send_request('ModifyAMQPVHost', request.serialize)
1791
+ response = JSON.parse(body)
1792
+ if response['Response'].key?('Error') == false
1793
+ model = ModifyAMQPVHostResponse.new
1794
+ model.deserialize(response['Response'])
1795
+ model
1796
+ else
1797
+ code = response['Response']['Error']['Code']
1798
+ message = response['Response']['Error']['Message']
1799
+ reqid = response['Response']['RequestId']
1800
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1801
+ end
1802
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1803
+ raise e
1804
+ rescue StandardError => e
1805
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1806
+ end
1807
+
1304
1808
  # 更新集群信息
1305
1809
 
1306
1810
  # @param request: Request instance for ModifyCluster.