@huaweicloud/huaweicloud-sdk-vpc 3.1.99 → 3.1.101
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/VpcClient.d.ts +197 -0
- package/v2/VpcClient.d.ts.map +1 -1
- package/v2/VpcClient.js +368 -0
- package/v2/VpcClient.js.map +1 -1
- package/v2/model/BatchCreateSecurityGroupTagsRequest.d.ts +11 -0
- package/v2/model/BatchCreateSecurityGroupTagsRequest.d.ts.map +1 -0
- package/v2/model/BatchCreateSecurityGroupTagsRequest.js +24 -0
- package/v2/model/BatchCreateSecurityGroupTagsRequest.js.map +1 -0
- package/v2/model/BatchCreateSecurityGroupTagsRequestBody.d.ts +16 -0
- package/v2/model/BatchCreateSecurityGroupTagsRequestBody.d.ts.map +1 -0
- package/v2/model/BatchCreateSecurityGroupTagsRequestBody.js +27 -0
- package/v2/model/BatchCreateSecurityGroupTagsRequestBody.js.map +1 -0
- package/v2/model/BatchCreateSecurityGroupTagsResponse.d.ts +5 -0
- package/v2/model/BatchCreateSecurityGroupTagsResponse.d.ts.map +1 -0
- package/v2/model/BatchCreateSecurityGroupTagsResponse.js +11 -0
- package/v2/model/BatchCreateSecurityGroupTagsResponse.js.map +1 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequest.d.ts +11 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequest.d.ts.map +1 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequest.js +24 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequest.js.map +1 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequestBody.d.ts +16 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequestBody.d.ts.map +1 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequestBody.js +27 -0
- package/v2/model/BatchDeleteSecurityGroupTagsRequestBody.js.map +1 -0
- package/v2/model/BatchDeleteSecurityGroupTagsResponse.d.ts +5 -0
- package/v2/model/BatchDeleteSecurityGroupTagsResponse.d.ts.map +1 -0
- package/v2/model/BatchDeleteSecurityGroupTagsResponse.js +11 -0
- package/v2/model/BatchDeleteSecurityGroupTagsResponse.js.map +1 -0
- package/v2/model/CreateSecurityGroupTagRequest.d.ts +11 -0
- package/v2/model/CreateSecurityGroupTagRequest.d.ts.map +1 -0
- package/v2/model/CreateSecurityGroupTagRequest.js +24 -0
- package/v2/model/CreateSecurityGroupTagRequest.js.map +1 -0
- package/v2/model/CreateSecurityGroupTagRequestBody.d.ts +7 -0
- package/v2/model/CreateSecurityGroupTagRequestBody.d.ts.map +1 -0
- package/v2/model/CreateSecurityGroupTagRequestBody.js +14 -0
- package/v2/model/CreateSecurityGroupTagRequestBody.js.map +1 -0
- package/v2/model/CreateSecurityGroupTagResponse.d.ts +5 -0
- package/v2/model/CreateSecurityGroupTagResponse.d.ts.map +1 -0
- package/v2/model/CreateSecurityGroupTagResponse.js +11 -0
- package/v2/model/CreateSecurityGroupTagResponse.js.map +1 -0
- package/v2/model/DeleteSecurityGroupTagRequest.d.ts +10 -0
- package/v2/model/DeleteSecurityGroupTagRequest.d.ts.map +1 -0
- package/v2/model/DeleteSecurityGroupTagRequest.js +25 -0
- package/v2/model/DeleteSecurityGroupTagRequest.js.map +1 -0
- package/v2/model/DeleteSecurityGroupTagResponse.d.ts +5 -0
- package/v2/model/DeleteSecurityGroupTagResponse.d.ts.map +1 -0
- package/v2/model/DeleteSecurityGroupTagResponse.js +11 -0
- package/v2/model/DeleteSecurityGroupTagResponse.js.map +1 -0
- package/v2/model/ListSecurityGroupTagsRequest.d.ts +4 -0
- package/v2/model/ListSecurityGroupTagsRequest.d.ts.map +1 -0
- package/v2/model/ListSecurityGroupTagsRequest.js +9 -0
- package/v2/model/ListSecurityGroupTagsRequest.js.map +1 -0
- package/v2/model/ListSecurityGroupTagsResponse.d.ts +8 -0
- package/v2/model/ListSecurityGroupTagsResponse.d.ts.map +1 -0
- package/v2/model/ListSecurityGroupTagsResponse.js +15 -0
- package/v2/model/ListSecurityGroupTagsResponse.js.map +1 -0
- package/v2/model/ListSecurityGroupsByTagsRequest.d.ts +7 -0
- package/v2/model/ListSecurityGroupsByTagsRequest.d.ts.map +1 -0
- package/v2/model/ListSecurityGroupsByTagsRequest.js +13 -0
- package/v2/model/ListSecurityGroupsByTagsRequest.js.map +1 -0
- package/v2/model/ListSecurityGroupsByTagsRequestBody.d.ts +24 -0
- package/v2/model/ListSecurityGroupsByTagsRequestBody.d.ts.map +1 -0
- package/v2/model/ListSecurityGroupsByTagsRequestBody.js +39 -0
- package/v2/model/ListSecurityGroupsByTagsRequestBody.js.map +1 -0
- package/v2/model/ListSecurityGroupsByTagsResponse.d.ts +12 -0
- package/v2/model/ListSecurityGroupsByTagsResponse.d.ts.map +1 -0
- package/v2/model/ListSecurityGroupsByTagsResponse.js +25 -0
- package/v2/model/ListSecurityGroupsByTagsResponse.js.map +1 -0
- package/v2/model/ShowSecurityGroupTagsRequest.d.ts +8 -0
- package/v2/model/ShowSecurityGroupTagsRequest.d.ts.map +1 -0
- package/v2/model/ShowSecurityGroupTagsRequest.js +20 -0
- package/v2/model/ShowSecurityGroupTagsRequest.js.map +1 -0
- package/v2/model/ShowSecurityGroupTagsResponse.d.ts +8 -0
- package/v2/model/ShowSecurityGroupTagsResponse.d.ts.map +1 -0
- package/v2/model/ShowSecurityGroupTagsResponse.js +15 -0
- package/v2/model/ShowSecurityGroupTagsResponse.js.map +1 -0
- package/v2/public-api.d.ts +18 -0
- package/v2/public-api.d.ts.map +1 -1
- package/v2/public-api.js +18 -0
- package/v2/public-api.js.map +1 -1
- package/v3/VpcClient.d.ts +226 -0
- package/v3/VpcClient.d.ts.map +1 -1
- package/v3/VpcClient.js +422 -0
- package/v3/VpcClient.js.map +1 -1
- package/v3/model/BatchCreateFirewallTagsRequest.d.ts +11 -0
- package/v3/model/BatchCreateFirewallTagsRequest.d.ts.map +1 -0
- package/v3/model/BatchCreateFirewallTagsRequest.js +24 -0
- package/v3/model/BatchCreateFirewallTagsRequest.js.map +1 -0
- package/v3/model/BatchCreateFirewallTagsRequestBody.d.ts +7 -0
- package/v3/model/BatchCreateFirewallTagsRequestBody.d.ts.map +1 -0
- package/v3/model/BatchCreateFirewallTagsRequestBody.js +13 -0
- package/v3/model/BatchCreateFirewallTagsRequestBody.js.map +1 -0
- package/v3/model/BatchCreateFirewallTagsResponse.d.ts +5 -0
- package/v3/model/BatchCreateFirewallTagsResponse.d.ts.map +1 -0
- package/v3/model/BatchCreateFirewallTagsResponse.js +11 -0
- package/v3/model/BatchCreateFirewallTagsResponse.js.map +1 -0
- package/v3/model/BatchDeleteFirewallTagsRequest.d.ts +11 -0
- package/v3/model/BatchDeleteFirewallTagsRequest.d.ts.map +1 -0
- package/v3/model/BatchDeleteFirewallTagsRequest.js +24 -0
- package/v3/model/BatchDeleteFirewallTagsRequest.js.map +1 -0
- package/v3/model/BatchDeleteFirewallTagsRequestBody.d.ts +7 -0
- package/v3/model/BatchDeleteFirewallTagsRequestBody.d.ts.map +1 -0
- package/v3/model/BatchDeleteFirewallTagsRequestBody.js +13 -0
- package/v3/model/BatchDeleteFirewallTagsRequestBody.js.map +1 -0
- package/v3/model/BatchDeleteFirewallTagsResponse.d.ts +5 -0
- package/v3/model/BatchDeleteFirewallTagsResponse.d.ts.map +1 -0
- package/v3/model/BatchDeleteFirewallTagsResponse.js +11 -0
- package/v3/model/BatchDeleteFirewallTagsResponse.js.map +1 -0
- package/v3/model/CountFirewallsByTagsRequest.d.ts +7 -0
- package/v3/model/CountFirewallsByTagsRequest.d.ts.map +1 -0
- package/v3/model/CountFirewallsByTagsRequest.js +13 -0
- package/v3/model/CountFirewallsByTagsRequest.js.map +1 -0
- package/v3/model/CountFirewallsByTagsRequestBody.d.ts +10 -0
- package/v3/model/CountFirewallsByTagsRequestBody.d.ts.map +1 -0
- package/v3/model/CountFirewallsByTagsRequestBody.js +17 -0
- package/v3/model/CountFirewallsByTagsRequestBody.js.map +1 -0
- package/v3/model/CountFirewallsByTagsResponse.d.ts +13 -0
- package/v3/model/CountFirewallsByTagsResponse.d.ts.map +1 -0
- package/v3/model/CountFirewallsByTagsResponse.js +31 -0
- package/v3/model/CountFirewallsByTagsResponse.js.map +1 -0
- package/v3/model/CreateFirewallTagRequest.d.ts +11 -0
- package/v3/model/CreateFirewallTagRequest.d.ts.map +1 -0
- package/v3/model/CreateFirewallTagRequest.js +24 -0
- package/v3/model/CreateFirewallTagRequest.js.map +1 -0
- package/v3/model/CreateFirewallTagRequestBody.d.ts +7 -0
- package/v3/model/CreateFirewallTagRequestBody.d.ts.map +1 -0
- package/v3/model/CreateFirewallTagRequestBody.js +14 -0
- package/v3/model/CreateFirewallTagRequestBody.js.map +1 -0
- package/v3/model/CreateFirewallTagResponse.d.ts +5 -0
- package/v3/model/CreateFirewallTagResponse.d.ts.map +1 -0
- package/v3/model/CreateFirewallTagResponse.js +11 -0
- package/v3/model/CreateFirewallTagResponse.js.map +1 -0
- package/v3/model/DeleteFirewallTagRequest.d.ts +12 -0
- package/v3/model/DeleteFirewallTagRequest.d.ts.map +1 -0
- package/v3/model/DeleteFirewallTagRequest.js +31 -0
- package/v3/model/DeleteFirewallTagRequest.js.map +1 -0
- package/v3/model/DeleteFirewallTagResponse.d.ts +5 -0
- package/v3/model/DeleteFirewallTagResponse.d.ts.map +1 -0
- package/v3/model/DeleteFirewallTagResponse.js +11 -0
- package/v3/model/DeleteFirewallTagResponse.js.map +1 -0
- package/v3/model/ListFirewallTagsRequest.d.ts +4 -0
- package/v3/model/ListFirewallTagsRequest.d.ts.map +1 -0
- package/v3/model/ListFirewallTagsRequest.js +9 -0
- package/v3/model/ListFirewallTagsRequest.js.map +1 -0
- package/v3/model/ListFirewallTagsResponse.d.ts +12 -0
- package/v3/model/ListFirewallTagsResponse.d.ts.map +1 -0
- package/v3/model/ListFirewallTagsResponse.js +25 -0
- package/v3/model/ListFirewallTagsResponse.js.map +1 -0
- package/v3/model/ListFirewallsByTagsRequest.d.ts +11 -0
- package/v3/model/ListFirewallsByTagsRequest.d.ts.map +1 -0
- package/v3/model/ListFirewallsByTagsRequest.js +21 -0
- package/v3/model/ListFirewallsByTagsRequest.js.map +1 -0
- package/v3/model/ListFirewallsByTagsRequestBody.d.ts +10 -0
- package/v3/model/ListFirewallsByTagsRequestBody.d.ts.map +1 -0
- package/v3/model/ListFirewallsByTagsRequestBody.js +17 -0
- package/v3/model/ListFirewallsByTagsRequestBody.js.map +1 -0
- package/v3/model/ListFirewallsByTagsResponse.d.ts +16 -0
- package/v3/model/ListFirewallsByTagsResponse.d.ts.map +1 -0
- package/v3/model/ListFirewallsByTagsResponse.js +35 -0
- package/v3/model/ListFirewallsByTagsResponse.js.map +1 -0
- package/v3/model/ListResourceResp.d.ts +19 -0
- package/v3/model/ListResourceResp.d.ts.map +1 -0
- package/v3/model/ListResourceResp.js +47 -0
- package/v3/model/ListResourceResp.js.map +1 -0
- package/v3/model/ListTag.d.ts +8 -0
- package/v3/model/ListTag.d.ts.map +1 -0
- package/v3/model/ListTag.js +19 -0
- package/v3/model/ListTag.js.map +1 -0
- package/v3/model/Match.d.ts +8 -0
- package/v3/model/Match.d.ts.map +1 -0
- package/v3/model/Match.js +19 -0
- package/v3/model/Match.js.map +1 -0
- package/v3/model/ShowFirewallTagsRequest.d.ts +8 -0
- package/v3/model/ShowFirewallTagsRequest.d.ts.map +1 -0
- package/v3/model/ShowFirewallTagsRequest.js +20 -0
- package/v3/model/ShowFirewallTagsRequest.js.map +1 -0
- package/v3/model/ShowFirewallTagsResponse.d.ts +16 -0
- package/v3/model/ShowFirewallTagsResponse.d.ts.map +1 -0
- package/v3/model/ShowFirewallTagsResponse.js +35 -0
- package/v3/model/ShowFirewallTagsResponse.js.map +1 -0
- package/v3/public-api.d.ts +24 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +24 -0
- package/v3/public-api.js.map +1 -1
package/v2/VpcClient.js
CHANGED
|
@@ -4,8 +4,10 @@ exports.RequiredError = exports.ParamCreater = exports.VpcClient = void 0;
|
|
|
4
4
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
|
5
5
|
const AcceptVpcPeeringRequest_1 = require("./model/AcceptVpcPeeringRequest");
|
|
6
6
|
const AssociateRouteTableRequest_1 = require("./model/AssociateRouteTableRequest");
|
|
7
|
+
const BatchCreateSecurityGroupTagsRequest_1 = require("./model/BatchCreateSecurityGroupTagsRequest");
|
|
7
8
|
const BatchCreateSubnetTagsRequest_1 = require("./model/BatchCreateSubnetTagsRequest");
|
|
8
9
|
const BatchCreateVpcTagsRequest_1 = require("./model/BatchCreateVpcTagsRequest");
|
|
10
|
+
const BatchDeleteSecurityGroupTagsRequest_1 = require("./model/BatchDeleteSecurityGroupTagsRequest");
|
|
9
11
|
const BatchDeleteSubnetTagsRequest_1 = require("./model/BatchDeleteSubnetTagsRequest");
|
|
10
12
|
const BatchDeleteVpcTagsRequest_1 = require("./model/BatchDeleteVpcTagsRequest");
|
|
11
13
|
const CreateFlowLogRequest_1 = require("./model/CreateFlowLogRequest");
|
|
@@ -14,6 +16,7 @@ const CreatePrivateipRequest_1 = require("./model/CreatePrivateipRequest");
|
|
|
14
16
|
const CreateRouteTableRequest_1 = require("./model/CreateRouteTableRequest");
|
|
15
17
|
const CreateSecurityGroupRequest_1 = require("./model/CreateSecurityGroupRequest");
|
|
16
18
|
const CreateSecurityGroupRuleRequest_1 = require("./model/CreateSecurityGroupRuleRequest");
|
|
19
|
+
const CreateSecurityGroupTagRequest_1 = require("./model/CreateSecurityGroupTagRequest");
|
|
17
20
|
const CreateSubnetRequest_1 = require("./model/CreateSubnetRequest");
|
|
18
21
|
const CreateSubnetTagRequest_1 = require("./model/CreateSubnetTagRequest");
|
|
19
22
|
const CreateVpcPeeringRequest_1 = require("./model/CreateVpcPeeringRequest");
|
|
@@ -26,6 +29,7 @@ const DeletePrivateipRequest_1 = require("./model/DeletePrivateipRequest");
|
|
|
26
29
|
const DeleteRouteTableRequest_1 = require("./model/DeleteRouteTableRequest");
|
|
27
30
|
const DeleteSecurityGroupRequest_1 = require("./model/DeleteSecurityGroupRequest");
|
|
28
31
|
const DeleteSecurityGroupRuleRequest_1 = require("./model/DeleteSecurityGroupRuleRequest");
|
|
32
|
+
const DeleteSecurityGroupTagRequest_1 = require("./model/DeleteSecurityGroupTagRequest");
|
|
29
33
|
const DeleteSubnetRequest_1 = require("./model/DeleteSubnetRequest");
|
|
30
34
|
const DeleteSubnetTagRequest_1 = require("./model/DeleteSubnetTagRequest");
|
|
31
35
|
const DeleteVpcPeeringRequest_1 = require("./model/DeleteVpcPeeringRequest");
|
|
@@ -38,6 +42,7 @@ const ListPortsRequest_1 = require("./model/ListPortsRequest");
|
|
|
38
42
|
const ListPrivateipsRequest_1 = require("./model/ListPrivateipsRequest");
|
|
39
43
|
const ListRouteTablesRequest_1 = require("./model/ListRouteTablesRequest");
|
|
40
44
|
const ListSecurityGroupRulesRequest_1 = require("./model/ListSecurityGroupRulesRequest");
|
|
45
|
+
const ListSecurityGroupsByTagsRequest_1 = require("./model/ListSecurityGroupsByTagsRequest");
|
|
41
46
|
const ListSecurityGroupsRequest_1 = require("./model/ListSecurityGroupsRequest");
|
|
42
47
|
const ListSubnetsByTagsRequest_1 = require("./model/ListSubnetsByTagsRequest");
|
|
43
48
|
const ListSubnetsRequest_1 = require("./model/ListSubnetsRequest");
|
|
@@ -102,6 +107,7 @@ const ShowQuotaRequest_1 = require("./model/ShowQuotaRequest");
|
|
|
102
107
|
const ShowRouteTableRequest_1 = require("./model/ShowRouteTableRequest");
|
|
103
108
|
const ShowSecurityGroupRequest_1 = require("./model/ShowSecurityGroupRequest");
|
|
104
109
|
const ShowSecurityGroupRuleRequest_1 = require("./model/ShowSecurityGroupRuleRequest");
|
|
110
|
+
const ShowSecurityGroupTagsRequest_1 = require("./model/ShowSecurityGroupTagsRequest");
|
|
105
111
|
const ShowSubnetRequest_1 = require("./model/ShowSubnetRequest");
|
|
106
112
|
const ShowSubnetTagsRequest_1 = require("./model/ShowSubnetTagsRequest");
|
|
107
113
|
const ShowVpcPeeringRequest_1 = require("./model/ShowVpcPeeringRequest");
|
|
@@ -157,6 +163,24 @@ class VpcClient {
|
|
|
157
163
|
options['responseHeaders'] = [''];
|
|
158
164
|
return this.hcClient.sendRequest(options);
|
|
159
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* 为指定的安全组资源实例批量添加标签。
|
|
168
|
+
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
169
|
+
*
|
|
170
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
171
|
+
*
|
|
172
|
+
* @summary 批量创建安全组资源标签
|
|
173
|
+
* @param {string} securityGroupId 安全组资源ID
|
|
174
|
+
* @param {BatchCreateSecurityGroupTagsRequestBody} batchCreateSecurityGroupTagsRequestBody This is a auto create Body Object
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
batchCreateSecurityGroupTags(batchCreateSecurityGroupTagsRequest) {
|
|
179
|
+
const options = (0, exports.ParamCreater)().batchCreateSecurityGroupTags(batchCreateSecurityGroupTagsRequest);
|
|
180
|
+
// @ts-ignore
|
|
181
|
+
options['responseHeaders'] = [''];
|
|
182
|
+
return this.hcClient.sendRequest(options);
|
|
183
|
+
}
|
|
160
184
|
/**
|
|
161
185
|
* 为指定的子网资源实例批量添加标签。
|
|
162
186
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
@@ -175,6 +199,24 @@ class VpcClient {
|
|
|
175
199
|
options['responseHeaders'] = [''];
|
|
176
200
|
return this.hcClient.sendRequest(options);
|
|
177
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* 为指定的安全组资源实例批量删除标签
|
|
204
|
+
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
205
|
+
*
|
|
206
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
207
|
+
*
|
|
208
|
+
* @summary 批量删除安全组资源标签
|
|
209
|
+
* @param {string} securityGroupId 安全组资源ID
|
|
210
|
+
* @param {BatchDeleteSecurityGroupTagsRequestBody} batchDeleteSecurityGroupTagsRequestBody This is a auto create Body Object
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
batchDeleteSecurityGroupTags(batchDeleteSecurityGroupTagsRequest) {
|
|
215
|
+
const options = (0, exports.ParamCreater)().batchDeleteSecurityGroupTags(batchDeleteSecurityGroupTagsRequest);
|
|
216
|
+
// @ts-ignore
|
|
217
|
+
options['responseHeaders'] = [''];
|
|
218
|
+
return this.hcClient.sendRequest(options);
|
|
219
|
+
}
|
|
178
220
|
/**
|
|
179
221
|
* 为指定的子网资源实例批量删除标签
|
|
180
222
|
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
@@ -275,6 +317,24 @@ class VpcClient {
|
|
|
275
317
|
options['responseHeaders'] = [''];
|
|
276
318
|
return this.hcClient.sendRequest(options);
|
|
277
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* 给指定安全组资源实例增加标签信息。
|
|
322
|
+
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
323
|
+
*
|
|
324
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
325
|
+
*
|
|
326
|
+
* @summary 创建安全组资源标签
|
|
327
|
+
* @param {string} securityGroupId 安全组资源ID
|
|
328
|
+
* @param {CreateSecurityGroupTagRequestBody} createSecurityGroupTagRequestBody This is a auto create Body Object
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
createSecurityGroupTag(createSecurityGroupTagRequest) {
|
|
333
|
+
const options = (0, exports.ParamCreater)().createSecurityGroupTag(createSecurityGroupTagRequest);
|
|
334
|
+
// @ts-ignore
|
|
335
|
+
options['responseHeaders'] = [''];
|
|
336
|
+
return this.hcClient.sendRequest(options);
|
|
337
|
+
}
|
|
278
338
|
/**
|
|
279
339
|
* 创建子网。
|
|
280
340
|
*
|
|
@@ -405,6 +465,24 @@ class VpcClient {
|
|
|
405
465
|
options['responseHeaders'] = [''];
|
|
406
466
|
return this.hcClient.sendRequest(options);
|
|
407
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* 删除指定安全组资源实例的标签信息。
|
|
470
|
+
* 该接口为幂等接口:删除的key不存在报404,Key不能为空或者空字符串
|
|
471
|
+
*
|
|
472
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
473
|
+
*
|
|
474
|
+
* @summary 删除安全组资源标签
|
|
475
|
+
* @param {string} key 功能说明:键值
|
|
476
|
+
* @param {string} securityGroupId 安全组资源ID
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
deleteSecurityGroupTag(deleteSecurityGroupTagRequest) {
|
|
481
|
+
const options = (0, exports.ParamCreater)().deleteSecurityGroupTag(deleteSecurityGroupTagRequest);
|
|
482
|
+
// @ts-ignore
|
|
483
|
+
options['responseHeaders'] = [''];
|
|
484
|
+
return this.hcClient.sendRequest(options);
|
|
485
|
+
}
|
|
408
486
|
/**
|
|
409
487
|
* 删除子网
|
|
410
488
|
*
|
|
@@ -570,6 +648,21 @@ class VpcClient {
|
|
|
570
648
|
options['responseHeaders'] = [''];
|
|
571
649
|
return this.hcClient.sendRequest(options);
|
|
572
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* 查询租户在指定区域和实例类型的所有标签集合
|
|
653
|
+
*
|
|
654
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
655
|
+
*
|
|
656
|
+
* @summary 查询安全组项目标签
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
listSecurityGroupTags(listSecurityGroupTagsRequest) {
|
|
661
|
+
const options = (0, exports.ParamCreater)().listSecurityGroupTags();
|
|
662
|
+
// @ts-ignore
|
|
663
|
+
options['responseHeaders'] = [''];
|
|
664
|
+
return this.hcClient.sendRequest(options);
|
|
665
|
+
}
|
|
573
666
|
/**
|
|
574
667
|
* 查询安全组列表
|
|
575
668
|
*
|
|
@@ -589,6 +682,22 @@ class VpcClient {
|
|
|
589
682
|
options['responseHeaders'] = [''];
|
|
590
683
|
return this.hcClient.sendRequest(options);
|
|
591
684
|
}
|
|
685
|
+
/**
|
|
686
|
+
* 使用标签过滤实例
|
|
687
|
+
*
|
|
688
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
689
|
+
*
|
|
690
|
+
* @summary 查询安全组资源实例
|
|
691
|
+
* @param {ListSecurityGroupsByTagsRequestBody} listSecurityGroupsByTagsRequestBody This is a auto create Body Object
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
*/
|
|
695
|
+
listSecurityGroupsByTags(listSecurityGroupsByTagsRequest) {
|
|
696
|
+
const options = (0, exports.ParamCreater)().listSecurityGroupsByTags(listSecurityGroupsByTagsRequest);
|
|
697
|
+
// @ts-ignore
|
|
698
|
+
options['responseHeaders'] = [''];
|
|
699
|
+
return this.hcClient.sendRequest(options);
|
|
700
|
+
}
|
|
592
701
|
/**
|
|
593
702
|
* 查询租户在指定区域和实例类型的所有标签集合
|
|
594
703
|
*
|
|
@@ -772,6 +881,22 @@ class VpcClient {
|
|
|
772
881
|
options['responseHeaders'] = [''];
|
|
773
882
|
return this.hcClient.sendRequest(options);
|
|
774
883
|
}
|
|
884
|
+
/**
|
|
885
|
+
* 查询指定安全组实例的标签信息。
|
|
886
|
+
*
|
|
887
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
888
|
+
*
|
|
889
|
+
* @summary 查询安全组资源标签
|
|
890
|
+
* @param {string} securityGroupId 安全组资源ID
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
*/
|
|
894
|
+
showSecurityGroupTags(showSecurityGroupTagsRequest) {
|
|
895
|
+
const options = (0, exports.ParamCreater)().showSecurityGroupTags(showSecurityGroupTagsRequest);
|
|
896
|
+
// @ts-ignore
|
|
897
|
+
options['responseHeaders'] = [''];
|
|
898
|
+
return this.hcClient.sendRequest(options);
|
|
899
|
+
}
|
|
775
900
|
/**
|
|
776
901
|
* 查询子网详情。
|
|
777
902
|
*
|
|
@@ -2207,6 +2332,47 @@ const ParamCreater = function () {
|
|
|
2207
2332
|
options.headers = localVarHeaderParameter;
|
|
2208
2333
|
return options;
|
|
2209
2334
|
},
|
|
2335
|
+
/**
|
|
2336
|
+
* 为指定的安全组资源实例批量添加标签。
|
|
2337
|
+
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
2338
|
+
*
|
|
2339
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2340
|
+
*/
|
|
2341
|
+
batchCreateSecurityGroupTags(batchCreateSecurityGroupTagsRequest) {
|
|
2342
|
+
const options = {
|
|
2343
|
+
method: "POST",
|
|
2344
|
+
url: "/v2.0/{project_id}/security-groups/{security_group_id}/tags/action",
|
|
2345
|
+
contentType: "application/json;charset=UTF-8",
|
|
2346
|
+
queryParams: {},
|
|
2347
|
+
pathParams: {},
|
|
2348
|
+
headers: {},
|
|
2349
|
+
data: {}
|
|
2350
|
+
};
|
|
2351
|
+
const localVarHeaderParameter = {};
|
|
2352
|
+
let body;
|
|
2353
|
+
let securityGroupId;
|
|
2354
|
+
if (batchCreateSecurityGroupTagsRequest !== null && batchCreateSecurityGroupTagsRequest !== undefined) {
|
|
2355
|
+
if (batchCreateSecurityGroupTagsRequest instanceof BatchCreateSecurityGroupTagsRequest_1.BatchCreateSecurityGroupTagsRequest) {
|
|
2356
|
+
securityGroupId = batchCreateSecurityGroupTagsRequest.securityGroupId;
|
|
2357
|
+
body = batchCreateSecurityGroupTagsRequest.body;
|
|
2358
|
+
}
|
|
2359
|
+
else {
|
|
2360
|
+
securityGroupId = batchCreateSecurityGroupTagsRequest['security_group_id'];
|
|
2361
|
+
body = batchCreateSecurityGroupTagsRequest['body'];
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
2365
|
+
throw new RequiredError('securityGroupId', 'Required parameter securityGroupId was null or undefined when calling batchCreateSecurityGroupTags.');
|
|
2366
|
+
}
|
|
2367
|
+
if (body === null || body === undefined) {
|
|
2368
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2369
|
+
}
|
|
2370
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2371
|
+
options.data = body !== undefined ? body : {};
|
|
2372
|
+
options.pathParams = { 'security_group_id': securityGroupId, };
|
|
2373
|
+
options.headers = localVarHeaderParameter;
|
|
2374
|
+
return options;
|
|
2375
|
+
},
|
|
2210
2376
|
/**
|
|
2211
2377
|
* 为指定的子网资源实例批量添加标签。
|
|
2212
2378
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
@@ -2248,6 +2414,47 @@ const ParamCreater = function () {
|
|
|
2248
2414
|
options.headers = localVarHeaderParameter;
|
|
2249
2415
|
return options;
|
|
2250
2416
|
},
|
|
2417
|
+
/**
|
|
2418
|
+
* 为指定的安全组资源实例批量删除标签
|
|
2419
|
+
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
2420
|
+
*
|
|
2421
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2422
|
+
*/
|
|
2423
|
+
batchDeleteSecurityGroupTags(batchDeleteSecurityGroupTagsRequest) {
|
|
2424
|
+
const options = {
|
|
2425
|
+
method: "POST",
|
|
2426
|
+
url: "/v2.0/{project_id}/security-groups/{security_group_id}/tags/action",
|
|
2427
|
+
contentType: "application/json;charset=UTF-8",
|
|
2428
|
+
queryParams: {},
|
|
2429
|
+
pathParams: {},
|
|
2430
|
+
headers: {},
|
|
2431
|
+
data: {}
|
|
2432
|
+
};
|
|
2433
|
+
const localVarHeaderParameter = {};
|
|
2434
|
+
let body;
|
|
2435
|
+
let securityGroupId;
|
|
2436
|
+
if (batchDeleteSecurityGroupTagsRequest !== null && batchDeleteSecurityGroupTagsRequest !== undefined) {
|
|
2437
|
+
if (batchDeleteSecurityGroupTagsRequest instanceof BatchDeleteSecurityGroupTagsRequest_1.BatchDeleteSecurityGroupTagsRequest) {
|
|
2438
|
+
securityGroupId = batchDeleteSecurityGroupTagsRequest.securityGroupId;
|
|
2439
|
+
body = batchDeleteSecurityGroupTagsRequest.body;
|
|
2440
|
+
}
|
|
2441
|
+
else {
|
|
2442
|
+
securityGroupId = batchDeleteSecurityGroupTagsRequest['security_group_id'];
|
|
2443
|
+
body = batchDeleteSecurityGroupTagsRequest['body'];
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
2447
|
+
throw new RequiredError('securityGroupId', 'Required parameter securityGroupId was null or undefined when calling batchDeleteSecurityGroupTags.');
|
|
2448
|
+
}
|
|
2449
|
+
if (body === null || body === undefined) {
|
|
2450
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2451
|
+
}
|
|
2452
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2453
|
+
options.data = body !== undefined ? body : {};
|
|
2454
|
+
options.pathParams = { 'security_group_id': securityGroupId, };
|
|
2455
|
+
options.headers = localVarHeaderParameter;
|
|
2456
|
+
return options;
|
|
2457
|
+
},
|
|
2251
2458
|
/**
|
|
2252
2459
|
* 为指定的子网资源实例批量删除标签
|
|
2253
2460
|
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
@@ -2456,6 +2663,47 @@ const ParamCreater = function () {
|
|
|
2456
2663
|
options.headers = localVarHeaderParameter;
|
|
2457
2664
|
return options;
|
|
2458
2665
|
},
|
|
2666
|
+
/**
|
|
2667
|
+
* 给指定安全组资源实例增加标签信息。
|
|
2668
|
+
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
2669
|
+
*
|
|
2670
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2671
|
+
*/
|
|
2672
|
+
createSecurityGroupTag(createSecurityGroupTagRequest) {
|
|
2673
|
+
const options = {
|
|
2674
|
+
method: "POST",
|
|
2675
|
+
url: "/v2.0/{project_id}/security-groups/{security_group_id}/tags",
|
|
2676
|
+
contentType: "application/json;charset=UTF-8",
|
|
2677
|
+
queryParams: {},
|
|
2678
|
+
pathParams: {},
|
|
2679
|
+
headers: {},
|
|
2680
|
+
data: {}
|
|
2681
|
+
};
|
|
2682
|
+
const localVarHeaderParameter = {};
|
|
2683
|
+
let body;
|
|
2684
|
+
let securityGroupId;
|
|
2685
|
+
if (createSecurityGroupTagRequest !== null && createSecurityGroupTagRequest !== undefined) {
|
|
2686
|
+
if (createSecurityGroupTagRequest instanceof CreateSecurityGroupTagRequest_1.CreateSecurityGroupTagRequest) {
|
|
2687
|
+
securityGroupId = createSecurityGroupTagRequest.securityGroupId;
|
|
2688
|
+
body = createSecurityGroupTagRequest.body;
|
|
2689
|
+
}
|
|
2690
|
+
else {
|
|
2691
|
+
securityGroupId = createSecurityGroupTagRequest['security_group_id'];
|
|
2692
|
+
body = createSecurityGroupTagRequest['body'];
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
2696
|
+
throw new RequiredError('securityGroupId', 'Required parameter securityGroupId was null or undefined when calling createSecurityGroupTag.');
|
|
2697
|
+
}
|
|
2698
|
+
if (body === null || body === undefined) {
|
|
2699
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2700
|
+
}
|
|
2701
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2702
|
+
options.data = body !== undefined ? body : {};
|
|
2703
|
+
options.pathParams = { 'security_group_id': securityGroupId, };
|
|
2704
|
+
options.headers = localVarHeaderParameter;
|
|
2705
|
+
return options;
|
|
2706
|
+
},
|
|
2459
2707
|
/**
|
|
2460
2708
|
* 创建子网。
|
|
2461
2709
|
*
|
|
@@ -2718,6 +2966,44 @@ const ParamCreater = function () {
|
|
|
2718
2966
|
options.headers = localVarHeaderParameter;
|
|
2719
2967
|
return options;
|
|
2720
2968
|
},
|
|
2969
|
+
/**
|
|
2970
|
+
* 删除指定安全组资源实例的标签信息。
|
|
2971
|
+
* 该接口为幂等接口:删除的key不存在报404,Key不能为空或者空字符串
|
|
2972
|
+
*
|
|
2973
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2974
|
+
*/
|
|
2975
|
+
deleteSecurityGroupTag(deleteSecurityGroupTagRequest) {
|
|
2976
|
+
const options = {
|
|
2977
|
+
method: "DELETE",
|
|
2978
|
+
url: "/v2.0/{project_id}/security-groups/{security_group_id}/tags/{key}",
|
|
2979
|
+
contentType: "application/json",
|
|
2980
|
+
queryParams: {},
|
|
2981
|
+
pathParams: {},
|
|
2982
|
+
headers: {}
|
|
2983
|
+
};
|
|
2984
|
+
const localVarHeaderParameter = {};
|
|
2985
|
+
let key;
|
|
2986
|
+
let securityGroupId;
|
|
2987
|
+
if (deleteSecurityGroupTagRequest !== null && deleteSecurityGroupTagRequest !== undefined) {
|
|
2988
|
+
if (deleteSecurityGroupTagRequest instanceof DeleteSecurityGroupTagRequest_1.DeleteSecurityGroupTagRequest) {
|
|
2989
|
+
key = deleteSecurityGroupTagRequest.key;
|
|
2990
|
+
securityGroupId = deleteSecurityGroupTagRequest.securityGroupId;
|
|
2991
|
+
}
|
|
2992
|
+
else {
|
|
2993
|
+
key = deleteSecurityGroupTagRequest['key'];
|
|
2994
|
+
securityGroupId = deleteSecurityGroupTagRequest['security_group_id'];
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
if (key === null || key === undefined) {
|
|
2998
|
+
throw new RequiredError('key', 'Required parameter key was null or undefined when calling deleteSecurityGroupTag.');
|
|
2999
|
+
}
|
|
3000
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
3001
|
+
throw new RequiredError('securityGroupId', 'Required parameter securityGroupId was null or undefined when calling deleteSecurityGroupTag.');
|
|
3002
|
+
}
|
|
3003
|
+
options.pathParams = { 'key': key, 'security_group_id': securityGroupId, };
|
|
3004
|
+
options.headers = localVarHeaderParameter;
|
|
3005
|
+
return options;
|
|
3006
|
+
},
|
|
2721
3007
|
/**
|
|
2722
3008
|
* 删除子网
|
|
2723
3009
|
*
|
|
@@ -3185,6 +3471,24 @@ const ParamCreater = function () {
|
|
|
3185
3471
|
options.headers = localVarHeaderParameter;
|
|
3186
3472
|
return options;
|
|
3187
3473
|
},
|
|
3474
|
+
/**
|
|
3475
|
+
* 查询租户在指定区域和实例类型的所有标签集合
|
|
3476
|
+
*
|
|
3477
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3478
|
+
*/
|
|
3479
|
+
listSecurityGroupTags() {
|
|
3480
|
+
const options = {
|
|
3481
|
+
method: "GET",
|
|
3482
|
+
url: "/v2.0/{project_id}/security-groups/tags",
|
|
3483
|
+
contentType: "application/json",
|
|
3484
|
+
queryParams: {},
|
|
3485
|
+
pathParams: {},
|
|
3486
|
+
headers: {}
|
|
3487
|
+
};
|
|
3488
|
+
const localVarHeaderParameter = {};
|
|
3489
|
+
options.headers = localVarHeaderParameter;
|
|
3490
|
+
return options;
|
|
3491
|
+
},
|
|
3188
3492
|
/**
|
|
3189
3493
|
* 查询安全组列表
|
|
3190
3494
|
*
|
|
@@ -3235,6 +3539,39 @@ const ParamCreater = function () {
|
|
|
3235
3539
|
options.headers = localVarHeaderParameter;
|
|
3236
3540
|
return options;
|
|
3237
3541
|
},
|
|
3542
|
+
/**
|
|
3543
|
+
* 使用标签过滤实例
|
|
3544
|
+
*
|
|
3545
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3546
|
+
*/
|
|
3547
|
+
listSecurityGroupsByTags(listSecurityGroupsByTagsRequest) {
|
|
3548
|
+
const options = {
|
|
3549
|
+
method: "POST",
|
|
3550
|
+
url: "/v2.0/{project_id}/security-groups/resource_instances/action",
|
|
3551
|
+
contentType: "application/json;charset=UTF-8",
|
|
3552
|
+
queryParams: {},
|
|
3553
|
+
pathParams: {},
|
|
3554
|
+
headers: {},
|
|
3555
|
+
data: {}
|
|
3556
|
+
};
|
|
3557
|
+
const localVarHeaderParameter = {};
|
|
3558
|
+
let body;
|
|
3559
|
+
if (listSecurityGroupsByTagsRequest !== null && listSecurityGroupsByTagsRequest !== undefined) {
|
|
3560
|
+
if (listSecurityGroupsByTagsRequest instanceof ListSecurityGroupsByTagsRequest_1.ListSecurityGroupsByTagsRequest) {
|
|
3561
|
+
body = listSecurityGroupsByTagsRequest.body;
|
|
3562
|
+
}
|
|
3563
|
+
else {
|
|
3564
|
+
body = listSecurityGroupsByTagsRequest['body'];
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
if (body === null || body === undefined) {
|
|
3568
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3569
|
+
}
|
|
3570
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
3571
|
+
options.data = body !== undefined ? body : {};
|
|
3572
|
+
options.headers = localVarHeaderParameter;
|
|
3573
|
+
return options;
|
|
3574
|
+
},
|
|
3238
3575
|
/**
|
|
3239
3576
|
* 查询租户在指定区域和实例类型的所有标签集合
|
|
3240
3577
|
*
|
|
@@ -3616,6 +3953,37 @@ const ParamCreater = function () {
|
|
|
3616
3953
|
options.headers = localVarHeaderParameter;
|
|
3617
3954
|
return options;
|
|
3618
3955
|
},
|
|
3956
|
+
/**
|
|
3957
|
+
* 查询指定安全组实例的标签信息。
|
|
3958
|
+
*
|
|
3959
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3960
|
+
*/
|
|
3961
|
+
showSecurityGroupTags(showSecurityGroupTagsRequest) {
|
|
3962
|
+
const options = {
|
|
3963
|
+
method: "GET",
|
|
3964
|
+
url: "/v2.0/{project_id}/security-groups/{security_group_id}/tags",
|
|
3965
|
+
contentType: "application/json",
|
|
3966
|
+
queryParams: {},
|
|
3967
|
+
pathParams: {},
|
|
3968
|
+
headers: {}
|
|
3969
|
+
};
|
|
3970
|
+
const localVarHeaderParameter = {};
|
|
3971
|
+
let securityGroupId;
|
|
3972
|
+
if (showSecurityGroupTagsRequest !== null && showSecurityGroupTagsRequest !== undefined) {
|
|
3973
|
+
if (showSecurityGroupTagsRequest instanceof ShowSecurityGroupTagsRequest_1.ShowSecurityGroupTagsRequest) {
|
|
3974
|
+
securityGroupId = showSecurityGroupTagsRequest.securityGroupId;
|
|
3975
|
+
}
|
|
3976
|
+
else {
|
|
3977
|
+
securityGroupId = showSecurityGroupTagsRequest['security_group_id'];
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
3981
|
+
throw new RequiredError('securityGroupId', 'Required parameter securityGroupId was null or undefined when calling showSecurityGroupTags.');
|
|
3982
|
+
}
|
|
3983
|
+
options.pathParams = { 'security_group_id': securityGroupId, };
|
|
3984
|
+
options.headers = localVarHeaderParameter;
|
|
3985
|
+
return options;
|
|
3986
|
+
},
|
|
3619
3987
|
/**
|
|
3620
3988
|
* 查询子网详情。
|
|
3621
3989
|
*
|