@huaweicloud/huaweicloud-sdk-eip 3.1.12 → 3.1.14

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.
Files changed (59) hide show
  1. package/package.json +2 -2
  2. package/v2/EipClient.d.ts +179 -0
  3. package/v2/EipClient.js +286 -0
  4. package/v2/model/BandwidthPkgPage.d.ts +7 -0
  5. package/v2/model/BandwidthPkgPage.js +19 -0
  6. package/v2/model/BandwidthPkgResp.d.ts +25 -0
  7. package/v2/model/BandwidthPkgResp.js +68 -0
  8. package/v2/model/BatchBandwidth.d.ts +33 -0
  9. package/v2/model/BatchBandwidth.js +68 -0
  10. package/v2/model/BatchCreatePublicipsRequest.d.ts +6 -0
  11. package/v2/model/BatchCreatePublicipsRequest.js +13 -0
  12. package/v2/model/BatchCreatePublicipsResponse.d.ts +8 -0
  13. package/v2/model/BatchCreatePublicipsResponse.js +41 -0
  14. package/v2/model/BatchCreatePublicipsV2RequestBody.d.ts +17 -0
  15. package/v2/model/BatchCreatePublicipsV2RequestBody.js +49 -0
  16. package/v2/model/BatchDeletePublicIpRequest.d.ts +6 -0
  17. package/v2/model/BatchDeletePublicIpRequest.js +13 -0
  18. package/v2/model/BatchDeletePublicIpRequestBody.d.ts +7 -0
  19. package/v2/model/BatchDeletePublicIpRequestBody.js +24 -0
  20. package/v2/model/BatchDeletePublicIpResponse.d.ts +8 -0
  21. package/v2/model/BatchDeletePublicIpResponse.js +41 -0
  22. package/v2/model/BatchDisassociatePublicipsRequest.d.ts +6 -0
  23. package/v2/model/BatchDisassociatePublicipsRequest.js +13 -0
  24. package/v2/model/BatchDisassociatePublicipsResponse.d.ts +8 -0
  25. package/v2/model/BatchDisassociatePublicipsResponse.js +41 -0
  26. package/v2/model/BatchProfile.d.ts +19 -0
  27. package/v2/model/BatchProfile.js +65 -0
  28. package/v2/model/BatchPublicIp.d.ts +29 -0
  29. package/v2/model/BatchPublicIp.js +64 -0
  30. package/v2/model/CountPublicIpInstanceRequest.d.ts +3 -0
  31. package/v2/model/CountPublicIpInstanceRequest.js +9 -0
  32. package/v2/model/CountPublicIpInstanceResponse.d.ts +6 -0
  33. package/v2/model/CountPublicIpInstanceResponse.js +31 -0
  34. package/v2/model/CountPublicIpRequest.d.ts +3 -0
  35. package/v2/model/CountPublicIpRequest.js +9 -0
  36. package/v2/model/CountPublicIpResponse.d.ts +8 -0
  37. package/v2/model/CountPublicIpResponse.js +41 -0
  38. package/v2/model/ListBandwidthPkgRequest.d.ts +3 -0
  39. package/v2/model/ListBandwidthPkgRequest.js +9 -0
  40. package/v2/model/ListBandwidthPkgResponse.d.ts +12 -0
  41. package/v2/model/ListBandwidthPkgResponse.js +45 -0
  42. package/v2/model/ShowPublicIpTypeRequest.d.ts +3 -0
  43. package/v2/model/ShowPublicIpTypeRequest.js +9 -0
  44. package/v2/model/ShowPublicIpTypeResponse.d.ts +6 -0
  45. package/v2/model/ShowPublicIpTypeResponse.js +31 -0
  46. package/v2/public-api.d.ts +21 -0
  47. package/v2/public-api.js +21 -0
  48. package/v3/EipClient.d.ts +70 -43
  49. package/v3/EipClient.js +219 -169
  50. package/v3/model/AssociatePublicipsOption.d.ts +1 -2
  51. package/v3/model/AssociatePublicipsOption.js +0 -1
  52. package/v3/model/CountEipAvailableResourcesRequest.d.ts +6 -0
  53. package/v3/model/CountEipAvailableResourcesRequest.js +13 -0
  54. package/v3/model/CountEipAvailableResourcesResponse.d.ts +6 -0
  55. package/v3/model/CountEipAvailableResourcesResponse.js +31 -0
  56. package/v3/model/EipResourcesAvailableV3RequestBody.d.ts +7 -0
  57. package/v3/model/EipResourcesAvailableV3RequestBody.js +18 -0
  58. package/v3/public-api.d.ts +3 -0
  59. package/v3/public-api.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-eip",
3
- "version": "3.1.12",
3
+ "version": "3.1.14",
4
4
  "description": "Huaweicloud SDK for eip",
5
5
  "main": "huaweicloud-sdk-eip.js",
6
6
  "typings": "huaweicloud-sdk-eip.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.12"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.14"
18
18
  }
19
19
  }
package/v2/EipClient.d.ts CHANGED
@@ -3,9 +3,16 @@ import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
3
  import { AddPublicipsIntoSharedBandwidthRequest } from './model/AddPublicipsIntoSharedBandwidthRequest';
4
4
  import { AddPublicipsIntoSharedBandwidthResponse } from './model/AddPublicipsIntoSharedBandwidthResponse';
5
5
  import { BatchCreatePublicipTagsRequest } from './model/BatchCreatePublicipTagsRequest';
6
+ import { BatchCreatePublicipsRequest } from './model/BatchCreatePublicipsRequest';
7
+ import { BatchCreatePublicipsResponse } from './model/BatchCreatePublicipsResponse';
6
8
  import { BatchCreateSharedBandwidthsRequest } from './model/BatchCreateSharedBandwidthsRequest';
7
9
  import { BatchCreateSharedBandwidthsResponse } from './model/BatchCreateSharedBandwidthsResponse';
10
+ import { BatchDeletePublicIpRequest } from './model/BatchDeletePublicIpRequest';
11
+ import { BatchDeletePublicIpResponse } from './model/BatchDeletePublicIpResponse';
8
12
  import { BatchDeletePublicipTagsRequest } from './model/BatchDeletePublicipTagsRequest';
13
+ import { BatchDisassociatePublicipsRequest } from './model/BatchDisassociatePublicipsRequest';
14
+ import { BatchDisassociatePublicipsResponse } from './model/BatchDisassociatePublicipsResponse';
15
+ import { CountPublicIpResponse } from './model/CountPublicIpResponse';
9
16
  import { CreatePrePaidPublicipRequest } from './model/CreatePrePaidPublicipRequest';
10
17
  import { CreatePrePaidPublicipResponse } from './model/CreatePrePaidPublicipResponse';
11
18
  import { CreatePublicipRequest } from './model/CreatePublicipRequest';
@@ -16,6 +23,7 @@ import { CreateSharedBandwidthResponse } from './model/CreateSharedBandwidthResp
16
23
  import { DeletePublicipRequest } from './model/DeletePublicipRequest';
17
24
  import { DeletePublicipTagRequest } from './model/DeletePublicipTagRequest';
18
25
  import { DeleteSharedBandwidthRequest } from './model/DeleteSharedBandwidthRequest';
26
+ import { ListBandwidthPkgResponse } from './model/ListBandwidthPkgResponse';
19
27
  import { ListBandwidthsRequest } from './model/ListBandwidthsRequest';
20
28
  import { ListBandwidthsResponse } from './model/ListBandwidthsResponse';
21
29
  import { ListPublicipTagsResponse } from './model/ListPublicipTagsResponse';
@@ -97,6 +105,16 @@ export declare class EipClient {
97
105
  * @throws {RequiredError}
98
106
  */
99
107
  deleteSharedBandwidth(deleteSharedBandwidthRequest?: DeleteSharedBandwidthRequest): Promise<void>;
108
+ /**
109
+ * 查询带宽加油包列表信息
110
+ *
111
+ * Please refer to HUAWEI cloud API Explorer for details.
112
+ *
113
+ * @summary 查询带宽加油包列表
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ listBandwidthPkg(): Promise<ListBandwidthPkgResponse>;
100
118
  /**
101
119
  * 查询带宽列表。
102
120
  *
@@ -181,6 +199,28 @@ export declare class EipClient {
181
199
  * @throws {RequiredError}
182
200
  */
183
201
  batchCreatePublicipTags(batchCreatePublicipTagsRequest?: BatchCreatePublicipTagsRequest): Promise<void>;
202
+ /**
203
+ * 批量创建弹性公网IP
204
+ *
205
+ * Please refer to HUAWEI cloud API Explorer for details.
206
+ *
207
+ * @summary 批量创建弹性公网IP
208
+ * @param {BatchCreatePublicipsV2RequestBody} batchCreatePublicipsV2RequestBody This is a auto create Body Object
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ batchCreatePublicips(batchCreatePublicipsRequest?: BatchCreatePublicipsRequest): Promise<BatchCreatePublicipsResponse>;
213
+ /**
214
+ * 批量删除弹性公网IP
215
+ *
216
+ * Please refer to HUAWEI cloud API Explorer for details.
217
+ *
218
+ * @summary 批量删除弹性公网IP
219
+ * @param {BatchDeletePublicIpRequestBody} batchDeletePublicIpRequestBody 批量操作弹性公网IP请求体
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ batchDeletePublicIp(batchDeletePublicIpRequest?: BatchDeletePublicIpRequest): Promise<BatchDeletePublicIpResponse>;
184
224
  /**
185
225
  * 为指定的弹性公网IP资源实例批量删除标签。
186
226
  *
@@ -193,6 +233,37 @@ export declare class EipClient {
193
233
  * @throws {RequiredError}
194
234
  */
195
235
  batchDeletePublicipTags(batchDeletePublicipTagsRequest?: BatchDeletePublicipTagsRequest): Promise<void>;
236
+ /**
237
+ * 批量解绑弹性公网IP
238
+ *
239
+ * Please refer to HUAWEI cloud API Explorer for details.
240
+ *
241
+ * @summary 批量解绑弹性公网IP
242
+ * @param {BatchDeletePublicIpRequestBody} batchDisassociatePublicipsRequestBody 批量操作弹性公网IP请求体
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ batchDisassociatePublicips(batchDisassociatePublicipsRequest?: BatchDisassociatePublicipsRequest): Promise<BatchDisassociatePublicipsResponse>;
247
+ /**
248
+ * 查询PublicIp数量
249
+ *
250
+ * Please refer to HUAWEI cloud API Explorer for details.
251
+ *
252
+ * @summary 查询PublicIp数量
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ countPublicIp(): Promise<CountPublicIpResponse>;
257
+ /**
258
+ * 查询PublicIp实例数
259
+ *
260
+ * Please refer to HUAWEI cloud API Explorer for details.
261
+ *
262
+ * @summary 查询PublicIp实例数
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ countPublicIpInstance(): Promise<string>;
196
267
  /**
197
268
  * 申请包年包月的弹性公网IP。
198
269
  *
@@ -291,6 +362,16 @@ export declare class EipClient {
291
362
  * @throws {RequiredError}
292
363
  */
293
364
  listPublicipsByTags(listPublicipsByTagsRequest?: ListPublicipsByTagsRequest): Promise<ListPublicipsByTagsResponse>;
365
+ /**
366
+ * 查询PublicIp类型
367
+ *
368
+ * Please refer to HUAWEI cloud API Explorer for details.
369
+ *
370
+ * @summary 查询PublicIp类型
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ showPublicIpType(): Promise<string>;
294
375
  /**
295
376
  * 查询指定的弹性公网IP。
296
377
  *
@@ -450,6 +531,20 @@ export declare const ParamCreater: () => {
450
531
  headers: {};
451
532
  data: {};
452
533
  };
534
+ /**
535
+ * 查询带宽加油包列表信息
536
+ *
537
+ * Please refer to HUAWEI cloud API Explorer for details.
538
+ */
539
+ listBandwidthPkg(): {
540
+ method: string;
541
+ url: string;
542
+ contentType: string;
543
+ queryParams: {};
544
+ pathParams: {};
545
+ headers: {};
546
+ data: {};
547
+ };
453
548
  /**
454
549
  * 查询带宽列表。
455
550
  *
@@ -548,6 +643,34 @@ export declare const ParamCreater: () => {
548
643
  headers: {};
549
644
  data: {};
550
645
  };
646
+ /**
647
+ * 批量创建弹性公网IP
648
+ *
649
+ * Please refer to HUAWEI cloud API Explorer for details.
650
+ */
651
+ batchCreatePublicips(batchCreatePublicipsRequest?: BatchCreatePublicipsRequest): {
652
+ method: string;
653
+ url: string;
654
+ contentType: string;
655
+ queryParams: {};
656
+ pathParams: {};
657
+ headers: {};
658
+ data: {};
659
+ };
660
+ /**
661
+ * 批量删除弹性公网IP
662
+ *
663
+ * Please refer to HUAWEI cloud API Explorer for details.
664
+ */
665
+ batchDeletePublicIp(batchDeletePublicIpRequest?: BatchDeletePublicIpRequest): {
666
+ method: string;
667
+ url: string;
668
+ contentType: string;
669
+ queryParams: {};
670
+ pathParams: {};
671
+ headers: {};
672
+ data: {};
673
+ };
551
674
  /**
552
675
  * 为指定的弹性公网IP资源实例批量删除标签。
553
676
  *
@@ -562,6 +685,48 @@ export declare const ParamCreater: () => {
562
685
  headers: {};
563
686
  data: {};
564
687
  };
688
+ /**
689
+ * 批量解绑弹性公网IP
690
+ *
691
+ * Please refer to HUAWEI cloud API Explorer for details.
692
+ */
693
+ batchDisassociatePublicips(batchDisassociatePublicipsRequest?: BatchDisassociatePublicipsRequest): {
694
+ method: string;
695
+ url: string;
696
+ contentType: string;
697
+ queryParams: {};
698
+ pathParams: {};
699
+ headers: {};
700
+ data: {};
701
+ };
702
+ /**
703
+ * 查询PublicIp数量
704
+ *
705
+ * Please refer to HUAWEI cloud API Explorer for details.
706
+ */
707
+ countPublicIp(): {
708
+ method: string;
709
+ url: string;
710
+ contentType: string;
711
+ queryParams: {};
712
+ pathParams: {};
713
+ headers: {};
714
+ data: {};
715
+ };
716
+ /**
717
+ * 查询PublicIp实例数
718
+ *
719
+ * Please refer to HUAWEI cloud API Explorer for details.
720
+ */
721
+ countPublicIpInstance(): {
722
+ method: string;
723
+ url: string;
724
+ contentType: string;
725
+ queryParams: {};
726
+ pathParams: {};
727
+ headers: {};
728
+ data: {};
729
+ };
565
730
  /**
566
731
  * 申请包年包月的弹性公网IP。
567
732
  *
@@ -675,6 +840,20 @@ export declare const ParamCreater: () => {
675
840
  headers: {};
676
841
  data: {};
677
842
  };
843
+ /**
844
+ * 查询PublicIp类型
845
+ *
846
+ * Please refer to HUAWEI cloud API Explorer for details.
847
+ */
848
+ showPublicIpType(): {
849
+ method: string;
850
+ url: string;
851
+ contentType: string;
852
+ queryParams: {};
853
+ pathParams: {};
854
+ headers: {};
855
+ data: {};
856
+ };
678
857
  /**
679
858
  * 查询指定的弹性公网IP。
680
859
  *
package/v2/EipClient.js CHANGED
@@ -19,8 +19,11 @@ exports.RequiredError = exports.ParamCreater = exports.EipClient = void 0;
19
19
  var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
20
20
  var AddPublicipsIntoSharedBandwidthRequest_1 = require("./model/AddPublicipsIntoSharedBandwidthRequest");
21
21
  var BatchCreatePublicipTagsRequest_1 = require("./model/BatchCreatePublicipTagsRequest");
22
+ var BatchCreatePublicipsRequest_1 = require("./model/BatchCreatePublicipsRequest");
22
23
  var BatchCreateSharedBandwidthsRequest_1 = require("./model/BatchCreateSharedBandwidthsRequest");
24
+ var BatchDeletePublicIpRequest_1 = require("./model/BatchDeletePublicIpRequest");
23
25
  var BatchDeletePublicipTagsRequest_1 = require("./model/BatchDeletePublicipTagsRequest");
26
+ var BatchDisassociatePublicipsRequest_1 = require("./model/BatchDisassociatePublicipsRequest");
24
27
  var CreatePrePaidPublicipRequest_1 = require("./model/CreatePrePaidPublicipRequest");
25
28
  var CreatePublicipRequest_1 = require("./model/CreatePublicipRequest");
26
29
  var CreatePublicipTagRequest_1 = require("./model/CreatePublicipTagRequest");
@@ -119,6 +122,21 @@ var EipClient = /** @class */ (function () {
119
122
  // @ts-ignore
120
123
  return this.hcClient.sendRequest(options);
121
124
  };
125
+ /**
126
+ * 查询带宽加油包列表信息
127
+ *
128
+ * Please refer to HUAWEI cloud API Explorer for details.
129
+ *
130
+ * @summary 查询带宽加油包列表
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ EipClient.prototype.listBandwidthPkg = function () {
135
+ var options = (0, exports.ParamCreater)().listBandwidthPkg();
136
+ options['responseHeaders'] = [''];
137
+ // @ts-ignore
138
+ return this.hcClient.sendRequest(options);
139
+ };
122
140
  /**
123
141
  * 查询带宽列表。
124
142
  *
@@ -238,6 +256,38 @@ var EipClient = /** @class */ (function () {
238
256
  // @ts-ignore
239
257
  return this.hcClient.sendRequest(options);
240
258
  };
259
+ /**
260
+ * 批量创建弹性公网IP
261
+ *
262
+ * Please refer to HUAWEI cloud API Explorer for details.
263
+ *
264
+ * @summary 批量创建弹性公网IP
265
+ * @param {BatchCreatePublicipsV2RequestBody} batchCreatePublicipsV2RequestBody This is a auto create Body Object
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ EipClient.prototype.batchCreatePublicips = function (batchCreatePublicipsRequest) {
270
+ var options = (0, exports.ParamCreater)().batchCreatePublicips(batchCreatePublicipsRequest);
271
+ options['responseHeaders'] = [''];
272
+ // @ts-ignore
273
+ return this.hcClient.sendRequest(options);
274
+ };
275
+ /**
276
+ * 批量删除弹性公网IP
277
+ *
278
+ * Please refer to HUAWEI cloud API Explorer for details.
279
+ *
280
+ * @summary 批量删除弹性公网IP
281
+ * @param {BatchDeletePublicIpRequestBody} batchDeletePublicIpRequestBody 批量操作弹性公网IP请求体
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ EipClient.prototype.batchDeletePublicIp = function (batchDeletePublicIpRequest) {
286
+ var options = (0, exports.ParamCreater)().batchDeletePublicIp(batchDeletePublicIpRequest);
287
+ options['responseHeaders'] = [''];
288
+ // @ts-ignore
289
+ return this.hcClient.sendRequest(options);
290
+ };
241
291
  /**
242
292
  * 为指定的弹性公网IP资源实例批量删除标签。
243
293
  *
@@ -255,6 +305,52 @@ var EipClient = /** @class */ (function () {
255
305
  // @ts-ignore
256
306
  return this.hcClient.sendRequest(options);
257
307
  };
308
+ /**
309
+ * 批量解绑弹性公网IP
310
+ *
311
+ * Please refer to HUAWEI cloud API Explorer for details.
312
+ *
313
+ * @summary 批量解绑弹性公网IP
314
+ * @param {BatchDeletePublicIpRequestBody} batchDisassociatePublicipsRequestBody 批量操作弹性公网IP请求体
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ EipClient.prototype.batchDisassociatePublicips = function (batchDisassociatePublicipsRequest) {
319
+ var options = (0, exports.ParamCreater)().batchDisassociatePublicips(batchDisassociatePublicipsRequest);
320
+ options['responseHeaders'] = [''];
321
+ // @ts-ignore
322
+ return this.hcClient.sendRequest(options);
323
+ };
324
+ /**
325
+ * 查询PublicIp数量
326
+ *
327
+ * Please refer to HUAWEI cloud API Explorer for details.
328
+ *
329
+ * @summary 查询PublicIp数量
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ EipClient.prototype.countPublicIp = function () {
334
+ var options = (0, exports.ParamCreater)().countPublicIp();
335
+ options['responseHeaders'] = [''];
336
+ // @ts-ignore
337
+ return this.hcClient.sendRequest(options);
338
+ };
339
+ /**
340
+ * 查询PublicIp实例数
341
+ *
342
+ * Please refer to HUAWEI cloud API Explorer for details.
343
+ *
344
+ * @summary 查询PublicIp实例数
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ EipClient.prototype.countPublicIpInstance = function () {
349
+ var options = (0, exports.ParamCreater)().countPublicIpInstance();
350
+ options['responseHeaders'] = [''];
351
+ // @ts-ignore
352
+ return this.hcClient.sendRequest(options);
353
+ };
258
354
  /**
259
355
  * 申请包年包月的弹性公网IP。
260
356
  *
@@ -393,6 +489,21 @@ var EipClient = /** @class */ (function () {
393
489
  // @ts-ignore
394
490
  return this.hcClient.sendRequest(options);
395
491
  };
492
+ /**
493
+ * 查询PublicIp类型
494
+ *
495
+ * Please refer to HUAWEI cloud API Explorer for details.
496
+ *
497
+ * @summary 查询PublicIp类型
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ */
501
+ EipClient.prototype.showPublicIpType = function () {
502
+ var options = (0, exports.ParamCreater)().showPublicIpType();
503
+ options['responseHeaders'] = [''];
504
+ // @ts-ignore
505
+ return this.hcClient.sendRequest(options);
506
+ };
396
507
  /**
397
508
  * 查询指定的弹性公网IP。
398
509
  *
@@ -677,6 +788,25 @@ var ParamCreater = function () {
677
788
  options.headers = localVarHeaderParameter;
678
789
  return options;
679
790
  },
791
+ /**
792
+ * 查询带宽加油包列表信息
793
+ *
794
+ * Please refer to HUAWEI cloud API Explorer for details.
795
+ */
796
+ listBandwidthPkg: function () {
797
+ var options = {
798
+ method: "GET",
799
+ url: "/v2/{project_id}/bandwidthpkgs",
800
+ contentType: "application/json",
801
+ queryParams: {},
802
+ pathParams: {},
803
+ headers: {},
804
+ data: {}
805
+ };
806
+ var localVarHeaderParameter = {};
807
+ options.headers = localVarHeaderParameter;
808
+ return options;
809
+ },
680
810
  /**
681
811
  * 查询带宽列表。
682
812
  *
@@ -953,6 +1083,72 @@ var ParamCreater = function () {
953
1083
  options.headers = localVarHeaderParameter;
954
1084
  return options;
955
1085
  },
1086
+ /**
1087
+ * 批量创建弹性公网IP
1088
+ *
1089
+ * Please refer to HUAWEI cloud API Explorer for details.
1090
+ */
1091
+ batchCreatePublicips: function (batchCreatePublicipsRequest) {
1092
+ var options = {
1093
+ method: "POST",
1094
+ url: "/v2/{project_id}/batchpublicips",
1095
+ contentType: "application/json;charset=UTF-8",
1096
+ queryParams: {},
1097
+ pathParams: {},
1098
+ headers: {},
1099
+ data: {}
1100
+ };
1101
+ var localVarHeaderParameter = {};
1102
+ var body;
1103
+ if (batchCreatePublicipsRequest !== null && batchCreatePublicipsRequest !== undefined) {
1104
+ if (batchCreatePublicipsRequest instanceof BatchCreatePublicipsRequest_1.BatchCreatePublicipsRequest) {
1105
+ body = batchCreatePublicipsRequest.body;
1106
+ }
1107
+ else {
1108
+ body = batchCreatePublicipsRequest['body'];
1109
+ }
1110
+ }
1111
+ if (body === null || body === undefined) {
1112
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1113
+ }
1114
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1115
+ options.data = body !== undefined ? body : {};
1116
+ options.headers = localVarHeaderParameter;
1117
+ return options;
1118
+ },
1119
+ /**
1120
+ * 批量删除弹性公网IP
1121
+ *
1122
+ * Please refer to HUAWEI cloud API Explorer for details.
1123
+ */
1124
+ batchDeletePublicIp: function (batchDeletePublicIpRequest) {
1125
+ var options = {
1126
+ method: "DELETE",
1127
+ url: "/v2/{project_id}/batchpublicips",
1128
+ contentType: "application/json;charset=UTF-8",
1129
+ queryParams: {},
1130
+ pathParams: {},
1131
+ headers: {},
1132
+ data: {}
1133
+ };
1134
+ var localVarHeaderParameter = {};
1135
+ var body;
1136
+ if (batchDeletePublicIpRequest !== null && batchDeletePublicIpRequest !== undefined) {
1137
+ if (batchDeletePublicIpRequest instanceof BatchDeletePublicIpRequest_1.BatchDeletePublicIpRequest) {
1138
+ body = batchDeletePublicIpRequest.body;
1139
+ }
1140
+ else {
1141
+ body = batchDeletePublicIpRequest['body'];
1142
+ }
1143
+ }
1144
+ if (body === null || body === undefined) {
1145
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1146
+ }
1147
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1148
+ options.data = body !== undefined ? body : {};
1149
+ options.headers = localVarHeaderParameter;
1150
+ return options;
1151
+ },
956
1152
  /**
957
1153
  * 为指定的弹性公网IP资源实例批量删除标签。
958
1154
  *
@@ -993,6 +1189,77 @@ var ParamCreater = function () {
993
1189
  options.headers = localVarHeaderParameter;
994
1190
  return options;
995
1191
  },
1192
+ /**
1193
+ * 批量解绑弹性公网IP
1194
+ *
1195
+ * Please refer to HUAWEI cloud API Explorer for details.
1196
+ */
1197
+ batchDisassociatePublicips: function (batchDisassociatePublicipsRequest) {
1198
+ var options = {
1199
+ method: "PATCH",
1200
+ url: "/v2/{project_id}/batchpublicips",
1201
+ contentType: "application/json;charset=UTF-8",
1202
+ queryParams: {},
1203
+ pathParams: {},
1204
+ headers: {},
1205
+ data: {}
1206
+ };
1207
+ var localVarHeaderParameter = {};
1208
+ var body;
1209
+ if (batchDisassociatePublicipsRequest !== null && batchDisassociatePublicipsRequest !== undefined) {
1210
+ if (batchDisassociatePublicipsRequest instanceof BatchDisassociatePublicipsRequest_1.BatchDisassociatePublicipsRequest) {
1211
+ body = batchDisassociatePublicipsRequest.body;
1212
+ }
1213
+ else {
1214
+ body = batchDisassociatePublicipsRequest['body'];
1215
+ }
1216
+ }
1217
+ if (body === null || body === undefined) {
1218
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1219
+ }
1220
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1221
+ options.data = body !== undefined ? body : {};
1222
+ options.headers = localVarHeaderParameter;
1223
+ return options;
1224
+ },
1225
+ /**
1226
+ * 查询PublicIp数量
1227
+ *
1228
+ * Please refer to HUAWEI cloud API Explorer for details.
1229
+ */
1230
+ countPublicIp: function () {
1231
+ var options = {
1232
+ method: "GET",
1233
+ url: "/v2/{project_id}/elasticips",
1234
+ contentType: "application/json",
1235
+ queryParams: {},
1236
+ pathParams: {},
1237
+ headers: {},
1238
+ data: {}
1239
+ };
1240
+ var localVarHeaderParameter = {};
1241
+ options.headers = localVarHeaderParameter;
1242
+ return options;
1243
+ },
1244
+ /**
1245
+ * 查询PublicIp实例数
1246
+ *
1247
+ * Please refer to HUAWEI cloud API Explorer for details.
1248
+ */
1249
+ countPublicIpInstance: function () {
1250
+ var options = {
1251
+ method: "GET",
1252
+ url: "/v2/{project_id}/publicip/instances",
1253
+ contentType: "application/json",
1254
+ queryParams: {},
1255
+ pathParams: {},
1256
+ headers: {},
1257
+ data: {}
1258
+ };
1259
+ var localVarHeaderParameter = {};
1260
+ options.headers = localVarHeaderParameter;
1261
+ return options;
1262
+ },
996
1263
  /**
997
1264
  * 申请包年包月的弹性公网IP。
998
1265
  *
@@ -1303,6 +1570,25 @@ var ParamCreater = function () {
1303
1570
  options.headers = localVarHeaderParameter;
1304
1571
  return options;
1305
1572
  },
1573
+ /**
1574
+ * 查询PublicIp类型
1575
+ *
1576
+ * Please refer to HUAWEI cloud API Explorer for details.
1577
+ */
1578
+ showPublicIpType: function () {
1579
+ var options = {
1580
+ method: "GET",
1581
+ url: "/v2/{project_id}/publicip_types",
1582
+ contentType: "application/json",
1583
+ queryParams: {},
1584
+ pathParams: {},
1585
+ headers: {},
1586
+ data: {}
1587
+ };
1588
+ var localVarHeaderParameter = {};
1589
+ options.headers = localVarHeaderParameter;
1590
+ return options;
1591
+ },
1306
1592
  /**
1307
1593
  * 查询指定的弹性公网IP。
1308
1594
  *
@@ -0,0 +1,7 @@
1
+ export declare class BandwidthPkgPage {
2
+ href: string;
3
+ rel: string;
4
+ constructor(href?: any, rel?: any);
5
+ withHref(href: string): BandwidthPkgPage;
6
+ withRel(rel: string): BandwidthPkgPage;
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BandwidthPkgPage = void 0;
4
+ var BandwidthPkgPage = /** @class */ (function () {
5
+ function BandwidthPkgPage(href, rel) {
6
+ this['href'] = href;
7
+ this['rel'] = rel;
8
+ }
9
+ BandwidthPkgPage.prototype.withHref = function (href) {
10
+ this['href'] = href;
11
+ return this;
12
+ };
13
+ BandwidthPkgPage.prototype.withRel = function (rel) {
14
+ this['rel'] = rel;
15
+ return this;
16
+ };
17
+ return BandwidthPkgPage;
18
+ }());
19
+ exports.BandwidthPkgPage = BandwidthPkgPage;
@@ -0,0 +1,25 @@
1
+ export declare class BandwidthPkgResp {
2
+ resourceId: string;
3
+ resourceName: string;
4
+ processedTime: string;
5
+ bandwidthId: string;
6
+ pkgSize: number;
7
+ private 'tenant_id'?;
8
+ billingInfo: string;
9
+ startTime: string;
10
+ endTime: string;
11
+ status: string;
12
+ constructor(resourceId?: any, resourceName?: any, processedTime?: any, bandwidthId?: any, pkgSize?: any, billingInfo?: any, startTime?: any, endTime?: any, status?: any);
13
+ withResourceId(resourceId: string): BandwidthPkgResp;
14
+ withResourceName(resourceName: string): BandwidthPkgResp;
15
+ withProcessedTime(processedTime: string): BandwidthPkgResp;
16
+ withBandwidthId(bandwidthId: string): BandwidthPkgResp;
17
+ withPkgSize(pkgSize: number): BandwidthPkgResp;
18
+ withTenantId(tenantId: string): BandwidthPkgResp;
19
+ set tenantId(tenantId: string | undefined);
20
+ get tenantId(): string | undefined;
21
+ withBillingInfo(billingInfo: string): BandwidthPkgResp;
22
+ withStartTime(startTime: string): BandwidthPkgResp;
23
+ withEndTime(endTime: string): BandwidthPkgResp;
24
+ withStatus(status: string): BandwidthPkgResp;
25
+ }