@huaweicloud/huaweicloud-sdk-vpc 3.1.102 → 3.1.104
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 +235 -5
- package/v3/VpcClient.d.ts.map +1 -1
- package/v3/VpcClient.js +474 -6
- package/v3/VpcClient.js.map +1 -1
- package/v3/model/BatchCreatePortTagsRequest.d.ts +11 -0
- package/v3/model/BatchCreatePortTagsRequest.d.ts.map +1 -0
- package/v3/model/BatchCreatePortTagsRequest.js +24 -0
- package/v3/model/BatchCreatePortTagsRequest.js.map +1 -0
- package/v3/model/BatchCreatePortTagsRequestBody.d.ts +7 -0
- package/v3/model/BatchCreatePortTagsRequestBody.d.ts.map +1 -0
- package/v3/model/BatchCreatePortTagsRequestBody.js +13 -0
- package/v3/model/BatchCreatePortTagsRequestBody.js.map +1 -0
- package/v3/model/BatchCreatePortTagsResponse.d.ts +5 -0
- package/v3/model/BatchCreatePortTagsResponse.d.ts.map +1 -0
- package/v3/model/BatchCreatePortTagsResponse.js +11 -0
- package/v3/model/BatchCreatePortTagsResponse.js.map +1 -0
- package/v3/model/BatchDeleteFirewallTagsRequestBody.d.ts +3 -3
- package/v3/model/BatchDeleteFirewallTagsRequestBody.d.ts.map +1 -1
- package/v3/model/BatchDeleteFirewallTagsRequestBody.js.map +1 -1
- package/v3/model/BatchDeletePortTagsRequest.d.ts +11 -0
- package/v3/model/BatchDeletePortTagsRequest.d.ts.map +1 -0
- package/v3/model/BatchDeletePortTagsRequest.js +24 -0
- package/v3/model/BatchDeletePortTagsRequest.js.map +1 -0
- package/v3/model/BatchDeletePortTagsRequestBody.d.ts +7 -0
- package/v3/model/BatchDeletePortTagsRequestBody.d.ts.map +1 -0
- package/v3/model/BatchDeletePortTagsRequestBody.js +13 -0
- package/v3/model/BatchDeletePortTagsRequestBody.js.map +1 -0
- package/v3/model/BatchDeletePortTagsResponse.d.ts +5 -0
- package/v3/model/BatchDeletePortTagsResponse.d.ts.map +1 -0
- package/v3/model/BatchDeletePortTagsResponse.js +11 -0
- package/v3/model/BatchDeletePortTagsResponse.js.map +1 -0
- package/v3/model/CountPortsByTagsRequest.d.ts +7 -0
- package/v3/model/CountPortsByTagsRequest.d.ts.map +1 -0
- package/v3/model/CountPortsByTagsRequest.js +13 -0
- package/v3/model/CountPortsByTagsRequest.js.map +1 -0
- package/v3/model/CountPortsByTagsRequestBody.d.ts +10 -0
- package/v3/model/CountPortsByTagsRequestBody.d.ts.map +1 -0
- package/v3/model/CountPortsByTagsRequestBody.js +17 -0
- package/v3/model/CountPortsByTagsRequestBody.js.map +1 -0
- package/v3/model/CountPortsByTagsResponse.d.ts +13 -0
- package/v3/model/CountPortsByTagsResponse.d.ts.map +1 -0
- package/v3/model/CountPortsByTagsResponse.js +31 -0
- package/v3/model/CountPortsByTagsResponse.js.map +1 -0
- package/v3/model/CreatePortTagRequest.d.ts +11 -0
- package/v3/model/CreatePortTagRequest.d.ts.map +1 -0
- package/v3/model/CreatePortTagRequest.js +24 -0
- package/v3/model/CreatePortTagRequest.js.map +1 -0
- package/v3/model/CreatePortTagRequestBody.d.ts +7 -0
- package/v3/model/CreatePortTagRequestBody.d.ts.map +1 -0
- package/v3/model/CreatePortTagRequestBody.js +14 -0
- package/v3/model/CreatePortTagRequestBody.js.map +1 -0
- package/v3/model/CreatePortTagResponse.d.ts +5 -0
- package/v3/model/CreatePortTagResponse.d.ts.map +1 -0
- package/v3/model/CreatePortTagResponse.js +11 -0
- package/v3/model/CreatePortTagResponse.js.map +1 -0
- package/v3/model/DeletePortTagRequest.d.ts +12 -0
- package/v3/model/DeletePortTagRequest.d.ts.map +1 -0
- package/v3/model/DeletePortTagRequest.js +31 -0
- package/v3/model/DeletePortTagRequest.js.map +1 -0
- package/v3/model/DeletePortTagResponse.d.ts +5 -0
- package/v3/model/DeletePortTagResponse.d.ts.map +1 -0
- package/v3/model/DeletePortTagResponse.js +11 -0
- package/v3/model/DeletePortTagResponse.js.map +1 -0
- package/v3/model/DeleteResourceTagRequestBody.d.ts +8 -0
- package/v3/model/DeleteResourceTagRequestBody.d.ts.map +1 -0
- package/v3/model/DeleteResourceTagRequestBody.js +18 -0
- package/v3/model/DeleteResourceTagRequestBody.js.map +1 -0
- package/v3/model/ListFirewallTagsRequest.d.ts +4 -0
- package/v3/model/ListFirewallTagsRequest.d.ts.map +1 -1
- package/v3/model/ListFirewallTagsRequest.js +8 -0
- package/v3/model/ListFirewallTagsRequest.js.map +1 -1
- package/v3/model/ListFirewallTagsResponse.d.ts +6 -2
- package/v3/model/ListFirewallTagsResponse.d.ts.map +1 -1
- package/v3/model/ListFirewallTagsResponse.js +10 -0
- package/v3/model/ListFirewallTagsResponse.js.map +1 -1
- package/v3/model/ListPortTagsRequest.d.ts +8 -0
- package/v3/model/ListPortTagsRequest.d.ts.map +1 -0
- package/v3/model/ListPortTagsRequest.js +17 -0
- package/v3/model/ListPortTagsRequest.js.map +1 -0
- package/v3/model/ListPortTagsResponse.d.ts +16 -0
- package/v3/model/ListPortTagsResponse.d.ts.map +1 -0
- package/v3/model/ListPortTagsResponse.js +35 -0
- package/v3/model/ListPortTagsResponse.js.map +1 -0
- package/v3/model/ListPortsByTagsRequest.d.ts +11 -0
- package/v3/model/ListPortsByTagsRequest.d.ts.map +1 -0
- package/v3/model/ListPortsByTagsRequest.js +21 -0
- package/v3/model/ListPortsByTagsRequest.js.map +1 -0
- package/v3/model/ListPortsByTagsRequestBody.d.ts +10 -0
- package/v3/model/ListPortsByTagsRequestBody.d.ts.map +1 -0
- package/v3/model/ListPortsByTagsRequestBody.js +17 -0
- package/v3/model/ListPortsByTagsRequestBody.js.map +1 -0
- package/v3/model/ListPortsByTagsResponse.d.ts +16 -0
- package/v3/model/ListPortsByTagsResponse.d.ts.map +1 -0
- package/v3/model/ListPortsByTagsResponse.js +35 -0
- package/v3/model/ListPortsByTagsResponse.js.map +1 -0
- package/v3/model/ShowFirewallTagsResponse.d.ts +2 -6
- package/v3/model/ShowFirewallTagsResponse.d.ts.map +1 -1
- package/v3/model/ShowFirewallTagsResponse.js +0 -10
- package/v3/model/ShowFirewallTagsResponse.js.map +1 -1
- package/v3/model/ShowPortTagsRequest.d.ts +8 -0
- package/v3/model/ShowPortTagsRequest.d.ts.map +1 -0
- package/v3/model/ShowPortTagsRequest.js +20 -0
- package/v3/model/ShowPortTagsRequest.js.map +1 -0
- package/v3/model/ShowPortTagsResponse.d.ts +12 -0
- package/v3/model/ShowPortTagsResponse.d.ts.map +1 -0
- package/v3/model/ShowPortTagsResponse.js +25 -0
- package/v3/model/ShowPortTagsResponse.js.map +1 -0
- package/v3/public-api.d.ts +22 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +22 -0
- package/v3/public-api.js.map +1 -1
package/v3/VpcClient.js
CHANGED
|
@@ -10,15 +10,19 @@ const AddVpcExtendCidrRequest_1 = require("./model/AddVpcExtendCidrRequest");
|
|
|
10
10
|
const AssociateSubnetFirewallRequest_1 = require("./model/AssociateSubnetFirewallRequest");
|
|
11
11
|
const BatchCreateClouddcnSubnetsTagsRequest_1 = require("./model/BatchCreateClouddcnSubnetsTagsRequest");
|
|
12
12
|
const BatchCreateFirewallTagsRequest_1 = require("./model/BatchCreateFirewallTagsRequest");
|
|
13
|
+
const BatchCreatePortTagsRequest_1 = require("./model/BatchCreatePortTagsRequest");
|
|
13
14
|
const BatchCreateSecurityGroupRulesRequest_1 = require("./model/BatchCreateSecurityGroupRulesRequest");
|
|
14
15
|
const BatchCreateSubNetworkInterfaceRequest_1 = require("./model/BatchCreateSubNetworkInterfaceRequest");
|
|
15
16
|
const BatchDeleteClouddcnSubnetsTagsRequest_1 = require("./model/BatchDeleteClouddcnSubnetsTagsRequest");
|
|
16
17
|
const BatchDeleteFirewallTagsRequest_1 = require("./model/BatchDeleteFirewallTagsRequest");
|
|
18
|
+
const BatchDeletePortTagsRequest_1 = require("./model/BatchDeletePortTagsRequest");
|
|
17
19
|
const CountFirewallsByTagsRequest_1 = require("./model/CountFirewallsByTagsRequest");
|
|
20
|
+
const CountPortsByTagsRequest_1 = require("./model/CountPortsByTagsRequest");
|
|
18
21
|
const CreateAddressGroupRequest_1 = require("./model/CreateAddressGroupRequest");
|
|
19
22
|
const CreateClouddcnSubnetRequest_1 = require("./model/CreateClouddcnSubnetRequest");
|
|
20
23
|
const CreateFirewallRequest_1 = require("./model/CreateFirewallRequest");
|
|
21
24
|
const CreateFirewallTagRequest_1 = require("./model/CreateFirewallTagRequest");
|
|
25
|
+
const CreatePortTagRequest_1 = require("./model/CreatePortTagRequest");
|
|
22
26
|
const CreateSecurityGroupRequest_1 = require("./model/CreateSecurityGroupRequest");
|
|
23
27
|
const CreateSecurityGroupRuleRequest_1 = require("./model/CreateSecurityGroupRuleRequest");
|
|
24
28
|
const CreateSubNetworkInterfaceRequest_1 = require("./model/CreateSubNetworkInterfaceRequest");
|
|
@@ -32,6 +36,7 @@ const DeleteClouddcnSubnetsTagRequest_1 = require("./model/DeleteClouddcnSubnets
|
|
|
32
36
|
const DeleteFirewallRequest_1 = require("./model/DeleteFirewallRequest");
|
|
33
37
|
const DeleteFirewallTagRequest_1 = require("./model/DeleteFirewallTagRequest");
|
|
34
38
|
const DeleteIpAddressGroupForceRequest_1 = require("./model/DeleteIpAddressGroupForceRequest");
|
|
39
|
+
const DeletePortTagRequest_1 = require("./model/DeletePortTagRequest");
|
|
35
40
|
const DeleteSecurityGroupRequest_1 = require("./model/DeleteSecurityGroupRequest");
|
|
36
41
|
const DeleteSecurityGroupRuleRequest_1 = require("./model/DeleteSecurityGroupRuleRequest");
|
|
37
42
|
const DeleteSubNetworkInterfaceRequest_1 = require("./model/DeleteSubNetworkInterfaceRequest");
|
|
@@ -45,7 +50,10 @@ const ListClouddcnSubnetsCountFilterTagsRequest_1 = require("./model/ListClouddc
|
|
|
45
50
|
const ListClouddcnSubnetsFilterTagsRequest_1 = require("./model/ListClouddcnSubnetsFilterTagsRequest");
|
|
46
51
|
const ListClouddcnSubnetsRequest_1 = require("./model/ListClouddcnSubnetsRequest");
|
|
47
52
|
const ListFirewallRequest_1 = require("./model/ListFirewallRequest");
|
|
53
|
+
const ListFirewallTagsRequest_1 = require("./model/ListFirewallTagsRequest");
|
|
48
54
|
const ListFirewallsByTagsRequest_1 = require("./model/ListFirewallsByTagsRequest");
|
|
55
|
+
const ListPortTagsRequest_1 = require("./model/ListPortTagsRequest");
|
|
56
|
+
const ListPortsByTagsRequest_1 = require("./model/ListPortsByTagsRequest");
|
|
49
57
|
const ListSecurityGroupRulesRequest_1 = require("./model/ListSecurityGroupRulesRequest");
|
|
50
58
|
const ListSecurityGroupsRequest_1 = require("./model/ListSecurityGroupsRequest");
|
|
51
59
|
const ListSubNetworkInterfacesRequest_1 = require("./model/ListSubNetworkInterfacesRequest");
|
|
@@ -63,6 +71,7 @@ const ShowClouddcnSubnetRequest_1 = require("./model/ShowClouddcnSubnetRequest")
|
|
|
63
71
|
const ShowClouddcnSubnetsTagsRequest_1 = require("./model/ShowClouddcnSubnetsTagsRequest");
|
|
64
72
|
const ShowFirewallRequest_1 = require("./model/ShowFirewallRequest");
|
|
65
73
|
const ShowFirewallTagsRequest_1 = require("./model/ShowFirewallTagsRequest");
|
|
74
|
+
const ShowPortTagsRequest_1 = require("./model/ShowPortTagsRequest");
|
|
66
75
|
const ShowSecurityGroupRequest_1 = require("./model/ShowSecurityGroupRequest");
|
|
67
76
|
const ShowSecurityGroupRuleRequest_1 = require("./model/ShowSecurityGroupRuleRequest");
|
|
68
77
|
const ShowSubNetworkInterfaceRequest_1 = require("./model/ShowSubNetworkInterfaceRequest");
|
|
@@ -124,6 +133,24 @@ class VpcClient {
|
|
|
124
133
|
options['responseHeaders'] = [''];
|
|
125
134
|
return this.hcClient.sendRequest(options);
|
|
126
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* 为指定的端口批量添加标签。
|
|
138
|
+
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
139
|
+
*
|
|
140
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
141
|
+
*
|
|
142
|
+
* @summary 批量添加端口资源标签
|
|
143
|
+
* @param {string} portId 功能说明:端口唯一标识 取值范围:合法UUID 约束:ID对应的端口必须存在
|
|
144
|
+
* @param {BatchCreatePortTagsRequestBody} [batchCreatePortTagsRequestBody] This is a auto create Body Object
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
batchCreatePortTags(batchCreatePortTagsRequest) {
|
|
149
|
+
const options = (0, exports.ParamCreater)().batchCreatePortTags(batchCreatePortTagsRequest);
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
options['responseHeaders'] = [''];
|
|
152
|
+
return this.hcClient.sendRequest(options);
|
|
153
|
+
}
|
|
127
154
|
/**
|
|
128
155
|
* 在特定安全组下批量创建安全组规则
|
|
129
156
|
*
|
|
@@ -157,6 +184,58 @@ class VpcClient {
|
|
|
157
184
|
options['responseHeaders'] = [''];
|
|
158
185
|
return this.hcClient.sendRequest(options);
|
|
159
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* 为指定的端口资源实例批量删除标签。
|
|
189
|
+
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
190
|
+
*
|
|
191
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
192
|
+
*
|
|
193
|
+
* @summary 批量删除端口资源标签
|
|
194
|
+
* @param {string} portId 功能说明:端口唯一标识 取值范围:合法UUID 约束:ID对应的端口必须存在
|
|
195
|
+
* @param {BatchDeletePortTagsRequestBody} [batchDeletePortTagsRequestBody] This is a auto create Body Object
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
batchDeletePortTags(batchDeletePortTagsRequest) {
|
|
200
|
+
const options = (0, exports.ParamCreater)().batchDeletePortTags(batchDeletePortTagsRequest);
|
|
201
|
+
// @ts-ignore
|
|
202
|
+
options['responseHeaders'] = [''];
|
|
203
|
+
return this.hcClient.sendRequest(options);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* 使用标签过滤查询端口实例数量。
|
|
207
|
+
*
|
|
208
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
209
|
+
*
|
|
210
|
+
* @summary 查询端口资源实例数量
|
|
211
|
+
* @param {CountPortsByTagsRequestBody} [countPortsByTagsRequestBody] This is a auto create Body Object
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
countPortsByTags(countPortsByTagsRequest) {
|
|
216
|
+
const options = (0, exports.ParamCreater)().countPortsByTags(countPortsByTagsRequest);
|
|
217
|
+
// @ts-ignore
|
|
218
|
+
options['responseHeaders'] = [''];
|
|
219
|
+
return this.hcClient.sendRequest(options);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* 给指定端口资源实例增加标签信息
|
|
223
|
+
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
224
|
+
*
|
|
225
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
226
|
+
*
|
|
227
|
+
* @summary 添加端口资源标签
|
|
228
|
+
* @param {string} portId 功能说明:端口唯一标识 取值范围:合法UUID 约束:ID对应的端口必须存在
|
|
229
|
+
* @param {CreatePortTagRequestBody} createPortTagRequestBody This is a auto create Body Object
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
createPortTag(createPortTagRequest) {
|
|
234
|
+
const options = (0, exports.ParamCreater)().createPortTag(createPortTagRequest);
|
|
235
|
+
// @ts-ignore
|
|
236
|
+
options['responseHeaders'] = [''];
|
|
237
|
+
return this.hcClient.sendRequest(options);
|
|
238
|
+
}
|
|
160
239
|
/**
|
|
161
240
|
* 创建安全组
|
|
162
241
|
*
|
|
@@ -253,6 +332,24 @@ class VpcClient {
|
|
|
253
332
|
options['responseHeaders'] = [''];
|
|
254
333
|
return this.hcClient.sendRequest(options);
|
|
255
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* 删除指定端口的标签信息
|
|
337
|
+
* 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串
|
|
338
|
+
*
|
|
339
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
340
|
+
*
|
|
341
|
+
* @summary 删除端口资源标签
|
|
342
|
+
* @param {string} portId 功能说明:端口唯一标识 取值范围:合法UUID 约束:ID对应的端口必须存在
|
|
343
|
+
* @param {string} tagKey 功能说明:标签键
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
deletePortTag(deletePortTagRequest) {
|
|
348
|
+
const options = (0, exports.ParamCreater)().deletePortTag(deletePortTagRequest);
|
|
349
|
+
// @ts-ignore
|
|
350
|
+
options['responseHeaders'] = [''];
|
|
351
|
+
return this.hcClient.sendRequest(options);
|
|
352
|
+
}
|
|
256
353
|
/**
|
|
257
354
|
* 删除安全组
|
|
258
355
|
*
|
|
@@ -349,6 +446,41 @@ class VpcClient {
|
|
|
349
446
|
options['responseHeaders'] = [''];
|
|
350
447
|
return this.hcClient.sendRequest(options);
|
|
351
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* 查询租户在指定Project中实例类型的所有资源标签集合
|
|
451
|
+
*
|
|
452
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
453
|
+
*
|
|
454
|
+
* @summary 查询端口项目标签
|
|
455
|
+
* @param {number} [limit] 功能说明:查询记录数 取值范围:1-1000 约束:默认为1000
|
|
456
|
+
* @param {number} [offset] 功能说明:索引位置, 从第一条数据偏移offset条数据后开始查询 约束:默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
listPortTags(listPortTagsRequest) {
|
|
461
|
+
const options = (0, exports.ParamCreater)().listPortTags(listPortTagsRequest);
|
|
462
|
+
// @ts-ignore
|
|
463
|
+
options['responseHeaders'] = [''];
|
|
464
|
+
return this.hcClient.sendRequest(options);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* 使用标签过滤查询端口。
|
|
468
|
+
*
|
|
469
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
470
|
+
*
|
|
471
|
+
* @summary 查询端口资源实例列表
|
|
472
|
+
* @param {number} [limit] 功能说明:查询记录数 取值范围:1-1000 约束:默认为1000
|
|
473
|
+
* @param {number} [offset] 功能说明:索引位置, 从第一条数据偏移offset条数据后开始查询 约束:默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数
|
|
474
|
+
* @param {ListPortsByTagsRequestBody} [listPortsByTagsRequestBody] This is a auto create Body Object
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
listPortsByTags(listPortsByTagsRequest) {
|
|
479
|
+
const options = (0, exports.ParamCreater)().listPortsByTags(listPortsByTagsRequest);
|
|
480
|
+
// @ts-ignore
|
|
481
|
+
options['responseHeaders'] = [''];
|
|
482
|
+
return this.hcClient.sendRequest(options);
|
|
483
|
+
}
|
|
352
484
|
/**
|
|
353
485
|
* 查询安全组规则列表
|
|
354
486
|
*
|
|
@@ -549,6 +681,22 @@ class VpcClient {
|
|
|
549
681
|
options['responseHeaders'] = [''];
|
|
550
682
|
return this.hcClient.sendRequest(options);
|
|
551
683
|
}
|
|
684
|
+
/**
|
|
685
|
+
* 查询指定端口的标签信息
|
|
686
|
+
*
|
|
687
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
688
|
+
*
|
|
689
|
+
* @summary 查询端口资源标签
|
|
690
|
+
* @param {string} portId 功能说明:端口唯一标识 取值范围:合法UUID 约束:ID对应的端口必须存在
|
|
691
|
+
* @param {*} [options] Override http request option.
|
|
692
|
+
* @throws {RequiredError}
|
|
693
|
+
*/
|
|
694
|
+
showPortTags(showPortTagsRequest) {
|
|
695
|
+
const options = (0, exports.ParamCreater)().showPortTags(showPortTagsRequest);
|
|
696
|
+
// @ts-ignore
|
|
697
|
+
options['responseHeaders'] = [''];
|
|
698
|
+
return this.hcClient.sendRequest(options);
|
|
699
|
+
}
|
|
552
700
|
/**
|
|
553
701
|
* 查询单个安全组详情
|
|
554
702
|
*
|
|
@@ -780,7 +928,7 @@ class VpcClient {
|
|
|
780
928
|
return this.hcClient.sendRequest(options);
|
|
781
929
|
}
|
|
782
930
|
/**
|
|
783
|
-
*
|
|
931
|
+
* 为指定的网络ACL资源实例批量添加标签。
|
|
784
932
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
785
933
|
*
|
|
786
934
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
@@ -798,7 +946,7 @@ class VpcClient {
|
|
|
798
946
|
return this.hcClient.sendRequest(options);
|
|
799
947
|
}
|
|
800
948
|
/**
|
|
801
|
-
*
|
|
949
|
+
* 为指定的网络ACL资源实例批量删除标签。
|
|
802
950
|
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
803
951
|
*
|
|
804
952
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
@@ -944,11 +1092,13 @@ class VpcClient {
|
|
|
944
1092
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
945
1093
|
*
|
|
946
1094
|
* @summary 查询ACL项目标签
|
|
1095
|
+
* @param {number} [limit] 功能说明:查询记录数 取值范围:1-1000 约束:默认为1000
|
|
1096
|
+
* @param {number} [offset] 功能说明:索引位置, 从第一条数据偏移offset条数据后开始查询 约束:默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数
|
|
947
1097
|
* @param {*} [options] Override http request option.
|
|
948
1098
|
* @throws {RequiredError}
|
|
949
1099
|
*/
|
|
950
1100
|
listFirewallTags(listFirewallTagsRequest) {
|
|
951
|
-
const options = (0, exports.ParamCreater)().listFirewallTags();
|
|
1101
|
+
const options = (0, exports.ParamCreater)().listFirewallTags(listFirewallTagsRequest);
|
|
952
1102
|
// @ts-ignore
|
|
953
1103
|
options['responseHeaders'] = [''];
|
|
954
1104
|
return this.hcClient.sendRequest(options);
|
|
@@ -1577,6 +1727,44 @@ const ParamCreater = function () {
|
|
|
1577
1727
|
options.headers = localVarHeaderParameter;
|
|
1578
1728
|
return options;
|
|
1579
1729
|
},
|
|
1730
|
+
/**
|
|
1731
|
+
* 为指定的端口批量添加标签。
|
|
1732
|
+
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
1733
|
+
*
|
|
1734
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1735
|
+
*/
|
|
1736
|
+
batchCreatePortTags(batchCreatePortTagsRequest) {
|
|
1737
|
+
const options = {
|
|
1738
|
+
method: "POST",
|
|
1739
|
+
url: "/v3/{project_id}/ports/{port_id}/tags/create",
|
|
1740
|
+
contentType: "application/json",
|
|
1741
|
+
queryParams: {},
|
|
1742
|
+
pathParams: {},
|
|
1743
|
+
headers: {},
|
|
1744
|
+
data: {}
|
|
1745
|
+
};
|
|
1746
|
+
const localVarHeaderParameter = {};
|
|
1747
|
+
let body;
|
|
1748
|
+
let portId;
|
|
1749
|
+
if (batchCreatePortTagsRequest !== null && batchCreatePortTagsRequest !== undefined) {
|
|
1750
|
+
if (batchCreatePortTagsRequest instanceof BatchCreatePortTagsRequest_1.BatchCreatePortTagsRequest) {
|
|
1751
|
+
portId = batchCreatePortTagsRequest.portId;
|
|
1752
|
+
body = batchCreatePortTagsRequest.body;
|
|
1753
|
+
}
|
|
1754
|
+
else {
|
|
1755
|
+
portId = batchCreatePortTagsRequest['port_id'];
|
|
1756
|
+
body = batchCreatePortTagsRequest['body'];
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
if (portId === null || portId === undefined) {
|
|
1760
|
+
throw new RequiredError('portId', 'Required parameter portId was null or undefined when calling batchCreatePortTags.');
|
|
1761
|
+
}
|
|
1762
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1763
|
+
options.data = body !== undefined ? body : {};
|
|
1764
|
+
options.pathParams = { 'port_id': portId, };
|
|
1765
|
+
options.headers = localVarHeaderParameter;
|
|
1766
|
+
return options;
|
|
1767
|
+
},
|
|
1580
1768
|
/**
|
|
1581
1769
|
* 在特定安全组下批量创建安全组规则
|
|
1582
1770
|
*
|
|
@@ -1650,6 +1838,115 @@ const ParamCreater = function () {
|
|
|
1650
1838
|
options.headers = localVarHeaderParameter;
|
|
1651
1839
|
return options;
|
|
1652
1840
|
},
|
|
1841
|
+
/**
|
|
1842
|
+
* 为指定的端口资源实例批量删除标签。
|
|
1843
|
+
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
1844
|
+
*
|
|
1845
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1846
|
+
*/
|
|
1847
|
+
batchDeletePortTags(batchDeletePortTagsRequest) {
|
|
1848
|
+
const options = {
|
|
1849
|
+
method: "POST",
|
|
1850
|
+
url: "/v3/{project_id}/ports/{port_id}/tags/delete",
|
|
1851
|
+
contentType: "application/json",
|
|
1852
|
+
queryParams: {},
|
|
1853
|
+
pathParams: {},
|
|
1854
|
+
headers: {},
|
|
1855
|
+
data: {}
|
|
1856
|
+
};
|
|
1857
|
+
const localVarHeaderParameter = {};
|
|
1858
|
+
let body;
|
|
1859
|
+
let portId;
|
|
1860
|
+
if (batchDeletePortTagsRequest !== null && batchDeletePortTagsRequest !== undefined) {
|
|
1861
|
+
if (batchDeletePortTagsRequest instanceof BatchDeletePortTagsRequest_1.BatchDeletePortTagsRequest) {
|
|
1862
|
+
portId = batchDeletePortTagsRequest.portId;
|
|
1863
|
+
body = batchDeletePortTagsRequest.body;
|
|
1864
|
+
}
|
|
1865
|
+
else {
|
|
1866
|
+
portId = batchDeletePortTagsRequest['port_id'];
|
|
1867
|
+
body = batchDeletePortTagsRequest['body'];
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
if (portId === null || portId === undefined) {
|
|
1871
|
+
throw new RequiredError('portId', 'Required parameter portId was null or undefined when calling batchDeletePortTags.');
|
|
1872
|
+
}
|
|
1873
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1874
|
+
options.data = body !== undefined ? body : {};
|
|
1875
|
+
options.pathParams = { 'port_id': portId, };
|
|
1876
|
+
options.headers = localVarHeaderParameter;
|
|
1877
|
+
return options;
|
|
1878
|
+
},
|
|
1879
|
+
/**
|
|
1880
|
+
* 使用标签过滤查询端口实例数量。
|
|
1881
|
+
*
|
|
1882
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1883
|
+
*/
|
|
1884
|
+
countPortsByTags(countPortsByTagsRequest) {
|
|
1885
|
+
const options = {
|
|
1886
|
+
method: "POST",
|
|
1887
|
+
url: "/v3/{project_id}/ports/resource-instances/count",
|
|
1888
|
+
contentType: "application/json",
|
|
1889
|
+
queryParams: {},
|
|
1890
|
+
pathParams: {},
|
|
1891
|
+
headers: {},
|
|
1892
|
+
data: {}
|
|
1893
|
+
};
|
|
1894
|
+
const localVarHeaderParameter = {};
|
|
1895
|
+
let body;
|
|
1896
|
+
if (countPortsByTagsRequest !== null && countPortsByTagsRequest !== undefined) {
|
|
1897
|
+
if (countPortsByTagsRequest instanceof CountPortsByTagsRequest_1.CountPortsByTagsRequest) {
|
|
1898
|
+
body = countPortsByTagsRequest.body;
|
|
1899
|
+
}
|
|
1900
|
+
else {
|
|
1901
|
+
body = countPortsByTagsRequest['body'];
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1905
|
+
options.data = body !== undefined ? body : {};
|
|
1906
|
+
options.headers = localVarHeaderParameter;
|
|
1907
|
+
return options;
|
|
1908
|
+
},
|
|
1909
|
+
/**
|
|
1910
|
+
* 给指定端口资源实例增加标签信息
|
|
1911
|
+
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
1912
|
+
*
|
|
1913
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1914
|
+
*/
|
|
1915
|
+
createPortTag(createPortTagRequest) {
|
|
1916
|
+
const options = {
|
|
1917
|
+
method: "POST",
|
|
1918
|
+
url: "/v3/{project_id}/ports/{port_id}/tags",
|
|
1919
|
+
contentType: "application/json",
|
|
1920
|
+
queryParams: {},
|
|
1921
|
+
pathParams: {},
|
|
1922
|
+
headers: {},
|
|
1923
|
+
data: {}
|
|
1924
|
+
};
|
|
1925
|
+
const localVarHeaderParameter = {};
|
|
1926
|
+
let body;
|
|
1927
|
+
let portId;
|
|
1928
|
+
if (createPortTagRequest !== null && createPortTagRequest !== undefined) {
|
|
1929
|
+
if (createPortTagRequest instanceof CreatePortTagRequest_1.CreatePortTagRequest) {
|
|
1930
|
+
portId = createPortTagRequest.portId;
|
|
1931
|
+
body = createPortTagRequest.body;
|
|
1932
|
+
}
|
|
1933
|
+
else {
|
|
1934
|
+
portId = createPortTagRequest['port_id'];
|
|
1935
|
+
body = createPortTagRequest['body'];
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
if (portId === null || portId === undefined) {
|
|
1939
|
+
throw new RequiredError('portId', 'Required parameter portId was null or undefined when calling createPortTag.');
|
|
1940
|
+
}
|
|
1941
|
+
if (body === null || body === undefined) {
|
|
1942
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1943
|
+
}
|
|
1944
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1945
|
+
options.data = body !== undefined ? body : {};
|
|
1946
|
+
options.pathParams = { 'port_id': portId, };
|
|
1947
|
+
options.headers = localVarHeaderParameter;
|
|
1948
|
+
return options;
|
|
1949
|
+
},
|
|
1653
1950
|
/**
|
|
1654
1951
|
* 创建安全组
|
|
1655
1952
|
*
|
|
@@ -1848,6 +2145,44 @@ const ParamCreater = function () {
|
|
|
1848
2145
|
options.headers = localVarHeaderParameter;
|
|
1849
2146
|
return options;
|
|
1850
2147
|
},
|
|
2148
|
+
/**
|
|
2149
|
+
* 删除指定端口的标签信息
|
|
2150
|
+
* 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串
|
|
2151
|
+
*
|
|
2152
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2153
|
+
*/
|
|
2154
|
+
deletePortTag(deletePortTagRequest) {
|
|
2155
|
+
const options = {
|
|
2156
|
+
method: "DELETE",
|
|
2157
|
+
url: "/v3/{project_id}/ports/{port_id}/tags/{tag_key}",
|
|
2158
|
+
contentType: "application/json",
|
|
2159
|
+
queryParams: {},
|
|
2160
|
+
pathParams: {},
|
|
2161
|
+
headers: {}
|
|
2162
|
+
};
|
|
2163
|
+
const localVarHeaderParameter = {};
|
|
2164
|
+
let portId;
|
|
2165
|
+
let tagKey;
|
|
2166
|
+
if (deletePortTagRequest !== null && deletePortTagRequest !== undefined) {
|
|
2167
|
+
if (deletePortTagRequest instanceof DeletePortTagRequest_1.DeletePortTagRequest) {
|
|
2168
|
+
portId = deletePortTagRequest.portId;
|
|
2169
|
+
tagKey = deletePortTagRequest.tagKey;
|
|
2170
|
+
}
|
|
2171
|
+
else {
|
|
2172
|
+
portId = deletePortTagRequest['port_id'];
|
|
2173
|
+
tagKey = deletePortTagRequest['tag_key'];
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
if (portId === null || portId === undefined) {
|
|
2177
|
+
throw new RequiredError('portId', 'Required parameter portId was null or undefined when calling deletePortTag.');
|
|
2178
|
+
}
|
|
2179
|
+
if (tagKey === null || tagKey === undefined) {
|
|
2180
|
+
throw new RequiredError('tagKey', 'Required parameter tagKey was null or undefined when calling deletePortTag.');
|
|
2181
|
+
}
|
|
2182
|
+
options.pathParams = { 'port_id': portId, 'tag_key': tagKey, };
|
|
2183
|
+
options.headers = localVarHeaderParameter;
|
|
2184
|
+
return options;
|
|
2185
|
+
},
|
|
1851
2186
|
/**
|
|
1852
2187
|
* 删除安全组
|
|
1853
2188
|
*
|
|
@@ -2034,6 +2369,88 @@ const ParamCreater = function () {
|
|
|
2034
2369
|
options.headers = localVarHeaderParameter;
|
|
2035
2370
|
return options;
|
|
2036
2371
|
},
|
|
2372
|
+
/**
|
|
2373
|
+
* 查询租户在指定Project中实例类型的所有资源标签集合
|
|
2374
|
+
*
|
|
2375
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2376
|
+
*/
|
|
2377
|
+
listPortTags(listPortTagsRequest) {
|
|
2378
|
+
const options = {
|
|
2379
|
+
method: "GET",
|
|
2380
|
+
url: "/v3/{project_id}/ports/tags",
|
|
2381
|
+
contentType: "application/json",
|
|
2382
|
+
queryParams: {},
|
|
2383
|
+
pathParams: {},
|
|
2384
|
+
headers: {}
|
|
2385
|
+
};
|
|
2386
|
+
const localVarHeaderParameter = {};
|
|
2387
|
+
const localVarQueryParameter = {};
|
|
2388
|
+
let limit;
|
|
2389
|
+
let offset;
|
|
2390
|
+
if (listPortTagsRequest !== null && listPortTagsRequest !== undefined) {
|
|
2391
|
+
if (listPortTagsRequest instanceof ListPortTagsRequest_1.ListPortTagsRequest) {
|
|
2392
|
+
limit = listPortTagsRequest.limit;
|
|
2393
|
+
offset = listPortTagsRequest.offset;
|
|
2394
|
+
}
|
|
2395
|
+
else {
|
|
2396
|
+
limit = listPortTagsRequest['limit'];
|
|
2397
|
+
offset = listPortTagsRequest['offset'];
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
if (limit !== null && limit !== undefined) {
|
|
2401
|
+
localVarQueryParameter['limit'] = limit;
|
|
2402
|
+
}
|
|
2403
|
+
if (offset !== null && offset !== undefined) {
|
|
2404
|
+
localVarQueryParameter['offset'] = offset;
|
|
2405
|
+
}
|
|
2406
|
+
options.queryParams = localVarQueryParameter;
|
|
2407
|
+
options.headers = localVarHeaderParameter;
|
|
2408
|
+
return options;
|
|
2409
|
+
},
|
|
2410
|
+
/**
|
|
2411
|
+
* 使用标签过滤查询端口。
|
|
2412
|
+
*
|
|
2413
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2414
|
+
*/
|
|
2415
|
+
listPortsByTags(listPortsByTagsRequest) {
|
|
2416
|
+
const options = {
|
|
2417
|
+
method: "POST",
|
|
2418
|
+
url: "/v3/{project_id}/ports/resource-instances/filter",
|
|
2419
|
+
contentType: "application/json",
|
|
2420
|
+
queryParams: {},
|
|
2421
|
+
pathParams: {},
|
|
2422
|
+
headers: {},
|
|
2423
|
+
data: {}
|
|
2424
|
+
};
|
|
2425
|
+
const localVarHeaderParameter = {};
|
|
2426
|
+
const localVarQueryParameter = {};
|
|
2427
|
+
let body;
|
|
2428
|
+
let limit;
|
|
2429
|
+
let offset;
|
|
2430
|
+
if (listPortsByTagsRequest !== null && listPortsByTagsRequest !== undefined) {
|
|
2431
|
+
if (listPortsByTagsRequest instanceof ListPortsByTagsRequest_1.ListPortsByTagsRequest) {
|
|
2432
|
+
limit = listPortsByTagsRequest.limit;
|
|
2433
|
+
offset = listPortsByTagsRequest.offset;
|
|
2434
|
+
body = listPortsByTagsRequest.body;
|
|
2435
|
+
}
|
|
2436
|
+
else {
|
|
2437
|
+
limit = listPortsByTagsRequest['limit'];
|
|
2438
|
+
offset = listPortsByTagsRequest['offset'];
|
|
2439
|
+
body = listPortsByTagsRequest['body'];
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
if (limit !== null && limit !== undefined) {
|
|
2443
|
+
localVarQueryParameter['limit'] = limit;
|
|
2444
|
+
}
|
|
2445
|
+
if (offset !== null && offset !== undefined) {
|
|
2446
|
+
localVarQueryParameter['offset'] = offset;
|
|
2447
|
+
}
|
|
2448
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2449
|
+
options.data = body !== undefined ? body : {};
|
|
2450
|
+
options.queryParams = localVarQueryParameter;
|
|
2451
|
+
options.headers = localVarHeaderParameter;
|
|
2452
|
+
return options;
|
|
2453
|
+
},
|
|
2037
2454
|
/**
|
|
2038
2455
|
* 查询安全组规则列表
|
|
2039
2456
|
*
|
|
@@ -2663,6 +3080,37 @@ const ParamCreater = function () {
|
|
|
2663
3080
|
options.headers = localVarHeaderParameter;
|
|
2664
3081
|
return options;
|
|
2665
3082
|
},
|
|
3083
|
+
/**
|
|
3084
|
+
* 查询指定端口的标签信息
|
|
3085
|
+
*
|
|
3086
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3087
|
+
*/
|
|
3088
|
+
showPortTags(showPortTagsRequest) {
|
|
3089
|
+
const options = {
|
|
3090
|
+
method: "GET",
|
|
3091
|
+
url: "/v3/{project_id}/ports/{port_id}/tags",
|
|
3092
|
+
contentType: "application/json",
|
|
3093
|
+
queryParams: {},
|
|
3094
|
+
pathParams: {},
|
|
3095
|
+
headers: {}
|
|
3096
|
+
};
|
|
3097
|
+
const localVarHeaderParameter = {};
|
|
3098
|
+
let portId;
|
|
3099
|
+
if (showPortTagsRequest !== null && showPortTagsRequest !== undefined) {
|
|
3100
|
+
if (showPortTagsRequest instanceof ShowPortTagsRequest_1.ShowPortTagsRequest) {
|
|
3101
|
+
portId = showPortTagsRequest.portId;
|
|
3102
|
+
}
|
|
3103
|
+
else {
|
|
3104
|
+
portId = showPortTagsRequest['port_id'];
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
if (portId === null || portId === undefined) {
|
|
3108
|
+
throw new RequiredError('portId', 'Required parameter portId was null or undefined when calling showPortTags.');
|
|
3109
|
+
}
|
|
3110
|
+
options.pathParams = { 'port_id': portId, };
|
|
3111
|
+
options.headers = localVarHeaderParameter;
|
|
3112
|
+
return options;
|
|
3113
|
+
},
|
|
2666
3114
|
/**
|
|
2667
3115
|
* 查询单个安全组详情
|
|
2668
3116
|
*
|
|
@@ -3148,7 +3596,7 @@ const ParamCreater = function () {
|
|
|
3148
3596
|
return options;
|
|
3149
3597
|
},
|
|
3150
3598
|
/**
|
|
3151
|
-
*
|
|
3599
|
+
* 为指定的网络ACL资源实例批量添加标签。
|
|
3152
3600
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
3153
3601
|
*
|
|
3154
3602
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
@@ -3186,7 +3634,7 @@ const ParamCreater = function () {
|
|
|
3186
3634
|
return options;
|
|
3187
3635
|
},
|
|
3188
3636
|
/**
|
|
3189
|
-
*
|
|
3637
|
+
* 为指定的网络ACL资源实例批量删除标签。
|
|
3190
3638
|
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
3191
3639
|
*
|
|
3192
3640
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
@@ -3509,7 +3957,7 @@ const ParamCreater = function () {
|
|
|
3509
3957
|
*
|
|
3510
3958
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3511
3959
|
*/
|
|
3512
|
-
listFirewallTags() {
|
|
3960
|
+
listFirewallTags(listFirewallTagsRequest) {
|
|
3513
3961
|
const options = {
|
|
3514
3962
|
method: "GET",
|
|
3515
3963
|
url: "/v3/{project_id}/firewalls/tags",
|
|
@@ -3519,6 +3967,26 @@ const ParamCreater = function () {
|
|
|
3519
3967
|
headers: {}
|
|
3520
3968
|
};
|
|
3521
3969
|
const localVarHeaderParameter = {};
|
|
3970
|
+
const localVarQueryParameter = {};
|
|
3971
|
+
let limit;
|
|
3972
|
+
let offset;
|
|
3973
|
+
if (listFirewallTagsRequest !== null && listFirewallTagsRequest !== undefined) {
|
|
3974
|
+
if (listFirewallTagsRequest instanceof ListFirewallTagsRequest_1.ListFirewallTagsRequest) {
|
|
3975
|
+
limit = listFirewallTagsRequest.limit;
|
|
3976
|
+
offset = listFirewallTagsRequest.offset;
|
|
3977
|
+
}
|
|
3978
|
+
else {
|
|
3979
|
+
limit = listFirewallTagsRequest['limit'];
|
|
3980
|
+
offset = listFirewallTagsRequest['offset'];
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
if (limit !== null && limit !== undefined) {
|
|
3984
|
+
localVarQueryParameter['limit'] = limit;
|
|
3985
|
+
}
|
|
3986
|
+
if (offset !== null && offset !== undefined) {
|
|
3987
|
+
localVarQueryParameter['offset'] = offset;
|
|
3988
|
+
}
|
|
3989
|
+
options.queryParams = localVarQueryParameter;
|
|
3522
3990
|
options.headers = localVarHeaderParameter;
|
|
3523
3991
|
return options;
|
|
3524
3992
|
},
|