@huaweicloud/huaweicloud-sdk-vpc 3.1.97 → 3.1.98
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/v3/VpcClient.d.ts +353 -0
- package/v3/VpcClient.d.ts.map +1 -1
- package/v3/VpcClient.js +693 -0
- package/v3/VpcClient.js.map +1 -1
- package/v3/model/AddClouddcnSubnetsTagsRequest.d.ts +11 -0
- package/v3/model/AddClouddcnSubnetsTagsRequest.d.ts.map +1 -0
- package/v3/model/AddClouddcnSubnetsTagsRequest.js +24 -0
- package/v3/model/AddClouddcnSubnetsTagsRequest.js.map +1 -0
- package/v3/model/AddClouddcnSubnetsTagsResponse.d.ts +5 -0
- package/v3/model/AddClouddcnSubnetsTagsResponse.d.ts.map +1 -0
- package/v3/model/AddClouddcnSubnetsTagsResponse.js +11 -0
- package/v3/model/AddClouddcnSubnetsTagsResponse.js.map +1 -0
- package/v3/model/AddResourceTagsRequestBody.d.ts +7 -0
- package/v3/model/AddResourceTagsRequestBody.d.ts.map +1 -0
- package/v3/model/AddResourceTagsRequestBody.js +14 -0
- package/v3/model/AddResourceTagsRequestBody.js.map +1 -0
- package/v3/model/AddResourceTagsRequestBodyTag.d.ts +8 -0
- package/v3/model/AddResourceTagsRequestBodyTag.d.ts.map +1 -0
- package/v3/model/AddResourceTagsRequestBodyTag.js +19 -0
- package/v3/model/AddResourceTagsRequestBodyTag.js.map +1 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsRequest.d.ts +11 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsRequest.d.ts.map +1 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsRequest.js +24 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsRequest.js.map +1 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsResponse.d.ts +5 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsResponse.d.ts.map +1 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsResponse.js +11 -0
- package/v3/model/BatchCreateClouddcnSubnetsTagsResponse.js.map +1 -0
- package/v3/model/BatchCreateRequestBody.d.ts +12 -0
- package/v3/model/BatchCreateRequestBody.d.ts.map +1 -0
- package/v3/model/BatchCreateRequestBody.js +24 -0
- package/v3/model/BatchCreateRequestBody.js.map +1 -0
- package/v3/model/BatchCreateRequestBodySysTags.d.ts +8 -0
- package/v3/model/BatchCreateRequestBodySysTags.d.ts.map +1 -0
- package/v3/model/BatchCreateRequestBodySysTags.js +19 -0
- package/v3/model/BatchCreateRequestBodySysTags.js.map +1 -0
- package/v3/model/BatchCreateRequestBodyTags.d.ts +8 -0
- package/v3/model/BatchCreateRequestBodyTags.d.ts.map +1 -0
- package/v3/model/BatchCreateRequestBodyTags.js +19 -0
- package/v3/model/BatchCreateRequestBodyTags.js.map +1 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsRequest.d.ts +11 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsRequest.d.ts.map +1 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsRequest.js +24 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsRequest.js.map +1 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsResponse.d.ts +5 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsResponse.d.ts.map +1 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsResponse.js +11 -0
- package/v3/model/BatchDeleteClouddcnSubnetsTagsResponse.js.map +1 -0
- package/v3/model/BatchDeleteRequestBody.d.ts +12 -0
- package/v3/model/BatchDeleteRequestBody.d.ts.map +1 -0
- package/v3/model/BatchDeleteRequestBody.js +24 -0
- package/v3/model/BatchDeleteRequestBody.js.map +1 -0
- package/v3/model/BatchDeleteRequestBodySysTags.d.ts +8 -0
- package/v3/model/BatchDeleteRequestBodySysTags.d.ts.map +1 -0
- package/v3/model/BatchDeleteRequestBodySysTags.js +18 -0
- package/v3/model/BatchDeleteRequestBodySysTags.js.map +1 -0
- package/v3/model/BatchDeleteRequestBodyTags.d.ts +8 -0
- package/v3/model/BatchDeleteRequestBodyTags.d.ts.map +1 -0
- package/v3/model/BatchDeleteRequestBodyTags.js +18 -0
- package/v3/model/BatchDeleteRequestBodyTags.js.map +1 -0
- package/v3/model/ClouddcnResource.d.ts +19 -0
- package/v3/model/ClouddcnResource.d.ts.map +1 -0
- package/v3/model/ClouddcnResource.js +47 -0
- package/v3/model/ClouddcnResource.js.map +1 -0
- package/v3/model/ClouddcnSubnet.d.ts +47 -0
- package/v3/model/ClouddcnSubnet.d.ts.map +1 -0
- package/v3/model/ClouddcnSubnet.js +122 -0
- package/v3/model/ClouddcnSubnet.js.map +1 -0
- package/v3/model/CreateClouddcnSubnetOption.d.ts +29 -0
- package/v3/model/CreateClouddcnSubnetOption.d.ts.map +1 -0
- package/v3/model/CreateClouddcnSubnetOption.js +69 -0
- package/v3/model/CreateClouddcnSubnetOption.js.map +1 -0
- package/v3/model/CreateClouddcnSubnetRequest.d.ts +7 -0
- package/v3/model/CreateClouddcnSubnetRequest.d.ts.map +1 -0
- package/v3/model/CreateClouddcnSubnetRequest.js +13 -0
- package/v3/model/CreateClouddcnSubnetRequest.js.map +1 -0
- package/v3/model/CreateClouddcnSubnetRequestBody.d.ts +9 -0
- package/v3/model/CreateClouddcnSubnetRequestBody.d.ts.map +1 -0
- package/v3/model/CreateClouddcnSubnetRequestBody.js +20 -0
- package/v3/model/CreateClouddcnSubnetRequestBody.js.map +1 -0
- package/v3/model/CreateClouddcnSubnetResponse.d.ts +10 -0
- package/v3/model/CreateClouddcnSubnetResponse.d.ts.map +1 -0
- package/v3/model/CreateClouddcnSubnetResponse.js +21 -0
- package/v3/model/CreateClouddcnSubnetResponse.js.map +1 -0
- package/v3/model/CreateFirewallOption.d.ts +3 -0
- package/v3/model/CreateFirewallOption.d.ts.map +1 -1
- package/v3/model/CreateFirewallOption.js +4 -0
- package/v3/model/CreateFirewallOption.js.map +1 -1
- package/v3/model/CreateSecurityGroupOption.d.ts +3 -0
- package/v3/model/CreateSecurityGroupOption.d.ts.map +1 -1
- package/v3/model/CreateSecurityGroupOption.js +4 -0
- package/v3/model/CreateSecurityGroupOption.js.map +1 -1
- package/v3/model/DeleteClouddcnSubnetRequest.d.ts +8 -0
- package/v3/model/DeleteClouddcnSubnetRequest.d.ts.map +1 -0
- package/v3/model/DeleteClouddcnSubnetRequest.js +20 -0
- package/v3/model/DeleteClouddcnSubnetRequest.js.map +1 -0
- package/v3/model/DeleteClouddcnSubnetResponse.d.ts +5 -0
- package/v3/model/DeleteClouddcnSubnetResponse.d.ts.map +1 -0
- package/v3/model/DeleteClouddcnSubnetResponse.js +11 -0
- package/v3/model/DeleteClouddcnSubnetResponse.js.map +1 -0
- package/v3/model/DeleteClouddcnSubnetsTagRequest.d.ts +12 -0
- package/v3/model/DeleteClouddcnSubnetsTagRequest.d.ts.map +1 -0
- package/v3/model/DeleteClouddcnSubnetsTagRequest.js +31 -0
- package/v3/model/DeleteClouddcnSubnetsTagRequest.js.map +1 -0
- package/v3/model/DeleteClouddcnSubnetsTagResponse.d.ts +5 -0
- package/v3/model/DeleteClouddcnSubnetsTagResponse.d.ts.map +1 -0
- package/v3/model/DeleteClouddcnSubnetsTagResponse.js +11 -0
- package/v3/model/DeleteClouddcnSubnetsTagResponse.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsRequest.d.ts +7 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsRequest.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsRequest.js +13 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsRequest.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsResponse.d.ts +13 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsResponse.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsResponse.js +31 -0
- package/v3/model/ListClouddcnSubnetsCountFilterTagsResponse.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsRequest.d.ts +11 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsRequest.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsRequest.js +21 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsRequest.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsResponse.d.ts +16 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsResponse.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsResponse.js +35 -0
- package/v3/model/ListClouddcnSubnetsFilterTagsResponse.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsRequest.d.ts +12 -0
- package/v3/model/ListClouddcnSubnetsRequest.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsRequest.js +27 -0
- package/v3/model/ListClouddcnSubnetsRequest.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsResponse.d.ts +10 -0
- package/v3/model/ListClouddcnSubnetsResponse.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsResponse.js +21 -0
- package/v3/model/ListClouddcnSubnetsResponse.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsTagsRequest.d.ts +4 -0
- package/v3/model/ListClouddcnSubnetsTagsRequest.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsTagsRequest.js +9 -0
- package/v3/model/ListClouddcnSubnetsTagsRequest.js.map +1 -0
- package/v3/model/ListClouddcnSubnetsTagsResponse.d.ts +16 -0
- package/v3/model/ListClouddcnSubnetsTagsResponse.d.ts.map +1 -0
- package/v3/model/ListClouddcnSubnetsTagsResponse.js +35 -0
- package/v3/model/ListClouddcnSubnetsTagsResponse.js.map +1 -0
- package/v3/model/ListResourcesByTagsRequestBody.d.ts +7 -0
- package/v3/model/ListResourcesByTagsRequestBody.d.ts.map +1 -0
- package/v3/model/ListResourcesByTagsRequestBody.js +13 -0
- package/v3/model/ListResourcesByTagsRequestBody.js.map +1 -0
- package/v3/model/ResourceTags.d.ts +8 -0
- package/v3/model/ResourceTags.d.ts.map +1 -0
- package/v3/model/ResourceTags.js +19 -0
- package/v3/model/ResourceTags.js.map +1 -0
- package/v3/model/SecurityGroup.d.ts +4 -1
- package/v3/model/SecurityGroup.d.ts.map +1 -1
- package/v3/model/SecurityGroup.js +6 -1
- package/v3/model/SecurityGroup.js.map +1 -1
- package/v3/model/SecurityGroupInfo.d.ts +4 -1
- package/v3/model/SecurityGroupInfo.d.ts.map +1 -1
- package/v3/model/SecurityGroupInfo.js +6 -1
- package/v3/model/SecurityGroupInfo.js.map +1 -1
- package/v3/model/ShowClouddcnSubnetRequest.d.ts +8 -0
- package/v3/model/ShowClouddcnSubnetRequest.d.ts.map +1 -0
- package/v3/model/ShowClouddcnSubnetRequest.js +20 -0
- package/v3/model/ShowClouddcnSubnetRequest.js.map +1 -0
- package/v3/model/ShowClouddcnSubnetResponse.d.ts +10 -0
- package/v3/model/ShowClouddcnSubnetResponse.d.ts.map +1 -0
- package/v3/model/ShowClouddcnSubnetResponse.js +21 -0
- package/v3/model/ShowClouddcnSubnetResponse.js.map +1 -0
- package/v3/model/ShowClouddcnSubnetsTagsRequest.d.ts +8 -0
- package/v3/model/ShowClouddcnSubnetsTagsRequest.d.ts.map +1 -0
- package/v3/model/ShowClouddcnSubnetsTagsRequest.js +20 -0
- package/v3/model/ShowClouddcnSubnetsTagsRequest.js.map +1 -0
- package/v3/model/ShowClouddcnSubnetsTagsResponse.d.ts +17 -0
- package/v3/model/ShowClouddcnSubnetsTagsResponse.d.ts.map +1 -0
- package/v3/model/ShowClouddcnSubnetsTagsResponse.js +35 -0
- package/v3/model/ShowClouddcnSubnetsTagsResponse.js.map +1 -0
- package/v3/model/SysTag.d.ts +8 -0
- package/v3/model/SysTag.d.ts.map +1 -0
- package/v3/model/SysTag.js +19 -0
- package/v3/model/SysTag.js.map +1 -0
- package/v3/model/TagEntity.d.ts +8 -0
- package/v3/model/TagEntity.d.ts.map +1 -0
- package/v3/model/TagEntity.js +19 -0
- package/v3/model/TagEntity.js.map +1 -0
- package/v3/model/UpdateClouddcnSubnetOption.d.ts +8 -0
- package/v3/model/UpdateClouddcnSubnetOption.d.ts.map +1 -0
- package/v3/model/UpdateClouddcnSubnetOption.js +17 -0
- package/v3/model/UpdateClouddcnSubnetOption.js.map +1 -0
- package/v3/model/UpdateClouddcnSubnetRequest.d.ts +11 -0
- package/v3/model/UpdateClouddcnSubnetRequest.d.ts.map +1 -0
- package/v3/model/UpdateClouddcnSubnetRequest.js +24 -0
- package/v3/model/UpdateClouddcnSubnetRequest.js.map +1 -0
- package/v3/model/UpdateClouddcnSubnetRequestBody.d.ts +9 -0
- package/v3/model/UpdateClouddcnSubnetRequestBody.d.ts.map +1 -0
- package/v3/model/UpdateClouddcnSubnetRequestBody.js +20 -0
- package/v3/model/UpdateClouddcnSubnetRequestBody.js.map +1 -0
- package/v3/model/UpdateClouddcnSubnetResponse.d.ts +10 -0
- package/v3/model/UpdateClouddcnSubnetResponse.d.ts.map +1 -0
- package/v3/model/UpdateClouddcnSubnetResponse.js +21 -0
- package/v3/model/UpdateClouddcnSubnetResponse.js.map +1 -0
- package/v3/public-api.d.ts +44 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +44 -0
- package/v3/public-api.js.map +1 -1
package/v3/VpcClient.js
CHANGED
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RequiredError = exports.ParamCreater = exports.VpcClient = void 0;
|
|
4
4
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
|
5
|
+
const AddClouddcnSubnetsTagsRequest_1 = require("./model/AddClouddcnSubnetsTagsRequest");
|
|
5
6
|
const AddFirewallRulesRequest_1 = require("./model/AddFirewallRulesRequest");
|
|
6
7
|
const AddSecurityGroupsRequest_1 = require("./model/AddSecurityGroupsRequest");
|
|
7
8
|
const AddSourcesToTrafficMirrorSessionRequest_1 = require("./model/AddSourcesToTrafficMirrorSessionRequest");
|
|
8
9
|
const AddVpcExtendCidrRequest_1 = require("./model/AddVpcExtendCidrRequest");
|
|
9
10
|
const AssociateSubnetFirewallRequest_1 = require("./model/AssociateSubnetFirewallRequest");
|
|
11
|
+
const BatchCreateClouddcnSubnetsTagsRequest_1 = require("./model/BatchCreateClouddcnSubnetsTagsRequest");
|
|
10
12
|
const BatchCreateSecurityGroupRulesRequest_1 = require("./model/BatchCreateSecurityGroupRulesRequest");
|
|
11
13
|
const BatchCreateSubNetworkInterfaceRequest_1 = require("./model/BatchCreateSubNetworkInterfaceRequest");
|
|
14
|
+
const BatchDeleteClouddcnSubnetsTagsRequest_1 = require("./model/BatchDeleteClouddcnSubnetsTagsRequest");
|
|
12
15
|
const CreateAddressGroupRequest_1 = require("./model/CreateAddressGroupRequest");
|
|
16
|
+
const CreateClouddcnSubnetRequest_1 = require("./model/CreateClouddcnSubnetRequest");
|
|
13
17
|
const CreateFirewallRequest_1 = require("./model/CreateFirewallRequest");
|
|
14
18
|
const CreateSecurityGroupRequest_1 = require("./model/CreateSecurityGroupRequest");
|
|
15
19
|
const CreateSecurityGroupRuleRequest_1 = require("./model/CreateSecurityGroupRuleRequest");
|
|
@@ -19,6 +23,8 @@ const CreateTrafficMirrorFilterRuleRequest_1 = require("./model/CreateTrafficMir
|
|
|
19
23
|
const CreateTrafficMirrorSessionRequest_1 = require("./model/CreateTrafficMirrorSessionRequest");
|
|
20
24
|
const CreateVpcRequest_1 = require("./model/CreateVpcRequest");
|
|
21
25
|
const DeleteAddressGroupRequest_1 = require("./model/DeleteAddressGroupRequest");
|
|
26
|
+
const DeleteClouddcnSubnetRequest_1 = require("./model/DeleteClouddcnSubnetRequest");
|
|
27
|
+
const DeleteClouddcnSubnetsTagRequest_1 = require("./model/DeleteClouddcnSubnetsTagRequest");
|
|
22
28
|
const DeleteFirewallRequest_1 = require("./model/DeleteFirewallRequest");
|
|
23
29
|
const DeleteIpAddressGroupForceRequest_1 = require("./model/DeleteIpAddressGroupForceRequest");
|
|
24
30
|
const DeleteSecurityGroupRequest_1 = require("./model/DeleteSecurityGroupRequest");
|
|
@@ -30,6 +36,9 @@ const DeleteTrafficMirrorSessionRequest_1 = require("./model/DeleteTrafficMirror
|
|
|
30
36
|
const DeleteVpcRequest_1 = require("./model/DeleteVpcRequest");
|
|
31
37
|
const DisassociateSubnetFirewallRequest_1 = require("./model/DisassociateSubnetFirewallRequest");
|
|
32
38
|
const ListAddressGroupRequest_1 = require("./model/ListAddressGroupRequest");
|
|
39
|
+
const ListClouddcnSubnetsCountFilterTagsRequest_1 = require("./model/ListClouddcnSubnetsCountFilterTagsRequest");
|
|
40
|
+
const ListClouddcnSubnetsFilterTagsRequest_1 = require("./model/ListClouddcnSubnetsFilterTagsRequest");
|
|
41
|
+
const ListClouddcnSubnetsRequest_1 = require("./model/ListClouddcnSubnetsRequest");
|
|
33
42
|
const ListFirewallRequest_1 = require("./model/ListFirewallRequest");
|
|
34
43
|
const ListSecurityGroupRulesRequest_1 = require("./model/ListSecurityGroupRulesRequest");
|
|
35
44
|
const ListSecurityGroupsRequest_1 = require("./model/ListSecurityGroupsRequest");
|
|
@@ -44,6 +53,8 @@ const RemoveSecurityGroupsRequest_1 = require("./model/RemoveSecurityGroupsReque
|
|
|
44
53
|
const RemoveSourcesFromTrafficMirrorSessionRequest_1 = require("./model/RemoveSourcesFromTrafficMirrorSessionRequest");
|
|
45
54
|
const RemoveVpcExtendCidrRequest_1 = require("./model/RemoveVpcExtendCidrRequest");
|
|
46
55
|
const ShowAddressGroupRequest_1 = require("./model/ShowAddressGroupRequest");
|
|
56
|
+
const ShowClouddcnSubnetRequest_1 = require("./model/ShowClouddcnSubnetRequest");
|
|
57
|
+
const ShowClouddcnSubnetsTagsRequest_1 = require("./model/ShowClouddcnSubnetsTagsRequest");
|
|
47
58
|
const ShowFirewallRequest_1 = require("./model/ShowFirewallRequest");
|
|
48
59
|
const ShowSecurityGroupRequest_1 = require("./model/ShowSecurityGroupRequest");
|
|
49
60
|
const ShowSecurityGroupRuleRequest_1 = require("./model/ShowSecurityGroupRuleRequest");
|
|
@@ -53,6 +64,7 @@ const ShowTrafficMirrorFilterRuleRequest_1 = require("./model/ShowTrafficMirrorF
|
|
|
53
64
|
const ShowTrafficMirrorSessionRequest_1 = require("./model/ShowTrafficMirrorSessionRequest");
|
|
54
65
|
const ShowVpcRequest_1 = require("./model/ShowVpcRequest");
|
|
55
66
|
const UpdateAddressGroupRequest_1 = require("./model/UpdateAddressGroupRequest");
|
|
67
|
+
const UpdateClouddcnSubnetRequest_1 = require("./model/UpdateClouddcnSubnetRequest");
|
|
56
68
|
const UpdateFirewallRequest_1 = require("./model/UpdateFirewallRequest");
|
|
57
69
|
const UpdateFirewallRulesRequest_1 = require("./model/UpdateFirewallRulesRequest");
|
|
58
70
|
const UpdateSecurityGroupRequest_1 = require("./model/UpdateSecurityGroupRequest");
|
|
@@ -898,6 +910,222 @@ class VpcClient {
|
|
|
898
910
|
options['responseHeaders'] = [''];
|
|
899
911
|
return this.hcClient.sendRequest(options);
|
|
900
912
|
}
|
|
913
|
+
/**
|
|
914
|
+
* 添加Clouddcn子网的标签
|
|
915
|
+
*
|
|
916
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
917
|
+
*
|
|
918
|
+
* @summary 添加Clouddcn子网标签
|
|
919
|
+
* @param {string} resourceId Clouddcn子网的id
|
|
920
|
+
* @param {AddResourceTagsRequestBody} addClouddcnSubnetsTagsRequestBody 创建clouddcn子网对象
|
|
921
|
+
* @param {*} [options] Override http request option.
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
*/
|
|
924
|
+
addClouddcnSubnetsTags(addClouddcnSubnetsTagsRequest) {
|
|
925
|
+
const options = (0, exports.ParamCreater)().addClouddcnSubnetsTags(addClouddcnSubnetsTagsRequest);
|
|
926
|
+
// @ts-ignore
|
|
927
|
+
options['responseHeaders'] = [''];
|
|
928
|
+
return this.hcClient.sendRequest(options);
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* 批量添加Clouddcn子网的标签
|
|
932
|
+
*
|
|
933
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
934
|
+
*
|
|
935
|
+
* @summary 批量添加Clouddcn子网标签
|
|
936
|
+
* @param {string} resourceId Clouddcn子网的id
|
|
937
|
+
* @param {BatchCreateRequestBody} listResourcesByTagsRequestBody 查询资源实例列表请求体
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
*/
|
|
941
|
+
batchCreateClouddcnSubnetsTags(batchCreateClouddcnSubnetsTagsRequest) {
|
|
942
|
+
const options = (0, exports.ParamCreater)().batchCreateClouddcnSubnetsTags(batchCreateClouddcnSubnetsTagsRequest);
|
|
943
|
+
// @ts-ignore
|
|
944
|
+
options['responseHeaders'] = [''];
|
|
945
|
+
return this.hcClient.sendRequest(options);
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* 批量删除Clouddcn子网的标签
|
|
949
|
+
*
|
|
950
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
951
|
+
*
|
|
952
|
+
* @summary 批量删除Clouddcn子网标签
|
|
953
|
+
* @param {string} resourceId Clouddcn子网的id
|
|
954
|
+
* @param {BatchDeleteRequestBody} batchDeleteClouddcnSubnetsTagsRequestBody 查询资源实例列表请求体
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
batchDeleteClouddcnSubnetsTags(batchDeleteClouddcnSubnetsTagsRequest) {
|
|
959
|
+
const options = (0, exports.ParamCreater)().batchDeleteClouddcnSubnetsTags(batchDeleteClouddcnSubnetsTagsRequest);
|
|
960
|
+
// @ts-ignore
|
|
961
|
+
options['responseHeaders'] = [''];
|
|
962
|
+
return this.hcClient.sendRequest(options);
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* 创建clouddcn子网。
|
|
966
|
+
*
|
|
967
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
968
|
+
*
|
|
969
|
+
* @summary 创建clouddcn子网
|
|
970
|
+
* @param {CreateClouddcnSubnetRequestBody} createClouddcnSubnetRequestBody 创建clouddcn子网对象
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
createClouddcnSubnet(createClouddcnSubnetRequest) {
|
|
975
|
+
const options = (0, exports.ParamCreater)().createClouddcnSubnet(createClouddcnSubnetRequest);
|
|
976
|
+
// @ts-ignore
|
|
977
|
+
options['responseHeaders'] = [''];
|
|
978
|
+
return this.hcClient.sendRequest(options);
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
* 删除clouddcn子网
|
|
982
|
+
*
|
|
983
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
984
|
+
*
|
|
985
|
+
* @summary 删除clouddcn子网
|
|
986
|
+
* @param {string} clouddcnSubnetId clouddcn子网ID
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
*/
|
|
990
|
+
deleteClouddcnSubnet(deleteClouddcnSubnetRequest) {
|
|
991
|
+
const options = (0, exports.ParamCreater)().deleteClouddcnSubnet(deleteClouddcnSubnetRequest);
|
|
992
|
+
// @ts-ignore
|
|
993
|
+
options['responseHeaders'] = [''];
|
|
994
|
+
return this.hcClient.sendRequest(options);
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* 删除Clouddcn子网的标签
|
|
998
|
+
*
|
|
999
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1000
|
+
*
|
|
1001
|
+
* @summary 删除Clouddcn子网标签
|
|
1002
|
+
* @param {string} resourceId Clouddcn子网的id
|
|
1003
|
+
* @param {string} tagKey 待删除标签的key
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
*/
|
|
1007
|
+
deleteClouddcnSubnetsTag(deleteClouddcnSubnetsTagRequest) {
|
|
1008
|
+
const options = (0, exports.ParamCreater)().deleteClouddcnSubnetsTag(deleteClouddcnSubnetsTagRequest);
|
|
1009
|
+
// @ts-ignore
|
|
1010
|
+
options['responseHeaders'] = [''];
|
|
1011
|
+
return this.hcClient.sendRequest(options);
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* 查询clouddcn子网列表
|
|
1015
|
+
*
|
|
1016
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1017
|
+
*
|
|
1018
|
+
* @summary 查询clouddcn子网列表
|
|
1019
|
+
* @param {number} [limit] 每页返回的个数
|
|
1020
|
+
* @param {string} [marker] 分页查询起始的资源id,为空时查询第一页
|
|
1021
|
+
* @param {string} [vpcId] 按照vpc_id过滤查询 企业项目细粒度授权场景下,该字段必传
|
|
1022
|
+
* @param {*} [options] Override http request option.
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
*/
|
|
1025
|
+
listClouddcnSubnets(listClouddcnSubnetsRequest) {
|
|
1026
|
+
const options = (0, exports.ParamCreater)().listClouddcnSubnets(listClouddcnSubnetsRequest);
|
|
1027
|
+
// @ts-ignore
|
|
1028
|
+
options['responseHeaders'] = [''];
|
|
1029
|
+
return this.hcClient.sendRequest(options);
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* 查询资源实例列表数目
|
|
1033
|
+
*
|
|
1034
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1035
|
+
*
|
|
1036
|
+
* @summary 查询资源实例列表数目
|
|
1037
|
+
* @param {ListResourcesByTagsRequestBody} listResourcesByTagsRequestBody 查询资源实例列表请求体
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
*/
|
|
1041
|
+
listClouddcnSubnetsCountFilterTags(listClouddcnSubnetsCountFilterTagsRequest) {
|
|
1042
|
+
const options = (0, exports.ParamCreater)().listClouddcnSubnetsCountFilterTags(listClouddcnSubnetsCountFilterTagsRequest);
|
|
1043
|
+
// @ts-ignore
|
|
1044
|
+
options['responseHeaders'] = [''];
|
|
1045
|
+
return this.hcClient.sendRequest(options);
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* 查询资源实例列表
|
|
1049
|
+
*
|
|
1050
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1051
|
+
*
|
|
1052
|
+
* @summary 查询资源实例列表
|
|
1053
|
+
* @param {ListResourcesByTagsRequestBody} listResourcesByTagsRequestBody 查询资源实例列表请求体
|
|
1054
|
+
* @param {number} [limit] 每页返回的个数
|
|
1055
|
+
* @param {number} [offset] 分页起始点
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
listClouddcnSubnetsFilterTags(listClouddcnSubnetsFilterTagsRequest) {
|
|
1060
|
+
const options = (0, exports.ParamCreater)().listClouddcnSubnetsFilterTags(listClouddcnSubnetsFilterTagsRequest);
|
|
1061
|
+
// @ts-ignore
|
|
1062
|
+
options['responseHeaders'] = [''];
|
|
1063
|
+
return this.hcClient.sendRequest(options);
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* 查询Clouddcn子网的项目标签
|
|
1067
|
+
*
|
|
1068
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1069
|
+
*
|
|
1070
|
+
* @summary 查询Clouddcn子网项目标签
|
|
1071
|
+
* @param {*} [options] Override http request option.
|
|
1072
|
+
* @throws {RequiredError}
|
|
1073
|
+
*/
|
|
1074
|
+
listClouddcnSubnetsTags(listClouddcnSubnetsTagsRequest) {
|
|
1075
|
+
const options = (0, exports.ParamCreater)().listClouddcnSubnetsTags();
|
|
1076
|
+
// @ts-ignore
|
|
1077
|
+
options['responseHeaders'] = [''];
|
|
1078
|
+
return this.hcClient.sendRequest(options);
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* 查询clouddcn子网详情。
|
|
1082
|
+
*
|
|
1083
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1084
|
+
*
|
|
1085
|
+
* @summary 查询clouddcn子网
|
|
1086
|
+
* @param {string} clouddcnSubnetId clouddcn子网ID
|
|
1087
|
+
* @param {*} [options] Override http request option.
|
|
1088
|
+
* @throws {RequiredError}
|
|
1089
|
+
*/
|
|
1090
|
+
showClouddcnSubnet(showClouddcnSubnetRequest) {
|
|
1091
|
+
const options = (0, exports.ParamCreater)().showClouddcnSubnet(showClouddcnSubnetRequest);
|
|
1092
|
+
// @ts-ignore
|
|
1093
|
+
options['responseHeaders'] = [''];
|
|
1094
|
+
return this.hcClient.sendRequest(options);
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* 查询Clouddcn子网的标签
|
|
1098
|
+
*
|
|
1099
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1100
|
+
*
|
|
1101
|
+
* @summary 查询Clouddcn子网标签
|
|
1102
|
+
* @param {string} resourceId Clouddcn子网的id
|
|
1103
|
+
* @param {*} [options] Override http request option.
|
|
1104
|
+
* @throws {RequiredError}
|
|
1105
|
+
*/
|
|
1106
|
+
showClouddcnSubnetsTags(showClouddcnSubnetsTagsRequest) {
|
|
1107
|
+
const options = (0, exports.ParamCreater)().showClouddcnSubnetsTags(showClouddcnSubnetsTagsRequest);
|
|
1108
|
+
// @ts-ignore
|
|
1109
|
+
options['responseHeaders'] = [''];
|
|
1110
|
+
return this.hcClient.sendRequest(options);
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* 更新clouddcn子网。
|
|
1114
|
+
*
|
|
1115
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1116
|
+
*
|
|
1117
|
+
* @summary 更新clouddcn子网
|
|
1118
|
+
* @param {string} clouddcnSubnetId clouddcn子网ID
|
|
1119
|
+
* @param {UpdateClouddcnSubnetRequestBody} updateClouddcnSubnetRequestBody 更新clouddcn子网对象
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
updateClouddcnSubnet(updateClouddcnSubnetRequest) {
|
|
1124
|
+
const options = (0, exports.ParamCreater)().updateClouddcnSubnet(updateClouddcnSubnetRequest);
|
|
1125
|
+
// @ts-ignore
|
|
1126
|
+
options['responseHeaders'] = [''];
|
|
1127
|
+
return this.hcClient.sendRequest(options);
|
|
1128
|
+
}
|
|
901
1129
|
/**
|
|
902
1130
|
* 创建地址组
|
|
903
1131
|
*
|
|
@@ -3098,6 +3326,471 @@ const ParamCreater = function () {
|
|
|
3098
3326
|
options.headers = localVarHeaderParameter;
|
|
3099
3327
|
return options;
|
|
3100
3328
|
},
|
|
3329
|
+
/**
|
|
3330
|
+
* 添加Clouddcn子网的标签
|
|
3331
|
+
*
|
|
3332
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3333
|
+
*/
|
|
3334
|
+
addClouddcnSubnetsTags(addClouddcnSubnetsTagsRequest) {
|
|
3335
|
+
const options = {
|
|
3336
|
+
method: "POST",
|
|
3337
|
+
url: "/v3/{project_id}/clouddcn-subnets/{resource_id}/tags",
|
|
3338
|
+
contentType: "application/json",
|
|
3339
|
+
queryParams: {},
|
|
3340
|
+
pathParams: {},
|
|
3341
|
+
headers: {},
|
|
3342
|
+
data: {}
|
|
3343
|
+
};
|
|
3344
|
+
const localVarHeaderParameter = {};
|
|
3345
|
+
let body;
|
|
3346
|
+
let resourceId;
|
|
3347
|
+
if (addClouddcnSubnetsTagsRequest !== null && addClouddcnSubnetsTagsRequest !== undefined) {
|
|
3348
|
+
if (addClouddcnSubnetsTagsRequest instanceof AddClouddcnSubnetsTagsRequest_1.AddClouddcnSubnetsTagsRequest) {
|
|
3349
|
+
resourceId = addClouddcnSubnetsTagsRequest.resourceId;
|
|
3350
|
+
body = addClouddcnSubnetsTagsRequest.body;
|
|
3351
|
+
}
|
|
3352
|
+
else {
|
|
3353
|
+
resourceId = addClouddcnSubnetsTagsRequest['resource_id'];
|
|
3354
|
+
body = addClouddcnSubnetsTagsRequest['body'];
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
if (resourceId === null || resourceId === undefined) {
|
|
3358
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling addClouddcnSubnetsTags.');
|
|
3359
|
+
}
|
|
3360
|
+
if (body === null || body === undefined) {
|
|
3361
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3362
|
+
}
|
|
3363
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3364
|
+
options.data = body !== undefined ? body : {};
|
|
3365
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
3366
|
+
options.headers = localVarHeaderParameter;
|
|
3367
|
+
return options;
|
|
3368
|
+
},
|
|
3369
|
+
/**
|
|
3370
|
+
* 批量添加Clouddcn子网的标签
|
|
3371
|
+
*
|
|
3372
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3373
|
+
*/
|
|
3374
|
+
batchCreateClouddcnSubnetsTags(batchCreateClouddcnSubnetsTagsRequest) {
|
|
3375
|
+
const options = {
|
|
3376
|
+
method: "POST",
|
|
3377
|
+
url: "/v3/{project_id}/clouddcn-subnets/{resource_id}/tags/create",
|
|
3378
|
+
contentType: "application/json",
|
|
3379
|
+
queryParams: {},
|
|
3380
|
+
pathParams: {},
|
|
3381
|
+
headers: {},
|
|
3382
|
+
data: {}
|
|
3383
|
+
};
|
|
3384
|
+
const localVarHeaderParameter = {};
|
|
3385
|
+
let body;
|
|
3386
|
+
let resourceId;
|
|
3387
|
+
if (batchCreateClouddcnSubnetsTagsRequest !== null && batchCreateClouddcnSubnetsTagsRequest !== undefined) {
|
|
3388
|
+
if (batchCreateClouddcnSubnetsTagsRequest instanceof BatchCreateClouddcnSubnetsTagsRequest_1.BatchCreateClouddcnSubnetsTagsRequest) {
|
|
3389
|
+
resourceId = batchCreateClouddcnSubnetsTagsRequest.resourceId;
|
|
3390
|
+
body = batchCreateClouddcnSubnetsTagsRequest.body;
|
|
3391
|
+
}
|
|
3392
|
+
else {
|
|
3393
|
+
resourceId = batchCreateClouddcnSubnetsTagsRequest['resource_id'];
|
|
3394
|
+
body = batchCreateClouddcnSubnetsTagsRequest['body'];
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
if (resourceId === null || resourceId === undefined) {
|
|
3398
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling batchCreateClouddcnSubnetsTags.');
|
|
3399
|
+
}
|
|
3400
|
+
if (body === null || body === undefined) {
|
|
3401
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3402
|
+
}
|
|
3403
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3404
|
+
options.data = body !== undefined ? body : {};
|
|
3405
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
3406
|
+
options.headers = localVarHeaderParameter;
|
|
3407
|
+
return options;
|
|
3408
|
+
},
|
|
3409
|
+
/**
|
|
3410
|
+
* 批量删除Clouddcn子网的标签
|
|
3411
|
+
*
|
|
3412
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3413
|
+
*/
|
|
3414
|
+
batchDeleteClouddcnSubnetsTags(batchDeleteClouddcnSubnetsTagsRequest) {
|
|
3415
|
+
const options = {
|
|
3416
|
+
method: "POST",
|
|
3417
|
+
url: "/v3/{project_id}/clouddcn-subnets/{resource_id}/tags/delete",
|
|
3418
|
+
contentType: "application/json",
|
|
3419
|
+
queryParams: {},
|
|
3420
|
+
pathParams: {},
|
|
3421
|
+
headers: {},
|
|
3422
|
+
data: {}
|
|
3423
|
+
};
|
|
3424
|
+
const localVarHeaderParameter = {};
|
|
3425
|
+
let body;
|
|
3426
|
+
let resourceId;
|
|
3427
|
+
if (batchDeleteClouddcnSubnetsTagsRequest !== null && batchDeleteClouddcnSubnetsTagsRequest !== undefined) {
|
|
3428
|
+
if (batchDeleteClouddcnSubnetsTagsRequest instanceof BatchDeleteClouddcnSubnetsTagsRequest_1.BatchDeleteClouddcnSubnetsTagsRequest) {
|
|
3429
|
+
resourceId = batchDeleteClouddcnSubnetsTagsRequest.resourceId;
|
|
3430
|
+
body = batchDeleteClouddcnSubnetsTagsRequest.body;
|
|
3431
|
+
}
|
|
3432
|
+
else {
|
|
3433
|
+
resourceId = batchDeleteClouddcnSubnetsTagsRequest['resource_id'];
|
|
3434
|
+
body = batchDeleteClouddcnSubnetsTagsRequest['body'];
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
if (resourceId === null || resourceId === undefined) {
|
|
3438
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling batchDeleteClouddcnSubnetsTags.');
|
|
3439
|
+
}
|
|
3440
|
+
if (body === null || body === undefined) {
|
|
3441
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3442
|
+
}
|
|
3443
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3444
|
+
options.data = body !== undefined ? body : {};
|
|
3445
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
3446
|
+
options.headers = localVarHeaderParameter;
|
|
3447
|
+
return options;
|
|
3448
|
+
},
|
|
3449
|
+
/**
|
|
3450
|
+
* 创建clouddcn子网。
|
|
3451
|
+
*
|
|
3452
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3453
|
+
*/
|
|
3454
|
+
createClouddcnSubnet(createClouddcnSubnetRequest) {
|
|
3455
|
+
const options = {
|
|
3456
|
+
method: "POST",
|
|
3457
|
+
url: "/v3/{project_id}/vpc/clouddcn-subnets",
|
|
3458
|
+
contentType: "application/json",
|
|
3459
|
+
queryParams: {},
|
|
3460
|
+
pathParams: {},
|
|
3461
|
+
headers: {},
|
|
3462
|
+
data: {}
|
|
3463
|
+
};
|
|
3464
|
+
const localVarHeaderParameter = {};
|
|
3465
|
+
let body;
|
|
3466
|
+
if (createClouddcnSubnetRequest !== null && createClouddcnSubnetRequest !== undefined) {
|
|
3467
|
+
if (createClouddcnSubnetRequest instanceof CreateClouddcnSubnetRequest_1.CreateClouddcnSubnetRequest) {
|
|
3468
|
+
body = createClouddcnSubnetRequest.body;
|
|
3469
|
+
}
|
|
3470
|
+
else {
|
|
3471
|
+
body = createClouddcnSubnetRequest['body'];
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
if (body === null || body === undefined) {
|
|
3475
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3476
|
+
}
|
|
3477
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3478
|
+
options.data = body !== undefined ? body : {};
|
|
3479
|
+
options.headers = localVarHeaderParameter;
|
|
3480
|
+
return options;
|
|
3481
|
+
},
|
|
3482
|
+
/**
|
|
3483
|
+
* 删除clouddcn子网
|
|
3484
|
+
*
|
|
3485
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3486
|
+
*/
|
|
3487
|
+
deleteClouddcnSubnet(deleteClouddcnSubnetRequest) {
|
|
3488
|
+
const options = {
|
|
3489
|
+
method: "DELETE",
|
|
3490
|
+
url: "/v3/{project_id}/vpc/clouddcn-subnets/{clouddcn_subnet_id}",
|
|
3491
|
+
contentType: "application/json",
|
|
3492
|
+
queryParams: {},
|
|
3493
|
+
pathParams: {},
|
|
3494
|
+
headers: {}
|
|
3495
|
+
};
|
|
3496
|
+
const localVarHeaderParameter = {};
|
|
3497
|
+
let clouddcnSubnetId;
|
|
3498
|
+
if (deleteClouddcnSubnetRequest !== null && deleteClouddcnSubnetRequest !== undefined) {
|
|
3499
|
+
if (deleteClouddcnSubnetRequest instanceof DeleteClouddcnSubnetRequest_1.DeleteClouddcnSubnetRequest) {
|
|
3500
|
+
clouddcnSubnetId = deleteClouddcnSubnetRequest.clouddcnSubnetId;
|
|
3501
|
+
}
|
|
3502
|
+
else {
|
|
3503
|
+
clouddcnSubnetId = deleteClouddcnSubnetRequest['clouddcn_subnet_id'];
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
if (clouddcnSubnetId === null || clouddcnSubnetId === undefined) {
|
|
3507
|
+
throw new RequiredError('clouddcnSubnetId', 'Required parameter clouddcnSubnetId was null or undefined when calling deleteClouddcnSubnet.');
|
|
3508
|
+
}
|
|
3509
|
+
options.pathParams = { 'clouddcn_subnet_id': clouddcnSubnetId, };
|
|
3510
|
+
options.headers = localVarHeaderParameter;
|
|
3511
|
+
return options;
|
|
3512
|
+
},
|
|
3513
|
+
/**
|
|
3514
|
+
* 删除Clouddcn子网的标签
|
|
3515
|
+
*
|
|
3516
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3517
|
+
*/
|
|
3518
|
+
deleteClouddcnSubnetsTag(deleteClouddcnSubnetsTagRequest) {
|
|
3519
|
+
const options = {
|
|
3520
|
+
method: "DELETE",
|
|
3521
|
+
url: "/v3/{project_id}/clouddcn-subnets/{resource_id}/tags/{tag_key}",
|
|
3522
|
+
contentType: "application/json",
|
|
3523
|
+
queryParams: {},
|
|
3524
|
+
pathParams: {},
|
|
3525
|
+
headers: {}
|
|
3526
|
+
};
|
|
3527
|
+
const localVarHeaderParameter = {};
|
|
3528
|
+
let resourceId;
|
|
3529
|
+
let tagKey;
|
|
3530
|
+
if (deleteClouddcnSubnetsTagRequest !== null && deleteClouddcnSubnetsTagRequest !== undefined) {
|
|
3531
|
+
if (deleteClouddcnSubnetsTagRequest instanceof DeleteClouddcnSubnetsTagRequest_1.DeleteClouddcnSubnetsTagRequest) {
|
|
3532
|
+
resourceId = deleteClouddcnSubnetsTagRequest.resourceId;
|
|
3533
|
+
tagKey = deleteClouddcnSubnetsTagRequest.tagKey;
|
|
3534
|
+
}
|
|
3535
|
+
else {
|
|
3536
|
+
resourceId = deleteClouddcnSubnetsTagRequest['resource_id'];
|
|
3537
|
+
tagKey = deleteClouddcnSubnetsTagRequest['tag_key'];
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
if (resourceId === null || resourceId === undefined) {
|
|
3541
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling deleteClouddcnSubnetsTag.');
|
|
3542
|
+
}
|
|
3543
|
+
if (tagKey === null || tagKey === undefined) {
|
|
3544
|
+
throw new RequiredError('tagKey', 'Required parameter tagKey was null or undefined when calling deleteClouddcnSubnetsTag.');
|
|
3545
|
+
}
|
|
3546
|
+
options.pathParams = { 'resource_id': resourceId, 'tag_key': tagKey, };
|
|
3547
|
+
options.headers = localVarHeaderParameter;
|
|
3548
|
+
return options;
|
|
3549
|
+
},
|
|
3550
|
+
/**
|
|
3551
|
+
* 查询clouddcn子网列表
|
|
3552
|
+
*
|
|
3553
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3554
|
+
*/
|
|
3555
|
+
listClouddcnSubnets(listClouddcnSubnetsRequest) {
|
|
3556
|
+
const options = {
|
|
3557
|
+
method: "GET",
|
|
3558
|
+
url: "/v3/{project_id}/vpc/clouddcn-subnets",
|
|
3559
|
+
contentType: "application/json",
|
|
3560
|
+
queryParams: {},
|
|
3561
|
+
pathParams: {},
|
|
3562
|
+
headers: {}
|
|
3563
|
+
};
|
|
3564
|
+
const localVarHeaderParameter = {};
|
|
3565
|
+
const localVarQueryParameter = {};
|
|
3566
|
+
let limit;
|
|
3567
|
+
let marker;
|
|
3568
|
+
let vpcId;
|
|
3569
|
+
if (listClouddcnSubnetsRequest !== null && listClouddcnSubnetsRequest !== undefined) {
|
|
3570
|
+
if (listClouddcnSubnetsRequest instanceof ListClouddcnSubnetsRequest_1.ListClouddcnSubnetsRequest) {
|
|
3571
|
+
limit = listClouddcnSubnetsRequest.limit;
|
|
3572
|
+
marker = listClouddcnSubnetsRequest.marker;
|
|
3573
|
+
vpcId = listClouddcnSubnetsRequest.vpcId;
|
|
3574
|
+
}
|
|
3575
|
+
else {
|
|
3576
|
+
limit = listClouddcnSubnetsRequest['limit'];
|
|
3577
|
+
marker = listClouddcnSubnetsRequest['marker'];
|
|
3578
|
+
vpcId = listClouddcnSubnetsRequest['vpc_id'];
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
if (limit !== null && limit !== undefined) {
|
|
3582
|
+
localVarQueryParameter['limit'] = limit;
|
|
3583
|
+
}
|
|
3584
|
+
if (marker !== null && marker !== undefined) {
|
|
3585
|
+
localVarQueryParameter['marker'] = marker;
|
|
3586
|
+
}
|
|
3587
|
+
if (vpcId !== null && vpcId !== undefined) {
|
|
3588
|
+
localVarQueryParameter['vpc_id'] = vpcId;
|
|
3589
|
+
}
|
|
3590
|
+
options.queryParams = localVarQueryParameter;
|
|
3591
|
+
options.headers = localVarHeaderParameter;
|
|
3592
|
+
return options;
|
|
3593
|
+
},
|
|
3594
|
+
/**
|
|
3595
|
+
* 查询资源实例列表数目
|
|
3596
|
+
*
|
|
3597
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3598
|
+
*/
|
|
3599
|
+
listClouddcnSubnetsCountFilterTags(listClouddcnSubnetsCountFilterTagsRequest) {
|
|
3600
|
+
const options = {
|
|
3601
|
+
method: "POST",
|
|
3602
|
+
url: "/v3/{project_id}/clouddcn-subnets/resource-instances/count",
|
|
3603
|
+
contentType: "application/json",
|
|
3604
|
+
queryParams: {},
|
|
3605
|
+
pathParams: {},
|
|
3606
|
+
headers: {},
|
|
3607
|
+
data: {}
|
|
3608
|
+
};
|
|
3609
|
+
const localVarHeaderParameter = {};
|
|
3610
|
+
let body;
|
|
3611
|
+
if (listClouddcnSubnetsCountFilterTagsRequest !== null && listClouddcnSubnetsCountFilterTagsRequest !== undefined) {
|
|
3612
|
+
if (listClouddcnSubnetsCountFilterTagsRequest instanceof ListClouddcnSubnetsCountFilterTagsRequest_1.ListClouddcnSubnetsCountFilterTagsRequest) {
|
|
3613
|
+
body = listClouddcnSubnetsCountFilterTagsRequest.body;
|
|
3614
|
+
}
|
|
3615
|
+
else {
|
|
3616
|
+
body = listClouddcnSubnetsCountFilterTagsRequest['body'];
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
if (body === null || body === undefined) {
|
|
3620
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3621
|
+
}
|
|
3622
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3623
|
+
options.data = body !== undefined ? body : {};
|
|
3624
|
+
options.headers = localVarHeaderParameter;
|
|
3625
|
+
return options;
|
|
3626
|
+
},
|
|
3627
|
+
/**
|
|
3628
|
+
* 查询资源实例列表
|
|
3629
|
+
*
|
|
3630
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3631
|
+
*/
|
|
3632
|
+
listClouddcnSubnetsFilterTags(listClouddcnSubnetsFilterTagsRequest) {
|
|
3633
|
+
const options = {
|
|
3634
|
+
method: "POST",
|
|
3635
|
+
url: "/v3/{project_id}/clouddcn-subnets/resource-instances/filter",
|
|
3636
|
+
contentType: "application/json",
|
|
3637
|
+
queryParams: {},
|
|
3638
|
+
pathParams: {},
|
|
3639
|
+
headers: {},
|
|
3640
|
+
data: {}
|
|
3641
|
+
};
|
|
3642
|
+
const localVarHeaderParameter = {};
|
|
3643
|
+
const localVarQueryParameter = {};
|
|
3644
|
+
let body;
|
|
3645
|
+
let limit;
|
|
3646
|
+
let offset;
|
|
3647
|
+
if (listClouddcnSubnetsFilterTagsRequest !== null && listClouddcnSubnetsFilterTagsRequest !== undefined) {
|
|
3648
|
+
if (listClouddcnSubnetsFilterTagsRequest instanceof ListClouddcnSubnetsFilterTagsRequest_1.ListClouddcnSubnetsFilterTagsRequest) {
|
|
3649
|
+
body = listClouddcnSubnetsFilterTagsRequest.body;
|
|
3650
|
+
limit = listClouddcnSubnetsFilterTagsRequest.limit;
|
|
3651
|
+
offset = listClouddcnSubnetsFilterTagsRequest.offset;
|
|
3652
|
+
}
|
|
3653
|
+
else {
|
|
3654
|
+
body = listClouddcnSubnetsFilterTagsRequest['body'];
|
|
3655
|
+
limit = listClouddcnSubnetsFilterTagsRequest['limit'];
|
|
3656
|
+
offset = listClouddcnSubnetsFilterTagsRequest['offset'];
|
|
3657
|
+
}
|
|
3658
|
+
}
|
|
3659
|
+
if (body === null || body === undefined) {
|
|
3660
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3661
|
+
}
|
|
3662
|
+
if (limit !== null && limit !== undefined) {
|
|
3663
|
+
localVarQueryParameter['limit'] = limit;
|
|
3664
|
+
}
|
|
3665
|
+
if (offset !== null && offset !== undefined) {
|
|
3666
|
+
localVarQueryParameter['offset'] = offset;
|
|
3667
|
+
}
|
|
3668
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3669
|
+
options.data = body !== undefined ? body : {};
|
|
3670
|
+
options.queryParams = localVarQueryParameter;
|
|
3671
|
+
options.headers = localVarHeaderParameter;
|
|
3672
|
+
return options;
|
|
3673
|
+
},
|
|
3674
|
+
/**
|
|
3675
|
+
* 查询Clouddcn子网的项目标签
|
|
3676
|
+
*
|
|
3677
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3678
|
+
*/
|
|
3679
|
+
listClouddcnSubnetsTags() {
|
|
3680
|
+
const options = {
|
|
3681
|
+
method: "GET",
|
|
3682
|
+
url: "/v3/{project_id}/clouddcn-subnets/tags",
|
|
3683
|
+
contentType: "application/json",
|
|
3684
|
+
queryParams: {},
|
|
3685
|
+
pathParams: {},
|
|
3686
|
+
headers: {}
|
|
3687
|
+
};
|
|
3688
|
+
const localVarHeaderParameter = {};
|
|
3689
|
+
options.headers = localVarHeaderParameter;
|
|
3690
|
+
return options;
|
|
3691
|
+
},
|
|
3692
|
+
/**
|
|
3693
|
+
* 查询clouddcn子网详情。
|
|
3694
|
+
*
|
|
3695
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3696
|
+
*/
|
|
3697
|
+
showClouddcnSubnet(showClouddcnSubnetRequest) {
|
|
3698
|
+
const options = {
|
|
3699
|
+
method: "GET",
|
|
3700
|
+
url: "/v3/{project_id}/vpc/clouddcn-subnets/{clouddcn_subnet_id}",
|
|
3701
|
+
contentType: "application/json",
|
|
3702
|
+
queryParams: {},
|
|
3703
|
+
pathParams: {},
|
|
3704
|
+
headers: {}
|
|
3705
|
+
};
|
|
3706
|
+
const localVarHeaderParameter = {};
|
|
3707
|
+
let clouddcnSubnetId;
|
|
3708
|
+
if (showClouddcnSubnetRequest !== null && showClouddcnSubnetRequest !== undefined) {
|
|
3709
|
+
if (showClouddcnSubnetRequest instanceof ShowClouddcnSubnetRequest_1.ShowClouddcnSubnetRequest) {
|
|
3710
|
+
clouddcnSubnetId = showClouddcnSubnetRequest.clouddcnSubnetId;
|
|
3711
|
+
}
|
|
3712
|
+
else {
|
|
3713
|
+
clouddcnSubnetId = showClouddcnSubnetRequest['clouddcn_subnet_id'];
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
if (clouddcnSubnetId === null || clouddcnSubnetId === undefined) {
|
|
3717
|
+
throw new RequiredError('clouddcnSubnetId', 'Required parameter clouddcnSubnetId was null or undefined when calling showClouddcnSubnet.');
|
|
3718
|
+
}
|
|
3719
|
+
options.pathParams = { 'clouddcn_subnet_id': clouddcnSubnetId, };
|
|
3720
|
+
options.headers = localVarHeaderParameter;
|
|
3721
|
+
return options;
|
|
3722
|
+
},
|
|
3723
|
+
/**
|
|
3724
|
+
* 查询Clouddcn子网的标签
|
|
3725
|
+
*
|
|
3726
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3727
|
+
*/
|
|
3728
|
+
showClouddcnSubnetsTags(showClouddcnSubnetsTagsRequest) {
|
|
3729
|
+
const options = {
|
|
3730
|
+
method: "GET",
|
|
3731
|
+
url: "/v3/{project_id}/clouddcn-subnets/{resource_id}/tags",
|
|
3732
|
+
contentType: "application/json",
|
|
3733
|
+
queryParams: {},
|
|
3734
|
+
pathParams: {},
|
|
3735
|
+
headers: {}
|
|
3736
|
+
};
|
|
3737
|
+
const localVarHeaderParameter = {};
|
|
3738
|
+
let resourceId;
|
|
3739
|
+
if (showClouddcnSubnetsTagsRequest !== null && showClouddcnSubnetsTagsRequest !== undefined) {
|
|
3740
|
+
if (showClouddcnSubnetsTagsRequest instanceof ShowClouddcnSubnetsTagsRequest_1.ShowClouddcnSubnetsTagsRequest) {
|
|
3741
|
+
resourceId = showClouddcnSubnetsTagsRequest.resourceId;
|
|
3742
|
+
}
|
|
3743
|
+
else {
|
|
3744
|
+
resourceId = showClouddcnSubnetsTagsRequest['resource_id'];
|
|
3745
|
+
}
|
|
3746
|
+
}
|
|
3747
|
+
if (resourceId === null || resourceId === undefined) {
|
|
3748
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling showClouddcnSubnetsTags.');
|
|
3749
|
+
}
|
|
3750
|
+
options.pathParams = { 'resource_id': resourceId, };
|
|
3751
|
+
options.headers = localVarHeaderParameter;
|
|
3752
|
+
return options;
|
|
3753
|
+
},
|
|
3754
|
+
/**
|
|
3755
|
+
* 更新clouddcn子网。
|
|
3756
|
+
*
|
|
3757
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3758
|
+
*/
|
|
3759
|
+
updateClouddcnSubnet(updateClouddcnSubnetRequest) {
|
|
3760
|
+
const options = {
|
|
3761
|
+
method: "PUT",
|
|
3762
|
+
url: "/v3/{project_id}/vpc/clouddcn-subnets/{clouddcn_subnet_id}",
|
|
3763
|
+
contentType: "application/json",
|
|
3764
|
+
queryParams: {},
|
|
3765
|
+
pathParams: {},
|
|
3766
|
+
headers: {},
|
|
3767
|
+
data: {}
|
|
3768
|
+
};
|
|
3769
|
+
const localVarHeaderParameter = {};
|
|
3770
|
+
let body;
|
|
3771
|
+
let clouddcnSubnetId;
|
|
3772
|
+
if (updateClouddcnSubnetRequest !== null && updateClouddcnSubnetRequest !== undefined) {
|
|
3773
|
+
if (updateClouddcnSubnetRequest instanceof UpdateClouddcnSubnetRequest_1.UpdateClouddcnSubnetRequest) {
|
|
3774
|
+
clouddcnSubnetId = updateClouddcnSubnetRequest.clouddcnSubnetId;
|
|
3775
|
+
body = updateClouddcnSubnetRequest.body;
|
|
3776
|
+
}
|
|
3777
|
+
else {
|
|
3778
|
+
clouddcnSubnetId = updateClouddcnSubnetRequest['clouddcn_subnet_id'];
|
|
3779
|
+
body = updateClouddcnSubnetRequest['body'];
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
if (clouddcnSubnetId === null || clouddcnSubnetId === undefined) {
|
|
3783
|
+
throw new RequiredError('clouddcnSubnetId', 'Required parameter clouddcnSubnetId was null or undefined when calling updateClouddcnSubnet.');
|
|
3784
|
+
}
|
|
3785
|
+
if (body === null || body === undefined) {
|
|
3786
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3787
|
+
}
|
|
3788
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3789
|
+
options.data = body !== undefined ? body : {};
|
|
3790
|
+
options.pathParams = { 'clouddcn_subnet_id': clouddcnSubnetId, };
|
|
3791
|
+
options.headers = localVarHeaderParameter;
|
|
3792
|
+
return options;
|
|
3793
|
+
},
|
|
3101
3794
|
/**
|
|
3102
3795
|
* 创建地址组
|
|
3103
3796
|
*
|