-
Notifications
You must be signed in to change notification settings - Fork 4
/
TdmqClient.java
1098 lines (988 loc) · 48.1 KB
/
TdmqClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.tdmq.v20200217;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.tdmq.v20200217.models.*;
public class TdmqClient extends AbstractClient{
private static String endpoint = "tdmq.tencentcloudapi.com";
private static String service = "tdmq";
private static String version = "2020-02-17";
public TdmqClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public TdmqClient(Credential credential, String region, ClientProfile profile) {
super(TdmqClient.endpoint, TdmqClient.version, credential, region, profile);
}
/**
*This API is used to acknowledge the message in the specified topic by the provided `MessageID`.
* @param req AcknowledgeMessageRequest
* @return AcknowledgeMessageResponse
* @throws TencentCloudSDKException
*/
public AcknowledgeMessageResponse AcknowledgeMessage(AcknowledgeMessageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AcknowledgeMessage", AcknowledgeMessageResponse.class);
}
/**
*This API is used to clear the messages in the CMQ message queue.
* @param req ClearCmqQueueRequest
* @return ClearCmqQueueResponse
* @throws TencentCloudSDKException
*/
public ClearCmqQueueResponse ClearCmqQueue(ClearCmqQueueRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ClearCmqQueue", ClearCmqQueueResponse.class);
}
/**
*This API is used to clear the message tags of a subscriber.
* @param req ClearCmqSubscriptionFilterTagsRequest
* @return ClearCmqSubscriptionFilterTagsResponse
* @throws TencentCloudSDKException
*/
public ClearCmqSubscriptionFilterTagsResponse ClearCmqSubscriptionFilterTags(ClearCmqSubscriptionFilterTagsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ClearCmqSubscriptionFilterTags", ClearCmqSubscriptionFilterTagsResponse.class);
}
/**
*This API is used to create a cluster.
* @param req CreateClusterRequest
* @return CreateClusterResponse
* @throws TencentCloudSDKException
*/
public CreateClusterResponse CreateCluster(CreateClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateCluster", CreateClusterResponse.class);
}
/**
*This API is used to create a CMQ queue.
* @param req CreateCmqQueueRequest
* @return CreateCmqQueueResponse
* @throws TencentCloudSDKException
*/
public CreateCmqQueueResponse CreateCmqQueue(CreateCmqQueueRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateCmqQueue", CreateCmqQueueResponse.class);
}
/**
*This API is used to create a CMQ subscription.
* @param req CreateCmqSubscribeRequest
* @return CreateCmqSubscribeResponse
* @throws TencentCloudSDKException
*/
public CreateCmqSubscribeResponse CreateCmqSubscribe(CreateCmqSubscribeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateCmqSubscribe", CreateCmqSubscribeResponse.class);
}
/**
*This API is used to create a CMQ topic.
* @param req CreateCmqTopicRequest
* @return CreateCmqTopicResponse
* @throws TencentCloudSDKException
*/
public CreateCmqTopicResponse CreateCmqTopic(CreateCmqTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateCmqTopic", CreateCmqTopicResponse.class);
}
/**
*This API is used to create a TDMQ namespace.
* @param req CreateEnvironmentRequest
* @return CreateEnvironmentResponse
* @throws TencentCloudSDKException
*/
public CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateEnvironment", CreateEnvironmentResponse.class);
}
/**
*This API is used to create an environment role.
* @param req CreateEnvironmentRoleRequest
* @return CreateEnvironmentRoleResponse
* @throws TencentCloudSDKException
*/
public CreateEnvironmentRoleResponse CreateEnvironmentRole(CreateEnvironmentRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateEnvironmentRole", CreateEnvironmentRoleResponse.class);
}
/**
*This API is used to create a TDMQ for RabbitMQ user.
* @param req CreateRabbitMQUserRequest
* @return CreateRabbitMQUserResponse
* @throws TencentCloudSDKException
*/
public CreateRabbitMQUserResponse CreateRabbitMQUser(CreateRabbitMQUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRabbitMQUser", CreateRabbitMQUserResponse.class);
}
/**
*This API is used to create a TDMQ for RabbitMQ exclusive instance.
* @param req CreateRabbitMQVipInstanceRequest
* @return CreateRabbitMQVipInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateRabbitMQVipInstanceResponse CreateRabbitMQVipInstance(CreateRabbitMQVipInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRabbitMQVipInstance", CreateRabbitMQVipInstanceResponse.class);
}
/**
*This API is used to create a TDMQ for RabbitMQ vhost.
* @param req CreateRabbitMQVirtualHostRequest
* @return CreateRabbitMQVirtualHostResponse
* @throws TencentCloudSDKException
*/
public CreateRabbitMQVirtualHostResponse CreateRabbitMQVirtualHost(CreateRabbitMQVirtualHostRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRabbitMQVirtualHost", CreateRabbitMQVirtualHostResponse.class);
}
/**
*This API is used to create a RocketMQ cluster.
* @param req CreateRocketMQClusterRequest
* @return CreateRocketMQClusterResponse
* @throws TencentCloudSDKException
*/
public CreateRocketMQClusterResponse CreateRocketMQCluster(CreateRocketMQClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRocketMQCluster", CreateRocketMQClusterResponse.class);
}
/**
*This API is used to create a RocketMQ consumer group.
* @param req CreateRocketMQGroupRequest
* @return CreateRocketMQGroupResponse
* @throws TencentCloudSDKException
*/
public CreateRocketMQGroupResponse CreateRocketMQGroup(CreateRocketMQGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRocketMQGroup", CreateRocketMQGroupResponse.class);
}
/**
*This API is used to create a RocketMQ namespace.
* @param req CreateRocketMQNamespaceRequest
* @return CreateRocketMQNamespaceResponse
* @throws TencentCloudSDKException
*/
public CreateRocketMQNamespaceResponse CreateRocketMQNamespace(CreateRocketMQNamespaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRocketMQNamespace", CreateRocketMQNamespaceResponse.class);
}
/**
*This API is used to create a RocketMQ topic.
* @param req CreateRocketMQTopicRequest
* @return CreateRocketMQTopicResponse
* @throws TencentCloudSDKException
*/
public CreateRocketMQTopicResponse CreateRocketMQTopic(CreateRocketMQTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRocketMQTopic", CreateRocketMQTopicResponse.class);
}
/**
*This API is used to create a role.
* @param req CreateRoleRequest
* @return CreateRoleResponse
* @throws TencentCloudSDKException
*/
public CreateRoleResponse CreateRole(CreateRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRole", CreateRoleResponse.class);
}
/**
*This API is used to create a subscription to a topic.
* @param req CreateSubscriptionRequest
* @return CreateSubscriptionResponse
* @throws TencentCloudSDKException
*/
public CreateSubscriptionResponse CreateSubscription(CreateSubscriptionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSubscription", CreateSubscriptionResponse.class);
}
/**
*This API is used to add a message topic in the specified partition and type.
* @param req CreateTopicRequest
* @return CreateTopicResponse
* @throws TencentCloudSDKException
*/
public CreateTopicResponse CreateTopic(CreateTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateTopic", CreateTopicResponse.class);
}
/**
*This API is used to delete a cluster.
* @param req DeleteClusterRequest
* @return DeleteClusterResponse
* @throws TencentCloudSDKException
*/
public DeleteClusterResponse DeleteCluster(DeleteClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteCluster", DeleteClusterResponse.class);
}
/**
*This API is used to delete a CMQ queue.
* @param req DeleteCmqQueueRequest
* @return DeleteCmqQueueResponse
* @throws TencentCloudSDKException
*/
public DeleteCmqQueueResponse DeleteCmqQueue(DeleteCmqQueueRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteCmqQueue", DeleteCmqQueueResponse.class);
}
/**
*This API is used to delete a CMQ subscription.
* @param req DeleteCmqSubscribeRequest
* @return DeleteCmqSubscribeResponse
* @throws TencentCloudSDKException
*/
public DeleteCmqSubscribeResponse DeleteCmqSubscribe(DeleteCmqSubscribeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteCmqSubscribe", DeleteCmqSubscribeResponse.class);
}
/**
*This API is used to delete a CMQ topic.
* @param req DeleteCmqTopicRequest
* @return DeleteCmqTopicResponse
* @throws TencentCloudSDKException
*/
public DeleteCmqTopicResponse DeleteCmqTopic(DeleteCmqTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteCmqTopic", DeleteCmqTopicResponse.class);
}
/**
*This API is used to delete an environment role.
* @param req DeleteEnvironmentRolesRequest
* @return DeleteEnvironmentRolesResponse
* @throws TencentCloudSDKException
*/
public DeleteEnvironmentRolesResponse DeleteEnvironmentRoles(DeleteEnvironmentRolesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteEnvironmentRoles", DeleteEnvironmentRolesResponse.class);
}
/**
*This API is used to batch delete namespaces under a tenant.
* @param req DeleteEnvironmentsRequest
* @return DeleteEnvironmentsResponse
* @throws TencentCloudSDKException
*/
public DeleteEnvironmentsResponse DeleteEnvironments(DeleteEnvironmentsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteEnvironments", DeleteEnvironmentsResponse.class);
}
/**
*This API is used to delete a TDMQ for RabbitMQ user.
* @param req DeleteRabbitMQUserRequest
* @return DeleteRabbitMQUserResponse
* @throws TencentCloudSDKException
*/
public DeleteRabbitMQUserResponse DeleteRabbitMQUser(DeleteRabbitMQUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRabbitMQUser", DeleteRabbitMQUserResponse.class);
}
/**
*This API is used to delete a TDMQ for RabbitMQ exclusive instance.
* @param req DeleteRabbitMQVipInstanceRequest
* @return DeleteRabbitMQVipInstanceResponse
* @throws TencentCloudSDKException
*/
public DeleteRabbitMQVipInstanceResponse DeleteRabbitMQVipInstance(DeleteRabbitMQVipInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRabbitMQVipInstance", DeleteRabbitMQVipInstanceResponse.class);
}
/**
*This API is used to delete a TDMQ for RabbitMQ vhost.
* @param req DeleteRabbitMQVirtualHostRequest
* @return DeleteRabbitMQVirtualHostResponse
* @throws TencentCloudSDKException
*/
public DeleteRabbitMQVirtualHostResponse DeleteRabbitMQVirtualHost(DeleteRabbitMQVirtualHostRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRabbitMQVirtualHost", DeleteRabbitMQVirtualHostResponse.class);
}
/**
*This API is used to delete a RocketMQ cluster.
* @param req DeleteRocketMQClusterRequest
* @return DeleteRocketMQClusterResponse
* @throws TencentCloudSDKException
*/
public DeleteRocketMQClusterResponse DeleteRocketMQCluster(DeleteRocketMQClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRocketMQCluster", DeleteRocketMQClusterResponse.class);
}
/**
*This API is used to delete a RocketMQ consumer group.
* @param req DeleteRocketMQGroupRequest
* @return DeleteRocketMQGroupResponse
* @throws TencentCloudSDKException
*/
public DeleteRocketMQGroupResponse DeleteRocketMQGroup(DeleteRocketMQGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRocketMQGroup", DeleteRocketMQGroupResponse.class);
}
/**
*This API is used to delete a RocketMQ namespace.
* @param req DeleteRocketMQNamespaceRequest
* @return DeleteRocketMQNamespaceResponse
* @throws TencentCloudSDKException
*/
public DeleteRocketMQNamespaceResponse DeleteRocketMQNamespace(DeleteRocketMQNamespaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRocketMQNamespace", DeleteRocketMQNamespaceResponse.class);
}
/**
*This API is used to delete a RocketMQ topic.
* @param req DeleteRocketMQTopicRequest
* @return DeleteRocketMQTopicResponse
* @throws TencentCloudSDKException
*/
public DeleteRocketMQTopicResponse DeleteRocketMQTopic(DeleteRocketMQTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRocketMQTopic", DeleteRocketMQTopicResponse.class);
}
/**
*This API is used to delete one or multiple roles.
* @param req DeleteRolesRequest
* @return DeleteRolesResponse
* @throws TencentCloudSDKException
*/
public DeleteRolesResponse DeleteRoles(DeleteRolesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRoles", DeleteRolesResponse.class);
}
/**
*This API is used to delete a subscription.
* @param req DeleteSubscriptionsRequest
* @return DeleteSubscriptionsResponse
* @throws TencentCloudSDKException
*/
public DeleteSubscriptionsResponse DeleteSubscriptions(DeleteSubscriptionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSubscriptions", DeleteSubscriptionsResponse.class);
}
/**
*This API is used to batch delete topics.
* @param req DeleteTopicsRequest
* @return DeleteTopicsResponse
* @throws TencentCloudSDKException
*/
public DeleteTopicsResponse DeleteTopics(DeleteTopicsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteTopics", DeleteTopicsResponse.class);
}
/**
*This API is used to get the list of dedicated clusters bound to a user.
* @param req DescribeBindClustersRequest
* @return DescribeBindClustersResponse
* @throws TencentCloudSDKException
*/
public DescribeBindClustersResponse DescribeBindClusters(DescribeBindClustersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBindClusters", DescribeBindClustersResponse.class);
}
/**
*This API is used to get the tenant-VPC binding relationship.
* @param req DescribeBindVpcsRequest
* @return DescribeBindVpcsResponse
* @throws TencentCloudSDKException
*/
public DescribeBindVpcsResponse DescribeBindVpcs(DescribeBindVpcsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBindVpcs", DescribeBindVpcsResponse.class);
}
/**
*This API is used to get the details of a cluster.
* @param req DescribeClusterDetailRequest
* @return DescribeClusterDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeClusterDetailResponse DescribeClusterDetail(DescribeClusterDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeClusterDetail", DescribeClusterDetailResponse.class);
}
/**
*This API is used to get the list of clusters.
* @param req DescribeClustersRequest
* @return DescribeClustersResponse
* @throws TencentCloudSDKException
*/
public DescribeClustersResponse DescribeClusters(DescribeClustersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeClusters", DescribeClustersResponse.class);
}
/**
*This API is used to enumerate the source queues of a CMQ dead letter queue.
* @param req DescribeCmqDeadLetterSourceQueuesRequest
* @return DescribeCmqDeadLetterSourceQueuesResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqDeadLetterSourceQueuesResponse DescribeCmqDeadLetterSourceQueues(DescribeCmqDeadLetterSourceQueuesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCmqDeadLetterSourceQueues", DescribeCmqDeadLetterSourceQueuesResponse.class);
}
/**
*This API is used to query the details of a CMQ queue.
* @param req DescribeCmqQueueDetailRequest
* @return DescribeCmqQueueDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqQueueDetailResponse DescribeCmqQueueDetail(DescribeCmqQueueDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCmqQueueDetail", DescribeCmqQueueDetailResponse.class);
}
/**
*This API is used to query all CMQ queues.
* @param req DescribeCmqQueuesRequest
* @return DescribeCmqQueuesResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqQueuesResponse DescribeCmqQueues(DescribeCmqQueuesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCmqQueues", DescribeCmqQueuesResponse.class);
}
/**
*This API is used to query the CMQ subscription details.
* @param req DescribeCmqSubscriptionDetailRequest
* @return DescribeCmqSubscriptionDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqSubscriptionDetailResponse DescribeCmqSubscriptionDetail(DescribeCmqSubscriptionDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCmqSubscriptionDetail", DescribeCmqSubscriptionDetailResponse.class);
}
/**
*This API is used to query the details of a CMQ topic.
* @param req DescribeCmqTopicDetailRequest
* @return DescribeCmqTopicDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqTopicDetailResponse DescribeCmqTopicDetail(DescribeCmqTopicDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCmqTopicDetail", DescribeCmqTopicDetailResponse.class);
}
/**
*This API is used to enumerate all CMQ topics.
* @param req DescribeCmqTopicsRequest
* @return DescribeCmqTopicsResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqTopicsResponse DescribeCmqTopics(DescribeCmqTopicsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCmqTopics", DescribeCmqTopicsResponse.class);
}
/**
*This API is used to get the attributes of the specified namespace.
* @param req DescribeEnvironmentAttributesRequest
* @return DescribeEnvironmentAttributesResponse
* @throws TencentCloudSDKException
*/
public DescribeEnvironmentAttributesResponse DescribeEnvironmentAttributes(DescribeEnvironmentAttributesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeEnvironmentAttributes", DescribeEnvironmentAttributesResponse.class);
}
/**
*This API is used to get the list of namespace roles.
* @param req DescribeEnvironmentRolesRequest
* @return DescribeEnvironmentRolesResponse
* @throws TencentCloudSDKException
*/
public DescribeEnvironmentRolesResponse DescribeEnvironmentRoles(DescribeEnvironmentRolesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeEnvironmentRoles", DescribeEnvironmentRolesResponse.class);
}
/**
*This API is used to get the list of namespaces under a tenant.
* @param req DescribeEnvironmentsRequest
* @return DescribeEnvironmentsResponse
* @throws TencentCloudSDKException
*/
public DescribeEnvironmentsResponse DescribeEnvironments(DescribeEnvironmentsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeEnvironments", DescribeEnvironmentsResponse.class);
}
/**
*This API is used to obtain message production overview information.
* @param req DescribePublisherSummaryRequest
* @return DescribePublisherSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribePublisherSummaryResponse DescribePublisherSummary(DescribePublisherSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePublisherSummary", DescribePublisherSummaryResponse.class);
}
/**
*This API is used to obtain the list of producer information.
* @param req DescribePublishersRequest
* @return DescribePublishersResponse
* @throws TencentCloudSDKException
*/
public DescribePublishersResponse DescribePublishers(DescribePublishersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePublishers", DescribePublishersResponse.class);
}
/**
*This API is used to obtain the information of a TDMQ for Pulsar pro cluster instance.
* @param req DescribePulsarProInstanceDetailRequest
* @return DescribePulsarProInstanceDetailResponse
* @throws TencentCloudSDKException
*/
public DescribePulsarProInstanceDetailResponse DescribePulsarProInstanceDetail(DescribePulsarProInstanceDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePulsarProInstanceDetail", DescribePulsarProInstanceDetailResponse.class);
}
/**
*This API is used to query the list of the purchased TDMQ for Pulsar pro instances.
* @param req DescribePulsarProInstancesRequest
* @return DescribePulsarProInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribePulsarProInstancesResponse DescribePulsarProInstances(DescribePulsarProInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePulsarProInstances", DescribePulsarProInstancesResponse.class);
}
/**
*This API is used to query the list of TDMQ for RabbitMQ exclusive cluster nodes.
* @param req DescribeRabbitMQNodeListRequest
* @return DescribeRabbitMQNodeListResponse
* @throws TencentCloudSDKException
*/
public DescribeRabbitMQNodeListResponse DescribeRabbitMQNodeList(DescribeRabbitMQNodeListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRabbitMQNodeList", DescribeRabbitMQNodeListResponse.class);
}
/**
*This API is used to query the list of TDMQ for RabbitMQ users.
* @param req DescribeRabbitMQUserRequest
* @return DescribeRabbitMQUserResponse
* @throws TencentCloudSDKException
*/
public DescribeRabbitMQUserResponse DescribeRabbitMQUser(DescribeRabbitMQUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRabbitMQUser", DescribeRabbitMQUserResponse.class);
}
/**
*This API is used to query the list of the purchased TDMQ for RabbitMQ exclusive instances.
* @param req DescribeRabbitMQVipInstancesRequest
* @return DescribeRabbitMQVipInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeRabbitMQVipInstancesResponse DescribeRabbitMQVipInstances(DescribeRabbitMQVipInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRabbitMQVipInstances", DescribeRabbitMQVipInstancesResponse.class);
}
/**
*This API is used to query the list of TDMQ for RabbitMQ vhosts.
* @param req DescribeRabbitMQVirtualHostRequest
* @return DescribeRabbitMQVirtualHostResponse
* @throws TencentCloudSDKException
*/
public DescribeRabbitMQVirtualHostResponse DescribeRabbitMQVirtualHost(DescribeRabbitMQVirtualHostRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRabbitMQVirtualHost", DescribeRabbitMQVirtualHostResponse.class);
}
/**
*This API is used to query the list of TDMQ for RabbitMQ exclusive vhosts.
* @param req DescribeRabbitMQVirtualHostListRequest
* @return DescribeRabbitMQVirtualHostListResponse
* @throws TencentCloudSDKException
*/
public DescribeRabbitMQVirtualHostListResponse DescribeRabbitMQVirtualHostList(DescribeRabbitMQVirtualHostListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRabbitMQVirtualHostList", DescribeRabbitMQVirtualHostListResponse.class);
}
/**
*This API is used to get the information of a specific RocketMQ cluster.
* @param req DescribeRocketMQClusterRequest
* @return DescribeRocketMQClusterResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQClusterResponse DescribeRocketMQCluster(DescribeRocketMQClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQCluster", DescribeRocketMQClusterResponse.class);
}
/**
*This API is used to get the list of RocketMQ clusters.
* @param req DescribeRocketMQClustersRequest
* @return DescribeRocketMQClustersResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQClustersResponse DescribeRocketMQClusters(DescribeRocketMQClustersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQClusters", DescribeRocketMQClustersResponse.class);
}
/**
*This API is used to get the list of RocketMQ consumer groups.
* @param req DescribeRocketMQGroupsRequest
* @return DescribeRocketMQGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQGroupsResponse DescribeRocketMQGroups(DescribeRocketMQGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQGroups", DescribeRocketMQGroupsResponse.class);
}
/**
*This API is used to query the TDMQ for RocketMQ message details.
* @param req DescribeRocketMQMsgRequest
* @return DescribeRocketMQMsgResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQMsgResponse DescribeRocketMQMsg(DescribeRocketMQMsgRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQMsg", DescribeRocketMQMsgResponse.class);
}
/**
*This API is used to get the list of RocketMQ namespaces.
* @param req DescribeRocketMQNamespacesRequest
* @return DescribeRocketMQNamespacesResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQNamespacesResponse DescribeRocketMQNamespaces(DescribeRocketMQNamespacesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQNamespaces", DescribeRocketMQNamespacesResponse.class);
}
/**
*This API is used to get the list of RocketMQ topics.
* @param req DescribeRocketMQTopicsRequest
* @return DescribeRocketMQTopicsResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQTopicsResponse DescribeRocketMQTopics(DescribeRocketMQTopicsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQTopics", DescribeRocketMQTopicsResponse.class);
}
/**
*This API is used to get the information of a specific TDMQ for RocketMQ exclusive cluster.
* @param req DescribeRocketMQVipInstanceDetailRequest
* @return DescribeRocketMQVipInstanceDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQVipInstanceDetailResponse DescribeRocketMQVipInstanceDetail(DescribeRocketMQVipInstanceDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQVipInstanceDetail", DescribeRocketMQVipInstanceDetailResponse.class);
}
/**
*This API is used to query the list of the purchased TDMQ for RocketMQ exclusive instances.
* @param req DescribeRocketMQVipInstancesRequest
* @return DescribeRocketMQVipInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQVipInstancesResponse DescribeRocketMQVipInstances(DescribeRocketMQVipInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRocketMQVipInstances", DescribeRocketMQVipInstancesResponse.class);
}
/**
*This API is used to get the list of roles.
* @param req DescribeRolesRequest
* @return DescribeRolesResponse
* @throws TencentCloudSDKException
*/
public DescribeRolesResponse DescribeRoles(DescribeRolesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRoles", DescribeRolesResponse.class);
}
/**
*This API is used to query the list of subscribers under the specified environment and topic.
* @param req DescribeSubscriptionsRequest
* @return DescribeSubscriptionsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubscriptionsResponse DescribeSubscriptions(DescribeSubscriptionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubscriptions", DescribeSubscriptionsResponse.class);
}
/**
*This API is used to get the list of topics under an environment.
* @param req DescribeTopicsRequest
* @return DescribeTopicsResponse
* @throws TencentCloudSDKException
*/
public DescribeTopicsResponse DescribeTopics(DescribeTopicsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTopics", DescribeTopicsResponse.class);
}
/**
*This API is used to update a cluster.
* @param req ModifyClusterRequest
* @return ModifyClusterResponse
* @throws TencentCloudSDKException
*/
public ModifyClusterResponse ModifyCluster(ModifyClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyCluster", ModifyClusterResponse.class);
}
/**
*This API is used to modify the attributes of a CMQ queue.
* @param req ModifyCmqQueueAttributeRequest
* @return ModifyCmqQueueAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyCmqQueueAttributeResponse ModifyCmqQueueAttribute(ModifyCmqQueueAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyCmqQueueAttribute", ModifyCmqQueueAttributeResponse.class);
}
/**
*This API is used to modify the attributes of a CMQ subscription.
* @param req ModifyCmqSubscriptionAttributeRequest
* @return ModifyCmqSubscriptionAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyCmqSubscriptionAttributeResponse ModifyCmqSubscriptionAttribute(ModifyCmqSubscriptionAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyCmqSubscriptionAttribute", ModifyCmqSubscriptionAttributeResponse.class);
}
/**
*This API is used to modify the attributes of a CMQ topic.
* @param req ModifyCmqTopicAttributeRequest
* @return ModifyCmqTopicAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyCmqTopicAttributeResponse ModifyCmqTopicAttribute(ModifyCmqTopicAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyCmqTopicAttribute", ModifyCmqTopicAttributeResponse.class);
}
/**
*This API is used to modify the attributes of the specified namespace.
* @param req ModifyEnvironmentAttributesRequest
* @return ModifyEnvironmentAttributesResponse
* @throws TencentCloudSDKException
*/
public ModifyEnvironmentAttributesResponse ModifyEnvironmentAttributes(ModifyEnvironmentAttributesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyEnvironmentAttributes", ModifyEnvironmentAttributesResponse.class);
}
/**
*This API is used to modify an environment role.
* @param req ModifyEnvironmentRoleRequest
* @return ModifyEnvironmentRoleResponse
* @throws TencentCloudSDKException
*/
public ModifyEnvironmentRoleResponse ModifyEnvironmentRole(ModifyEnvironmentRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyEnvironmentRole", ModifyEnvironmentRoleResponse.class);
}
/**
*This API is used to modify a TDMQ for RabbitMQ user.
* @param req ModifyRabbitMQUserRequest
* @return ModifyRabbitMQUserResponse
* @throws TencentCloudSDKException
*/
public ModifyRabbitMQUserResponse ModifyRabbitMQUser(ModifyRabbitMQUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRabbitMQUser", ModifyRabbitMQUserResponse.class);
}
/**
*This API is used to modify a TDMQ for RabbitMQ vhost.
* @param req ModifyRabbitMQVirtualHostRequest
* @return ModifyRabbitMQVirtualHostResponse
* @throws TencentCloudSDKException
*/
public ModifyRabbitMQVirtualHostResponse ModifyRabbitMQVirtualHost(ModifyRabbitMQVirtualHostRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRabbitMQVirtualHost", ModifyRabbitMQVirtualHostResponse.class);
}
/**
*This API is used to update a RocketMQ cluster.
* @param req ModifyRocketMQClusterRequest
* @return ModifyRocketMQClusterResponse
* @throws TencentCloudSDKException
*/
public ModifyRocketMQClusterResponse ModifyRocketMQCluster(ModifyRocketMQClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRocketMQCluster", ModifyRocketMQClusterResponse.class);
}
/**
*This API is used to update a RocketMQ consumer group.
* @param req ModifyRocketMQGroupRequest
* @return ModifyRocketMQGroupResponse
* @throws TencentCloudSDKException
*/
public ModifyRocketMQGroupResponse ModifyRocketMQGroup(ModifyRocketMQGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRocketMQGroup", ModifyRocketMQGroupResponse.class);
}
/**
*This API is used to modify the configurations of a TDMQ for RocketMQ exclusive instance, including the upgrade of the instance specification, node count, and storage, and the downgrade of the instance specification. After you call this API to place the order and make payments, the configuration modification will be in progress. You can query whether the modification has been completed through the `DescribeRocketMQVipInstances` API`.
* @param req ModifyRocketMQInstanceSpecRequest
* @return ModifyRocketMQInstanceSpecResponse
* @throws TencentCloudSDKException
*/
public ModifyRocketMQInstanceSpecResponse ModifyRocketMQInstanceSpec(ModifyRocketMQInstanceSpecRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRocketMQInstanceSpec", ModifyRocketMQInstanceSpecResponse.class);
}
/**
*This API is used to update a RocketMQ namespace.
* @param req ModifyRocketMQNamespaceRequest
* @return ModifyRocketMQNamespaceResponse
* @throws TencentCloudSDKException
*/
public ModifyRocketMQNamespaceResponse ModifyRocketMQNamespace(ModifyRocketMQNamespaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRocketMQNamespace", ModifyRocketMQNamespaceResponse.class);
}
/**
*This API is used to update a RocketMQ topic.
* @param req ModifyRocketMQTopicRequest
* @return ModifyRocketMQTopicResponse
* @throws TencentCloudSDKException
*/
public ModifyRocketMQTopicResponse ModifyRocketMQTopic(ModifyRocketMQTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRocketMQTopic", ModifyRocketMQTopicResponse.class);
}
/**
*This API is used to modify a role.
* @param req ModifyRoleRequest
* @return ModifyRoleResponse
* @throws TencentCloudSDKException
*/
public ModifyRoleResponse ModifyRole(ModifyRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRole", ModifyRoleResponse.class);
}
/**
*This API is used to modify the topic remarks and number of partitions.
* @param req ModifyTopicRequest
* @return ModifyTopicResponse
* @throws TencentCloudSDKException
*/
public ModifyTopicResponse ModifyTopic(ModifyTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyTopic", ModifyTopicResponse.class);
}
/**
*This API is used to send a CMQ topic message.
* @param req PublishCmqMsgRequest
* @return PublishCmqMsgResponse
* @throws TencentCloudSDKException
*/
public PublishCmqMsgResponse PublishCmqMsg(PublishCmqMsgRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "PublishCmqMsg", PublishCmqMsgResponse.class);
}
/**
*Currently, the `ReceiveMessage` API only supports partitioned topics. It is used to receive messages sent to a specified partitioned topic. If it is called when there are no messages in the partitioned topic, the `ReceiveTimeout` exception will be reported.
Instructions on how to use `BatchReceivePolicy`:
`BatchReceive` has three parameters:
● `MaxNumMessages`: The maximum number of messages returned by `Receive` when `BatchReceive` is used.
● `MaxNumBytes`: The maximum size (in bytes) of the message returned by `Receive` when `BatchReceive` is used.
● `Timeout`: The maximum timeout period (in milliseconds) of calling `Receive` when `BatchReceive` is used.
By default, if you don’t specify any of the three parameters, the `BatchReceive` feature is disabled; if one of the three parameter values is above zero, `BatchReceive` is enabled. `BatchReceive` will be disabled when any of the three parameter values reaches the threshold you specify.
Note: The values of both `MaxNumMessages` and `MaxNumBytes` are subject to the value of `ReceiveQueueSize`. If the values of `ReceiveQueueSize` and `MaxNumMessages` are 5 and 10, respectively, you can receive up to five rather than 10 messages when `BatchReceive` is used.
The API configured with `BatchReceivePolicy` returns multiple messages at a time.
1. These messages are separated by “###”. After receiving them, you can separate them with split tools in different languages.
2. MessageIDs are separated by “###”. After receiving the messages, you can separate the MessageIDs with split tools in different languages, so that you can obtain the `MessageID` field information required for calling the `AcknowledgeMessage` API.
* @param req ReceiveMessageRequest
* @return ReceiveMessageResponse
* @throws TencentCloudSDKException
*/
public ReceiveMessageResponse ReceiveMessage(ReceiveMessageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ReceiveMessage", ReceiveMessageResponse.class);
}
/**
*This API is used to rewind a message by timestamp, accurate down to the millisecond.
* @param req ResetMsgSubOffsetByTimestampRequest
* @return ResetMsgSubOffsetByTimestampResponse
* @throws TencentCloudSDKException