-
Notifications
You must be signed in to change notification settings - Fork 4
/
EcmClient.java
1440 lines (1308 loc) · 65.9 KB
/
EcmClient.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.ecm.v20190719;
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.ecm.v20190719.models.*;
public class EcmClient extends AbstractClient{
private static String endpoint = "ecm.tencentcloudapi.com";
private static String service = "ecm";
private static String version = "2019-07-19";
public EcmClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public EcmClient(Credential credential, String region, ClientProfile profile) {
super(EcmClient.endpoint, EcmClient.version, credential, region, profile);
}
/**
*This API is used to apply for one or multiple EIPs.
* @param req AllocateAddressesRequest
* @return AllocateAddressesResponse
* @throws TencentCloudSDKException
*/
public AllocateAddressesResponse AllocateAddresses(AllocateAddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AllocateAddresses", AllocateAddressesResponse.class);
}
/**
*This API is used to apply for an IPv6 address for an ENI.
* @param req AssignIpv6AddressesRequest
* @return AssignIpv6AddressesResponse
* @throws TencentCloudSDKException
*/
public AssignIpv6AddressesResponse AssignIpv6Addresses(AssignIpv6AddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignIpv6Addresses", AssignIpv6AddressesResponse.class);
}
/**
*This API is used to apply for a private IP for an ENI.
* @param req AssignPrivateIpAddressesRequest
* @return AssignPrivateIpAddressesResponse
* @throws TencentCloudSDKException
*/
public AssignPrivateIpAddressesResponse AssignPrivateIpAddresses(AssignPrivateIpAddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignPrivateIpAddresses", AssignPrivateIpAddressesResponse.class);
}
/**
*This API is used to bind an EIP to an instance or the specified private IP of an ENI.
Binding an EIP to an instance (ECM) is essentially to bind it to the primary private IP of the primary ENI of the instance.
When you bind an EIP to the private IP of the specified ENI, if the private IP is already bound to an EIP or public IP, a failure will be reported, and you must unbind it first before you can bind it to a new EIP.
Only EIPs in `UNBIND` status can be bound to a private IP.
* @param req AssociateAddressRequest
* @return AssociateAddressResponse
* @throws TencentCloudSDKException
*/
public AssociateAddressResponse AssociateAddress(AssociateAddressRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssociateAddress", AssociateAddressResponse.class);
}
/**
*This API is used to bind a security group.
* @param req AssociateSecurityGroupsRequest
* @return AssociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public AssociateSecurityGroupsResponse AssociateSecurityGroups(AssociateSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssociateSecurityGroups", AssociateSecurityGroupsResponse.class);
}
/**
*This API is used to bind an ENI to a CVM instance.
* @param req AttachNetworkInterfaceRequest
* @return AttachNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public AttachNetworkInterfaceResponse AttachNetworkInterface(AttachNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AttachNetworkInterface", AttachNetworkInterfaceResponse.class);
}
/**
*This API is used to batch unbind real servers.
* @param req BatchDeregisterTargetsRequest
* @return BatchDeregisterTargetsResponse
* @throws TencentCloudSDKException
*/
public BatchDeregisterTargetsResponse BatchDeregisterTargets(BatchDeregisterTargetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchDeregisterTargets", BatchDeregisterTargetsResponse.class);
}
/**
*This API is used to batch modify the forwarding weights of the real servers bound to a listener.
* @param req BatchModifyTargetWeightRequest
* @return BatchModifyTargetWeightResponse
* @throws TencentCloudSDKException
*/
public BatchModifyTargetWeightResponse BatchModifyTargetWeight(BatchModifyTargetWeightRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchModifyTargetWeight", BatchModifyTargetWeightResponse.class);
}
/**
*This API is used to batch bind backend targets.
* @param req BatchRegisterTargetsRequest
* @return BatchRegisterTargetsResponse
* @throws TencentCloudSDKException
*/
public BatchRegisterTargetsResponse BatchRegisterTargets(BatchRegisterTargetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchRegisterTargets", BatchRegisterTargetsResponse.class);
}
/**
*This API is used to create an HAVIP.
* @param req CreateHaVipRequest
* @return CreateHaVipResponse
* @throws TencentCloudSDKException
*/
public CreateHaVipResponse CreateHaVip(CreateHaVipRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateHaVip", CreateHaVipResponse.class);
}
/**
*This API is used to create an image with the system disk of an instance. The image can be used to create instances.
* @param req CreateImageRequest
* @return CreateImageResponse
* @throws TencentCloudSDKException
*/
public CreateImageResponse CreateImage(CreateImageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateImage", CreateImageResponse.class);
}
/**
*This API is used to create an `OpenSSH RSA` key pair, which can be used to log in to a Linux instance.
* @param req CreateKeyPairRequest
* @return CreateKeyPairResponse
* @throws TencentCloudSDKException
*/
public CreateKeyPairResponse CreateKeyPair(CreateKeyPairRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateKeyPair", CreateKeyPairResponse.class);
}
/**
*This API is used to create a CLB listener.
* @param req CreateListenerRequest
* @return CreateListenerResponse
* @throws TencentCloudSDKException
*/
public CreateListenerResponse CreateListener(CreateListenerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateListener", CreateListenerResponse.class);
}
/**
*This API is used to purchase a CLB instance.
* @param req CreateLoadBalancerRequest
* @return CreateLoadBalancerResponse
* @throws TencentCloudSDKException
*/
public CreateLoadBalancerResponse CreateLoadBalancer(CreateLoadBalancerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateLoadBalancer", CreateLoadBalancerResponse.class);
}
/**
*This API is used to create a module.
* @param req CreateModuleRequest
* @return CreateModuleResponse
* @throws TencentCloudSDKException
*/
public CreateModuleResponse CreateModule(CreateModuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateModule", CreateModuleResponse.class);
}
/**
*This API is used to create an ENI.
* @param req CreateNetworkInterfaceRequest
* @return CreateNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public CreateNetworkInterfaceResponse CreateNetworkInterface(CreateNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateNetworkInterface", CreateNetworkInterfaceResponse.class);
}
/**
*After a VPC is created, the system will create a default route table, with which all new subnets will be associated. By default, you can use the default route table to manage your routing policies. If you have multiple routing policies, you can call the API for route table creation to create more route tables to manage your routing policies.
* @param req CreateRouteTableRequest
* @return CreateRouteTableResponse
* @throws TencentCloudSDKException
*/
public CreateRouteTableResponse CreateRouteTable(CreateRouteTableRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRouteTable", CreateRouteTableResponse.class);
}
/**
*This API is used to create a routing policy.
* @param req CreateRoutesRequest
* @return CreateRoutesResponse
* @throws TencentCloudSDKException
*/
public CreateRoutesResponse CreateRoutes(CreateRoutesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRoutes", CreateRoutesResponse.class);
}
/**
*This API is used to create a security group.
* @param req CreateSecurityGroupRequest
* @return CreateSecurityGroupResponse
* @throws TencentCloudSDKException
*/
public CreateSecurityGroupResponse CreateSecurityGroup(CreateSecurityGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSecurityGroup", CreateSecurityGroupResponse.class);
}
/**
*<p>This API is used to create a security group policy.</p>
<p>In the `SecurityGroupPolicySet` parameter:</p>
<ul>
<li>`Version`: the version number of a security group policy, which automatically increases by one each time you update the security policy, to prevent expiration of the updated routing policies. If it is left empty, any conflicts will be ignored.</li>
<li>When creating the `Egress` and `Ingress` polices,<ul>
<li><code>Protocol</code>: <code>TCP</code>, <code>UDP</code>, <code>ICMP</code>, <code>GRE</code>, or <code>ALL</code>.</li>
<li>`CidrBlock`: a CIDR block in the correct format. In a classic network, if a `CidrBlock` contains private IPs on Tencent Cloud for devices under your account other than CVMs, it does not mean this policy allows you to access these devices. The network isolation policies between tenants take priority over the private network policies in security groups.</li>
<li>`SecurityGroupId`: ID of the security group. It can be the ID of security group to be modified, or the ID of other security group in the same project. All private IPs of all CVMs under the security group will be covered. If this field is used, the policy will automatically change according to the CVM associated with the group ID while being used to match network messages. You don’t need to change it manually.</li>
<li>`Port`: a single port number such as 80, or a port range in the format of “8000-8010”. You may use this field only if the `Protocol` field takes the value `TCP` or `UDP`. Otherwise `Protocol` and `Port` are mutually exclusive.</li>
<li>`Action`: only allows `ACCEPT` or `DROP`.</li>
<li>`CidrBlock`, `SecurityGroupId`, and `AddressTemplate` are mutually exclusive. `Protocol` + `Port` and `ServiceTemplate` are mutually exclusive.</li>
<li>You can only create policies in one direction in each request. To specify the `PolicyIndex` parameter, use the same index number in policies.</li>
</ul></li></ul>
<p>Default API request rate limit: 20 requests/sec.</p>
* @param req CreateSecurityGroupPoliciesRequest
* @return CreateSecurityGroupPoliciesResponse
* @throws TencentCloudSDKException
*/
public CreateSecurityGroupPoliciesResponse CreateSecurityGroupPolicies(CreateSecurityGroupPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSecurityGroupPolicies", CreateSecurityGroupPoliciesResponse.class);
}
/**
*This API is used to create a subnet. After the subnet is created successfully, it will become the default subnet for the AZ.
* @param req CreateSubnetRequest
* @return CreateSubnetResponse
* @throws TencentCloudSDKException
*/
public CreateSubnetResponse CreateSubnet(CreateSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSubnet", CreateSubnetResponse.class);
}
/**
*This API is used to create a VPC.
* @param req CreateVpcRequest
* @return CreateVpcResponse
* @throws TencentCloudSDKException
*/
public CreateVpcResponse CreateVpc(CreateVpcRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateVpc", CreateVpcResponse.class);
}
/**
*This API is used to delete an HAVIP.
* @param req DeleteHaVipRequest
* @return DeleteHaVipResponse
* @throws TencentCloudSDKException
*/
public DeleteHaVipResponse DeleteHaVip(DeleteHaVipRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteHaVip", DeleteHaVipResponse.class);
}
/**
*This API is used to delete an image.
* @param req DeleteImageRequest
* @return DeleteImageResponse
* @throws TencentCloudSDKException
*/
public DeleteImageResponse DeleteImage(DeleteImageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteImage", DeleteImageResponse.class);
}
/**
*This API is used to delete a CLB listener.
* @param req DeleteListenerRequest
* @return DeleteListenerResponse
* @throws TencentCloudSDKException
*/
public DeleteListenerResponse DeleteListener(DeleteListenerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteListener", DeleteListenerResponse.class);
}
/**
*This API is used to delete a CLB instance.
* @param req DeleteLoadBalancerRequest
* @return DeleteLoadBalancerResponse
* @throws TencentCloudSDKException
*/
public DeleteLoadBalancerResponse DeleteLoadBalancer(DeleteLoadBalancerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteLoadBalancer", DeleteLoadBalancerResponse.class);
}
/**
*This API is used to delete multiple CLB listeners.
* @param req DeleteLoadBalancerListenersRequest
* @return DeleteLoadBalancerListenersResponse
* @throws TencentCloudSDKException
*/
public DeleteLoadBalancerListenersResponse DeleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteLoadBalancerListeners", DeleteLoadBalancerListenersResponse.class);
}
/**
*This API is used to delete a business module.
* @param req DeleteModuleRequest
* @return DeleteModuleResponse
* @throws TencentCloudSDKException
*/
public DeleteModuleResponse DeleteModule(DeleteModuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteModule", DeleteModuleResponse.class);
}
/**
*This API is used to delete an ENI.
* @param req DeleteNetworkInterfaceRequest
* @return DeleteNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public DeleteNetworkInterfaceResponse DeleteNetworkInterface(DeleteNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteNetworkInterface", DeleteNetworkInterfaceResponse.class);
}
/**
*This API is used to delete a route table.
* @param req DeleteRouteTableRequest
* @return DeleteRouteTableResponse
* @throws TencentCloudSDKException
*/
public DeleteRouteTableResponse DeleteRouteTable(DeleteRouteTableRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRouteTable", DeleteRouteTableResponse.class);
}
/**
*This API is used to batch delete routing policies from a route table.
* @param req DeleteRoutesRequest
* @return DeleteRoutesResponse
* @throws TencentCloudSDKException
*/
public DeleteRoutesResponse DeleteRoutes(DeleteRoutesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRoutes", DeleteRoutesResponse.class);
}
/**
*Only security groups under the current account can be deleted.
A security group cannot be deleted directly if its instance ID is used in the policy of another security group. In this case, you need to modify the policy first before deleting the security group.
Deleted security groups cannot be recovered. Therefore, call this API with caution.
* @param req DeleteSecurityGroupRequest
* @return DeleteSecurityGroupResponse
* @throws TencentCloudSDKException
*/
public DeleteSecurityGroupResponse DeleteSecurityGroup(DeleteSecurityGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSecurityGroup", DeleteSecurityGroupResponse.class);
}
/**
*`SecurityGroupPolicySet.Version` is used to specify the version of the security group to be manipulated. If the `Version` value passed in differs from the current latest version of the security group, a failure will be returned. If `Version` is not passed in, the policy of the specified `PolicyIndex` will be deleted directly.
* @param req DeleteSecurityGroupPoliciesRequest
* @return DeleteSecurityGroupPoliciesResponse
* @throws TencentCloudSDKException
*/
public DeleteSecurityGroupPoliciesResponse DeleteSecurityGroupPolicies(DeleteSecurityGroupPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSecurityGroupPolicies", DeleteSecurityGroupPoliciesResponse.class);
}
/**
*This API is used to delete a snapshot.
* Only snapshots in the `NORMAL` state can be deleted. To query the state of a snapshot, you can call the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API and check the `SnapshotState` field in the response.
* Batch operations are supported. If there is any snapshot that cannot be deleted, the operation will not be performed and a specific error code will be returned.
* @param req DeleteSnapshotsRequest
* @return DeleteSnapshotsResponse
* @throws TencentCloudSDKException
*/
public DeleteSnapshotsResponse DeleteSnapshots(DeleteSnapshotsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSnapshots", DeleteSnapshotsResponse.class);
}
/**
*This API is used to delete a subnet. If the subnet is the current default subnet in the AZ, after it is deleted, the default subnet automatically created by the system rather than the last subnet created by you will be used as the new default subnet. If the new default subnet does not meet your needs, you can call the API for setting the default subnet to configure it.
* @param req DeleteSubnetRequest
* @return DeleteSubnetResponse
* @throws TencentCloudSDKException
*/
public DeleteSubnetResponse DeleteSubnet(DeleteSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSubnet", DeleteSubnetResponse.class);
}
/**
*This API is used to delete a VPC.
* @param req DeleteVpcRequest
* @return DeleteVpcResponse
* @throws TencentCloudSDKException
*/
public DeleteVpcResponse DeleteVpc(DeleteVpcRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteVpc", DeleteVpcResponse.class);
}
/**
*This API is used to query the quota information of the EIP under your account in the current region.
* @param req DescribeAddressQuotaRequest
* @return DescribeAddressQuotaResponse
* @throws TencentCloudSDKException
*/
public DescribeAddressQuotaResponse DescribeAddressQuota(DescribeAddressQuotaRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAddressQuota", DescribeAddressQuotaResponse.class);
}
/**
*This API is used to query the list of EIPs.
* @param req DescribeAddressesRequest
* @return DescribeAddressesResponse
* @throws TencentCloudSDKException
*/
public DescribeAddressesResponse DescribeAddresses(DescribeAddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAddresses", DescribeAddressesResponse.class);
}
/**
*This API is used to get the basic data displayed on the overview page.
* @param req DescribeBaseOverviewRequest
* @return DescribeBaseOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribeBaseOverviewResponse DescribeBaseOverview(DescribeBaseOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBaseOverview", DescribeBaseOverviewResponse.class);
}
/**
*This API is used to get the limits of data such as bandwidth and disk.
* @param req DescribeConfigRequest
* @return DescribeConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeConfigResponse DescribeConfig(DescribeConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeConfig", DescribeConfigResponse.class);
}
/**
*This API is used to query an image import task.
* @param req DescribeCustomImageTaskRequest
* @return DescribeCustomImageTaskResponse
* @throws TencentCloudSDKException
*/
public DescribeCustomImageTaskResponse DescribeCustomImageTask(DescribeCustomImageTaskRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCustomImageTask", DescribeCustomImageTaskResponse.class);
}
/**
*This API is used to query the default subnet in an AZ.
* @param req DescribeDefaultSubnetRequest
* @return DescribeDefaultSubnetResponse
* @throws TencentCloudSDKException
*/
public DescribeDefaultSubnetResponse DescribeDefaultSubnet(DescribeDefaultSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDefaultSubnet", DescribeDefaultSubnetResponse.class);
}
/**
*This API is used to query the list of HAVIPs.
* @param req DescribeHaVipsRequest
* @return DescribeHaVipsResponse
* @throws TencentCloudSDKException
*/
public DescribeHaVipsResponse DescribeHaVips(DescribeHaVipsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeHaVips", DescribeHaVipsResponse.class);
}
/**
*This API is used to display the list of images.
* @param req DescribeImageRequest
* @return DescribeImageResponse
* @throws TencentCloudSDKException
*/
public DescribeImageResponse DescribeImage(DescribeImageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeImage", DescribeImageResponse.class);
}
/**
*This API is used to query the list of operating systems supported by an image imported from an external resource.
* @param req DescribeImportImageOsRequest
* @return DescribeImportImageOsResponse
* @throws TencentCloudSDKException
*/
public DescribeImportImageOsResponse DescribeImportImageOs(DescribeImportImageOsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeImportImageOs", DescribeImportImageOsResponse.class);
}
/**
*This API is used to get the list of model configurations.
* @param req DescribeInstanceTypeConfigRequest
* @return DescribeInstanceTypeConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeInstanceTypeConfigResponse DescribeInstanceTypeConfig(DescribeInstanceTypeConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstanceTypeConfig", DescribeInstanceTypeConfigResponse.class);
}
/**
*This API is used to query the VNC URL of an instance.
* @param req DescribeInstanceVncUrlRequest
* @return DescribeInstanceVncUrlResponse
* @throws TencentCloudSDKException
*/
public DescribeInstanceVncUrlResponse DescribeInstanceVncUrl(DescribeInstanceVncUrlRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstanceVncUrl", DescribeInstanceVncUrlResponse.class);
}
/**
*This API is used to get the information of an instance.
* @param req DescribeInstancesRequest
* @return DescribeInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeInstancesResponse DescribeInstances(DescribeInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstances", DescribeInstancesResponse.class);
}
/**
*This API is used to get the information of prohibited operations by instance ID.
* @param req DescribeInstancesDeniedActionsRequest
* @return DescribeInstancesDeniedActionsResponse
* @throws TencentCloudSDKException
*/
public DescribeInstancesDeniedActionsResponse DescribeInstancesDeniedActions(DescribeInstancesDeniedActionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstancesDeniedActions", DescribeInstancesDeniedActionsResponse.class);
}
/**
*This API is used to query the list of CLB listeners.
* @param req DescribeListenersRequest
* @return DescribeListenersResponse
* @throws TencentCloudSDKException
*/
public DescribeListenersResponse DescribeListeners(DescribeListenersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeListeners", DescribeListenersResponse.class);
}
/**
*This API is used to query the task status of a CLB instance.
* @param req DescribeLoadBalanceTaskStatusRequest
* @return DescribeLoadBalanceTaskStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeLoadBalanceTaskStatusResponse DescribeLoadBalanceTaskStatus(DescribeLoadBalanceTaskStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeLoadBalanceTaskStatus", DescribeLoadBalanceTaskStatusResponse.class);
}
/**
*This API is used to query the list of CLB instances.
* @param req DescribeLoadBalancersRequest
* @return DescribeLoadBalancersResponse
* @throws TencentCloudSDKException
*/
public DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeLoadBalancers", DescribeLoadBalancersResponse.class);
}
/**
*This API is used to get the list of modules.
* @param req DescribeModuleRequest
* @return DescribeModuleResponse
* @throws TencentCloudSDKException
*/
public DescribeModuleResponse DescribeModule(DescribeModuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeModule", DescribeModuleResponse.class);
}
/**
*This API is used to display the details of a module.
* @param req DescribeModuleDetailRequest
* @return DescribeModuleDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeModuleDetailResponse DescribeModuleDetail(DescribeModuleDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeModuleDetail", DescribeModuleDetailResponse.class);
}
/**
*This API is used to get the monthly peak and billable inbound/outbound bandwidth values of your node.
* @param req DescribeMonthPeakNetworkRequest
* @return DescribeMonthPeakNetworkResponse
* @throws TencentCloudSDKException
*/
public DescribeMonthPeakNetworkResponse DescribeMonthPeakNetwork(DescribeMonthPeakNetworkRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeMonthPeakNetwork", DescribeMonthPeakNetworkResponse.class);
}
/**
*This API is used to query the list of ENIs.
* @param req DescribeNetworkInterfacesRequest
* @return DescribeNetworkInterfacesResponse
* @throws TencentCloudSDKException
*/
public DescribeNetworkInterfacesResponse DescribeNetworkInterfaces(DescribeNetworkInterfacesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNetworkInterfaces", DescribeNetworkInterfacesResponse.class);
}
/**
*This API is used to get the list of nodes.
* @param req DescribeNodeRequest
* @return DescribeNodeResponse
* @throws TencentCloudSDKException
*/
public DescribeNodeResponse DescribeNode(DescribeNodeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNode", DescribeNodeResponse.class);
}
/**
*This API is used to get the packing quota of a model in a region (when a virtual model is used, a set of correlated packing quotas will be returned).
* @param req DescribePackingQuotaGroupRequest
* @return DescribePackingQuotaGroupResponse
* @throws TencentCloudSDKException
*/
public DescribePackingQuotaGroupResponse DescribePackingQuotaGroup(DescribePackingQuotaGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePackingQuotaGroup", DescribePackingQuotaGroupResponse.class);
}
/**
*This API is used to get the peak data of basic information such as CPU, memory, and disk.
* @param req DescribePeakBaseOverviewRequest
* @return DescribePeakBaseOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribePeakBaseOverviewResponse DescribePeakBaseOverview(DescribePeakBaseOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePeakBaseOverview", DescribePeakBaseOverviewResponse.class);
}
/**
*This API is used to get the peak network data.
* @param req DescribePeakNetworkOverviewRequest
* @return DescribePeakNetworkOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribePeakNetworkOverviewResponse DescribePeakNetworkOverview(DescribePeakNetworkOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePeakNetworkOverview", DescribePeakNetworkOverviewResponse.class);
}
/**
*This API is used to query the price of an instance.
* @param req DescribePriceRunInstanceRequest
* @return DescribePriceRunInstanceResponse
* @throws TencentCloudSDKException
*/
public DescribePriceRunInstanceResponse DescribePriceRunInstance(DescribePriceRunInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePriceRunInstance", DescribePriceRunInstanceResponse.class);
}
/**
*This API is used to query the list of conflicts between a custom routing policy and a CCN routing policy.
* @param req DescribeRouteConflictsRequest
* @return DescribeRouteConflictsResponse
* @throws TencentCloudSDKException
*/
public DescribeRouteConflictsResponse DescribeRouteConflicts(DescribeRouteConflictsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRouteConflicts", DescribeRouteConflictsResponse.class);
}
/**
*This API is used to query the list of the objects in a route table.
* @param req DescribeRouteTablesRequest
* @return DescribeRouteTablesResponse
* @throws TencentCloudSDKException
*/
public DescribeRouteTablesResponse DescribeRouteTables(DescribeRouteTablesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRouteTables", DescribeRouteTablesResponse.class);
}
/**
*This API is used to query statistics on the instances associated with a security group.
* @param req DescribeSecurityGroupAssociationStatisticsRequest
* @return DescribeSecurityGroupAssociationStatisticsResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupAssociationStatisticsResponse DescribeSecurityGroupAssociationStatistics(DescribeSecurityGroupAssociationStatisticsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroupAssociationStatistics", DescribeSecurityGroupAssociationStatisticsResponse.class);
}
/**
*This API is used to query the security group quota.
* @param req DescribeSecurityGroupLimitsRequest
* @return DescribeSecurityGroupLimitsResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupLimitsResponse DescribeSecurityGroupLimits(DescribeSecurityGroupLimitsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroupLimits", DescribeSecurityGroupLimitsResponse.class);
}
/**
*This API is used to query a security group rule.
* @param req DescribeSecurityGroupPoliciesRequest
* @return DescribeSecurityGroupPoliciesResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupPoliciesResponse DescribeSecurityGroupPolicies(DescribeSecurityGroupPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroupPolicies", DescribeSecurityGroupPoliciesResponse.class);
}
/**
*This API is used to view a security group.
* @param req DescribeSecurityGroupsRequest
* @return DescribeSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupsResponse DescribeSecurityGroups(DescribeSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroups", DescribeSecurityGroupsResponse.class);
}
/**
*This API is used to query the list of snapshots.
* You can filter results by snapshot ID and the ID and type of the cloud disk for which the snapshot is created. The relationship between different filters is `AND`. For more information on filters, see `Filter`.
* If no parameter is defined, the status of a certain number of snapshots under the current account will be returned. The number is specified by `Limit` and is 20 by default.
* @param req DescribeSnapshotsRequest
* @return DescribeSnapshotsResponse
* @throws TencentCloudSDKException
*/
public DescribeSnapshotsResponse DescribeSnapshots(DescribeSnapshotsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSnapshots", DescribeSnapshotsResponse.class);
}
/**
*This API is used to query the list of subnets.
* @param req DescribeSubnetsRequest
* @return DescribeSubnetsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubnetsResponse DescribeSubnets(DescribeSubnetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubnets", DescribeSubnetsResponse.class);
}
/**
*This API is used to get the health check status of a CLB real server.
* @param req DescribeTargetHealthRequest
* @return DescribeTargetHealthResponse
* @throws TencentCloudSDKException
*/
public DescribeTargetHealthResponse DescribeTargetHealth(DescribeTargetHealthRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTargetHealth", DescribeTargetHealthResponse.class);
}
/**
*This API is used to query the list of the real servers bound to a CLB instance.
* @param req DescribeTargetsRequest
* @return DescribeTargetsResponse
* @throws TencentCloudSDKException
*/
public DescribeTargetsResponse DescribeTargets(DescribeTargetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTargets", DescribeTargetsResponse.class);
}
/**
*This API is used to query the execution result of an EIP async task.
* @param req DescribeTaskResultRequest
* @return DescribeTaskResultResponse
* @throws TencentCloudSDKException
*/
public DescribeTaskResultResponse DescribeTaskResult(DescribeTaskResultRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTaskResult", DescribeTaskResultResponse.class);
}
/**
*This API is used to get the status of an async task.
* @param req DescribeTaskStatusRequest
* @return DescribeTaskStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeTaskStatusResponse DescribeTaskStatus(DescribeTaskStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTaskStatus", DescribeTaskStatusResponse.class);
}
/**
*This API is used to query the list of VPCs.
* @param req DescribeVpcsRequest
* @return DescribeVpcsResponse
* @throws TencentCloudSDKException
*/
public DescribeVpcsResponse DescribeVpcs(DescribeVpcsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpcs", DescribeVpcsResponse.class);
}
/**
*This API is used to unbind an ENI from a CVM instance.
* @param req DetachNetworkInterfaceRequest
* @return DetachNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public DetachNetworkInterfaceResponse DetachNetworkInterface(DetachNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DetachNetworkInterface", DetachNetworkInterfaceResponse.class);
}
/**
*This API is used to disable a subnet route.
* @param req DisableRoutesRequest
* @return DisableRoutesResponse
* @throws TencentCloudSDKException
*/
public DisableRoutesResponse DisableRoutes(DisableRoutesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisableRoutes", DisableRoutesResponse.class);
}
/**
*This API is used to unbind an EIP.
Only EIPs in `BIND` or `BIND_ENI` status can be unbound.
Blocked EIPs cannot be unbound.
* @param req DisassociateAddressRequest
* @return DisassociateAddressResponse
* @throws TencentCloudSDKException
*/
public DisassociateAddressResponse DisassociateAddress(DisassociateAddressRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisassociateAddress", DisassociateAddressResponse.class);
}
/**
*This API is used to unbind a key pair from an instance.
* @param req DisassociateInstancesKeyPairsRequest
* @return DisassociateInstancesKeyPairsResponse
* @throws TencentCloudSDKException
*/
public DisassociateInstancesKeyPairsResponse DisassociateInstancesKeyPairs(DisassociateInstancesKeyPairsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisassociateInstancesKeyPairs", DisassociateInstancesKeyPairsResponse.class);
}
/**
*This API is used to unbind a security group.
* @param req DisassociateSecurityGroupsRequest
* @return DisassociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DisassociateSecurityGroupsResponse DisassociateSecurityGroups(DisassociateSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisassociateSecurityGroups", DisassociateSecurityGroupsResponse.class);
}
/**
*This API is used to enable a disabled subnet route.
This API verifies whether a CCN route will conflict with an existing route after it is enabled, and if so, you cannot enable it before you disable the conflicting route first.
* @param req EnableRoutesRequest
* @return EnableRoutesResponse
* @throws TencentCloudSDKException
*/
public EnableRoutesResponse EnableRoutes(EnableRoutesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "EnableRoutes", EnableRoutesResponse.class);
}
/**
*This API is used to import an image from a CVM instance to an ECM instance.
* @param req ImportImageRequest
* @return ImportImageResponse
* @throws TencentCloudSDKException
*/
public ImportImageResponse ImportImage(ImportImageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ImportImage", ImportImageResponse.class);
}
/**
*This API is used to migrate an ENI.
* @param req MigrateNetworkInterfaceRequest
* @return MigrateNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public MigrateNetworkInterfaceResponse MigrateNetworkInterface(MigrateNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "MigrateNetworkInterface", MigrateNetworkInterfaceResponse.class);
}
/**
*This API is used to migrate a private IP from an ENI.
It migrates a private IP from one ENI to another. Primary IPs cannot be migrated.
The source and destination ENIs must be in the same subnet.
* @param req MigratePrivateIpAddressRequest
* @return MigratePrivateIpAddressResponse
* @throws TencentCloudSDKException
*/
public MigratePrivateIpAddressResponse MigratePrivateIpAddress(MigratePrivateIpAddressRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "MigratePrivateIpAddress", MigratePrivateIpAddressResponse.class);
}
/**
*This API is used to modify EIP attributes.
* @param req ModifyAddressAttributeRequest
* @return ModifyAddressAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyAddressAttributeResponse ModifyAddressAttribute(ModifyAddressAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAddressAttribute", ModifyAddressAttributeResponse.class);
}
/**
*This API is used to modify the EIP bandwidth.
* @param req ModifyAddressesBandwidthRequest
* @return ModifyAddressesBandwidthResponse
* @throws TencentCloudSDKException
*/