@huaweicloud/huaweicloud-sdk-nat 3.1.176 → 3.1.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/v2/NatClient.d.ts +432 -22
- package/v2/NatClient.d.ts.map +1 -1
- package/v2/NatClient.js +865 -28
- package/v2/NatClient.js.map +1 -1
- package/v2/model/BatchCreateDeleteTransitSubnetTagsRequest.d.ts +11 -0
- package/v2/model/BatchCreateDeleteTransitSubnetTagsRequest.d.ts.map +1 -0
- package/v2/model/BatchCreateDeleteTransitSubnetTagsRequest.js +24 -0
- package/v2/model/BatchCreateDeleteTransitSubnetTagsRequest.js.map +1 -0
- package/v2/model/BatchCreateDeleteTransitSubnetTagsResponse.d.ts +5 -0
- package/v2/model/BatchCreateDeleteTransitSubnetTagsResponse.d.ts.map +1 -0
- package/v2/model/BatchCreateDeleteTransitSubnetTagsResponse.js +11 -0
- package/v2/model/BatchCreateDeleteTransitSubnetTagsResponse.js.map +1 -0
- package/v2/model/CreateNatGatewayOption.d.ts +13 -5
- package/v2/model/CreateNatGatewayOption.d.ts.map +1 -1
- package/v2/model/CreateNatGatewayOption.js +21 -6
- package/v2/model/CreateNatGatewayOption.js.map +1 -1
- package/v2/model/CreateNatGatewayResponse.d.ts +8 -0
- package/v2/model/CreateNatGatewayResponse.d.ts.map +1 -1
- package/v2/model/CreateNatGatewayResponse.js +20 -0
- package/v2/model/CreateNatGatewayResponse.js.map +1 -1
- package/v2/model/CreatePrivateNatOption.d.ts +5 -4
- package/v2/model/CreatePrivateNatOption.d.ts.map +1 -1
- package/v2/model/CreatePrivateNatOption.js +1 -0
- package/v2/model/CreatePrivateNatOption.js.map +1 -1
- package/v2/model/CreateTransitSubnetOption.d.ts +19 -0
- package/v2/model/CreateTransitSubnetOption.d.ts.map +1 -0
- package/v2/model/CreateTransitSubnetOption.js +44 -0
- package/v2/model/CreateTransitSubnetOption.js.map +1 -0
- package/v2/model/CreateTransitSubnetRequest.d.ts +7 -0
- package/v2/model/CreateTransitSubnetRequest.d.ts.map +1 -0
- package/v2/model/CreateTransitSubnetRequest.js +13 -0
- package/v2/model/CreateTransitSubnetRequest.js.map +1 -0
- package/v2/model/CreateTransitSubnetRequestBody.d.ts +9 -0
- package/v2/model/CreateTransitSubnetRequestBody.d.ts.map +1 -0
- package/v2/model/CreateTransitSubnetRequestBody.js +20 -0
- package/v2/model/CreateTransitSubnetRequestBody.js.map +1 -0
- package/v2/model/CreateTransitSubnetResponse.d.ts +14 -0
- package/v2/model/CreateTransitSubnetResponse.d.ts.map +1 -0
- package/v2/model/CreateTransitSubnetResponse.js +31 -0
- package/v2/model/CreateTransitSubnetResponse.js.map +1 -0
- package/v2/model/CreateTransitSubnetTagRequest.d.ts +11 -0
- package/v2/model/CreateTransitSubnetTagRequest.d.ts.map +1 -0
- package/v2/model/CreateTransitSubnetTagRequest.js +24 -0
- package/v2/model/CreateTransitSubnetTagRequest.js.map +1 -0
- package/v2/model/CreateTransitSubnetTagResponse.d.ts +5 -0
- package/v2/model/CreateTransitSubnetTagResponse.d.ts.map +1 -0
- package/v2/model/CreateTransitSubnetTagResponse.js +11 -0
- package/v2/model/CreateTransitSubnetTagResponse.js.map +1 -0
- package/v2/model/DeleteTransitSubnetRequest.d.ts +8 -0
- package/v2/model/DeleteTransitSubnetRequest.d.ts.map +1 -0
- package/v2/model/DeleteTransitSubnetRequest.js +20 -0
- package/v2/model/DeleteTransitSubnetRequest.js.map +1 -0
- package/v2/model/DeleteTransitSubnetResponse.d.ts +5 -0
- package/v2/model/DeleteTransitSubnetResponse.d.ts.map +1 -0
- package/v2/model/DeleteTransitSubnetResponse.js +11 -0
- package/v2/model/DeleteTransitSubnetResponse.js.map +1 -0
- package/v2/model/DeleteTransitSubnetTagRequest.d.ts +10 -0
- package/v2/model/DeleteTransitSubnetTagRequest.d.ts.map +1 -0
- package/v2/model/DeleteTransitSubnetTagRequest.js +25 -0
- package/v2/model/DeleteTransitSubnetTagRequest.js.map +1 -0
- package/v2/model/DeleteTransitSubnetTagResponse.d.ts +5 -0
- package/v2/model/DeleteTransitSubnetTagResponse.d.ts.map +1 -0
- package/v2/model/DeleteTransitSubnetTagResponse.js +11 -0
- package/v2/model/DeleteTransitSubnetTagResponse.js.map +1 -0
- package/v2/model/DownlinkVpc.d.ts +4 -0
- package/v2/model/DownlinkVpc.d.ts.map +1 -1
- package/v2/model/DownlinkVpc.js +10 -0
- package/v2/model/DownlinkVpc.js.map +1 -1
- package/v2/model/DownlinkVpcOption.d.ts +4 -0
- package/v2/model/DownlinkVpcOption.d.ts.map +1 -1
- package/v2/model/DownlinkVpcOption.js +10 -0
- package/v2/model/DownlinkVpcOption.js.map +1 -1
- package/v2/model/ListNatGatewayDnatRulesRequest.d.ts +11 -3
- package/v2/model/ListNatGatewayDnatRulesRequest.d.ts.map +1 -1
- package/v2/model/ListNatGatewayDnatRulesRequest.js +20 -0
- package/v2/model/ListNatGatewayDnatRulesRequest.js.map +1 -1
- package/v2/model/ListNatGatewaySnatRulesRequest.d.ts +17 -9
- package/v2/model/ListNatGatewaySnatRulesRequest.d.ts.map +1 -1
- package/v2/model/ListNatGatewaySnatRulesRequest.js +20 -0
- package/v2/model/ListNatGatewaySnatRulesRequest.js.map +1 -1
- package/v2/model/ListNatGatewaySpecsRequest.d.ts +4 -0
- package/v2/model/ListNatGatewaySpecsRequest.d.ts.map +1 -0
- package/v2/model/ListNatGatewaySpecsRequest.js +9 -0
- package/v2/model/ListNatGatewaySpecsRequest.js.map +1 -0
- package/v2/model/ListNatGatewaySpecsResponse.d.ts +18 -0
- package/v2/model/ListNatGatewaySpecsResponse.d.ts.map +1 -0
- package/v2/model/ListNatGatewaySpecsResponse.js +27 -0
- package/v2/model/ListNatGatewaySpecsResponse.js.map +1 -0
- package/v2/model/ListNatGatewaysRequest.d.ts +35 -4
- package/v2/model/ListNatGatewaysRequest.d.ts.map +1 -1
- package/v2/model/ListNatGatewaysRequest.js +52 -1
- package/v2/model/ListNatGatewaysRequest.js.map +1 -1
- package/v2/model/ListPrivateDnatsRequest.d.ts +14 -4
- package/v2/model/ListPrivateDnatsRequest.d.ts.map +1 -1
- package/v2/model/ListPrivateDnatsRequest.js +34 -10
- package/v2/model/ListPrivateDnatsRequest.js.map +1 -1
- package/v2/model/ListPrivateNatsRequest.d.ts +4 -2
- package/v2/model/ListPrivateNatsRequest.d.ts.map +1 -1
- package/v2/model/ListPrivateNatsRequest.js +2 -0
- package/v2/model/ListPrivateNatsRequest.js.map +1 -1
- package/v2/model/ListSpecsRequest.d.ts +4 -0
- package/v2/model/ListSpecsRequest.d.ts.map +1 -0
- package/v2/model/ListSpecsRequest.js +9 -0
- package/v2/model/ListSpecsRequest.js.map +1 -0
- package/v2/model/ListSpecsResponse.d.ts +8 -0
- package/v2/model/ListSpecsResponse.d.ts.map +1 -0
- package/v2/model/ListSpecsResponse.js +15 -0
- package/v2/model/ListSpecsResponse.js.map +1 -0
- package/v2/model/ListTransitIpsRequest.d.ts +4 -0
- package/v2/model/ListTransitIpsRequest.d.ts.map +1 -1
- package/v2/model/ListTransitIpsRequest.js +10 -0
- package/v2/model/ListTransitIpsRequest.js.map +1 -1
- package/v2/model/ListTransitSubnetRequest.d.ts +32 -0
- package/v2/model/ListTransitSubnetRequest.d.ts.map +1 -0
- package/v2/model/ListTransitSubnetRequest.js +73 -0
- package/v2/model/ListTransitSubnetRequest.js.map +1 -0
- package/v2/model/ListTransitSubnetResponse.d.ts +19 -0
- package/v2/model/ListTransitSubnetResponse.d.ts.map +1 -0
- package/v2/model/ListTransitSubnetResponse.js +41 -0
- package/v2/model/ListTransitSubnetResponse.js.map +1 -0
- package/v2/model/ListTransitSubnetTagsRequest.d.ts +4 -0
- package/v2/model/ListTransitSubnetTagsRequest.d.ts.map +1 -0
- package/v2/model/ListTransitSubnetTagsRequest.js +9 -0
- package/v2/model/ListTransitSubnetTagsRequest.js.map +1 -0
- package/v2/model/ListTransitSubnetTagsResponse.d.ts +12 -0
- package/v2/model/ListTransitSubnetTagsResponse.d.ts.map +1 -0
- package/v2/model/ListTransitSubnetTagsResponse.js +25 -0
- package/v2/model/ListTransitSubnetTagsResponse.js.map +1 -0
- package/v2/model/ListTransitSubnetsByTagsRequest.d.ts +7 -0
- package/v2/model/ListTransitSubnetsByTagsRequest.d.ts.map +1 -0
- package/v2/model/ListTransitSubnetsByTagsRequest.js +13 -0
- package/v2/model/ListTransitSubnetsByTagsRequest.js.map +1 -0
- package/v2/model/ListTransitSubnetsByTagsResponse.d.ts +16 -0
- package/v2/model/ListTransitSubnetsByTagsResponse.d.ts.map +1 -0
- package/v2/model/ListTransitSubnetsByTagsResponse.js +35 -0
- package/v2/model/ListTransitSubnetsByTagsResponse.js.map +1 -0
- package/v2/model/NatGatewayResponseBody.d.ts +14 -5
- package/v2/model/NatGatewayResponseBody.d.ts.map +1 -1
- package/v2/model/NatGatewayResponseBody.js +22 -17
- package/v2/model/NatGatewayResponseBody.js.map +1 -1
- package/v2/model/PrepaidOptions.d.ts +28 -0
- package/v2/model/PrepaidOptions.d.ts.map +1 -0
- package/v2/model/PrepaidOptions.js +60 -0
- package/v2/model/PrepaidOptions.js.map +1 -0
- package/v2/model/PrivateDnat.d.ts +15 -0
- package/v2/model/PrivateDnat.d.ts.map +1 -1
- package/v2/model/PrivateDnat.js +25 -1
- package/v2/model/PrivateDnat.js.map +1 -1
- package/v2/model/PrivateNat.d.ts +15 -5
- package/v2/model/PrivateNat.d.ts.map +1 -1
- package/v2/model/PrivateNat.js +22 -0
- package/v2/model/PrivateNat.js.map +1 -1
- package/v2/model/PrivateSnat.d.ts +11 -0
- package/v2/model/PrivateSnat.d.ts.map +1 -1
- package/v2/model/PrivateSnat.js +15 -1
- package/v2/model/PrivateSnat.js.map +1 -1
- package/v2/model/Resource.d.ts +3 -5
- package/v2/model/Resource.d.ts.map +1 -1
- package/v2/model/Resource.js +4 -10
- package/v2/model/Resource.js.map +1 -1
- package/v2/model/ShowTransitSubnetRequest.d.ts +8 -0
- package/v2/model/ShowTransitSubnetRequest.d.ts.map +1 -0
- package/v2/model/ShowTransitSubnetRequest.js +20 -0
- package/v2/model/ShowTransitSubnetRequest.js.map +1 -0
- package/v2/model/ShowTransitSubnetResponse.d.ts +14 -0
- package/v2/model/ShowTransitSubnetResponse.d.ts.map +1 -0
- package/v2/model/ShowTransitSubnetResponse.js +31 -0
- package/v2/model/ShowTransitSubnetResponse.js.map +1 -0
- package/v2/model/ShowTransitSubnetTagsRequest.d.ts +8 -0
- package/v2/model/ShowTransitSubnetTagsRequest.d.ts.map +1 -0
- package/v2/model/ShowTransitSubnetTagsRequest.js +20 -0
- package/v2/model/ShowTransitSubnetTagsRequest.js.map +1 -0
- package/v2/model/ShowTransitSubnetTagsResponse.d.ts +12 -0
- package/v2/model/ShowTransitSubnetTagsResponse.d.ts.map +1 -0
- package/v2/model/ShowTransitSubnetTagsResponse.js +25 -0
- package/v2/model/ShowTransitSubnetTagsResponse.js.map +1 -0
- package/v2/model/Spec.d.ts +32 -0
- package/v2/model/Spec.d.ts.map +1 -0
- package/v2/model/Spec.js +77 -0
- package/v2/model/Spec.js.map +1 -0
- package/v2/model/TransitIp.d.ts +14 -3
- package/v2/model/TransitIp.d.ts.map +1 -1
- package/v2/model/TransitIp.js +15 -1
- package/v2/model/TransitIp.js.map +1 -1
- package/v2/model/TransitSubnet.d.ts +62 -0
- package/v2/model/TransitSubnet.d.ts.map +1 -0
- package/v2/model/TransitSubnet.js +138 -0
- package/v2/model/TransitSubnet.js.map +1 -0
- package/v2/model/UpdateNatGatewayOption.d.ts +7 -1
- package/v2/model/UpdateNatGatewayOption.d.ts.map +1 -1
- package/v2/model/UpdateNatGatewayOption.js +11 -0
- package/v2/model/UpdateNatGatewayOption.js.map +1 -1
- package/v2/model/UpdateNatGatewayOptionPrepaidOptions.d.ts +8 -0
- package/v2/model/UpdateNatGatewayOptionPrepaidOptions.d.ts.map +1 -0
- package/v2/model/UpdateNatGatewayOptionPrepaidOptions.js +19 -0
- package/v2/model/UpdateNatGatewayOptionPrepaidOptions.js.map +1 -0
- package/v2/model/UpdateNatGatewayResponse.d.ts +4 -0
- package/v2/model/UpdateNatGatewayResponse.d.ts.map +1 -1
- package/v2/model/UpdateNatGatewayResponse.js +10 -0
- package/v2/model/UpdateNatGatewayResponse.js.map +1 -1
- package/v2/model/UpdateNatGatewayToPeriodRequest.d.ts +11 -0
- package/v2/model/UpdateNatGatewayToPeriodRequest.d.ts.map +1 -0
- package/v2/model/UpdateNatGatewayToPeriodRequest.js +24 -0
- package/v2/model/UpdateNatGatewayToPeriodRequest.js.map +1 -0
- package/v2/model/UpdateNatGatewayToPeriodRequestBody.d.ts +9 -0
- package/v2/model/UpdateNatGatewayToPeriodRequestBody.d.ts.map +1 -0
- package/v2/model/UpdateNatGatewayToPeriodRequestBody.js +19 -0
- package/v2/model/UpdateNatGatewayToPeriodRequestBody.js.map +1 -0
- package/v2/model/UpdateNatGatewayToPeriodResponse.d.ts +9 -0
- package/v2/model/UpdateNatGatewayToPeriodResponse.d.ts.map +1 -0
- package/v2/model/UpdateNatGatewayToPeriodResponse.js +21 -0
- package/v2/model/UpdateNatGatewayToPeriodResponse.js.map +1 -0
- package/v2/model/UpdatePrivateDnatOption.d.ts +4 -0
- package/v2/model/UpdatePrivateDnatOption.d.ts.map +1 -1
- package/v2/model/UpdatePrivateDnatOption.js +10 -0
- package/v2/model/UpdatePrivateDnatOption.js.map +1 -1
- package/v2/model/UpdatePrivateNatOption.d.ts +2 -1
- package/v2/model/UpdatePrivateNatOption.d.ts.map +1 -1
- package/v2/model/UpdatePrivateNatOption.js +1 -0
- package/v2/model/UpdatePrivateNatOption.js.map +1 -1
- package/v2/model/UpdateTransitSubnetOption.d.ts +8 -0
- package/v2/model/UpdateTransitSubnetOption.d.ts.map +1 -0
- package/v2/model/UpdateTransitSubnetOption.js +17 -0
- package/v2/model/UpdateTransitSubnetOption.js.map +1 -0
- package/v2/model/UpdateTransitSubnetRequest.d.ts +11 -0
- package/v2/model/UpdateTransitSubnetRequest.d.ts.map +1 -0
- package/v2/model/UpdateTransitSubnetRequest.js +24 -0
- package/v2/model/UpdateTransitSubnetRequest.js.map +1 -0
- package/v2/model/UpdateTransitSubnetRequestBody.d.ts +9 -0
- package/v2/model/UpdateTransitSubnetRequestBody.d.ts.map +1 -0
- package/v2/model/UpdateTransitSubnetRequestBody.js +20 -0
- package/v2/model/UpdateTransitSubnetRequestBody.js.map +1 -0
- package/v2/model/UpdateTransitSubnetResponse.d.ts +14 -0
- package/v2/model/UpdateTransitSubnetResponse.d.ts.map +1 -0
- package/v2/model/UpdateTransitSubnetResponse.js +31 -0
- package/v2/model/UpdateTransitSubnetResponse.js.map +1 -0
- package/v2/public-api.d.ts +37 -0
- package/v2/public-api.d.ts.map +1 -1
- package/v2/public-api.js +37 -0
- package/v2/public-api.js.map +1 -1
package/v2/NatClient.js
CHANGED
|
@@ -5,6 +5,7 @@ const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder
|
|
|
5
5
|
const BatchCreateDeleteNatGatewayTagRequest_1 = require("./model/BatchCreateDeleteNatGatewayTagRequest");
|
|
6
6
|
const BatchCreateDeletePrivateNatTagsRequest_1 = require("./model/BatchCreateDeletePrivateNatTagsRequest");
|
|
7
7
|
const BatchCreateDeleteTransitIpTagsRequest_1 = require("./model/BatchCreateDeleteTransitIpTagsRequest");
|
|
8
|
+
const BatchCreateDeleteTransitSubnetTagsRequest_1 = require("./model/BatchCreateDeleteTransitSubnetTagsRequest");
|
|
8
9
|
const BatchCreateNatGatewayDnatRulesRequest_1 = require("./model/BatchCreateNatGatewayDnatRulesRequest");
|
|
9
10
|
const CreateNatGatewayDnatRuleRequest_1 = require("./model/CreateNatGatewayDnatRuleRequest");
|
|
10
11
|
const CreateNatGatewayRequest_1 = require("./model/CreateNatGatewayRequest");
|
|
@@ -16,6 +17,8 @@ const CreatePrivateNatTagRequest_1 = require("./model/CreatePrivateNatTagRequest
|
|
|
16
17
|
const CreatePrivateSnatRequest_1 = require("./model/CreatePrivateSnatRequest");
|
|
17
18
|
const CreateTransitIpRequest_1 = require("./model/CreateTransitIpRequest");
|
|
18
19
|
const CreateTransitIpTagRequest_1 = require("./model/CreateTransitIpTagRequest");
|
|
20
|
+
const CreateTransitSubnetRequest_1 = require("./model/CreateTransitSubnetRequest");
|
|
21
|
+
const CreateTransitSubnetTagRequest_1 = require("./model/CreateTransitSubnetTagRequest");
|
|
19
22
|
const DeleteNatGatewayDnatRuleRequest_1 = require("./model/DeleteNatGatewayDnatRuleRequest");
|
|
20
23
|
const DeleteNatGatewayRequest_1 = require("./model/DeleteNatGatewayRequest");
|
|
21
24
|
const DeleteNatGatewaySnatRuleRequest_1 = require("./model/DeleteNatGatewaySnatRuleRequest");
|
|
@@ -26,6 +29,8 @@ const DeletePrivateNatTagRequest_1 = require("./model/DeletePrivateNatTagRequest
|
|
|
26
29
|
const DeletePrivateSnatRequest_1 = require("./model/DeletePrivateSnatRequest");
|
|
27
30
|
const DeleteTransitIpRequest_1 = require("./model/DeleteTransitIpRequest");
|
|
28
31
|
const DeleteTransitIpTagRequest_1 = require("./model/DeleteTransitIpTagRequest");
|
|
32
|
+
const DeleteTransitSubnetRequest_1 = require("./model/DeleteTransitSubnetRequest");
|
|
33
|
+
const DeleteTransitSubnetTagRequest_1 = require("./model/DeleteTransitSubnetTagRequest");
|
|
29
34
|
const ListNatGatewayByTagRequest_1 = require("./model/ListNatGatewayByTagRequest");
|
|
30
35
|
const ListNatGatewayDnatRulesRequest_1 = require("./model/ListNatGatewayDnatRulesRequest");
|
|
31
36
|
const ListNatGatewaySnatRulesRequest_1 = require("./model/ListNatGatewaySnatRulesRequest");
|
|
@@ -36,6 +41,8 @@ const ListPrivateNatsRequest_1 = require("./model/ListPrivateNatsRequest");
|
|
|
36
41
|
const ListPrivateSnatsRequest_1 = require("./model/ListPrivateSnatsRequest");
|
|
37
42
|
const ListTransitIpsByTagsRequest_1 = require("./model/ListTransitIpsByTagsRequest");
|
|
38
43
|
const ListTransitIpsRequest_1 = require("./model/ListTransitIpsRequest");
|
|
44
|
+
const ListTransitSubnetRequest_1 = require("./model/ListTransitSubnetRequest");
|
|
45
|
+
const ListTransitSubnetsByTagsRequest_1 = require("./model/ListTransitSubnetsByTagsRequest");
|
|
39
46
|
const ShowNatGatewayDnatRuleRequest_1 = require("./model/ShowNatGatewayDnatRuleRequest");
|
|
40
47
|
const ShowNatGatewayRequest_1 = require("./model/ShowNatGatewayRequest");
|
|
41
48
|
const ShowNatGatewaySnatRuleRequest_1 = require("./model/ShowNatGatewaySnatRuleRequest");
|
|
@@ -46,12 +53,16 @@ const ShowPrivateNatTagsRequest_1 = require("./model/ShowPrivateNatTagsRequest")
|
|
|
46
53
|
const ShowPrivateSnatRequest_1 = require("./model/ShowPrivateSnatRequest");
|
|
47
54
|
const ShowTransitIpRequest_1 = require("./model/ShowTransitIpRequest");
|
|
48
55
|
const ShowTransitIpTagsRequest_1 = require("./model/ShowTransitIpTagsRequest");
|
|
56
|
+
const ShowTransitSubnetRequest_1 = require("./model/ShowTransitSubnetRequest");
|
|
57
|
+
const ShowTransitSubnetTagsRequest_1 = require("./model/ShowTransitSubnetTagsRequest");
|
|
49
58
|
const UpdateNatGatewayDnatRuleRequest_1 = require("./model/UpdateNatGatewayDnatRuleRequest");
|
|
50
59
|
const UpdateNatGatewayRequest_1 = require("./model/UpdateNatGatewayRequest");
|
|
51
60
|
const UpdateNatGatewaySnatRuleRequest_1 = require("./model/UpdateNatGatewaySnatRuleRequest");
|
|
61
|
+
const UpdateNatGatewayToPeriodRequest_1 = require("./model/UpdateNatGatewayToPeriodRequest");
|
|
52
62
|
const UpdatePrivateDnatRequest_1 = require("./model/UpdatePrivateDnatRequest");
|
|
53
63
|
const UpdatePrivateNatRequest_1 = require("./model/UpdatePrivateNatRequest");
|
|
54
64
|
const UpdatePrivateSnatRequest_1 = require("./model/UpdatePrivateSnatRequest");
|
|
65
|
+
const UpdateTransitSubnetRequest_1 = require("./model/UpdateTransitSubnetRequest");
|
|
55
66
|
class NatClient {
|
|
56
67
|
static newBuilder() {
|
|
57
68
|
let client = new ClientBuilder_1.ClientBuilder(newClient);
|
|
@@ -63,6 +74,203 @@ class NatClient {
|
|
|
63
74
|
getPath() {
|
|
64
75
|
return __dirname;
|
|
65
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* - 为指定中转子网实例批量添加或删除标签
|
|
79
|
+
* - 标签管理服务需要使用该接口批量管理中转子网实例的标签。
|
|
80
|
+
* - 一个中转子网上最多有20个标签。
|
|
81
|
+
*
|
|
82
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
83
|
+
*
|
|
84
|
+
* @summary 批量添加删除中转子网标签
|
|
85
|
+
* @param {string} resourceId 中转子网的ID。
|
|
86
|
+
* @param {BatchOperateResourceTagsRequestBody} batchCreateDeleteTransitSubnetTagsRequestBody 批量添加删除中转子网的请求体。
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
batchCreateDeleteTransitSubnetTags(batchCreateDeleteTransitSubnetTagsRequest) {
|
|
91
|
+
const options = (0, exports.ParamCreater)().batchCreateDeleteTransitSubnetTags(batchCreateDeleteTransitSubnetTagsRequest);
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
options['responseHeaders'] = [''];
|
|
94
|
+
return this.hcClient.sendRequest(options);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 创建中转子网。
|
|
98
|
+
*
|
|
99
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
100
|
+
*
|
|
101
|
+
* @summary 创建中转子网
|
|
102
|
+
* @param {CreateTransitSubnetRequestBody} createTransitSubnetRequestBody 中转子网请求体
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
createTransitSubnet(createTransitSubnetRequest) {
|
|
107
|
+
const options = (0, exports.ParamCreater)().createTransitSubnet(createTransitSubnetRequest);
|
|
108
|
+
// @ts-ignore
|
|
109
|
+
options['responseHeaders'] = [''];
|
|
110
|
+
return this.hcClient.sendRequest(options);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* - 为指定中转子网添加标签
|
|
114
|
+
* - 一个中转子网上最多有20个标签。
|
|
115
|
+
* - 此接口为幂等接口:
|
|
116
|
+
* - 创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
117
|
+
*
|
|
118
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
119
|
+
*
|
|
120
|
+
* @summary 添加中转子网标签
|
|
121
|
+
* @param {string} resourceId 中转子网的ID。
|
|
122
|
+
* @param {CreateResourceTagRequestBody} createTransitSubnetTagRequestBody 添加中转子网标签的请求体。
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
createTransitSubnetTag(createTransitSubnetTagRequest) {
|
|
127
|
+
const options = (0, exports.ParamCreater)().createTransitSubnetTag(createTransitSubnetTagRequest);
|
|
128
|
+
// @ts-ignore
|
|
129
|
+
options['responseHeaders'] = [''];
|
|
130
|
+
return this.hcClient.sendRequest(options);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 删除中转子网。
|
|
134
|
+
*
|
|
135
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
136
|
+
*
|
|
137
|
+
* @summary 删除中转子网
|
|
138
|
+
* @param {string} transitSubnetId 中转子网ID。
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
deleteTransitSubnet(deleteTransitSubnetRequest) {
|
|
143
|
+
const options = (0, exports.ParamCreater)().deleteTransitSubnet(deleteTransitSubnetRequest);
|
|
144
|
+
// @ts-ignore
|
|
145
|
+
options['responseHeaders'] = [''];
|
|
146
|
+
return this.hcClient.sendRequest(options);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* - 幂等接口:
|
|
150
|
+
* - 删除时,不对标签字符集做校验,调用接口前必须要做encodeURI,服务端需要对接口uri做decodeURI。删除的key不存在报404,key不能为空或者空字符串。
|
|
151
|
+
*
|
|
152
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
153
|
+
*
|
|
154
|
+
* @summary 删除中转子网标签
|
|
155
|
+
* @param {string} key 标签key。
|
|
156
|
+
* @param {string} resourceId 中转子网的ID。
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
deleteTransitSubnetTag(deleteTransitSubnetTagRequest) {
|
|
161
|
+
const options = (0, exports.ParamCreater)().deleteTransitSubnetTag(deleteTransitSubnetTagRequest);
|
|
162
|
+
// @ts-ignore
|
|
163
|
+
options['responseHeaders'] = [''];
|
|
164
|
+
return this.hcClient.sendRequest(options);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* 查询中转子网列表。
|
|
168
|
+
*
|
|
169
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
170
|
+
*
|
|
171
|
+
* @summary 查询中转子网列表
|
|
172
|
+
* @param {Array<string>} [id] 中转子网的ID
|
|
173
|
+
* @param {Array<string>} [name] 中转子网的名字
|
|
174
|
+
* @param {Array<string>} [description] 中转子网的描述
|
|
175
|
+
* @param {Array<string>} [virsubnetProjectId] 中转子网的子网所属项目的ID
|
|
176
|
+
* @param {Array<string>} [vpcId] 中转子网的子网所属的VPC的ID
|
|
177
|
+
* @param {Array<string>} [virsubnetId] 中转子网的子网ID
|
|
178
|
+
* @param {Array<string>} [status] 中转子网状态。 取值范围: ACTIVE: 当前资源状态正常。 INACTIVE: 不可用。
|
|
179
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000
|
|
180
|
+
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取
|
|
181
|
+
* @param {boolean} [pageReverse] 是否查询前一页
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
listTransitSubnet(listTransitSubnetRequest) {
|
|
186
|
+
const options = (0, exports.ParamCreater)().listTransitSubnet(listTransitSubnetRequest);
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
options['responseHeaders'] = [''];
|
|
189
|
+
return this.hcClient.sendRequest(options);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* - 查询租户在指定Project的所有中转子网标签集合。
|
|
193
|
+
* - 标签管理服务需要能够列出当前租户全部已使用的中转子网标签集合,为打中转子网标签和过滤中转子网实例时提供标签联想功能。
|
|
194
|
+
*
|
|
195
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
196
|
+
*
|
|
197
|
+
* @summary 查询中转子网项目标签
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
listTransitSubnetTags(listTransitSubnetTagsRequest) {
|
|
202
|
+
const options = (0, exports.ParamCreater)().listTransitSubnetTags();
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
options['responseHeaders'] = [''];
|
|
205
|
+
return this.hcClient.sendRequest(options);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* - 使用标签过滤中转子网实例。
|
|
209
|
+
* - 标签管理服务需要提供按标签过滤中转子网服务实例并汇总显示在列表中,需要中转子网服务提供查询能力。
|
|
210
|
+
*
|
|
211
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
212
|
+
*
|
|
213
|
+
* @summary 查询中转子网实例
|
|
214
|
+
* @param {ListTagResourceInstancesRequestBody} listTransitSubnetsByTagsRequestBody 查询中转子网实例的请求体。
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
*/
|
|
218
|
+
listTransitSubnetsByTags(listTransitSubnetsByTagsRequest) {
|
|
219
|
+
const options = (0, exports.ParamCreater)().listTransitSubnetsByTags(listTransitSubnetsByTagsRequest);
|
|
220
|
+
// @ts-ignore
|
|
221
|
+
options['responseHeaders'] = [''];
|
|
222
|
+
return this.hcClient.sendRequest(options);
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* 查询指定的中转子网详情。
|
|
226
|
+
*
|
|
227
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
228
|
+
*
|
|
229
|
+
* @summary 查询指定的中转子网详情
|
|
230
|
+
* @param {string} transitSubnetId 中转子网ID。
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
showTransitSubnet(showTransitSubnetRequest) {
|
|
235
|
+
const options = (0, exports.ParamCreater)().showTransitSubnet(showTransitSubnetRequest);
|
|
236
|
+
// @ts-ignore
|
|
237
|
+
options['responseHeaders'] = [''];
|
|
238
|
+
return this.hcClient.sendRequest(options);
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* - 查询指定中转子网实例的标签信息。
|
|
242
|
+
* - 标签管理服务需要使用该接口查询指定中转子网实例的全部标签数据。
|
|
243
|
+
*
|
|
244
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
245
|
+
*
|
|
246
|
+
* @summary 查询中转子网标签
|
|
247
|
+
* @param {string} resourceId 中转子网的ID。
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
showTransitSubnetTags(showTransitSubnetTagsRequest) {
|
|
252
|
+
const options = (0, exports.ParamCreater)().showTransitSubnetTags(showTransitSubnetTagsRequest);
|
|
253
|
+
// @ts-ignore
|
|
254
|
+
options['responseHeaders'] = [''];
|
|
255
|
+
return this.hcClient.sendRequest(options);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* 更新指定的中转子网。
|
|
259
|
+
*
|
|
260
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
261
|
+
*
|
|
262
|
+
* @summary 更新中转子网
|
|
263
|
+
* @param {string} transitSubnetId 中转子网ID。
|
|
264
|
+
* @param {UpdateTransitSubnetRequestBody} updateTransitSubnetRequestBody 更新中转子网请求体。
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
updateTransitSubnet(updateTransitSubnetRequest) {
|
|
269
|
+
const options = (0, exports.ParamCreater)().updateTransitSubnet(updateTransitSubnetRequest);
|
|
270
|
+
// @ts-ignore
|
|
271
|
+
options['responseHeaders'] = [''];
|
|
272
|
+
return this.hcClient.sendRequest(options);
|
|
273
|
+
}
|
|
66
274
|
/**
|
|
67
275
|
* 批量创建DNAT规则。
|
|
68
276
|
*
|
|
@@ -153,13 +361,15 @@ class NatClient {
|
|
|
153
361
|
* @param {boolean} [adminStateUp] 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
|
|
154
362
|
* @param {number} [externalServicePort] Floatingip对外提供服务的端口号。 取值范围:0~65535。
|
|
155
363
|
* @param {string} [floatingIpAddress] 弹性公网的IP地址。
|
|
156
|
-
* @param {
|
|
364
|
+
* @param {string} [globalEipAddress] 全域弹性公网的IP地址。
|
|
365
|
+
* @param {Array<'ACTIVE' | 'PENDING_CREATE' | 'PENDING_UPDATE' | 'PENDING_DELETE' | 'EIP_FREEZED' | 'INACTIVE'>} [status] DNAT规则的状态。 取值为: ACTIVE: 可用 PENDING_CREATE: 创建中 PENDING_UPDATE: 更新中 PENDING_DELETE: 删除中 EIP_FREEZED: EIP冻结 INACTIVE: 不可用
|
|
157
366
|
* @param {string} [floatingIpId] 弹性公网IP的id。
|
|
367
|
+
* @param {string} [globalEipId] 全域弹性公网IP的id。
|
|
158
368
|
* @param {number} [internalServicePort] 虚拟机或者裸机对外提供服务的协议端口号。 取值范围:0~65535。
|
|
159
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
369
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
160
370
|
* @param {string} [id] DNAT规则的ID。
|
|
161
371
|
* @param {string} [description] DNAT规则的描述,长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
162
|
-
* @param {
|
|
372
|
+
* @param {Date} [createdAt] DNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
|
|
163
373
|
* @param {Array<string>} [natGatewayId] 公网NAT网关实例的ID。
|
|
164
374
|
* @param {string} [portId] 虚拟机或者裸机的Port ID,对应虚拟私有云场景,与private_ip参数二选一。
|
|
165
375
|
* @param {string} [privateIp] 用户私有IP地址,对应专线、云连接场景,与port_id参数二选一。
|
|
@@ -180,7 +390,7 @@ class NatClient {
|
|
|
180
390
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
181
391
|
*
|
|
182
392
|
* @summary 查询DNAT规则列表
|
|
183
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
393
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
184
394
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
185
395
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
186
396
|
* @param {Array<string>} [id] DNAT规则的ID。
|
|
@@ -188,10 +398,13 @@ class NatClient {
|
|
|
188
398
|
* @param {Array<string>} [description] DNAT规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
189
399
|
* @param {Array<string>} [gatewayId] 私网NAT网关实例的ID。
|
|
190
400
|
* @param {Array<string>} [transitIpId] 中转IP的ID。
|
|
191
|
-
* @param {Array<string>} [
|
|
192
|
-
* @param {Array<string>} [
|
|
193
|
-
* @param {Array<string>} [
|
|
194
|
-
* @param {Array<string>} [
|
|
401
|
+
* @param {Array<string>} [networkInterfaceId] 计算实例、ELBV2、ELBV3、VIP等资源的端口ID。
|
|
402
|
+
* @param {Array<string>} [type] DNAT规则后端的类型。 取值: COMPUTE:后端为计算实例。 VIP:后端为VIP的实例。 ELB:后端为ELBv2的实例。 ELBv3:后端为ELBv3的实例。 CUSTOMIZE:后端为自定义IP。
|
|
403
|
+
* @param {Array<string>} [privateIpAddress] 后端资源(计算实例、ELBV2、ELBV3、VIP等)的私网IP地址。
|
|
404
|
+
* @param {Array<string>} [protocol] DNAT规则协议类型, 目前支持TCP/tcp/Tcp/tCp/tcP/TCp/tCP/TcP、 UDP/udp/Udp/uDp/udP/UDp/uDP/UdP、 ANY/any/Any/aNy/anY/ANy/aNY/AnY。 分别对应协议号6、17、0。
|
|
405
|
+
* @param {Array<string>} [internalServicePort] 后端实例的端口号(计算实例、ELBV2、ELBV3、VIP等)。
|
|
406
|
+
* @param {Array<string>} [transitServicePort] 中转IP的端口号。
|
|
407
|
+
* @param {Array<string>} [transitIpAddress] 中转IP的地址。
|
|
195
408
|
* @param {*} [options] Override http request option.
|
|
196
409
|
* @throws {RequiredError}
|
|
197
410
|
*/
|
|
@@ -564,6 +777,21 @@ class NatClient {
|
|
|
564
777
|
options['responseHeaders'] = [''];
|
|
565
778
|
return this.hcClient.sendRequest(options);
|
|
566
779
|
}
|
|
780
|
+
/**
|
|
781
|
+
* 支持创建的NAT网关规格列表。
|
|
782
|
+
*
|
|
783
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
784
|
+
*
|
|
785
|
+
* @summary 支持创建的NAT网关规格列表
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
*/
|
|
789
|
+
listNatGatewaySpecs(listNatGatewaySpecsRequest) {
|
|
790
|
+
const options = (0, exports.ParamCreater)().listNatGatewaySpecs();
|
|
791
|
+
// @ts-ignore
|
|
792
|
+
options['responseHeaders'] = [''];
|
|
793
|
+
return this.hcClient.sendRequest(options);
|
|
794
|
+
}
|
|
567
795
|
/**
|
|
568
796
|
* - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。
|
|
569
797
|
* - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。
|
|
@@ -586,18 +814,21 @@ class NatClient {
|
|
|
586
814
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
587
815
|
*
|
|
588
816
|
* @summary 查询公网NAT网关列表
|
|
817
|
+
* @param {string} [tenantId] 项目的ID。
|
|
589
818
|
* @param {string} [id] 公网NAT网关实例的ID。
|
|
590
819
|
* @param {string} [enterpriseProjectId] 企业项目ID。创建公网NAT网关实例时,关联的企业项目ID。
|
|
591
820
|
* @param {string} [description] 公网NAT网关实例的描述,长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
592
|
-
* @param {
|
|
821
|
+
* @param {Date} [createdAt] 公网NAT网关实例的创建时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
|
|
593
822
|
* @param {string} [name] 公网NAT网关实例的名字,长度限制为64。 公网NAT网关实例的名字仅支持数字、字母、_(下划线)、-(中划线)、中文
|
|
594
|
-
* @param {Array<'ACTIVE' | 'PENDING_CREATE' | 'PENDING_UPDATE' | 'PENDING_DELETE' | 'INACTIVE'>} [status] 公网NAT网关实例的状态。
|
|
595
|
-
* @param {Array<'1' | '2' | '3' | '4'>} [spec] 公网NAT网关实例的规格。 取值为: \"1\":小型,SNAT最大连接数10000 \"2\":中型,SNAT最大连接数50000 \"3\":大型,SNAT最大连接数200000 \"4\":超大型,SNAT最大连接数1000000
|
|
823
|
+
* @param {Array<'ACTIVE' | 'PENDING_CREATE' | 'PENDING_UPDATE' | 'PENDING_DELETE' | 'INACTIVE'>} [status] 公网NAT网关实例的状态。 取值为: ACTIVE: 可用 PENDING_CREATE: 创建中 PENDING_UPDATE: 更新中 PENDING_DELETE: 删除中 INACTIVE: 不可用
|
|
824
|
+
* @param {Array<'1' | '2' | '3' | '4' | '5'>} [spec] 公网NAT网关实例的规格。 取值为: \"1\":小型,SNAT最大连接数10000 \"2\":中型,SNAT最大连接数50000 \"3\":大型,SNAT最大连接数200000 \"4\":超大型,SNAT最大连接数1000000 “5”:企业型,SNAT最大连接数10000000
|
|
596
825
|
* @param {boolean} [adminStateUp] 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
|
|
597
826
|
* @param {string} [internalNetworkId] 公网NAT网关下行口(DVR的下一跳)所属的network id。
|
|
598
827
|
* @param {string} [routerId] VPC的id。
|
|
599
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
828
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
600
829
|
* @param {string} [marker] 分页查询的起始资源ID,表示从指定资源的下一条记录开始查询。 - 若不传入marker和limit参数,查询结果返回第一页全部资源记录(默认2000条)。 - 若不传入marker参数,limit为10,查询结果返回第1~10条资源记录。 - 若marker为第10条记录的资源ID,limit为10,查询结果返回第11~20条资源记录。 - 若marker为第10条记录的资源ID,不传入limit参数,查询结果返回第11条及之后的资源记录(默认2000条)。
|
|
830
|
+
* @param {'id' | 'name' | 'status' | 'created_at'} [sortKey] 排序使用的key
|
|
831
|
+
* @param {'desc' | 'asc'} [sortDir] 返回结果按照升序或降序排列,默认降序desc,升序为asc
|
|
601
832
|
* @param {*} [options] Override http request option.
|
|
602
833
|
* @throws {RequiredError}
|
|
603
834
|
*/
|
|
@@ -629,14 +860,14 @@ class NatClient {
|
|
|
629
860
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
630
861
|
*
|
|
631
862
|
* @summary 查询私网NAT网关列表
|
|
632
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
863
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
633
864
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
634
865
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
635
866
|
* @param {Array<string>} [id] 私网NAT网关实例的ID。
|
|
636
867
|
* @param {Array<string>} [name] 私网NAT网关实例的名字。
|
|
637
868
|
* @param {Array<string>} [description] 私网NAT网关实例的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
638
|
-
* @param {Array<'Small' | 'Medium' | 'Large' | 'Extra-large'>} [spec] 私网NAT网关实例的规格。 取值为: \"Small\":小型 \"Medium\":中型 \"Large\":大型 \"Extra-large\":超大型
|
|
639
|
-
* @param {Array<'ACTIVE' | 'FROZEN'>} [status] 私网NAT网关实例的状态。 取值为: \"ACTIVE\":正常运行 \"FROZEN\":冻结
|
|
869
|
+
* @param {Array<'Small' | 'Medium' | 'Large' | 'Extra-large' | 'Extra-xlarge'>} [spec] 私网NAT网关实例的规格。 取值为: \"Small\":小型 \"Medium\":中型 \"Large\":大型 \"Extra-large\":超大型 \"Extra-xlarge\":企业型
|
|
870
|
+
* @param {Array<'ACTIVE' | 'FROZEN' | 'INACTIVE'>} [status] 私网NAT网关实例的状态。 取值为: \"ACTIVE\":正常运行 \"FROZEN\":冻结 \"INACTIVE\":不可用
|
|
640
871
|
* @param {Array<string>} [vpcId] 私网NAT网关实例所属VPC的ID。
|
|
641
872
|
* @param {Array<string>} [virsubnetId] 私网NAT网关实例所属子网的ID。
|
|
642
873
|
* @param {Array<string>} [enterpriseProjectId] 企业项目ID。创建私网NAT网关实例时,关联的企业项目ID。
|
|
@@ -666,6 +897,21 @@ class NatClient {
|
|
|
666
897
|
options['responseHeaders'] = [''];
|
|
667
898
|
return this.hcClient.sendRequest(options);
|
|
668
899
|
}
|
|
900
|
+
/**
|
|
901
|
+
* 查询项目支持的网关规格列表。
|
|
902
|
+
*
|
|
903
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
904
|
+
*
|
|
905
|
+
* @summary 查询项目支持的网关规格列表
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
listSpecs(listSpecsRequest) {
|
|
910
|
+
const options = (0, exports.ParamCreater)().listSpecs();
|
|
911
|
+
// @ts-ignore
|
|
912
|
+
options['responseHeaders'] = [''];
|
|
913
|
+
return this.hcClient.sendRequest(options);
|
|
914
|
+
}
|
|
669
915
|
/**
|
|
670
916
|
* 查询指定的公网NAT网关实例详情。
|
|
671
917
|
*
|
|
@@ -749,6 +995,23 @@ class NatClient {
|
|
|
749
995
|
options['responseHeaders'] = [''];
|
|
750
996
|
return this.hcClient.sendRequest(options);
|
|
751
997
|
}
|
|
998
|
+
/**
|
|
999
|
+
* 公网NAT网关按需转包。
|
|
1000
|
+
*
|
|
1001
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1002
|
+
*
|
|
1003
|
+
* @summary 公网NAT网关按需转包
|
|
1004
|
+
* @param {string} natGatewayId 公网NAT网关实例的ID。
|
|
1005
|
+
* @param {UpdateNatGatewayToPeriodRequestBody} updateNatGatewayToPeriodRequestBody 公网NAT网关按需转包的请求体。
|
|
1006
|
+
* @param {*} [options] Override http request option.
|
|
1007
|
+
* @throws {RequiredError}
|
|
1008
|
+
*/
|
|
1009
|
+
updateNatGatewayToPeriod(updateNatGatewayToPeriodRequest) {
|
|
1010
|
+
const options = (0, exports.ParamCreater)().updateNatGatewayToPeriod(updateNatGatewayToPeriodRequest);
|
|
1011
|
+
// @ts-ignore
|
|
1012
|
+
options['responseHeaders'] = [''];
|
|
1013
|
+
return this.hcClient.sendRequest(options);
|
|
1014
|
+
}
|
|
752
1015
|
/**
|
|
753
1016
|
* 更新私网NAT网关实例。
|
|
754
1017
|
*
|
|
@@ -804,7 +1067,7 @@ class NatClient {
|
|
|
804
1067
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
805
1068
|
*
|
|
806
1069
|
* @summary 查询中转IP列表
|
|
807
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
1070
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
808
1071
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
809
1072
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
810
1073
|
* @param {Array<string>} [id] 中转IP的ID。
|
|
@@ -813,6 +1076,7 @@ class NatClient {
|
|
|
813
1076
|
* @param {Array<string>} [gatewayId] 中转IP绑定的私网NAT网关实例的ID。
|
|
814
1077
|
* @param {Array<string>} [enterpriseProjectId] 企业项目ID。创建中转IP时,关联的企业项目ID。
|
|
815
1078
|
* @param {Array<string>} [virsubnetId] 当前租户子网的ID。
|
|
1079
|
+
* @param {Array<string>} [transitSubnetId] 中转子网的ID。
|
|
816
1080
|
* @param {*} [options] Override http request option.
|
|
817
1081
|
* @throws {RequiredError}
|
|
818
1082
|
*/
|
|
@@ -911,16 +1175,18 @@ class NatClient {
|
|
|
911
1175
|
* @summary 查询SNAT规则列表
|
|
912
1176
|
* @param {boolean} [adminStateUp] 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
|
|
913
1177
|
* @param {string} [cidr] 可以是网段或者主机格式,与network_id参数二选一。 Source_type=0时,cidr必须是vpc子网网段的子集(不能相等); Source_type=1时,cidr必须指定专线侧网段。
|
|
914
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
915
|
-
* @param {
|
|
916
|
-
* @param {
|
|
1178
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
1179
|
+
* @param {string} [floatingIpAddress] 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
|
|
1180
|
+
* @param {string} [globalEipAddress] 功能说明:全域弹性公网IP,多个全域弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
|
|
1181
|
+
* @param {string} [floatingIpId] 功能说明:弹性公网IP的id,多个弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
|
|
1182
|
+
* @param {string} [globalEipId] 功能说明:全域弹性公网IP的id,多个全域弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
|
|
917
1183
|
* @param {string} [id] SNAT规则的ID。
|
|
918
1184
|
* @param {string} [description] SNAT规则的描述,长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
919
|
-
* @param {
|
|
1185
|
+
* @param {Date} [createdAt] SNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
|
|
920
1186
|
* @param {Array<string>} [natGatewayId] 公网NAT网关实例的ID。
|
|
921
1187
|
* @param {string} [networkId] 规则使用的网络id。与cidr参数二选一。
|
|
922
1188
|
* @param {number} [sourceType] 0:VPC侧,可以指定network_id 或者cidr 1:专线侧,只能指定cidr 不输入默认为0(VPC)
|
|
923
|
-
* @param {'ACTIVE' | 'PENDING_CREATE' | 'PENDING_UPDATE' | 'PENDING_DELETE' | 'EIP_FREEZED' | 'INACTIVE'} [status] SNAT规则的状态。
|
|
1189
|
+
* @param {'ACTIVE' | 'PENDING_CREATE' | 'PENDING_UPDATE' | 'PENDING_DELETE' | 'EIP_FREEZED' | 'INACTIVE'} [status] SNAT规则的状态。 取值为: ACTIVE: 可用 PENDING_CREATE: 创建中 PENDING_UPDATE: 更新中 PENDING_DELETE: 删除中 EIP_FREEZED: EIP冻结 INACTIVE: 不可用
|
|
924
1190
|
* @param {string} [marker] 分页查询的起始资源ID,表示从指定资源的下一条记录开始查询。 - 若不传入marker和limit参数,查询结果返回第一页全部资源记录(默认2000条)。 - 若不传入marker参数,limit为10,查询结果返回第1~10条资源记录。 - 若marker为第10条记录的资源ID,limit为10,查询结果返回第11~20条资源记录。 - 若marker为第10条记录的资源ID,不传入limit参数,查询结果返回第11条及之后的资源记录(默认2000条)。
|
|
925
1191
|
* @param {*} [options] Override http request option.
|
|
926
1192
|
* @throws {RequiredError}
|
|
@@ -937,7 +1203,7 @@ class NatClient {
|
|
|
937
1203
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
938
1204
|
*
|
|
939
1205
|
* @summary 查询SNAT规则列表
|
|
940
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
1206
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
941
1207
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
942
1208
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
943
1209
|
* @param {Array<string>} [id] SNAT规则的ID。
|
|
@@ -1027,6 +1293,435 @@ class NatClient {
|
|
|
1027
1293
|
exports.NatClient = NatClient;
|
|
1028
1294
|
const ParamCreater = function () {
|
|
1029
1295
|
return {
|
|
1296
|
+
/**
|
|
1297
|
+
* - 为指定中转子网实例批量添加或删除标签
|
|
1298
|
+
* - 标签管理服务需要使用该接口批量管理中转子网实例的标签。
|
|
1299
|
+
* - 一个中转子网上最多有20个标签。
|
|
1300
|
+
*
|
|
1301
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1302
|
+
*/
|
|
1303
|
+
batchCreateDeleteTransitSubnetTags(batchCreateDeleteTransitSubnetTagsRequest) {
|
|
1304
|
+
const options = {
|
|
1305
|
+
method: "POST",
|
|
1306
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags/action",
|
|
1307
|
+
contentType: "application/json",
|
|
1308
|
+
queryParams: {},
|
|
1309
|
+
pathParams: {},
|
|
1310
|
+
headers: {},
|
|
1311
|
+
data: {}
|
|
1312
|
+
};
|
|
1313
|
+
const localVarHeaderParameter = {};
|
|
1314
|
+
let body;
|
|
1315
|
+
let resourceId;
|
|
1316
|
+
if (batchCreateDeleteTransitSubnetTagsRequest !== null && batchCreateDeleteTransitSubnetTagsRequest !== undefined) {
|
|
1317
|
+
if (batchCreateDeleteTransitSubnetTagsRequest instanceof BatchCreateDeleteTransitSubnetTagsRequest_1.BatchCreateDeleteTransitSubnetTagsRequest) {
|
|
1318
|
+
resourceId = batchCreateDeleteTransitSubnetTagsRequest.resourceId;
|
|
1319
|
+
body = batchCreateDeleteTransitSubnetTagsRequest.body;
|
|
1320
|
+
}
|
|
1321
|
+
else {
|
|
1322
|
+
resourceId = batchCreateDeleteTransitSubnetTagsRequest['resource_id'];
|
|
1323
|
+
body = batchCreateDeleteTransitSubnetTagsRequest['body'];
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1327
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling batchCreateDeleteTransitSubnetTags.');
|
|
1328
|
+
}
|
|
1329
|
+
if (body === null || body === undefined) {
|
|
1330
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1331
|
+
}
|
|
1332
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1333
|
+
options.data = body !== undefined ? body : {};
|
|
1334
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
1335
|
+
options.headers = localVarHeaderParameter;
|
|
1336
|
+
return options;
|
|
1337
|
+
},
|
|
1338
|
+
/**
|
|
1339
|
+
* 创建中转子网。
|
|
1340
|
+
*
|
|
1341
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1342
|
+
*/
|
|
1343
|
+
createTransitSubnet(createTransitSubnetRequest) {
|
|
1344
|
+
const options = {
|
|
1345
|
+
method: "POST",
|
|
1346
|
+
url: "/v3/{project_id}/private-nat/transit-subnets",
|
|
1347
|
+
contentType: "application/json",
|
|
1348
|
+
queryParams: {},
|
|
1349
|
+
pathParams: {},
|
|
1350
|
+
headers: {},
|
|
1351
|
+
data: {}
|
|
1352
|
+
};
|
|
1353
|
+
const localVarHeaderParameter = {};
|
|
1354
|
+
let body;
|
|
1355
|
+
if (createTransitSubnetRequest !== null && createTransitSubnetRequest !== undefined) {
|
|
1356
|
+
if (createTransitSubnetRequest instanceof CreateTransitSubnetRequest_1.CreateTransitSubnetRequest) {
|
|
1357
|
+
body = createTransitSubnetRequest.body;
|
|
1358
|
+
}
|
|
1359
|
+
else {
|
|
1360
|
+
body = createTransitSubnetRequest['body'];
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
if (body === null || body === undefined) {
|
|
1364
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1365
|
+
}
|
|
1366
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1367
|
+
options.data = body !== undefined ? body : {};
|
|
1368
|
+
options.headers = localVarHeaderParameter;
|
|
1369
|
+
return options;
|
|
1370
|
+
},
|
|
1371
|
+
/**
|
|
1372
|
+
* - 为指定中转子网添加标签
|
|
1373
|
+
* - 一个中转子网上最多有20个标签。
|
|
1374
|
+
* - 此接口为幂等接口:
|
|
1375
|
+
* - 创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
1376
|
+
*
|
|
1377
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1378
|
+
*/
|
|
1379
|
+
createTransitSubnetTag(createTransitSubnetTagRequest) {
|
|
1380
|
+
const options = {
|
|
1381
|
+
method: "POST",
|
|
1382
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags",
|
|
1383
|
+
contentType: "application/json",
|
|
1384
|
+
queryParams: {},
|
|
1385
|
+
pathParams: {},
|
|
1386
|
+
headers: {},
|
|
1387
|
+
data: {}
|
|
1388
|
+
};
|
|
1389
|
+
const localVarHeaderParameter = {};
|
|
1390
|
+
let body;
|
|
1391
|
+
let resourceId;
|
|
1392
|
+
if (createTransitSubnetTagRequest !== null && createTransitSubnetTagRequest !== undefined) {
|
|
1393
|
+
if (createTransitSubnetTagRequest instanceof CreateTransitSubnetTagRequest_1.CreateTransitSubnetTagRequest) {
|
|
1394
|
+
resourceId = createTransitSubnetTagRequest.resourceId;
|
|
1395
|
+
body = createTransitSubnetTagRequest.body;
|
|
1396
|
+
}
|
|
1397
|
+
else {
|
|
1398
|
+
resourceId = createTransitSubnetTagRequest['resource_id'];
|
|
1399
|
+
body = createTransitSubnetTagRequest['body'];
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1403
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling createTransitSubnetTag.');
|
|
1404
|
+
}
|
|
1405
|
+
if (body === null || body === undefined) {
|
|
1406
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1407
|
+
}
|
|
1408
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1409
|
+
options.data = body !== undefined ? body : {};
|
|
1410
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
1411
|
+
options.headers = localVarHeaderParameter;
|
|
1412
|
+
return options;
|
|
1413
|
+
},
|
|
1414
|
+
/**
|
|
1415
|
+
* 删除中转子网。
|
|
1416
|
+
*
|
|
1417
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1418
|
+
*/
|
|
1419
|
+
deleteTransitSubnet(deleteTransitSubnetRequest) {
|
|
1420
|
+
const options = {
|
|
1421
|
+
method: "DELETE",
|
|
1422
|
+
url: "/v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id}",
|
|
1423
|
+
contentType: "application/json",
|
|
1424
|
+
queryParams: {},
|
|
1425
|
+
pathParams: {},
|
|
1426
|
+
headers: {}
|
|
1427
|
+
};
|
|
1428
|
+
const localVarHeaderParameter = {};
|
|
1429
|
+
let transitSubnetId;
|
|
1430
|
+
if (deleteTransitSubnetRequest !== null && deleteTransitSubnetRequest !== undefined) {
|
|
1431
|
+
if (deleteTransitSubnetRequest instanceof DeleteTransitSubnetRequest_1.DeleteTransitSubnetRequest) {
|
|
1432
|
+
transitSubnetId = deleteTransitSubnetRequest.transitSubnetId;
|
|
1433
|
+
}
|
|
1434
|
+
else {
|
|
1435
|
+
transitSubnetId = deleteTransitSubnetRequest['transit_subnet_id'];
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
if (transitSubnetId === null || transitSubnetId === undefined) {
|
|
1439
|
+
throw new RequiredError('transitSubnetId', 'Required parameter transitSubnetId was null or undefined when calling deleteTransitSubnet.');
|
|
1440
|
+
}
|
|
1441
|
+
options.pathParams = { 'transit_subnet_id': transitSubnetId, };
|
|
1442
|
+
options.headers = localVarHeaderParameter;
|
|
1443
|
+
return options;
|
|
1444
|
+
},
|
|
1445
|
+
/**
|
|
1446
|
+
* - 幂等接口:
|
|
1447
|
+
* - 删除时,不对标签字符集做校验,调用接口前必须要做encodeURI,服务端需要对接口uri做decodeURI。删除的key不存在报404,key不能为空或者空字符串。
|
|
1448
|
+
*
|
|
1449
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1450
|
+
*/
|
|
1451
|
+
deleteTransitSubnetTag(deleteTransitSubnetTagRequest) {
|
|
1452
|
+
const options = {
|
|
1453
|
+
method: "DELETE",
|
|
1454
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags/{key}",
|
|
1455
|
+
contentType: "application/json",
|
|
1456
|
+
queryParams: {},
|
|
1457
|
+
pathParams: {},
|
|
1458
|
+
headers: {}
|
|
1459
|
+
};
|
|
1460
|
+
const localVarHeaderParameter = {};
|
|
1461
|
+
let key;
|
|
1462
|
+
let resourceId;
|
|
1463
|
+
if (deleteTransitSubnetTagRequest !== null && deleteTransitSubnetTagRequest !== undefined) {
|
|
1464
|
+
if (deleteTransitSubnetTagRequest instanceof DeleteTransitSubnetTagRequest_1.DeleteTransitSubnetTagRequest) {
|
|
1465
|
+
key = deleteTransitSubnetTagRequest.key;
|
|
1466
|
+
resourceId = deleteTransitSubnetTagRequest.resourceId;
|
|
1467
|
+
}
|
|
1468
|
+
else {
|
|
1469
|
+
key = deleteTransitSubnetTagRequest['key'];
|
|
1470
|
+
resourceId = deleteTransitSubnetTagRequest['resource_id'];
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
if (key === null || key === undefined) {
|
|
1474
|
+
throw new RequiredError('key', 'Required parameter key was null or undefined when calling deleteTransitSubnetTag.');
|
|
1475
|
+
}
|
|
1476
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1477
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling deleteTransitSubnetTag.');
|
|
1478
|
+
}
|
|
1479
|
+
options.pathParams = { 'key': key, 'resource_id': resourceId, };
|
|
1480
|
+
options.headers = localVarHeaderParameter;
|
|
1481
|
+
return options;
|
|
1482
|
+
},
|
|
1483
|
+
/**
|
|
1484
|
+
* 查询中转子网列表。
|
|
1485
|
+
*
|
|
1486
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1487
|
+
*/
|
|
1488
|
+
listTransitSubnet(listTransitSubnetRequest) {
|
|
1489
|
+
const options = {
|
|
1490
|
+
method: "GET",
|
|
1491
|
+
url: "/v3/{project_id}/private-nat/transit-subnets",
|
|
1492
|
+
contentType: "application/json",
|
|
1493
|
+
queryParams: {},
|
|
1494
|
+
pathParams: {},
|
|
1495
|
+
headers: {}
|
|
1496
|
+
};
|
|
1497
|
+
const localVarHeaderParameter = {};
|
|
1498
|
+
const localVarQueryParameter = {};
|
|
1499
|
+
let id;
|
|
1500
|
+
let name;
|
|
1501
|
+
let description;
|
|
1502
|
+
let virsubnetProjectId;
|
|
1503
|
+
let vpcId;
|
|
1504
|
+
let virsubnetId;
|
|
1505
|
+
let status;
|
|
1506
|
+
let limit;
|
|
1507
|
+
let marker;
|
|
1508
|
+
let pageReverse;
|
|
1509
|
+
if (listTransitSubnetRequest !== null && listTransitSubnetRequest !== undefined) {
|
|
1510
|
+
if (listTransitSubnetRequest instanceof ListTransitSubnetRequest_1.ListTransitSubnetRequest) {
|
|
1511
|
+
id = listTransitSubnetRequest.id;
|
|
1512
|
+
name = listTransitSubnetRequest.name;
|
|
1513
|
+
description = listTransitSubnetRequest.description;
|
|
1514
|
+
virsubnetProjectId = listTransitSubnetRequest.virsubnetProjectId;
|
|
1515
|
+
vpcId = listTransitSubnetRequest.vpcId;
|
|
1516
|
+
virsubnetId = listTransitSubnetRequest.virsubnetId;
|
|
1517
|
+
status = listTransitSubnetRequest.status;
|
|
1518
|
+
limit = listTransitSubnetRequest.limit;
|
|
1519
|
+
marker = listTransitSubnetRequest.marker;
|
|
1520
|
+
pageReverse = listTransitSubnetRequest.pageReverse;
|
|
1521
|
+
}
|
|
1522
|
+
else {
|
|
1523
|
+
id = listTransitSubnetRequest['id'];
|
|
1524
|
+
name = listTransitSubnetRequest['name'];
|
|
1525
|
+
description = listTransitSubnetRequest['description'];
|
|
1526
|
+
virsubnetProjectId = listTransitSubnetRequest['virsubnet_project_id'];
|
|
1527
|
+
vpcId = listTransitSubnetRequest['vpc_id'];
|
|
1528
|
+
virsubnetId = listTransitSubnetRequest['virsubnet_id'];
|
|
1529
|
+
status = listTransitSubnetRequest['status'];
|
|
1530
|
+
limit = listTransitSubnetRequest['limit'];
|
|
1531
|
+
marker = listTransitSubnetRequest['marker'];
|
|
1532
|
+
pageReverse = listTransitSubnetRequest['page_reverse'];
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
if (id !== null && id !== undefined) {
|
|
1536
|
+
localVarQueryParameter['id'] = id;
|
|
1537
|
+
}
|
|
1538
|
+
if (name !== null && name !== undefined) {
|
|
1539
|
+
localVarQueryParameter['name'] = name;
|
|
1540
|
+
}
|
|
1541
|
+
if (description !== null && description !== undefined) {
|
|
1542
|
+
localVarQueryParameter['description'] = description;
|
|
1543
|
+
}
|
|
1544
|
+
if (virsubnetProjectId !== null && virsubnetProjectId !== undefined) {
|
|
1545
|
+
localVarQueryParameter['virsubnet_project_id'] = virsubnetProjectId;
|
|
1546
|
+
}
|
|
1547
|
+
if (vpcId !== null && vpcId !== undefined) {
|
|
1548
|
+
localVarQueryParameter['vpc_id'] = vpcId;
|
|
1549
|
+
}
|
|
1550
|
+
if (virsubnetId !== null && virsubnetId !== undefined) {
|
|
1551
|
+
localVarQueryParameter['virsubnet_id'] = virsubnetId;
|
|
1552
|
+
}
|
|
1553
|
+
if (status !== null && status !== undefined) {
|
|
1554
|
+
localVarQueryParameter['status'] = status;
|
|
1555
|
+
}
|
|
1556
|
+
if (limit !== null && limit !== undefined) {
|
|
1557
|
+
localVarQueryParameter['limit'] = limit;
|
|
1558
|
+
}
|
|
1559
|
+
if (marker !== null && marker !== undefined) {
|
|
1560
|
+
localVarQueryParameter['marker'] = marker;
|
|
1561
|
+
}
|
|
1562
|
+
if (pageReverse !== null && pageReverse !== undefined) {
|
|
1563
|
+
localVarQueryParameter['page_reverse'] = pageReverse;
|
|
1564
|
+
}
|
|
1565
|
+
options.queryParams = localVarQueryParameter;
|
|
1566
|
+
options.headers = localVarHeaderParameter;
|
|
1567
|
+
return options;
|
|
1568
|
+
},
|
|
1569
|
+
/**
|
|
1570
|
+
* - 查询租户在指定Project的所有中转子网标签集合。
|
|
1571
|
+
* - 标签管理服务需要能够列出当前租户全部已使用的中转子网标签集合,为打中转子网标签和过滤中转子网实例时提供标签联想功能。
|
|
1572
|
+
*
|
|
1573
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1574
|
+
*/
|
|
1575
|
+
listTransitSubnetTags() {
|
|
1576
|
+
const options = {
|
|
1577
|
+
method: "GET",
|
|
1578
|
+
url: "/v3/{project_id}/transit-subnets/tags",
|
|
1579
|
+
contentType: "application/json",
|
|
1580
|
+
queryParams: {},
|
|
1581
|
+
pathParams: {},
|
|
1582
|
+
headers: {}
|
|
1583
|
+
};
|
|
1584
|
+
const localVarHeaderParameter = {};
|
|
1585
|
+
options.headers = localVarHeaderParameter;
|
|
1586
|
+
return options;
|
|
1587
|
+
},
|
|
1588
|
+
/**
|
|
1589
|
+
* - 使用标签过滤中转子网实例。
|
|
1590
|
+
* - 标签管理服务需要提供按标签过滤中转子网服务实例并汇总显示在列表中,需要中转子网服务提供查询能力。
|
|
1591
|
+
*
|
|
1592
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1593
|
+
*/
|
|
1594
|
+
listTransitSubnetsByTags(listTransitSubnetsByTagsRequest) {
|
|
1595
|
+
const options = {
|
|
1596
|
+
method: "POST",
|
|
1597
|
+
url: "/v3/{project_id}/transit-subnets/resource_instances/action",
|
|
1598
|
+
contentType: "application/json",
|
|
1599
|
+
queryParams: {},
|
|
1600
|
+
pathParams: {},
|
|
1601
|
+
headers: {},
|
|
1602
|
+
data: {}
|
|
1603
|
+
};
|
|
1604
|
+
const localVarHeaderParameter = {};
|
|
1605
|
+
let body;
|
|
1606
|
+
if (listTransitSubnetsByTagsRequest !== null && listTransitSubnetsByTagsRequest !== undefined) {
|
|
1607
|
+
if (listTransitSubnetsByTagsRequest instanceof ListTransitSubnetsByTagsRequest_1.ListTransitSubnetsByTagsRequest) {
|
|
1608
|
+
body = listTransitSubnetsByTagsRequest.body;
|
|
1609
|
+
}
|
|
1610
|
+
else {
|
|
1611
|
+
body = listTransitSubnetsByTagsRequest['body'];
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
if (body === null || body === undefined) {
|
|
1615
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1616
|
+
}
|
|
1617
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1618
|
+
options.data = body !== undefined ? body : {};
|
|
1619
|
+
options.headers = localVarHeaderParameter;
|
|
1620
|
+
return options;
|
|
1621
|
+
},
|
|
1622
|
+
/**
|
|
1623
|
+
* 查询指定的中转子网详情。
|
|
1624
|
+
*
|
|
1625
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1626
|
+
*/
|
|
1627
|
+
showTransitSubnet(showTransitSubnetRequest) {
|
|
1628
|
+
const options = {
|
|
1629
|
+
method: "GET",
|
|
1630
|
+
url: "/v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id}",
|
|
1631
|
+
contentType: "application/json",
|
|
1632
|
+
queryParams: {},
|
|
1633
|
+
pathParams: {},
|
|
1634
|
+
headers: {}
|
|
1635
|
+
};
|
|
1636
|
+
const localVarHeaderParameter = {};
|
|
1637
|
+
let transitSubnetId;
|
|
1638
|
+
if (showTransitSubnetRequest !== null && showTransitSubnetRequest !== undefined) {
|
|
1639
|
+
if (showTransitSubnetRequest instanceof ShowTransitSubnetRequest_1.ShowTransitSubnetRequest) {
|
|
1640
|
+
transitSubnetId = showTransitSubnetRequest.transitSubnetId;
|
|
1641
|
+
}
|
|
1642
|
+
else {
|
|
1643
|
+
transitSubnetId = showTransitSubnetRequest['transit_subnet_id'];
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
if (transitSubnetId === null || transitSubnetId === undefined) {
|
|
1647
|
+
throw new RequiredError('transitSubnetId', 'Required parameter transitSubnetId was null or undefined when calling showTransitSubnet.');
|
|
1648
|
+
}
|
|
1649
|
+
options.pathParams = { 'transit_subnet_id': transitSubnetId, };
|
|
1650
|
+
options.headers = localVarHeaderParameter;
|
|
1651
|
+
return options;
|
|
1652
|
+
},
|
|
1653
|
+
/**
|
|
1654
|
+
* - 查询指定中转子网实例的标签信息。
|
|
1655
|
+
* - 标签管理服务需要使用该接口查询指定中转子网实例的全部标签数据。
|
|
1656
|
+
*
|
|
1657
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1658
|
+
*/
|
|
1659
|
+
showTransitSubnetTags(showTransitSubnetTagsRequest) {
|
|
1660
|
+
const options = {
|
|
1661
|
+
method: "GET",
|
|
1662
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags",
|
|
1663
|
+
contentType: "application/json",
|
|
1664
|
+
queryParams: {},
|
|
1665
|
+
pathParams: {},
|
|
1666
|
+
headers: {}
|
|
1667
|
+
};
|
|
1668
|
+
const localVarHeaderParameter = {};
|
|
1669
|
+
let resourceId;
|
|
1670
|
+
if (showTransitSubnetTagsRequest !== null && showTransitSubnetTagsRequest !== undefined) {
|
|
1671
|
+
if (showTransitSubnetTagsRequest instanceof ShowTransitSubnetTagsRequest_1.ShowTransitSubnetTagsRequest) {
|
|
1672
|
+
resourceId = showTransitSubnetTagsRequest.resourceId;
|
|
1673
|
+
}
|
|
1674
|
+
else {
|
|
1675
|
+
resourceId = showTransitSubnetTagsRequest['resource_id'];
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1679
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling showTransitSubnetTags.');
|
|
1680
|
+
}
|
|
1681
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
1682
|
+
options.headers = localVarHeaderParameter;
|
|
1683
|
+
return options;
|
|
1684
|
+
},
|
|
1685
|
+
/**
|
|
1686
|
+
* 更新指定的中转子网。
|
|
1687
|
+
*
|
|
1688
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1689
|
+
*/
|
|
1690
|
+
updateTransitSubnet(updateTransitSubnetRequest) {
|
|
1691
|
+
const options = {
|
|
1692
|
+
method: "PUT",
|
|
1693
|
+
url: "/v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id}",
|
|
1694
|
+
contentType: "application/json",
|
|
1695
|
+
queryParams: {},
|
|
1696
|
+
pathParams: {},
|
|
1697
|
+
headers: {},
|
|
1698
|
+
data: {}
|
|
1699
|
+
};
|
|
1700
|
+
const localVarHeaderParameter = {};
|
|
1701
|
+
let body;
|
|
1702
|
+
let transitSubnetId;
|
|
1703
|
+
if (updateTransitSubnetRequest !== null && updateTransitSubnetRequest !== undefined) {
|
|
1704
|
+
if (updateTransitSubnetRequest instanceof UpdateTransitSubnetRequest_1.UpdateTransitSubnetRequest) {
|
|
1705
|
+
transitSubnetId = updateTransitSubnetRequest.transitSubnetId;
|
|
1706
|
+
body = updateTransitSubnetRequest.body;
|
|
1707
|
+
}
|
|
1708
|
+
else {
|
|
1709
|
+
transitSubnetId = updateTransitSubnetRequest['transit_subnet_id'];
|
|
1710
|
+
body = updateTransitSubnetRequest['body'];
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
if (transitSubnetId === null || transitSubnetId === undefined) {
|
|
1714
|
+
throw new RequiredError('transitSubnetId', 'Required parameter transitSubnetId was null or undefined when calling updateTransitSubnet.');
|
|
1715
|
+
}
|
|
1716
|
+
if (body === null || body === undefined) {
|
|
1717
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1718
|
+
}
|
|
1719
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1720
|
+
options.data = body !== undefined ? body : {};
|
|
1721
|
+
options.pathParams = { 'transit_subnet_id': transitSubnetId, };
|
|
1722
|
+
options.headers = localVarHeaderParameter;
|
|
1723
|
+
return options;
|
|
1724
|
+
},
|
|
1030
1725
|
/**
|
|
1031
1726
|
* 批量创建DNAT规则。
|
|
1032
1727
|
*
|
|
@@ -1213,8 +1908,10 @@ const ParamCreater = function () {
|
|
|
1213
1908
|
let adminStateUp;
|
|
1214
1909
|
let externalServicePort;
|
|
1215
1910
|
let floatingIpAddress;
|
|
1911
|
+
let globalEipAddress;
|
|
1216
1912
|
let status;
|
|
1217
1913
|
let floatingIpId;
|
|
1914
|
+
let globalEipId;
|
|
1218
1915
|
let internalServicePort;
|
|
1219
1916
|
let limit;
|
|
1220
1917
|
let id;
|
|
@@ -1230,8 +1927,10 @@ const ParamCreater = function () {
|
|
|
1230
1927
|
adminStateUp = listNatGatewayDnatRulesRequest.adminStateUp;
|
|
1231
1928
|
externalServicePort = listNatGatewayDnatRulesRequest.externalServicePort;
|
|
1232
1929
|
floatingIpAddress = listNatGatewayDnatRulesRequest.floatingIpAddress;
|
|
1930
|
+
globalEipAddress = listNatGatewayDnatRulesRequest.globalEipAddress;
|
|
1233
1931
|
status = listNatGatewayDnatRulesRequest.status;
|
|
1234
1932
|
floatingIpId = listNatGatewayDnatRulesRequest.floatingIpId;
|
|
1933
|
+
globalEipId = listNatGatewayDnatRulesRequest.globalEipId;
|
|
1235
1934
|
internalServicePort = listNatGatewayDnatRulesRequest.internalServicePort;
|
|
1236
1935
|
limit = listNatGatewayDnatRulesRequest.limit;
|
|
1237
1936
|
id = listNatGatewayDnatRulesRequest.id;
|
|
@@ -1247,8 +1946,10 @@ const ParamCreater = function () {
|
|
|
1247
1946
|
adminStateUp = listNatGatewayDnatRulesRequest['admin_state_up'];
|
|
1248
1947
|
externalServicePort = listNatGatewayDnatRulesRequest['external_service_port'];
|
|
1249
1948
|
floatingIpAddress = listNatGatewayDnatRulesRequest['floating_ip_address'];
|
|
1949
|
+
globalEipAddress = listNatGatewayDnatRulesRequest['global_eip_address'];
|
|
1250
1950
|
status = listNatGatewayDnatRulesRequest['status'];
|
|
1251
1951
|
floatingIpId = listNatGatewayDnatRulesRequest['floating_ip_id'];
|
|
1952
|
+
globalEipId = listNatGatewayDnatRulesRequest['global_eip_id'];
|
|
1252
1953
|
internalServicePort = listNatGatewayDnatRulesRequest['internal_service_port'];
|
|
1253
1954
|
limit = listNatGatewayDnatRulesRequest['limit'];
|
|
1254
1955
|
id = listNatGatewayDnatRulesRequest['id'];
|
|
@@ -1270,12 +1971,18 @@ const ParamCreater = function () {
|
|
|
1270
1971
|
if (floatingIpAddress !== null && floatingIpAddress !== undefined) {
|
|
1271
1972
|
localVarQueryParameter['floating_ip_address'] = floatingIpAddress;
|
|
1272
1973
|
}
|
|
1974
|
+
if (globalEipAddress !== null && globalEipAddress !== undefined) {
|
|
1975
|
+
localVarQueryParameter['global_eip_address'] = globalEipAddress;
|
|
1976
|
+
}
|
|
1273
1977
|
if (status !== null && status !== undefined) {
|
|
1274
1978
|
localVarQueryParameter['status'] = status;
|
|
1275
1979
|
}
|
|
1276
1980
|
if (floatingIpId !== null && floatingIpId !== undefined) {
|
|
1277
1981
|
localVarQueryParameter['floating_ip_id'] = floatingIpId;
|
|
1278
1982
|
}
|
|
1983
|
+
if (globalEipId !== null && globalEipId !== undefined) {
|
|
1984
|
+
localVarQueryParameter['global_eip_id'] = globalEipId;
|
|
1985
|
+
}
|
|
1279
1986
|
if (internalServicePort !== null && internalServicePort !== undefined) {
|
|
1280
1987
|
localVarQueryParameter['internal_service_port'] = internalServicePort;
|
|
1281
1988
|
}
|
|
@@ -1334,10 +2041,13 @@ const ParamCreater = function () {
|
|
|
1334
2041
|
let description;
|
|
1335
2042
|
let gatewayId;
|
|
1336
2043
|
let transitIpId;
|
|
1337
|
-
let externalIpAddress;
|
|
1338
2044
|
let networkInterfaceId;
|
|
1339
2045
|
let type;
|
|
1340
2046
|
let privateIpAddress;
|
|
2047
|
+
let protocol;
|
|
2048
|
+
let internalServicePort;
|
|
2049
|
+
let transitServicePort;
|
|
2050
|
+
let transitIpAddress;
|
|
1341
2051
|
if (listPrivateDnatsRequest !== null && listPrivateDnatsRequest !== undefined) {
|
|
1342
2052
|
if (listPrivateDnatsRequest instanceof ListPrivateDnatsRequest_1.ListPrivateDnatsRequest) {
|
|
1343
2053
|
limit = listPrivateDnatsRequest.limit;
|
|
@@ -1348,10 +2058,13 @@ const ParamCreater = function () {
|
|
|
1348
2058
|
description = listPrivateDnatsRequest.description;
|
|
1349
2059
|
gatewayId = listPrivateDnatsRequest.gatewayId;
|
|
1350
2060
|
transitIpId = listPrivateDnatsRequest.transitIpId;
|
|
1351
|
-
externalIpAddress = listPrivateDnatsRequest.externalIpAddress;
|
|
1352
2061
|
networkInterfaceId = listPrivateDnatsRequest.networkInterfaceId;
|
|
1353
2062
|
type = listPrivateDnatsRequest.type;
|
|
1354
2063
|
privateIpAddress = listPrivateDnatsRequest.privateIpAddress;
|
|
2064
|
+
protocol = listPrivateDnatsRequest.protocol;
|
|
2065
|
+
internalServicePort = listPrivateDnatsRequest.internalServicePort;
|
|
2066
|
+
transitServicePort = listPrivateDnatsRequest.transitServicePort;
|
|
2067
|
+
transitIpAddress = listPrivateDnatsRequest.transitIpAddress;
|
|
1355
2068
|
}
|
|
1356
2069
|
else {
|
|
1357
2070
|
limit = listPrivateDnatsRequest['limit'];
|
|
@@ -1362,10 +2075,13 @@ const ParamCreater = function () {
|
|
|
1362
2075
|
description = listPrivateDnatsRequest['description'];
|
|
1363
2076
|
gatewayId = listPrivateDnatsRequest['gateway_id'];
|
|
1364
2077
|
transitIpId = listPrivateDnatsRequest['transit_ip_id'];
|
|
1365
|
-
externalIpAddress = listPrivateDnatsRequest['external_ip_address'];
|
|
1366
2078
|
networkInterfaceId = listPrivateDnatsRequest['network_interface_id'];
|
|
1367
2079
|
type = listPrivateDnatsRequest['type'];
|
|
1368
2080
|
privateIpAddress = listPrivateDnatsRequest['private_ip_address'];
|
|
2081
|
+
protocol = listPrivateDnatsRequest['protocol'];
|
|
2082
|
+
internalServicePort = listPrivateDnatsRequest['internal_service_port'];
|
|
2083
|
+
transitServicePort = listPrivateDnatsRequest['transit_service_port'];
|
|
2084
|
+
transitIpAddress = listPrivateDnatsRequest['transit_ip_address'];
|
|
1369
2085
|
}
|
|
1370
2086
|
}
|
|
1371
2087
|
if (limit !== null && limit !== undefined) {
|
|
@@ -1392,9 +2108,6 @@ const ParamCreater = function () {
|
|
|
1392
2108
|
if (transitIpId !== null && transitIpId !== undefined) {
|
|
1393
2109
|
localVarQueryParameter['transit_ip_id'] = transitIpId;
|
|
1394
2110
|
}
|
|
1395
|
-
if (externalIpAddress !== null && externalIpAddress !== undefined) {
|
|
1396
|
-
localVarQueryParameter['external_ip_address'] = externalIpAddress;
|
|
1397
|
-
}
|
|
1398
2111
|
if (networkInterfaceId !== null && networkInterfaceId !== undefined) {
|
|
1399
2112
|
localVarQueryParameter['network_interface_id'] = networkInterfaceId;
|
|
1400
2113
|
}
|
|
@@ -1404,6 +2117,18 @@ const ParamCreater = function () {
|
|
|
1404
2117
|
if (privateIpAddress !== null && privateIpAddress !== undefined) {
|
|
1405
2118
|
localVarQueryParameter['private_ip_address'] = privateIpAddress;
|
|
1406
2119
|
}
|
|
2120
|
+
if (protocol !== null && protocol !== undefined) {
|
|
2121
|
+
localVarQueryParameter['protocol'] = protocol;
|
|
2122
|
+
}
|
|
2123
|
+
if (internalServicePort !== null && internalServicePort !== undefined) {
|
|
2124
|
+
localVarQueryParameter['internal_service_port'] = internalServicePort;
|
|
2125
|
+
}
|
|
2126
|
+
if (transitServicePort !== null && transitServicePort !== undefined) {
|
|
2127
|
+
localVarQueryParameter['transit_service_port'] = transitServicePort;
|
|
2128
|
+
}
|
|
2129
|
+
if (transitIpAddress !== null && transitIpAddress !== undefined) {
|
|
2130
|
+
localVarQueryParameter['transit_ip_address'] = transitIpAddress;
|
|
2131
|
+
}
|
|
1407
2132
|
options.queryParams = localVarQueryParameter;
|
|
1408
2133
|
options.headers = localVarHeaderParameter;
|
|
1409
2134
|
return options;
|
|
@@ -2161,6 +2886,24 @@ const ParamCreater = function () {
|
|
|
2161
2886
|
options.headers = localVarHeaderParameter;
|
|
2162
2887
|
return options;
|
|
2163
2888
|
},
|
|
2889
|
+
/**
|
|
2890
|
+
* 支持创建的NAT网关规格列表。
|
|
2891
|
+
*
|
|
2892
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2893
|
+
*/
|
|
2894
|
+
listNatGatewaySpecs() {
|
|
2895
|
+
const options = {
|
|
2896
|
+
method: "GET",
|
|
2897
|
+
url: "/v2/{project_id}/nat_gateway_specs",
|
|
2898
|
+
contentType: "application/json",
|
|
2899
|
+
queryParams: {},
|
|
2900
|
+
pathParams: {},
|
|
2901
|
+
headers: {}
|
|
2902
|
+
};
|
|
2903
|
+
const localVarHeaderParameter = {};
|
|
2904
|
+
options.headers = localVarHeaderParameter;
|
|
2905
|
+
return options;
|
|
2906
|
+
},
|
|
2164
2907
|
/**
|
|
2165
2908
|
* - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。
|
|
2166
2909
|
* - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。
|
|
@@ -2196,6 +2939,7 @@ const ParamCreater = function () {
|
|
|
2196
2939
|
};
|
|
2197
2940
|
const localVarHeaderParameter = {};
|
|
2198
2941
|
const localVarQueryParameter = {};
|
|
2942
|
+
let tenantId;
|
|
2199
2943
|
let id;
|
|
2200
2944
|
let enterpriseProjectId;
|
|
2201
2945
|
let description;
|
|
@@ -2208,8 +2952,11 @@ const ParamCreater = function () {
|
|
|
2208
2952
|
let routerId;
|
|
2209
2953
|
let limit;
|
|
2210
2954
|
let marker;
|
|
2955
|
+
let sortKey;
|
|
2956
|
+
let sortDir;
|
|
2211
2957
|
if (listNatGatewaysRequest !== null && listNatGatewaysRequest !== undefined) {
|
|
2212
2958
|
if (listNatGatewaysRequest instanceof ListNatGatewaysRequest_1.ListNatGatewaysRequest) {
|
|
2959
|
+
tenantId = listNatGatewaysRequest.tenantId;
|
|
2213
2960
|
id = listNatGatewaysRequest.id;
|
|
2214
2961
|
enterpriseProjectId = listNatGatewaysRequest.enterpriseProjectId;
|
|
2215
2962
|
description = listNatGatewaysRequest.description;
|
|
@@ -2222,8 +2969,11 @@ const ParamCreater = function () {
|
|
|
2222
2969
|
routerId = listNatGatewaysRequest.routerId;
|
|
2223
2970
|
limit = listNatGatewaysRequest.limit;
|
|
2224
2971
|
marker = listNatGatewaysRequest.marker;
|
|
2972
|
+
sortKey = listNatGatewaysRequest.sortKey;
|
|
2973
|
+
sortDir = listNatGatewaysRequest.sortDir;
|
|
2225
2974
|
}
|
|
2226
2975
|
else {
|
|
2976
|
+
tenantId = listNatGatewaysRequest['tenant_id'];
|
|
2227
2977
|
id = listNatGatewaysRequest['id'];
|
|
2228
2978
|
enterpriseProjectId = listNatGatewaysRequest['enterprise_project_id'];
|
|
2229
2979
|
description = listNatGatewaysRequest['description'];
|
|
@@ -2236,8 +2986,13 @@ const ParamCreater = function () {
|
|
|
2236
2986
|
routerId = listNatGatewaysRequest['router_id'];
|
|
2237
2987
|
limit = listNatGatewaysRequest['limit'];
|
|
2238
2988
|
marker = listNatGatewaysRequest['marker'];
|
|
2989
|
+
sortKey = listNatGatewaysRequest['sort_key'];
|
|
2990
|
+
sortDir = listNatGatewaysRequest['sort_dir'];
|
|
2239
2991
|
}
|
|
2240
2992
|
}
|
|
2993
|
+
if (tenantId !== null && tenantId !== undefined) {
|
|
2994
|
+
localVarQueryParameter['tenant_id'] = tenantId;
|
|
2995
|
+
}
|
|
2241
2996
|
if (id !== null && id !== undefined) {
|
|
2242
2997
|
localVarQueryParameter['id'] = id;
|
|
2243
2998
|
}
|
|
@@ -2274,6 +3029,12 @@ const ParamCreater = function () {
|
|
|
2274
3029
|
if (marker !== null && marker !== undefined) {
|
|
2275
3030
|
localVarQueryParameter['marker'] = marker;
|
|
2276
3031
|
}
|
|
3032
|
+
if (sortKey !== null && sortKey !== undefined) {
|
|
3033
|
+
localVarQueryParameter['sort_key'] = sortKey;
|
|
3034
|
+
}
|
|
3035
|
+
if (sortDir !== null && sortDir !== undefined) {
|
|
3036
|
+
localVarQueryParameter['sort_dir'] = sortDir;
|
|
3037
|
+
}
|
|
2277
3038
|
options.queryParams = localVarQueryParameter;
|
|
2278
3039
|
options.headers = localVarHeaderParameter;
|
|
2279
3040
|
return options;
|
|
@@ -2423,6 +3184,24 @@ const ParamCreater = function () {
|
|
|
2423
3184
|
options.headers = localVarHeaderParameter;
|
|
2424
3185
|
return options;
|
|
2425
3186
|
},
|
|
3187
|
+
/**
|
|
3188
|
+
* 查询项目支持的网关规格列表。
|
|
3189
|
+
*
|
|
3190
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3191
|
+
*/
|
|
3192
|
+
listSpecs() {
|
|
3193
|
+
const options = {
|
|
3194
|
+
method: "GET",
|
|
3195
|
+
url: "/v3/{project_id}/private-nat/specs",
|
|
3196
|
+
contentType: "application/json",
|
|
3197
|
+
queryParams: {},
|
|
3198
|
+
pathParams: {},
|
|
3199
|
+
headers: {}
|
|
3200
|
+
};
|
|
3201
|
+
const localVarHeaderParameter = {};
|
|
3202
|
+
options.headers = localVarHeaderParameter;
|
|
3203
|
+
return options;
|
|
3204
|
+
},
|
|
2426
3205
|
/**
|
|
2427
3206
|
* 查询指定的公网NAT网关实例详情。
|
|
2428
3207
|
*
|
|
@@ -2589,6 +3368,46 @@ const ParamCreater = function () {
|
|
|
2589
3368
|
options.headers = localVarHeaderParameter;
|
|
2590
3369
|
return options;
|
|
2591
3370
|
},
|
|
3371
|
+
/**
|
|
3372
|
+
* 公网NAT网关按需转包。
|
|
3373
|
+
*
|
|
3374
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3375
|
+
*/
|
|
3376
|
+
updateNatGatewayToPeriod(updateNatGatewayToPeriodRequest) {
|
|
3377
|
+
const options = {
|
|
3378
|
+
method: "POST",
|
|
3379
|
+
url: "/v2/{project_id}/nat_gateways/{nat_gateway_id}/change_to_period",
|
|
3380
|
+
contentType: "application/json",
|
|
3381
|
+
queryParams: {},
|
|
3382
|
+
pathParams: {},
|
|
3383
|
+
headers: {},
|
|
3384
|
+
data: {}
|
|
3385
|
+
};
|
|
3386
|
+
const localVarHeaderParameter = {};
|
|
3387
|
+
let body;
|
|
3388
|
+
let natGatewayId;
|
|
3389
|
+
if (updateNatGatewayToPeriodRequest !== null && updateNatGatewayToPeriodRequest !== undefined) {
|
|
3390
|
+
if (updateNatGatewayToPeriodRequest instanceof UpdateNatGatewayToPeriodRequest_1.UpdateNatGatewayToPeriodRequest) {
|
|
3391
|
+
natGatewayId = updateNatGatewayToPeriodRequest.natGatewayId;
|
|
3392
|
+
body = updateNatGatewayToPeriodRequest.body;
|
|
3393
|
+
}
|
|
3394
|
+
else {
|
|
3395
|
+
natGatewayId = updateNatGatewayToPeriodRequest['nat_gateway_id'];
|
|
3396
|
+
body = updateNatGatewayToPeriodRequest['body'];
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
if (natGatewayId === null || natGatewayId === undefined) {
|
|
3400
|
+
throw new RequiredError('natGatewayId', 'Required parameter natGatewayId was null or undefined when calling updateNatGatewayToPeriod.');
|
|
3401
|
+
}
|
|
3402
|
+
if (body === null || body === undefined) {
|
|
3403
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3404
|
+
}
|
|
3405
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3406
|
+
options.data = body !== undefined ? body : {};
|
|
3407
|
+
options.pathParams = { 'nat_gateway_id': natGatewayId, };
|
|
3408
|
+
options.headers = localVarHeaderParameter;
|
|
3409
|
+
return options;
|
|
3410
|
+
},
|
|
2592
3411
|
/**
|
|
2593
3412
|
* 更新私网NAT网关实例。
|
|
2594
3413
|
*
|
|
@@ -2718,6 +3537,7 @@ const ParamCreater = function () {
|
|
|
2718
3537
|
let gatewayId;
|
|
2719
3538
|
let enterpriseProjectId;
|
|
2720
3539
|
let virsubnetId;
|
|
3540
|
+
let transitSubnetId;
|
|
2721
3541
|
if (listTransitIpsRequest !== null && listTransitIpsRequest !== undefined) {
|
|
2722
3542
|
if (listTransitIpsRequest instanceof ListTransitIpsRequest_1.ListTransitIpsRequest) {
|
|
2723
3543
|
limit = listTransitIpsRequest.limit;
|
|
@@ -2729,6 +3549,7 @@ const ParamCreater = function () {
|
|
|
2729
3549
|
gatewayId = listTransitIpsRequest.gatewayId;
|
|
2730
3550
|
enterpriseProjectId = listTransitIpsRequest.enterpriseProjectId;
|
|
2731
3551
|
virsubnetId = listTransitIpsRequest.virsubnetId;
|
|
3552
|
+
transitSubnetId = listTransitIpsRequest.transitSubnetId;
|
|
2732
3553
|
}
|
|
2733
3554
|
else {
|
|
2734
3555
|
limit = listTransitIpsRequest['limit'];
|
|
@@ -2740,6 +3561,7 @@ const ParamCreater = function () {
|
|
|
2740
3561
|
gatewayId = listTransitIpsRequest['gateway_id'];
|
|
2741
3562
|
enterpriseProjectId = listTransitIpsRequest['enterprise_project_id'];
|
|
2742
3563
|
virsubnetId = listTransitIpsRequest['virsubnet_id'];
|
|
3564
|
+
transitSubnetId = listTransitIpsRequest['transit_subnet_id'];
|
|
2743
3565
|
}
|
|
2744
3566
|
}
|
|
2745
3567
|
if (limit !== null && limit !== undefined) {
|
|
@@ -2769,6 +3591,9 @@ const ParamCreater = function () {
|
|
|
2769
3591
|
if (virsubnetId !== null && virsubnetId !== undefined) {
|
|
2770
3592
|
localVarQueryParameter['virsubnet_id'] = virsubnetId;
|
|
2771
3593
|
}
|
|
3594
|
+
if (transitSubnetId !== null && transitSubnetId !== undefined) {
|
|
3595
|
+
localVarQueryParameter['transit_subnet_id'] = transitSubnetId;
|
|
3596
|
+
}
|
|
2772
3597
|
options.queryParams = localVarQueryParameter;
|
|
2773
3598
|
options.headers = localVarHeaderParameter;
|
|
2774
3599
|
return options;
|
|
@@ -2958,7 +3783,9 @@ const ParamCreater = function () {
|
|
|
2958
3783
|
let cidr;
|
|
2959
3784
|
let limit;
|
|
2960
3785
|
let floatingIpAddress;
|
|
3786
|
+
let globalEipAddress;
|
|
2961
3787
|
let floatingIpId;
|
|
3788
|
+
let globalEipId;
|
|
2962
3789
|
let id;
|
|
2963
3790
|
let description;
|
|
2964
3791
|
let createdAt;
|
|
@@ -2973,7 +3800,9 @@ const ParamCreater = function () {
|
|
|
2973
3800
|
cidr = listNatGatewaySnatRulesRequest.cidr;
|
|
2974
3801
|
limit = listNatGatewaySnatRulesRequest.limit;
|
|
2975
3802
|
floatingIpAddress = listNatGatewaySnatRulesRequest.floatingIpAddress;
|
|
3803
|
+
globalEipAddress = listNatGatewaySnatRulesRequest.globalEipAddress;
|
|
2976
3804
|
floatingIpId = listNatGatewaySnatRulesRequest.floatingIpId;
|
|
3805
|
+
globalEipId = listNatGatewaySnatRulesRequest.globalEipId;
|
|
2977
3806
|
id = listNatGatewaySnatRulesRequest.id;
|
|
2978
3807
|
description = listNatGatewaySnatRulesRequest.description;
|
|
2979
3808
|
createdAt = listNatGatewaySnatRulesRequest.createdAt;
|
|
@@ -2988,7 +3817,9 @@ const ParamCreater = function () {
|
|
|
2988
3817
|
cidr = listNatGatewaySnatRulesRequest['cidr'];
|
|
2989
3818
|
limit = listNatGatewaySnatRulesRequest['limit'];
|
|
2990
3819
|
floatingIpAddress = listNatGatewaySnatRulesRequest['floating_ip_address'];
|
|
3820
|
+
globalEipAddress = listNatGatewaySnatRulesRequest['global_eip_address'];
|
|
2991
3821
|
floatingIpId = listNatGatewaySnatRulesRequest['floating_ip_id'];
|
|
3822
|
+
globalEipId = listNatGatewaySnatRulesRequest['global_eip_id'];
|
|
2992
3823
|
id = listNatGatewaySnatRulesRequest['id'];
|
|
2993
3824
|
description = listNatGatewaySnatRulesRequest['description'];
|
|
2994
3825
|
createdAt = listNatGatewaySnatRulesRequest['created_at'];
|
|
@@ -3011,9 +3842,15 @@ const ParamCreater = function () {
|
|
|
3011
3842
|
if (floatingIpAddress !== null && floatingIpAddress !== undefined) {
|
|
3012
3843
|
localVarQueryParameter['floating_ip_address'] = floatingIpAddress;
|
|
3013
3844
|
}
|
|
3845
|
+
if (globalEipAddress !== null && globalEipAddress !== undefined) {
|
|
3846
|
+
localVarQueryParameter['global_eip_address'] = globalEipAddress;
|
|
3847
|
+
}
|
|
3014
3848
|
if (floatingIpId !== null && floatingIpId !== undefined) {
|
|
3015
3849
|
localVarQueryParameter['floating_ip_id'] = floatingIpId;
|
|
3016
3850
|
}
|
|
3851
|
+
if (globalEipId !== null && globalEipId !== undefined) {
|
|
3852
|
+
localVarQueryParameter['global_eip_id'] = globalEipId;
|
|
3853
|
+
}
|
|
3017
3854
|
if (id !== null && id !== undefined) {
|
|
3018
3855
|
localVarQueryParameter['id'] = id;
|
|
3019
3856
|
}
|