@huaweicloud/huaweicloud-sdk-nat 3.1.175 → 3.1.177
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 +404 -22
- package/v2/NatClient.d.ts.map +1 -1
- package/v2/NatClient.js +807 -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 +58 -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/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 +34 -0
- package/v2/public-api.d.ts.map +1 -1
- package/v2/public-api.js +34 -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,15 @@ 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");
|
|
52
61
|
const UpdatePrivateDnatRequest_1 = require("./model/UpdatePrivateDnatRequest");
|
|
53
62
|
const UpdatePrivateNatRequest_1 = require("./model/UpdatePrivateNatRequest");
|
|
54
63
|
const UpdatePrivateSnatRequest_1 = require("./model/UpdatePrivateSnatRequest");
|
|
64
|
+
const UpdateTransitSubnetRequest_1 = require("./model/UpdateTransitSubnetRequest");
|
|
55
65
|
class NatClient {
|
|
56
66
|
static newBuilder() {
|
|
57
67
|
let client = new ClientBuilder_1.ClientBuilder(newClient);
|
|
@@ -63,6 +73,203 @@ class NatClient {
|
|
|
63
73
|
getPath() {
|
|
64
74
|
return __dirname;
|
|
65
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* - 为指定中转子网实例批量添加或删除标签
|
|
78
|
+
* - 标签管理服务需要使用该接口批量管理中转子网实例的标签。
|
|
79
|
+
* - 一个中转子网上最多有20个标签。
|
|
80
|
+
*
|
|
81
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
82
|
+
*
|
|
83
|
+
* @summary 批量添加删除中转子网标签
|
|
84
|
+
* @param {string} resourceId 中转子网的ID。
|
|
85
|
+
* @param {BatchOperateResourceTagsRequestBody} batchCreateDeleteTransitSubnetTagsRequestBody 批量添加删除中转子网的请求体。
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
batchCreateDeleteTransitSubnetTags(batchCreateDeleteTransitSubnetTagsRequest) {
|
|
90
|
+
const options = (0, exports.ParamCreater)().batchCreateDeleteTransitSubnetTags(batchCreateDeleteTransitSubnetTagsRequest);
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
options['responseHeaders'] = [''];
|
|
93
|
+
return this.hcClient.sendRequest(options);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 创建中转子网。
|
|
97
|
+
*
|
|
98
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
99
|
+
*
|
|
100
|
+
* @summary 创建中转子网
|
|
101
|
+
* @param {CreateTransitSubnetRequestBody} createTransitSubnetRequestBody 中转子网请求体
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
createTransitSubnet(createTransitSubnetRequest) {
|
|
106
|
+
const options = (0, exports.ParamCreater)().createTransitSubnet(createTransitSubnetRequest);
|
|
107
|
+
// @ts-ignore
|
|
108
|
+
options['responseHeaders'] = [''];
|
|
109
|
+
return this.hcClient.sendRequest(options);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* - 为指定中转子网添加标签
|
|
113
|
+
* - 一个中转子网上最多有20个标签。
|
|
114
|
+
* - 此接口为幂等接口:
|
|
115
|
+
* - 创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
116
|
+
*
|
|
117
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
118
|
+
*
|
|
119
|
+
* @summary 添加中转子网标签
|
|
120
|
+
* @param {string} resourceId 中转子网的ID。
|
|
121
|
+
* @param {CreateResourceTagRequestBody} createTransitSubnetTagRequestBody 添加中转子网标签的请求体。
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
createTransitSubnetTag(createTransitSubnetTagRequest) {
|
|
126
|
+
const options = (0, exports.ParamCreater)().createTransitSubnetTag(createTransitSubnetTagRequest);
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
options['responseHeaders'] = [''];
|
|
129
|
+
return this.hcClient.sendRequest(options);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* 删除中转子网。
|
|
133
|
+
*
|
|
134
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
135
|
+
*
|
|
136
|
+
* @summary 删除中转子网
|
|
137
|
+
* @param {string} transitSubnetId 中转子网ID。
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
deleteTransitSubnet(deleteTransitSubnetRequest) {
|
|
142
|
+
const options = (0, exports.ParamCreater)().deleteTransitSubnet(deleteTransitSubnetRequest);
|
|
143
|
+
// @ts-ignore
|
|
144
|
+
options['responseHeaders'] = [''];
|
|
145
|
+
return this.hcClient.sendRequest(options);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* - 幂等接口:
|
|
149
|
+
* - 删除时,不对标签字符集做校验,调用接口前必须要做encodeURI,服务端需要对接口uri做decodeURI。删除的key不存在报404,key不能为空或者空字符串。
|
|
150
|
+
*
|
|
151
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
152
|
+
*
|
|
153
|
+
* @summary 删除中转子网标签
|
|
154
|
+
* @param {string} key 标签key。
|
|
155
|
+
* @param {string} resourceId 中转子网的ID。
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
deleteTransitSubnetTag(deleteTransitSubnetTagRequest) {
|
|
160
|
+
const options = (0, exports.ParamCreater)().deleteTransitSubnetTag(deleteTransitSubnetTagRequest);
|
|
161
|
+
// @ts-ignore
|
|
162
|
+
options['responseHeaders'] = [''];
|
|
163
|
+
return this.hcClient.sendRequest(options);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 查询中转子网列表。
|
|
167
|
+
*
|
|
168
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
169
|
+
*
|
|
170
|
+
* @summary 查询中转子网列表
|
|
171
|
+
* @param {Array<string>} [id] 中转子网的ID
|
|
172
|
+
* @param {Array<string>} [name] 中转子网的名字
|
|
173
|
+
* @param {Array<string>} [description] 中转子网的描述
|
|
174
|
+
* @param {Array<string>} [virsubnetProjectId] 中转子网的子网所属项目的ID
|
|
175
|
+
* @param {Array<string>} [vpcId] 中转子网的子网所属的VPC的ID
|
|
176
|
+
* @param {Array<string>} [virsubnetId] 中转子网的子网ID
|
|
177
|
+
* @param {Array<string>} [status] 中转子网状态。 取值范围: ACTIVE: 当前资源状态正常。 INACTIVE: 不可用。
|
|
178
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000
|
|
179
|
+
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取
|
|
180
|
+
* @param {boolean} [pageReverse] 是否查询前一页
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
listTransitSubnet(listTransitSubnetRequest) {
|
|
185
|
+
const options = (0, exports.ParamCreater)().listTransitSubnet(listTransitSubnetRequest);
|
|
186
|
+
// @ts-ignore
|
|
187
|
+
options['responseHeaders'] = [''];
|
|
188
|
+
return this.hcClient.sendRequest(options);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* - 查询租户在指定Project的所有中转子网标签集合。
|
|
192
|
+
* - 标签管理服务需要能够列出当前租户全部已使用的中转子网标签集合,为打中转子网标签和过滤中转子网实例时提供标签联想功能。
|
|
193
|
+
*
|
|
194
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
195
|
+
*
|
|
196
|
+
* @summary 查询中转子网项目标签
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
listTransitSubnetTags(listTransitSubnetTagsRequest) {
|
|
201
|
+
const options = (0, exports.ParamCreater)().listTransitSubnetTags();
|
|
202
|
+
// @ts-ignore
|
|
203
|
+
options['responseHeaders'] = [''];
|
|
204
|
+
return this.hcClient.sendRequest(options);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* - 使用标签过滤中转子网实例。
|
|
208
|
+
* - 标签管理服务需要提供按标签过滤中转子网服务实例并汇总显示在列表中,需要中转子网服务提供查询能力。
|
|
209
|
+
*
|
|
210
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
211
|
+
*
|
|
212
|
+
* @summary 查询中转子网实例
|
|
213
|
+
* @param {ListTagResourceInstancesRequestBody} listTransitSubnetsByTagsRequestBody 查询中转子网实例的请求体。
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
listTransitSubnetsByTags(listTransitSubnetsByTagsRequest) {
|
|
218
|
+
const options = (0, exports.ParamCreater)().listTransitSubnetsByTags(listTransitSubnetsByTagsRequest);
|
|
219
|
+
// @ts-ignore
|
|
220
|
+
options['responseHeaders'] = [''];
|
|
221
|
+
return this.hcClient.sendRequest(options);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* 查询指定的中转子网详情。
|
|
225
|
+
*
|
|
226
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
227
|
+
*
|
|
228
|
+
* @summary 查询指定的中转子网详情
|
|
229
|
+
* @param {string} transitSubnetId 中转子网ID。
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
showTransitSubnet(showTransitSubnetRequest) {
|
|
234
|
+
const options = (0, exports.ParamCreater)().showTransitSubnet(showTransitSubnetRequest);
|
|
235
|
+
// @ts-ignore
|
|
236
|
+
options['responseHeaders'] = [''];
|
|
237
|
+
return this.hcClient.sendRequest(options);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* - 查询指定中转子网实例的标签信息。
|
|
241
|
+
* - 标签管理服务需要使用该接口查询指定中转子网实例的全部标签数据。
|
|
242
|
+
*
|
|
243
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
244
|
+
*
|
|
245
|
+
* @summary 查询中转子网标签
|
|
246
|
+
* @param {string} resourceId 中转子网的ID。
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
showTransitSubnetTags(showTransitSubnetTagsRequest) {
|
|
251
|
+
const options = (0, exports.ParamCreater)().showTransitSubnetTags(showTransitSubnetTagsRequest);
|
|
252
|
+
// @ts-ignore
|
|
253
|
+
options['responseHeaders'] = [''];
|
|
254
|
+
return this.hcClient.sendRequest(options);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* 更新指定的中转子网。
|
|
258
|
+
*
|
|
259
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
260
|
+
*
|
|
261
|
+
* @summary 更新中转子网
|
|
262
|
+
* @param {string} transitSubnetId 中转子网ID。
|
|
263
|
+
* @param {UpdateTransitSubnetRequestBody} updateTransitSubnetRequestBody 更新中转子网请求体。
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
*/
|
|
267
|
+
updateTransitSubnet(updateTransitSubnetRequest) {
|
|
268
|
+
const options = (0, exports.ParamCreater)().updateTransitSubnet(updateTransitSubnetRequest);
|
|
269
|
+
// @ts-ignore
|
|
270
|
+
options['responseHeaders'] = [''];
|
|
271
|
+
return this.hcClient.sendRequest(options);
|
|
272
|
+
}
|
|
66
273
|
/**
|
|
67
274
|
* 批量创建DNAT规则。
|
|
68
275
|
*
|
|
@@ -153,13 +360,15 @@ class NatClient {
|
|
|
153
360
|
* @param {boolean} [adminStateUp] 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
|
|
154
361
|
* @param {number} [externalServicePort] Floatingip对外提供服务的端口号。 取值范围:0~65535。
|
|
155
362
|
* @param {string} [floatingIpAddress] 弹性公网的IP地址。
|
|
156
|
-
* @param {
|
|
363
|
+
* @param {string} [globalEipAddress] 全域弹性公网的IP地址。
|
|
364
|
+
* @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
365
|
* @param {string} [floatingIpId] 弹性公网IP的id。
|
|
366
|
+
* @param {string} [globalEipId] 全域弹性公网IP的id。
|
|
158
367
|
* @param {number} [internalServicePort] 虚拟机或者裸机对外提供服务的协议端口号。 取值范围:0~65535。
|
|
159
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
368
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
160
369
|
* @param {string} [id] DNAT规则的ID。
|
|
161
370
|
* @param {string} [description] DNAT规则的描述,长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
162
|
-
* @param {
|
|
371
|
+
* @param {Date} [createdAt] DNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
|
|
163
372
|
* @param {Array<string>} [natGatewayId] 公网NAT网关实例的ID。
|
|
164
373
|
* @param {string} [portId] 虚拟机或者裸机的Port ID,对应虚拟私有云场景,与private_ip参数二选一。
|
|
165
374
|
* @param {string} [privateIp] 用户私有IP地址,对应专线、云连接场景,与port_id参数二选一。
|
|
@@ -180,7 +389,7 @@ class NatClient {
|
|
|
180
389
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
181
390
|
*
|
|
182
391
|
* @summary 查询DNAT规则列表
|
|
183
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
392
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
184
393
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
185
394
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
186
395
|
* @param {Array<string>} [id] DNAT规则的ID。
|
|
@@ -188,10 +397,13 @@ class NatClient {
|
|
|
188
397
|
* @param {Array<string>} [description] DNAT规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
189
398
|
* @param {Array<string>} [gatewayId] 私网NAT网关实例的ID。
|
|
190
399
|
* @param {Array<string>} [transitIpId] 中转IP的ID。
|
|
191
|
-
* @param {Array<string>} [
|
|
192
|
-
* @param {Array<string>} [
|
|
193
|
-
* @param {Array<string>} [
|
|
194
|
-
* @param {Array<string>} [
|
|
400
|
+
* @param {Array<string>} [networkInterfaceId] 计算实例、ELBV2、ELBV3、VIP等资源的端口ID。
|
|
401
|
+
* @param {Array<string>} [type] DNAT规则后端的类型。 取值: COMPUTE:后端为计算实例。 VIP:后端为VIP的实例。 ELB:后端为ELBv2的实例。 ELBv3:后端为ELBv3的实例。 CUSTOMIZE:后端为自定义IP。
|
|
402
|
+
* @param {Array<string>} [privateIpAddress] 后端资源(计算实例、ELBV2、ELBV3、VIP等)的私网IP地址。
|
|
403
|
+
* @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。
|
|
404
|
+
* @param {Array<string>} [internalServicePort] 后端实例的端口号(计算实例、ELBV2、ELBV3、VIP等)。
|
|
405
|
+
* @param {Array<string>} [transitServicePort] 中转IP的端口号。
|
|
406
|
+
* @param {Array<string>} [transitIpAddress] 中转IP的地址。
|
|
195
407
|
* @param {*} [options] Override http request option.
|
|
196
408
|
* @throws {RequiredError}
|
|
197
409
|
*/
|
|
@@ -564,6 +776,21 @@ class NatClient {
|
|
|
564
776
|
options['responseHeaders'] = [''];
|
|
565
777
|
return this.hcClient.sendRequest(options);
|
|
566
778
|
}
|
|
779
|
+
/**
|
|
780
|
+
* 支持创建的NAT网关规格列表。
|
|
781
|
+
*
|
|
782
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
783
|
+
*
|
|
784
|
+
* @summary 支持创建的NAT网关规格列表
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
listNatGatewaySpecs(listNatGatewaySpecsRequest) {
|
|
789
|
+
const options = (0, exports.ParamCreater)().listNatGatewaySpecs();
|
|
790
|
+
// @ts-ignore
|
|
791
|
+
options['responseHeaders'] = [''];
|
|
792
|
+
return this.hcClient.sendRequest(options);
|
|
793
|
+
}
|
|
567
794
|
/**
|
|
568
795
|
* - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。
|
|
569
796
|
* - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。
|
|
@@ -586,18 +813,21 @@ class NatClient {
|
|
|
586
813
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
587
814
|
*
|
|
588
815
|
* @summary 查询公网NAT网关列表
|
|
816
|
+
* @param {string} [tenantId] 项目的ID。
|
|
589
817
|
* @param {string} [id] 公网NAT网关实例的ID。
|
|
590
818
|
* @param {string} [enterpriseProjectId] 企业项目ID。创建公网NAT网关实例时,关联的企业项目ID。
|
|
591
819
|
* @param {string} [description] 公网NAT网关实例的描述,长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
592
|
-
* @param {
|
|
820
|
+
* @param {Date} [createdAt] 公网NAT网关实例的创建时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
|
|
593
821
|
* @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
|
|
822
|
+
* @param {Array<'ACTIVE' | 'PENDING_CREATE' | 'PENDING_UPDATE' | 'PENDING_DELETE' | 'INACTIVE'>} [status] 公网NAT网关实例的状态。 取值为: ACTIVE: 可用 PENDING_CREATE: 创建中 PENDING_UPDATE: 更新中 PENDING_DELETE: 删除中 INACTIVE: 不可用
|
|
823
|
+
* @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
824
|
* @param {boolean} [adminStateUp] 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
|
|
597
825
|
* @param {string} [internalNetworkId] 公网NAT网关下行口(DVR的下一跳)所属的network id。
|
|
598
826
|
* @param {string} [routerId] VPC的id。
|
|
599
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
827
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
600
828
|
* @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条)。
|
|
829
|
+
* @param {'id' | 'name' | 'status' | 'created_at'} [sortKey] 排序使用的key
|
|
830
|
+
* @param {'desc' | 'asc'} [sortDir] 返回结果按照升序或降序排列,默认降序desc,升序为asc
|
|
601
831
|
* @param {*} [options] Override http request option.
|
|
602
832
|
* @throws {RequiredError}
|
|
603
833
|
*/
|
|
@@ -629,14 +859,14 @@ class NatClient {
|
|
|
629
859
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
630
860
|
*
|
|
631
861
|
* @summary 查询私网NAT网关列表
|
|
632
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
862
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
633
863
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
634
864
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
635
865
|
* @param {Array<string>} [id] 私网NAT网关实例的ID。
|
|
636
866
|
* @param {Array<string>} [name] 私网NAT网关实例的名字。
|
|
637
867
|
* @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\":冻结
|
|
868
|
+
* @param {Array<'Small' | 'Medium' | 'Large' | 'Extra-large' | 'Extra-xlarge'>} [spec] 私网NAT网关实例的规格。 取值为: \"Small\":小型 \"Medium\":中型 \"Large\":大型 \"Extra-large\":超大型 \"Extra-xlarge\":企业型
|
|
869
|
+
* @param {Array<'ACTIVE' | 'FROZEN' | 'INACTIVE'>} [status] 私网NAT网关实例的状态。 取值为: \"ACTIVE\":正常运行 \"FROZEN\":冻结 \"INACTIVE\":不可用
|
|
640
870
|
* @param {Array<string>} [vpcId] 私网NAT网关实例所属VPC的ID。
|
|
641
871
|
* @param {Array<string>} [virsubnetId] 私网NAT网关实例所属子网的ID。
|
|
642
872
|
* @param {Array<string>} [enterpriseProjectId] 企业项目ID。创建私网NAT网关实例时,关联的企业项目ID。
|
|
@@ -666,6 +896,21 @@ class NatClient {
|
|
|
666
896
|
options['responseHeaders'] = [''];
|
|
667
897
|
return this.hcClient.sendRequest(options);
|
|
668
898
|
}
|
|
899
|
+
/**
|
|
900
|
+
* 查询项目支持的网关规格列表。
|
|
901
|
+
*
|
|
902
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
903
|
+
*
|
|
904
|
+
* @summary 查询项目支持的网关规格列表
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
listSpecs(listSpecsRequest) {
|
|
909
|
+
const options = (0, exports.ParamCreater)().listSpecs();
|
|
910
|
+
// @ts-ignore
|
|
911
|
+
options['responseHeaders'] = [''];
|
|
912
|
+
return this.hcClient.sendRequest(options);
|
|
913
|
+
}
|
|
669
914
|
/**
|
|
670
915
|
* 查询指定的公网NAT网关实例详情。
|
|
671
916
|
*
|
|
@@ -804,7 +1049,7 @@ class NatClient {
|
|
|
804
1049
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
805
1050
|
*
|
|
806
1051
|
* @summary 查询中转IP列表
|
|
807
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
1052
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
808
1053
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
809
1054
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
810
1055
|
* @param {Array<string>} [id] 中转IP的ID。
|
|
@@ -813,6 +1058,7 @@ class NatClient {
|
|
|
813
1058
|
* @param {Array<string>} [gatewayId] 中转IP绑定的私网NAT网关实例的ID。
|
|
814
1059
|
* @param {Array<string>} [enterpriseProjectId] 企业项目ID。创建中转IP时,关联的企业项目ID。
|
|
815
1060
|
* @param {Array<string>} [virsubnetId] 当前租户子网的ID。
|
|
1061
|
+
* @param {Array<string>} [transitSubnetId] 中转子网的ID。
|
|
816
1062
|
* @param {*} [options] Override http request option.
|
|
817
1063
|
* @throws {RequiredError}
|
|
818
1064
|
*/
|
|
@@ -911,16 +1157,18 @@ class NatClient {
|
|
|
911
1157
|
* @summary 查询SNAT规则列表
|
|
912
1158
|
* @param {boolean} [adminStateUp] 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
|
|
913
1159
|
* @param {string} [cidr] 可以是网段或者主机格式,与network_id参数二选一。 Source_type=0时,cidr必须是vpc子网网段的子集(不能相等); Source_type=1时,cidr必须指定专线侧网段。
|
|
914
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
915
|
-
* @param {
|
|
916
|
-
* @param {
|
|
1160
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
1161
|
+
* @param {string} [floatingIpAddress] 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
|
|
1162
|
+
* @param {string} [globalEipAddress] 功能说明:全域弹性公网IP,多个全域弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
|
|
1163
|
+
* @param {string} [floatingIpId] 功能说明:弹性公网IP的id,多个弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
|
|
1164
|
+
* @param {string} [globalEipId] 功能说明:全域弹性公网IP的id,多个全域弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
|
|
917
1165
|
* @param {string} [id] SNAT规则的ID。
|
|
918
1166
|
* @param {string} [description] SNAT规则的描述,长度范围小于等于255个字符,不能包含“<”和“>”。
|
|
919
|
-
* @param {
|
|
1167
|
+
* @param {Date} [createdAt] SNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
|
|
920
1168
|
* @param {Array<string>} [natGatewayId] 公网NAT网关实例的ID。
|
|
921
1169
|
* @param {string} [networkId] 规则使用的网络id。与cidr参数二选一。
|
|
922
1170
|
* @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规则的状态。
|
|
1171
|
+
* @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
1172
|
* @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
1173
|
* @param {*} [options] Override http request option.
|
|
926
1174
|
* @throws {RequiredError}
|
|
@@ -937,7 +1185,7 @@ class NatClient {
|
|
|
937
1185
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
938
1186
|
*
|
|
939
1187
|
* @summary 查询SNAT规则列表
|
|
940
|
-
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:
|
|
1188
|
+
* @param {number} [limit] 功能说明:每页返回的个数。 取值范围:1~2000。 默认值:2000。
|
|
941
1189
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
|
|
942
1190
|
* @param {boolean} [pageReverse] 是否查询前一页。
|
|
943
1191
|
* @param {Array<string>} [id] SNAT规则的ID。
|
|
@@ -1027,6 +1275,435 @@ class NatClient {
|
|
|
1027
1275
|
exports.NatClient = NatClient;
|
|
1028
1276
|
const ParamCreater = function () {
|
|
1029
1277
|
return {
|
|
1278
|
+
/**
|
|
1279
|
+
* - 为指定中转子网实例批量添加或删除标签
|
|
1280
|
+
* - 标签管理服务需要使用该接口批量管理中转子网实例的标签。
|
|
1281
|
+
* - 一个中转子网上最多有20个标签。
|
|
1282
|
+
*
|
|
1283
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1284
|
+
*/
|
|
1285
|
+
batchCreateDeleteTransitSubnetTags(batchCreateDeleteTransitSubnetTagsRequest) {
|
|
1286
|
+
const options = {
|
|
1287
|
+
method: "POST",
|
|
1288
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags/action",
|
|
1289
|
+
contentType: "application/json",
|
|
1290
|
+
queryParams: {},
|
|
1291
|
+
pathParams: {},
|
|
1292
|
+
headers: {},
|
|
1293
|
+
data: {}
|
|
1294
|
+
};
|
|
1295
|
+
const localVarHeaderParameter = {};
|
|
1296
|
+
let body;
|
|
1297
|
+
let resourceId;
|
|
1298
|
+
if (batchCreateDeleteTransitSubnetTagsRequest !== null && batchCreateDeleteTransitSubnetTagsRequest !== undefined) {
|
|
1299
|
+
if (batchCreateDeleteTransitSubnetTagsRequest instanceof BatchCreateDeleteTransitSubnetTagsRequest_1.BatchCreateDeleteTransitSubnetTagsRequest) {
|
|
1300
|
+
resourceId = batchCreateDeleteTransitSubnetTagsRequest.resourceId;
|
|
1301
|
+
body = batchCreateDeleteTransitSubnetTagsRequest.body;
|
|
1302
|
+
}
|
|
1303
|
+
else {
|
|
1304
|
+
resourceId = batchCreateDeleteTransitSubnetTagsRequest['resource_id'];
|
|
1305
|
+
body = batchCreateDeleteTransitSubnetTagsRequest['body'];
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1309
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling batchCreateDeleteTransitSubnetTags.');
|
|
1310
|
+
}
|
|
1311
|
+
if (body === null || body === undefined) {
|
|
1312
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1313
|
+
}
|
|
1314
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1315
|
+
options.data = body !== undefined ? body : {};
|
|
1316
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
1317
|
+
options.headers = localVarHeaderParameter;
|
|
1318
|
+
return options;
|
|
1319
|
+
},
|
|
1320
|
+
/**
|
|
1321
|
+
* 创建中转子网。
|
|
1322
|
+
*
|
|
1323
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1324
|
+
*/
|
|
1325
|
+
createTransitSubnet(createTransitSubnetRequest) {
|
|
1326
|
+
const options = {
|
|
1327
|
+
method: "POST",
|
|
1328
|
+
url: "/v3/{project_id}/private-nat/transit-subnets",
|
|
1329
|
+
contentType: "application/json",
|
|
1330
|
+
queryParams: {},
|
|
1331
|
+
pathParams: {},
|
|
1332
|
+
headers: {},
|
|
1333
|
+
data: {}
|
|
1334
|
+
};
|
|
1335
|
+
const localVarHeaderParameter = {};
|
|
1336
|
+
let body;
|
|
1337
|
+
if (createTransitSubnetRequest !== null && createTransitSubnetRequest !== undefined) {
|
|
1338
|
+
if (createTransitSubnetRequest instanceof CreateTransitSubnetRequest_1.CreateTransitSubnetRequest) {
|
|
1339
|
+
body = createTransitSubnetRequest.body;
|
|
1340
|
+
}
|
|
1341
|
+
else {
|
|
1342
|
+
body = createTransitSubnetRequest['body'];
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
if (body === null || body === undefined) {
|
|
1346
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1347
|
+
}
|
|
1348
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1349
|
+
options.data = body !== undefined ? body : {};
|
|
1350
|
+
options.headers = localVarHeaderParameter;
|
|
1351
|
+
return options;
|
|
1352
|
+
},
|
|
1353
|
+
/**
|
|
1354
|
+
* - 为指定中转子网添加标签
|
|
1355
|
+
* - 一个中转子网上最多有20个标签。
|
|
1356
|
+
* - 此接口为幂等接口:
|
|
1357
|
+
* - 创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
1358
|
+
*
|
|
1359
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1360
|
+
*/
|
|
1361
|
+
createTransitSubnetTag(createTransitSubnetTagRequest) {
|
|
1362
|
+
const options = {
|
|
1363
|
+
method: "POST",
|
|
1364
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags",
|
|
1365
|
+
contentType: "application/json",
|
|
1366
|
+
queryParams: {},
|
|
1367
|
+
pathParams: {},
|
|
1368
|
+
headers: {},
|
|
1369
|
+
data: {}
|
|
1370
|
+
};
|
|
1371
|
+
const localVarHeaderParameter = {};
|
|
1372
|
+
let body;
|
|
1373
|
+
let resourceId;
|
|
1374
|
+
if (createTransitSubnetTagRequest !== null && createTransitSubnetTagRequest !== undefined) {
|
|
1375
|
+
if (createTransitSubnetTagRequest instanceof CreateTransitSubnetTagRequest_1.CreateTransitSubnetTagRequest) {
|
|
1376
|
+
resourceId = createTransitSubnetTagRequest.resourceId;
|
|
1377
|
+
body = createTransitSubnetTagRequest.body;
|
|
1378
|
+
}
|
|
1379
|
+
else {
|
|
1380
|
+
resourceId = createTransitSubnetTagRequest['resource_id'];
|
|
1381
|
+
body = createTransitSubnetTagRequest['body'];
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1385
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling createTransitSubnetTag.');
|
|
1386
|
+
}
|
|
1387
|
+
if (body === null || body === undefined) {
|
|
1388
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1389
|
+
}
|
|
1390
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1391
|
+
options.data = body !== undefined ? body : {};
|
|
1392
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
1393
|
+
options.headers = localVarHeaderParameter;
|
|
1394
|
+
return options;
|
|
1395
|
+
},
|
|
1396
|
+
/**
|
|
1397
|
+
* 删除中转子网。
|
|
1398
|
+
*
|
|
1399
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1400
|
+
*/
|
|
1401
|
+
deleteTransitSubnet(deleteTransitSubnetRequest) {
|
|
1402
|
+
const options = {
|
|
1403
|
+
method: "DELETE",
|
|
1404
|
+
url: "/v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id}",
|
|
1405
|
+
contentType: "application/json",
|
|
1406
|
+
queryParams: {},
|
|
1407
|
+
pathParams: {},
|
|
1408
|
+
headers: {}
|
|
1409
|
+
};
|
|
1410
|
+
const localVarHeaderParameter = {};
|
|
1411
|
+
let transitSubnetId;
|
|
1412
|
+
if (deleteTransitSubnetRequest !== null && deleteTransitSubnetRequest !== undefined) {
|
|
1413
|
+
if (deleteTransitSubnetRequest instanceof DeleteTransitSubnetRequest_1.DeleteTransitSubnetRequest) {
|
|
1414
|
+
transitSubnetId = deleteTransitSubnetRequest.transitSubnetId;
|
|
1415
|
+
}
|
|
1416
|
+
else {
|
|
1417
|
+
transitSubnetId = deleteTransitSubnetRequest['transit_subnet_id'];
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
if (transitSubnetId === null || transitSubnetId === undefined) {
|
|
1421
|
+
throw new RequiredError('transitSubnetId', 'Required parameter transitSubnetId was null or undefined when calling deleteTransitSubnet.');
|
|
1422
|
+
}
|
|
1423
|
+
options.pathParams = { 'transit_subnet_id': transitSubnetId, };
|
|
1424
|
+
options.headers = localVarHeaderParameter;
|
|
1425
|
+
return options;
|
|
1426
|
+
},
|
|
1427
|
+
/**
|
|
1428
|
+
* - 幂等接口:
|
|
1429
|
+
* - 删除时,不对标签字符集做校验,调用接口前必须要做encodeURI,服务端需要对接口uri做decodeURI。删除的key不存在报404,key不能为空或者空字符串。
|
|
1430
|
+
*
|
|
1431
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1432
|
+
*/
|
|
1433
|
+
deleteTransitSubnetTag(deleteTransitSubnetTagRequest) {
|
|
1434
|
+
const options = {
|
|
1435
|
+
method: "DELETE",
|
|
1436
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags/{key}",
|
|
1437
|
+
contentType: "application/json",
|
|
1438
|
+
queryParams: {},
|
|
1439
|
+
pathParams: {},
|
|
1440
|
+
headers: {}
|
|
1441
|
+
};
|
|
1442
|
+
const localVarHeaderParameter = {};
|
|
1443
|
+
let key;
|
|
1444
|
+
let resourceId;
|
|
1445
|
+
if (deleteTransitSubnetTagRequest !== null && deleteTransitSubnetTagRequest !== undefined) {
|
|
1446
|
+
if (deleteTransitSubnetTagRequest instanceof DeleteTransitSubnetTagRequest_1.DeleteTransitSubnetTagRequest) {
|
|
1447
|
+
key = deleteTransitSubnetTagRequest.key;
|
|
1448
|
+
resourceId = deleteTransitSubnetTagRequest.resourceId;
|
|
1449
|
+
}
|
|
1450
|
+
else {
|
|
1451
|
+
key = deleteTransitSubnetTagRequest['key'];
|
|
1452
|
+
resourceId = deleteTransitSubnetTagRequest['resource_id'];
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
if (key === null || key === undefined) {
|
|
1456
|
+
throw new RequiredError('key', 'Required parameter key was null or undefined when calling deleteTransitSubnetTag.');
|
|
1457
|
+
}
|
|
1458
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1459
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling deleteTransitSubnetTag.');
|
|
1460
|
+
}
|
|
1461
|
+
options.pathParams = { 'key': key, 'resource_id': resourceId, };
|
|
1462
|
+
options.headers = localVarHeaderParameter;
|
|
1463
|
+
return options;
|
|
1464
|
+
},
|
|
1465
|
+
/**
|
|
1466
|
+
* 查询中转子网列表。
|
|
1467
|
+
*
|
|
1468
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1469
|
+
*/
|
|
1470
|
+
listTransitSubnet(listTransitSubnetRequest) {
|
|
1471
|
+
const options = {
|
|
1472
|
+
method: "GET",
|
|
1473
|
+
url: "/v3/{project_id}/private-nat/transit-subnets",
|
|
1474
|
+
contentType: "application/json",
|
|
1475
|
+
queryParams: {},
|
|
1476
|
+
pathParams: {},
|
|
1477
|
+
headers: {}
|
|
1478
|
+
};
|
|
1479
|
+
const localVarHeaderParameter = {};
|
|
1480
|
+
const localVarQueryParameter = {};
|
|
1481
|
+
let id;
|
|
1482
|
+
let name;
|
|
1483
|
+
let description;
|
|
1484
|
+
let virsubnetProjectId;
|
|
1485
|
+
let vpcId;
|
|
1486
|
+
let virsubnetId;
|
|
1487
|
+
let status;
|
|
1488
|
+
let limit;
|
|
1489
|
+
let marker;
|
|
1490
|
+
let pageReverse;
|
|
1491
|
+
if (listTransitSubnetRequest !== null && listTransitSubnetRequest !== undefined) {
|
|
1492
|
+
if (listTransitSubnetRequest instanceof ListTransitSubnetRequest_1.ListTransitSubnetRequest) {
|
|
1493
|
+
id = listTransitSubnetRequest.id;
|
|
1494
|
+
name = listTransitSubnetRequest.name;
|
|
1495
|
+
description = listTransitSubnetRequest.description;
|
|
1496
|
+
virsubnetProjectId = listTransitSubnetRequest.virsubnetProjectId;
|
|
1497
|
+
vpcId = listTransitSubnetRequest.vpcId;
|
|
1498
|
+
virsubnetId = listTransitSubnetRequest.virsubnetId;
|
|
1499
|
+
status = listTransitSubnetRequest.status;
|
|
1500
|
+
limit = listTransitSubnetRequest.limit;
|
|
1501
|
+
marker = listTransitSubnetRequest.marker;
|
|
1502
|
+
pageReverse = listTransitSubnetRequest.pageReverse;
|
|
1503
|
+
}
|
|
1504
|
+
else {
|
|
1505
|
+
id = listTransitSubnetRequest['id'];
|
|
1506
|
+
name = listTransitSubnetRequest['name'];
|
|
1507
|
+
description = listTransitSubnetRequest['description'];
|
|
1508
|
+
virsubnetProjectId = listTransitSubnetRequest['virsubnet_project_id'];
|
|
1509
|
+
vpcId = listTransitSubnetRequest['vpc_id'];
|
|
1510
|
+
virsubnetId = listTransitSubnetRequest['virsubnet_id'];
|
|
1511
|
+
status = listTransitSubnetRequest['status'];
|
|
1512
|
+
limit = listTransitSubnetRequest['limit'];
|
|
1513
|
+
marker = listTransitSubnetRequest['marker'];
|
|
1514
|
+
pageReverse = listTransitSubnetRequest['page_reverse'];
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
if (id !== null && id !== undefined) {
|
|
1518
|
+
localVarQueryParameter['id'] = id;
|
|
1519
|
+
}
|
|
1520
|
+
if (name !== null && name !== undefined) {
|
|
1521
|
+
localVarQueryParameter['name'] = name;
|
|
1522
|
+
}
|
|
1523
|
+
if (description !== null && description !== undefined) {
|
|
1524
|
+
localVarQueryParameter['description'] = description;
|
|
1525
|
+
}
|
|
1526
|
+
if (virsubnetProjectId !== null && virsubnetProjectId !== undefined) {
|
|
1527
|
+
localVarQueryParameter['virsubnet_project_id'] = virsubnetProjectId;
|
|
1528
|
+
}
|
|
1529
|
+
if (vpcId !== null && vpcId !== undefined) {
|
|
1530
|
+
localVarQueryParameter['vpc_id'] = vpcId;
|
|
1531
|
+
}
|
|
1532
|
+
if (virsubnetId !== null && virsubnetId !== undefined) {
|
|
1533
|
+
localVarQueryParameter['virsubnet_id'] = virsubnetId;
|
|
1534
|
+
}
|
|
1535
|
+
if (status !== null && status !== undefined) {
|
|
1536
|
+
localVarQueryParameter['status'] = status;
|
|
1537
|
+
}
|
|
1538
|
+
if (limit !== null && limit !== undefined) {
|
|
1539
|
+
localVarQueryParameter['limit'] = limit;
|
|
1540
|
+
}
|
|
1541
|
+
if (marker !== null && marker !== undefined) {
|
|
1542
|
+
localVarQueryParameter['marker'] = marker;
|
|
1543
|
+
}
|
|
1544
|
+
if (pageReverse !== null && pageReverse !== undefined) {
|
|
1545
|
+
localVarQueryParameter['page_reverse'] = pageReverse;
|
|
1546
|
+
}
|
|
1547
|
+
options.queryParams = localVarQueryParameter;
|
|
1548
|
+
options.headers = localVarHeaderParameter;
|
|
1549
|
+
return options;
|
|
1550
|
+
},
|
|
1551
|
+
/**
|
|
1552
|
+
* - 查询租户在指定Project的所有中转子网标签集合。
|
|
1553
|
+
* - 标签管理服务需要能够列出当前租户全部已使用的中转子网标签集合,为打中转子网标签和过滤中转子网实例时提供标签联想功能。
|
|
1554
|
+
*
|
|
1555
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1556
|
+
*/
|
|
1557
|
+
listTransitSubnetTags() {
|
|
1558
|
+
const options = {
|
|
1559
|
+
method: "GET",
|
|
1560
|
+
url: "/v3/{project_id}/transit-subnets/tags",
|
|
1561
|
+
contentType: "application/json",
|
|
1562
|
+
queryParams: {},
|
|
1563
|
+
pathParams: {},
|
|
1564
|
+
headers: {}
|
|
1565
|
+
};
|
|
1566
|
+
const localVarHeaderParameter = {};
|
|
1567
|
+
options.headers = localVarHeaderParameter;
|
|
1568
|
+
return options;
|
|
1569
|
+
},
|
|
1570
|
+
/**
|
|
1571
|
+
* - 使用标签过滤中转子网实例。
|
|
1572
|
+
* - 标签管理服务需要提供按标签过滤中转子网服务实例并汇总显示在列表中,需要中转子网服务提供查询能力。
|
|
1573
|
+
*
|
|
1574
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1575
|
+
*/
|
|
1576
|
+
listTransitSubnetsByTags(listTransitSubnetsByTagsRequest) {
|
|
1577
|
+
const options = {
|
|
1578
|
+
method: "POST",
|
|
1579
|
+
url: "/v3/{project_id}/transit-subnets/resource_instances/action",
|
|
1580
|
+
contentType: "application/json",
|
|
1581
|
+
queryParams: {},
|
|
1582
|
+
pathParams: {},
|
|
1583
|
+
headers: {},
|
|
1584
|
+
data: {}
|
|
1585
|
+
};
|
|
1586
|
+
const localVarHeaderParameter = {};
|
|
1587
|
+
let body;
|
|
1588
|
+
if (listTransitSubnetsByTagsRequest !== null && listTransitSubnetsByTagsRequest !== undefined) {
|
|
1589
|
+
if (listTransitSubnetsByTagsRequest instanceof ListTransitSubnetsByTagsRequest_1.ListTransitSubnetsByTagsRequest) {
|
|
1590
|
+
body = listTransitSubnetsByTagsRequest.body;
|
|
1591
|
+
}
|
|
1592
|
+
else {
|
|
1593
|
+
body = listTransitSubnetsByTagsRequest['body'];
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
if (body === null || body === undefined) {
|
|
1597
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1598
|
+
}
|
|
1599
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1600
|
+
options.data = body !== undefined ? body : {};
|
|
1601
|
+
options.headers = localVarHeaderParameter;
|
|
1602
|
+
return options;
|
|
1603
|
+
},
|
|
1604
|
+
/**
|
|
1605
|
+
* 查询指定的中转子网详情。
|
|
1606
|
+
*
|
|
1607
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1608
|
+
*/
|
|
1609
|
+
showTransitSubnet(showTransitSubnetRequest) {
|
|
1610
|
+
const options = {
|
|
1611
|
+
method: "GET",
|
|
1612
|
+
url: "/v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id}",
|
|
1613
|
+
contentType: "application/json",
|
|
1614
|
+
queryParams: {},
|
|
1615
|
+
pathParams: {},
|
|
1616
|
+
headers: {}
|
|
1617
|
+
};
|
|
1618
|
+
const localVarHeaderParameter = {};
|
|
1619
|
+
let transitSubnetId;
|
|
1620
|
+
if (showTransitSubnetRequest !== null && showTransitSubnetRequest !== undefined) {
|
|
1621
|
+
if (showTransitSubnetRequest instanceof ShowTransitSubnetRequest_1.ShowTransitSubnetRequest) {
|
|
1622
|
+
transitSubnetId = showTransitSubnetRequest.transitSubnetId;
|
|
1623
|
+
}
|
|
1624
|
+
else {
|
|
1625
|
+
transitSubnetId = showTransitSubnetRequest['transit_subnet_id'];
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
if (transitSubnetId === null || transitSubnetId === undefined) {
|
|
1629
|
+
throw new RequiredError('transitSubnetId', 'Required parameter transitSubnetId was null or undefined when calling showTransitSubnet.');
|
|
1630
|
+
}
|
|
1631
|
+
options.pathParams = { 'transit_subnet_id': transitSubnetId, };
|
|
1632
|
+
options.headers = localVarHeaderParameter;
|
|
1633
|
+
return options;
|
|
1634
|
+
},
|
|
1635
|
+
/**
|
|
1636
|
+
* - 查询指定中转子网实例的标签信息。
|
|
1637
|
+
* - 标签管理服务需要使用该接口查询指定中转子网实例的全部标签数据。
|
|
1638
|
+
*
|
|
1639
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1640
|
+
*/
|
|
1641
|
+
showTransitSubnetTags(showTransitSubnetTagsRequest) {
|
|
1642
|
+
const options = {
|
|
1643
|
+
method: "GET",
|
|
1644
|
+
url: "/v3/{project_id}/transit-subnets/{resource_id}/tags",
|
|
1645
|
+
contentType: "application/json",
|
|
1646
|
+
queryParams: {},
|
|
1647
|
+
pathParams: {},
|
|
1648
|
+
headers: {}
|
|
1649
|
+
};
|
|
1650
|
+
const localVarHeaderParameter = {};
|
|
1651
|
+
let resourceId;
|
|
1652
|
+
if (showTransitSubnetTagsRequest !== null && showTransitSubnetTagsRequest !== undefined) {
|
|
1653
|
+
if (showTransitSubnetTagsRequest instanceof ShowTransitSubnetTagsRequest_1.ShowTransitSubnetTagsRequest) {
|
|
1654
|
+
resourceId = showTransitSubnetTagsRequest.resourceId;
|
|
1655
|
+
}
|
|
1656
|
+
else {
|
|
1657
|
+
resourceId = showTransitSubnetTagsRequest['resource_id'];
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
if (resourceId === null || resourceId === undefined) {
|
|
1661
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling showTransitSubnetTags.');
|
|
1662
|
+
}
|
|
1663
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
1664
|
+
options.headers = localVarHeaderParameter;
|
|
1665
|
+
return options;
|
|
1666
|
+
},
|
|
1667
|
+
/**
|
|
1668
|
+
* 更新指定的中转子网。
|
|
1669
|
+
*
|
|
1670
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1671
|
+
*/
|
|
1672
|
+
updateTransitSubnet(updateTransitSubnetRequest) {
|
|
1673
|
+
const options = {
|
|
1674
|
+
method: "PUT",
|
|
1675
|
+
url: "/v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id}",
|
|
1676
|
+
contentType: "application/json",
|
|
1677
|
+
queryParams: {},
|
|
1678
|
+
pathParams: {},
|
|
1679
|
+
headers: {},
|
|
1680
|
+
data: {}
|
|
1681
|
+
};
|
|
1682
|
+
const localVarHeaderParameter = {};
|
|
1683
|
+
let body;
|
|
1684
|
+
let transitSubnetId;
|
|
1685
|
+
if (updateTransitSubnetRequest !== null && updateTransitSubnetRequest !== undefined) {
|
|
1686
|
+
if (updateTransitSubnetRequest instanceof UpdateTransitSubnetRequest_1.UpdateTransitSubnetRequest) {
|
|
1687
|
+
transitSubnetId = updateTransitSubnetRequest.transitSubnetId;
|
|
1688
|
+
body = updateTransitSubnetRequest.body;
|
|
1689
|
+
}
|
|
1690
|
+
else {
|
|
1691
|
+
transitSubnetId = updateTransitSubnetRequest['transit_subnet_id'];
|
|
1692
|
+
body = updateTransitSubnetRequest['body'];
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
if (transitSubnetId === null || transitSubnetId === undefined) {
|
|
1696
|
+
throw new RequiredError('transitSubnetId', 'Required parameter transitSubnetId was null or undefined when calling updateTransitSubnet.');
|
|
1697
|
+
}
|
|
1698
|
+
if (body === null || body === undefined) {
|
|
1699
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1700
|
+
}
|
|
1701
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1702
|
+
options.data = body !== undefined ? body : {};
|
|
1703
|
+
options.pathParams = { 'transit_subnet_id': transitSubnetId, };
|
|
1704
|
+
options.headers = localVarHeaderParameter;
|
|
1705
|
+
return options;
|
|
1706
|
+
},
|
|
1030
1707
|
/**
|
|
1031
1708
|
* 批量创建DNAT规则。
|
|
1032
1709
|
*
|
|
@@ -1213,8 +1890,10 @@ const ParamCreater = function () {
|
|
|
1213
1890
|
let adminStateUp;
|
|
1214
1891
|
let externalServicePort;
|
|
1215
1892
|
let floatingIpAddress;
|
|
1893
|
+
let globalEipAddress;
|
|
1216
1894
|
let status;
|
|
1217
1895
|
let floatingIpId;
|
|
1896
|
+
let globalEipId;
|
|
1218
1897
|
let internalServicePort;
|
|
1219
1898
|
let limit;
|
|
1220
1899
|
let id;
|
|
@@ -1230,8 +1909,10 @@ const ParamCreater = function () {
|
|
|
1230
1909
|
adminStateUp = listNatGatewayDnatRulesRequest.adminStateUp;
|
|
1231
1910
|
externalServicePort = listNatGatewayDnatRulesRequest.externalServicePort;
|
|
1232
1911
|
floatingIpAddress = listNatGatewayDnatRulesRequest.floatingIpAddress;
|
|
1912
|
+
globalEipAddress = listNatGatewayDnatRulesRequest.globalEipAddress;
|
|
1233
1913
|
status = listNatGatewayDnatRulesRequest.status;
|
|
1234
1914
|
floatingIpId = listNatGatewayDnatRulesRequest.floatingIpId;
|
|
1915
|
+
globalEipId = listNatGatewayDnatRulesRequest.globalEipId;
|
|
1235
1916
|
internalServicePort = listNatGatewayDnatRulesRequest.internalServicePort;
|
|
1236
1917
|
limit = listNatGatewayDnatRulesRequest.limit;
|
|
1237
1918
|
id = listNatGatewayDnatRulesRequest.id;
|
|
@@ -1247,8 +1928,10 @@ const ParamCreater = function () {
|
|
|
1247
1928
|
adminStateUp = listNatGatewayDnatRulesRequest['admin_state_up'];
|
|
1248
1929
|
externalServicePort = listNatGatewayDnatRulesRequest['external_service_port'];
|
|
1249
1930
|
floatingIpAddress = listNatGatewayDnatRulesRequest['floating_ip_address'];
|
|
1931
|
+
globalEipAddress = listNatGatewayDnatRulesRequest['global_eip_address'];
|
|
1250
1932
|
status = listNatGatewayDnatRulesRequest['status'];
|
|
1251
1933
|
floatingIpId = listNatGatewayDnatRulesRequest['floating_ip_id'];
|
|
1934
|
+
globalEipId = listNatGatewayDnatRulesRequest['global_eip_id'];
|
|
1252
1935
|
internalServicePort = listNatGatewayDnatRulesRequest['internal_service_port'];
|
|
1253
1936
|
limit = listNatGatewayDnatRulesRequest['limit'];
|
|
1254
1937
|
id = listNatGatewayDnatRulesRequest['id'];
|
|
@@ -1270,12 +1953,18 @@ const ParamCreater = function () {
|
|
|
1270
1953
|
if (floatingIpAddress !== null && floatingIpAddress !== undefined) {
|
|
1271
1954
|
localVarQueryParameter['floating_ip_address'] = floatingIpAddress;
|
|
1272
1955
|
}
|
|
1956
|
+
if (globalEipAddress !== null && globalEipAddress !== undefined) {
|
|
1957
|
+
localVarQueryParameter['global_eip_address'] = globalEipAddress;
|
|
1958
|
+
}
|
|
1273
1959
|
if (status !== null && status !== undefined) {
|
|
1274
1960
|
localVarQueryParameter['status'] = status;
|
|
1275
1961
|
}
|
|
1276
1962
|
if (floatingIpId !== null && floatingIpId !== undefined) {
|
|
1277
1963
|
localVarQueryParameter['floating_ip_id'] = floatingIpId;
|
|
1278
1964
|
}
|
|
1965
|
+
if (globalEipId !== null && globalEipId !== undefined) {
|
|
1966
|
+
localVarQueryParameter['global_eip_id'] = globalEipId;
|
|
1967
|
+
}
|
|
1279
1968
|
if (internalServicePort !== null && internalServicePort !== undefined) {
|
|
1280
1969
|
localVarQueryParameter['internal_service_port'] = internalServicePort;
|
|
1281
1970
|
}
|
|
@@ -1334,10 +2023,13 @@ const ParamCreater = function () {
|
|
|
1334
2023
|
let description;
|
|
1335
2024
|
let gatewayId;
|
|
1336
2025
|
let transitIpId;
|
|
1337
|
-
let externalIpAddress;
|
|
1338
2026
|
let networkInterfaceId;
|
|
1339
2027
|
let type;
|
|
1340
2028
|
let privateIpAddress;
|
|
2029
|
+
let protocol;
|
|
2030
|
+
let internalServicePort;
|
|
2031
|
+
let transitServicePort;
|
|
2032
|
+
let transitIpAddress;
|
|
1341
2033
|
if (listPrivateDnatsRequest !== null && listPrivateDnatsRequest !== undefined) {
|
|
1342
2034
|
if (listPrivateDnatsRequest instanceof ListPrivateDnatsRequest_1.ListPrivateDnatsRequest) {
|
|
1343
2035
|
limit = listPrivateDnatsRequest.limit;
|
|
@@ -1348,10 +2040,13 @@ const ParamCreater = function () {
|
|
|
1348
2040
|
description = listPrivateDnatsRequest.description;
|
|
1349
2041
|
gatewayId = listPrivateDnatsRequest.gatewayId;
|
|
1350
2042
|
transitIpId = listPrivateDnatsRequest.transitIpId;
|
|
1351
|
-
externalIpAddress = listPrivateDnatsRequest.externalIpAddress;
|
|
1352
2043
|
networkInterfaceId = listPrivateDnatsRequest.networkInterfaceId;
|
|
1353
2044
|
type = listPrivateDnatsRequest.type;
|
|
1354
2045
|
privateIpAddress = listPrivateDnatsRequest.privateIpAddress;
|
|
2046
|
+
protocol = listPrivateDnatsRequest.protocol;
|
|
2047
|
+
internalServicePort = listPrivateDnatsRequest.internalServicePort;
|
|
2048
|
+
transitServicePort = listPrivateDnatsRequest.transitServicePort;
|
|
2049
|
+
transitIpAddress = listPrivateDnatsRequest.transitIpAddress;
|
|
1355
2050
|
}
|
|
1356
2051
|
else {
|
|
1357
2052
|
limit = listPrivateDnatsRequest['limit'];
|
|
@@ -1362,10 +2057,13 @@ const ParamCreater = function () {
|
|
|
1362
2057
|
description = listPrivateDnatsRequest['description'];
|
|
1363
2058
|
gatewayId = listPrivateDnatsRequest['gateway_id'];
|
|
1364
2059
|
transitIpId = listPrivateDnatsRequest['transit_ip_id'];
|
|
1365
|
-
externalIpAddress = listPrivateDnatsRequest['external_ip_address'];
|
|
1366
2060
|
networkInterfaceId = listPrivateDnatsRequest['network_interface_id'];
|
|
1367
2061
|
type = listPrivateDnatsRequest['type'];
|
|
1368
2062
|
privateIpAddress = listPrivateDnatsRequest['private_ip_address'];
|
|
2063
|
+
protocol = listPrivateDnatsRequest['protocol'];
|
|
2064
|
+
internalServicePort = listPrivateDnatsRequest['internal_service_port'];
|
|
2065
|
+
transitServicePort = listPrivateDnatsRequest['transit_service_port'];
|
|
2066
|
+
transitIpAddress = listPrivateDnatsRequest['transit_ip_address'];
|
|
1369
2067
|
}
|
|
1370
2068
|
}
|
|
1371
2069
|
if (limit !== null && limit !== undefined) {
|
|
@@ -1392,9 +2090,6 @@ const ParamCreater = function () {
|
|
|
1392
2090
|
if (transitIpId !== null && transitIpId !== undefined) {
|
|
1393
2091
|
localVarQueryParameter['transit_ip_id'] = transitIpId;
|
|
1394
2092
|
}
|
|
1395
|
-
if (externalIpAddress !== null && externalIpAddress !== undefined) {
|
|
1396
|
-
localVarQueryParameter['external_ip_address'] = externalIpAddress;
|
|
1397
|
-
}
|
|
1398
2093
|
if (networkInterfaceId !== null && networkInterfaceId !== undefined) {
|
|
1399
2094
|
localVarQueryParameter['network_interface_id'] = networkInterfaceId;
|
|
1400
2095
|
}
|
|
@@ -1404,6 +2099,18 @@ const ParamCreater = function () {
|
|
|
1404
2099
|
if (privateIpAddress !== null && privateIpAddress !== undefined) {
|
|
1405
2100
|
localVarQueryParameter['private_ip_address'] = privateIpAddress;
|
|
1406
2101
|
}
|
|
2102
|
+
if (protocol !== null && protocol !== undefined) {
|
|
2103
|
+
localVarQueryParameter['protocol'] = protocol;
|
|
2104
|
+
}
|
|
2105
|
+
if (internalServicePort !== null && internalServicePort !== undefined) {
|
|
2106
|
+
localVarQueryParameter['internal_service_port'] = internalServicePort;
|
|
2107
|
+
}
|
|
2108
|
+
if (transitServicePort !== null && transitServicePort !== undefined) {
|
|
2109
|
+
localVarQueryParameter['transit_service_port'] = transitServicePort;
|
|
2110
|
+
}
|
|
2111
|
+
if (transitIpAddress !== null && transitIpAddress !== undefined) {
|
|
2112
|
+
localVarQueryParameter['transit_ip_address'] = transitIpAddress;
|
|
2113
|
+
}
|
|
1407
2114
|
options.queryParams = localVarQueryParameter;
|
|
1408
2115
|
options.headers = localVarHeaderParameter;
|
|
1409
2116
|
return options;
|
|
@@ -2161,6 +2868,24 @@ const ParamCreater = function () {
|
|
|
2161
2868
|
options.headers = localVarHeaderParameter;
|
|
2162
2869
|
return options;
|
|
2163
2870
|
},
|
|
2871
|
+
/**
|
|
2872
|
+
* 支持创建的NAT网关规格列表。
|
|
2873
|
+
*
|
|
2874
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2875
|
+
*/
|
|
2876
|
+
listNatGatewaySpecs() {
|
|
2877
|
+
const options = {
|
|
2878
|
+
method: "GET",
|
|
2879
|
+
url: "/v2/{project_id}/nat_gateway_specs",
|
|
2880
|
+
contentType: "application/json",
|
|
2881
|
+
queryParams: {},
|
|
2882
|
+
pathParams: {},
|
|
2883
|
+
headers: {}
|
|
2884
|
+
};
|
|
2885
|
+
const localVarHeaderParameter = {};
|
|
2886
|
+
options.headers = localVarHeaderParameter;
|
|
2887
|
+
return options;
|
|
2888
|
+
},
|
|
2164
2889
|
/**
|
|
2165
2890
|
* - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。
|
|
2166
2891
|
* - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。
|
|
@@ -2196,6 +2921,7 @@ const ParamCreater = function () {
|
|
|
2196
2921
|
};
|
|
2197
2922
|
const localVarHeaderParameter = {};
|
|
2198
2923
|
const localVarQueryParameter = {};
|
|
2924
|
+
let tenantId;
|
|
2199
2925
|
let id;
|
|
2200
2926
|
let enterpriseProjectId;
|
|
2201
2927
|
let description;
|
|
@@ -2208,8 +2934,11 @@ const ParamCreater = function () {
|
|
|
2208
2934
|
let routerId;
|
|
2209
2935
|
let limit;
|
|
2210
2936
|
let marker;
|
|
2937
|
+
let sortKey;
|
|
2938
|
+
let sortDir;
|
|
2211
2939
|
if (listNatGatewaysRequest !== null && listNatGatewaysRequest !== undefined) {
|
|
2212
2940
|
if (listNatGatewaysRequest instanceof ListNatGatewaysRequest_1.ListNatGatewaysRequest) {
|
|
2941
|
+
tenantId = listNatGatewaysRequest.tenantId;
|
|
2213
2942
|
id = listNatGatewaysRequest.id;
|
|
2214
2943
|
enterpriseProjectId = listNatGatewaysRequest.enterpriseProjectId;
|
|
2215
2944
|
description = listNatGatewaysRequest.description;
|
|
@@ -2222,8 +2951,11 @@ const ParamCreater = function () {
|
|
|
2222
2951
|
routerId = listNatGatewaysRequest.routerId;
|
|
2223
2952
|
limit = listNatGatewaysRequest.limit;
|
|
2224
2953
|
marker = listNatGatewaysRequest.marker;
|
|
2954
|
+
sortKey = listNatGatewaysRequest.sortKey;
|
|
2955
|
+
sortDir = listNatGatewaysRequest.sortDir;
|
|
2225
2956
|
}
|
|
2226
2957
|
else {
|
|
2958
|
+
tenantId = listNatGatewaysRequest['tenant_id'];
|
|
2227
2959
|
id = listNatGatewaysRequest['id'];
|
|
2228
2960
|
enterpriseProjectId = listNatGatewaysRequest['enterprise_project_id'];
|
|
2229
2961
|
description = listNatGatewaysRequest['description'];
|
|
@@ -2236,8 +2968,13 @@ const ParamCreater = function () {
|
|
|
2236
2968
|
routerId = listNatGatewaysRequest['router_id'];
|
|
2237
2969
|
limit = listNatGatewaysRequest['limit'];
|
|
2238
2970
|
marker = listNatGatewaysRequest['marker'];
|
|
2971
|
+
sortKey = listNatGatewaysRequest['sort_key'];
|
|
2972
|
+
sortDir = listNatGatewaysRequest['sort_dir'];
|
|
2239
2973
|
}
|
|
2240
2974
|
}
|
|
2975
|
+
if (tenantId !== null && tenantId !== undefined) {
|
|
2976
|
+
localVarQueryParameter['tenant_id'] = tenantId;
|
|
2977
|
+
}
|
|
2241
2978
|
if (id !== null && id !== undefined) {
|
|
2242
2979
|
localVarQueryParameter['id'] = id;
|
|
2243
2980
|
}
|
|
@@ -2274,6 +3011,12 @@ const ParamCreater = function () {
|
|
|
2274
3011
|
if (marker !== null && marker !== undefined) {
|
|
2275
3012
|
localVarQueryParameter['marker'] = marker;
|
|
2276
3013
|
}
|
|
3014
|
+
if (sortKey !== null && sortKey !== undefined) {
|
|
3015
|
+
localVarQueryParameter['sort_key'] = sortKey;
|
|
3016
|
+
}
|
|
3017
|
+
if (sortDir !== null && sortDir !== undefined) {
|
|
3018
|
+
localVarQueryParameter['sort_dir'] = sortDir;
|
|
3019
|
+
}
|
|
2277
3020
|
options.queryParams = localVarQueryParameter;
|
|
2278
3021
|
options.headers = localVarHeaderParameter;
|
|
2279
3022
|
return options;
|
|
@@ -2423,6 +3166,24 @@ const ParamCreater = function () {
|
|
|
2423
3166
|
options.headers = localVarHeaderParameter;
|
|
2424
3167
|
return options;
|
|
2425
3168
|
},
|
|
3169
|
+
/**
|
|
3170
|
+
* 查询项目支持的网关规格列表。
|
|
3171
|
+
*
|
|
3172
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3173
|
+
*/
|
|
3174
|
+
listSpecs() {
|
|
3175
|
+
const options = {
|
|
3176
|
+
method: "GET",
|
|
3177
|
+
url: "/v3/{project_id}/private-nat/specs",
|
|
3178
|
+
contentType: "application/json",
|
|
3179
|
+
queryParams: {},
|
|
3180
|
+
pathParams: {},
|
|
3181
|
+
headers: {}
|
|
3182
|
+
};
|
|
3183
|
+
const localVarHeaderParameter = {};
|
|
3184
|
+
options.headers = localVarHeaderParameter;
|
|
3185
|
+
return options;
|
|
3186
|
+
},
|
|
2426
3187
|
/**
|
|
2427
3188
|
* 查询指定的公网NAT网关实例详情。
|
|
2428
3189
|
*
|
|
@@ -2718,6 +3479,7 @@ const ParamCreater = function () {
|
|
|
2718
3479
|
let gatewayId;
|
|
2719
3480
|
let enterpriseProjectId;
|
|
2720
3481
|
let virsubnetId;
|
|
3482
|
+
let transitSubnetId;
|
|
2721
3483
|
if (listTransitIpsRequest !== null && listTransitIpsRequest !== undefined) {
|
|
2722
3484
|
if (listTransitIpsRequest instanceof ListTransitIpsRequest_1.ListTransitIpsRequest) {
|
|
2723
3485
|
limit = listTransitIpsRequest.limit;
|
|
@@ -2729,6 +3491,7 @@ const ParamCreater = function () {
|
|
|
2729
3491
|
gatewayId = listTransitIpsRequest.gatewayId;
|
|
2730
3492
|
enterpriseProjectId = listTransitIpsRequest.enterpriseProjectId;
|
|
2731
3493
|
virsubnetId = listTransitIpsRequest.virsubnetId;
|
|
3494
|
+
transitSubnetId = listTransitIpsRequest.transitSubnetId;
|
|
2732
3495
|
}
|
|
2733
3496
|
else {
|
|
2734
3497
|
limit = listTransitIpsRequest['limit'];
|
|
@@ -2740,6 +3503,7 @@ const ParamCreater = function () {
|
|
|
2740
3503
|
gatewayId = listTransitIpsRequest['gateway_id'];
|
|
2741
3504
|
enterpriseProjectId = listTransitIpsRequest['enterprise_project_id'];
|
|
2742
3505
|
virsubnetId = listTransitIpsRequest['virsubnet_id'];
|
|
3506
|
+
transitSubnetId = listTransitIpsRequest['transit_subnet_id'];
|
|
2743
3507
|
}
|
|
2744
3508
|
}
|
|
2745
3509
|
if (limit !== null && limit !== undefined) {
|
|
@@ -2769,6 +3533,9 @@ const ParamCreater = function () {
|
|
|
2769
3533
|
if (virsubnetId !== null && virsubnetId !== undefined) {
|
|
2770
3534
|
localVarQueryParameter['virsubnet_id'] = virsubnetId;
|
|
2771
3535
|
}
|
|
3536
|
+
if (transitSubnetId !== null && transitSubnetId !== undefined) {
|
|
3537
|
+
localVarQueryParameter['transit_subnet_id'] = transitSubnetId;
|
|
3538
|
+
}
|
|
2772
3539
|
options.queryParams = localVarQueryParameter;
|
|
2773
3540
|
options.headers = localVarHeaderParameter;
|
|
2774
3541
|
return options;
|
|
@@ -2958,7 +3725,9 @@ const ParamCreater = function () {
|
|
|
2958
3725
|
let cidr;
|
|
2959
3726
|
let limit;
|
|
2960
3727
|
let floatingIpAddress;
|
|
3728
|
+
let globalEipAddress;
|
|
2961
3729
|
let floatingIpId;
|
|
3730
|
+
let globalEipId;
|
|
2962
3731
|
let id;
|
|
2963
3732
|
let description;
|
|
2964
3733
|
let createdAt;
|
|
@@ -2973,7 +3742,9 @@ const ParamCreater = function () {
|
|
|
2973
3742
|
cidr = listNatGatewaySnatRulesRequest.cidr;
|
|
2974
3743
|
limit = listNatGatewaySnatRulesRequest.limit;
|
|
2975
3744
|
floatingIpAddress = listNatGatewaySnatRulesRequest.floatingIpAddress;
|
|
3745
|
+
globalEipAddress = listNatGatewaySnatRulesRequest.globalEipAddress;
|
|
2976
3746
|
floatingIpId = listNatGatewaySnatRulesRequest.floatingIpId;
|
|
3747
|
+
globalEipId = listNatGatewaySnatRulesRequest.globalEipId;
|
|
2977
3748
|
id = listNatGatewaySnatRulesRequest.id;
|
|
2978
3749
|
description = listNatGatewaySnatRulesRequest.description;
|
|
2979
3750
|
createdAt = listNatGatewaySnatRulesRequest.createdAt;
|
|
@@ -2988,7 +3759,9 @@ const ParamCreater = function () {
|
|
|
2988
3759
|
cidr = listNatGatewaySnatRulesRequest['cidr'];
|
|
2989
3760
|
limit = listNatGatewaySnatRulesRequest['limit'];
|
|
2990
3761
|
floatingIpAddress = listNatGatewaySnatRulesRequest['floating_ip_address'];
|
|
3762
|
+
globalEipAddress = listNatGatewaySnatRulesRequest['global_eip_address'];
|
|
2991
3763
|
floatingIpId = listNatGatewaySnatRulesRequest['floating_ip_id'];
|
|
3764
|
+
globalEipId = listNatGatewaySnatRulesRequest['global_eip_id'];
|
|
2992
3765
|
id = listNatGatewaySnatRulesRequest['id'];
|
|
2993
3766
|
description = listNatGatewaySnatRulesRequest['description'];
|
|
2994
3767
|
createdAt = listNatGatewaySnatRulesRequest['created_at'];
|
|
@@ -3011,9 +3784,15 @@ const ParamCreater = function () {
|
|
|
3011
3784
|
if (floatingIpAddress !== null && floatingIpAddress !== undefined) {
|
|
3012
3785
|
localVarQueryParameter['floating_ip_address'] = floatingIpAddress;
|
|
3013
3786
|
}
|
|
3787
|
+
if (globalEipAddress !== null && globalEipAddress !== undefined) {
|
|
3788
|
+
localVarQueryParameter['global_eip_address'] = globalEipAddress;
|
|
3789
|
+
}
|
|
3014
3790
|
if (floatingIpId !== null && floatingIpId !== undefined) {
|
|
3015
3791
|
localVarQueryParameter['floating_ip_id'] = floatingIpId;
|
|
3016
3792
|
}
|
|
3793
|
+
if (globalEipId !== null && globalEipId !== undefined) {
|
|
3794
|
+
localVarQueryParameter['global_eip_id'] = globalEipId;
|
|
3795
|
+
}
|
|
3017
3796
|
if (id !== null && id !== undefined) {
|
|
3018
3797
|
localVarQueryParameter['id'] = id;
|
|
3019
3798
|
}
|