@huaweicloud/huaweicloud-sdk-eip 3.1.28 → 3.1.30

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-eip",
3
- "version": "3.1.28",
3
+ "version": "3.1.30",
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.28"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.30"
18
18
  }
19
19
  }
package/v2/EipClient.d.ts CHANGED
@@ -34,6 +34,7 @@ import { DeletePublicipTagRequest } from './model/DeletePublicipTagRequest';
34
34
  import { DeletePublicipTagResponse } from './model/DeletePublicipTagResponse';
35
35
  import { DeleteSharedBandwidthRequest } from './model/DeleteSharedBandwidthRequest';
36
36
  import { DeleteSharedBandwidthResponse } from './model/DeleteSharedBandwidthResponse';
37
+ import { ListBandwidthPkgRequest } from './model/ListBandwidthPkgRequest';
37
38
  import { ListBandwidthPkgResponse } from './model/ListBandwidthPkgResponse';
38
39
  import { ListBandwidthsRequest } from './model/ListBandwidthsRequest';
39
40
  import { ListBandwidthsResponse } from './model/ListBandwidthsResponse';
@@ -138,10 +139,13 @@ export declare class EipClient {
138
139
  * Please refer to HUAWEI cloud API Explorer for details.
139
140
  *
140
141
  * @summary 查询带宽加油包列表
142
+ * @param {number} [limit] 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定
143
+ * @param {string} [marker] 分页查询起始的资源ID,为空时为查询第一页
144
+ * @param {number} [offset] 分页查询起始的资源序号
141
145
  * @param {*} [options] Override http request option.
142
146
  * @throws {RequiredError}
143
147
  */
144
- listBandwidthPkg(): Promise<ListBandwidthPkgResponse>;
148
+ listBandwidthPkg(listBandwidthPkgRequest?: ListBandwidthPkgRequest): Promise<ListBandwidthPkgResponse>;
145
149
  /**
146
150
  * 查询带宽列表。
147
151
  *
@@ -599,7 +603,7 @@ export declare const ParamCreater: () => {
599
603
  *
600
604
  * Please refer to HUAWEI cloud API Explorer for details.
601
605
  */
602
- listBandwidthPkg(): {
606
+ listBandwidthPkg(listBandwidthPkgRequest?: ListBandwidthPkgRequest): {
603
607
  method: string;
604
608
  url: string;
605
609
  contentType: string;
package/v2/EipClient.js CHANGED
@@ -33,6 +33,7 @@ var CreateSharedBandwidthRequest_1 = require("./model/CreateSharedBandwidthReque
33
33
  var DeletePublicipRequest_1 = require("./model/DeletePublicipRequest");
34
34
  var DeletePublicipTagRequest_1 = require("./model/DeletePublicipTagRequest");
35
35
  var DeleteSharedBandwidthRequest_1 = require("./model/DeleteSharedBandwidthRequest");
36
+ var ListBandwidthPkgRequest_1 = require("./model/ListBandwidthPkgRequest");
36
37
  var ListBandwidthsRequest_1 = require("./model/ListBandwidthsRequest");
37
38
  var ListPublicipsByTagsRequest_1 = require("./model/ListPublicipsByTagsRequest");
38
39
  var ListPublicipsRequest_1 = require("./model/ListPublicipsRequest");
@@ -147,11 +148,14 @@ var EipClient = /** @class */ (function () {
147
148
  * Please refer to HUAWEI cloud API Explorer for details.
148
149
  *
149
150
  * @summary 查询带宽加油包列表
151
+ * @param {number} [limit] 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定
152
+ * @param {string} [marker] 分页查询起始的资源ID,为空时为查询第一页
153
+ * @param {number} [offset] 分页查询起始的资源序号
150
154
  * @param {*} [options] Override http request option.
151
155
  * @throws {RequiredError}
152
156
  */
153
- EipClient.prototype.listBandwidthPkg = function () {
154
- var options = (0, exports.ParamCreater)().listBandwidthPkg();
157
+ EipClient.prototype.listBandwidthPkg = function (listBandwidthPkgRequest) {
158
+ var options = (0, exports.ParamCreater)().listBandwidthPkg(listBandwidthPkgRequest);
155
159
  // @ts-ignore
156
160
  options['responseHeaders'] = [''];
157
161
  return this.hcClient.sendRequest(options);
@@ -877,7 +881,7 @@ var ParamCreater = function () {
877
881
  *
878
882
  * Please refer to HUAWEI cloud API Explorer for details.
879
883
  */
880
- listBandwidthPkg: function () {
884
+ listBandwidthPkg: function (listBandwidthPkgRequest) {
881
885
  var options = {
882
886
  method: "GET",
883
887
  url: "/v2/{project_id}/bandwidthpkgs",
@@ -888,6 +892,32 @@ var ParamCreater = function () {
888
892
  data: {}
889
893
  };
890
894
  var localVarHeaderParameter = {};
895
+ var localVarQueryParameter = {};
896
+ var limit;
897
+ var marker;
898
+ var offset;
899
+ if (listBandwidthPkgRequest !== null && listBandwidthPkgRequest !== undefined) {
900
+ if (listBandwidthPkgRequest instanceof ListBandwidthPkgRequest_1.ListBandwidthPkgRequest) {
901
+ limit = listBandwidthPkgRequest.limit;
902
+ marker = listBandwidthPkgRequest.marker;
903
+ offset = listBandwidthPkgRequest.offset;
904
+ }
905
+ else {
906
+ limit = listBandwidthPkgRequest['limit'];
907
+ marker = listBandwidthPkgRequest['marker'];
908
+ offset = listBandwidthPkgRequest['offset'];
909
+ }
910
+ }
911
+ if (limit !== null && limit !== undefined) {
912
+ localVarQueryParameter['limit'] = limit;
913
+ }
914
+ if (marker !== null && marker !== undefined) {
915
+ localVarQueryParameter['marker'] = marker;
916
+ }
917
+ if (offset !== null && offset !== undefined) {
918
+ localVarQueryParameter['offset'] = offset;
919
+ }
920
+ options.queryParams = localVarQueryParameter;
891
921
  options.headers = localVarHeaderParameter;
892
922
  return options;
893
923
  },
@@ -1,3 +1,9 @@
1
1
  export declare class ListBandwidthPkgRequest {
2
+ limit?: number;
3
+ marker?: string;
4
+ offset?: number;
2
5
  constructor();
6
+ withLimit(limit: number): ListBandwidthPkgRequest;
7
+ withMarker(marker: string): ListBandwidthPkgRequest;
8
+ withOffset(offset: number): ListBandwidthPkgRequest;
3
9
  }
@@ -4,6 +4,18 @@ exports.ListBandwidthPkgRequest = void 0;
4
4
  var ListBandwidthPkgRequest = /** @class */ (function () {
5
5
  function ListBandwidthPkgRequest() {
6
6
  }
7
+ ListBandwidthPkgRequest.prototype.withLimit = function (limit) {
8
+ this['limit'] = limit;
9
+ return this;
10
+ };
11
+ ListBandwidthPkgRequest.prototype.withMarker = function (marker) {
12
+ this['marker'] = marker;
13
+ return this;
14
+ };
15
+ ListBandwidthPkgRequest.prototype.withOffset = function (offset) {
16
+ this['offset'] = offset;
17
+ return this;
18
+ };
7
19
  return ListBandwidthPkgRequest;
8
20
  }());
9
21
  exports.ListBandwidthPkgRequest = ListBandwidthPkgRequest;
package/v3/EipClient.d.ts CHANGED
@@ -36,6 +36,8 @@ export declare class EipClient {
36
36
  *
37
37
  * @summary 查询公共池列表
38
38
  * @param {string} [fields] 显示,形式为\&quot;fields&#x3D;id&amp;fields&#x3D;name&amp;...\&quot; 支持字段:id/name/status/type/used/allow_share_bandwidth_types/public_border_group
39
+ * @param {number} [limit] 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定
40
+ * @param {number} [offset] 分页查询起始的资源序号
39
41
  * @param {string} [name] 公共池名称
40
42
  * @param {string} [publicBorderGroup] 公共池位于中心还是边缘
41
43
  * @param {*} [options] Override http request option.
@@ -90,6 +92,8 @@ export declare class EipClient {
90
92
  * @param {string} [sortKey] 排序,形式为\&quot;sort_key&#x3D;id&amp;sort_dir&#x3D;asc\&quot; 支持字段:id/bandwidth_type/public_border_group
91
93
  * @param {string} [sortDir] 排序方向 取值范围:asc、desc
92
94
  * @param {number} [limit] 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定
95
+ * @param {string} [marker] 分页查询起始的资源ID,为空时为查询第一页
96
+ * @param {number} [offset] 分页查询起始的资源序号
93
97
  * @param {*} [options] Override http request option.
94
98
  * @throws {RequiredError}
95
99
  */
package/v3/EipClient.js CHANGED
@@ -46,6 +46,8 @@ var EipClient = /** @class */ (function () {
46
46
  *
47
47
  * @summary 查询公共池列表
48
48
  * @param {string} [fields] 显示,形式为\&quot;fields&#x3D;id&amp;fields&#x3D;name&amp;...\&quot; 支持字段:id/name/status/type/used/allow_share_bandwidth_types/public_border_group
49
+ * @param {number} [limit] 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定
50
+ * @param {number} [offset] 分页查询起始的资源序号
49
51
  * @param {string} [name] 公共池名称
50
52
  * @param {string} [publicBorderGroup] 公共池位于中心还是边缘
51
53
  * @param {*} [options] Override http request option.
@@ -115,6 +117,8 @@ var EipClient = /** @class */ (function () {
115
117
  * @param {string} [sortKey] 排序,形式为\&quot;sort_key&#x3D;id&amp;sort_dir&#x3D;asc\&quot; 支持字段:id/bandwidth_type/public_border_group
116
118
  * @param {string} [sortDir] 排序方向 取值范围:asc、desc
117
119
  * @param {number} [limit] 每页返回的个数取值范围:0~[2000],其中2000为局点差异项,具体取值由局点决定
120
+ * @param {string} [marker] 分页查询起始的资源ID,为空时为查询第一页
121
+ * @param {number} [offset] 分页查询起始的资源序号
118
122
  * @param {*} [options] Override http request option.
119
123
  * @throws {RequiredError}
120
124
  */
@@ -320,16 +324,22 @@ var ParamCreater = function () {
320
324
  var localVarHeaderParameter = {};
321
325
  var localVarQueryParameter = {};
322
326
  var fields;
327
+ var limit;
328
+ var offset;
323
329
  var name;
324
330
  var publicBorderGroup;
325
331
  if (listCommonPoolsRequest !== null && listCommonPoolsRequest !== undefined) {
326
332
  if (listCommonPoolsRequest instanceof ListCommonPoolsRequest_1.ListCommonPoolsRequest) {
327
333
  fields = listCommonPoolsRequest.fields;
334
+ limit = listCommonPoolsRequest.limit;
335
+ offset = listCommonPoolsRequest.offset;
328
336
  name = listCommonPoolsRequest.name;
329
337
  publicBorderGroup = listCommonPoolsRequest.publicBorderGroup;
330
338
  }
331
339
  else {
332
340
  fields = listCommonPoolsRequest['fields'];
341
+ limit = listCommonPoolsRequest['limit'];
342
+ offset = listCommonPoolsRequest['offset'];
333
343
  name = listCommonPoolsRequest['name'];
334
344
  publicBorderGroup = listCommonPoolsRequest['public_border_group'];
335
345
  }
@@ -337,6 +347,12 @@ var ParamCreater = function () {
337
347
  if (fields !== null && fields !== undefined) {
338
348
  localVarQueryParameter['fields'] = fields;
339
349
  }
350
+ if (limit !== null && limit !== undefined) {
351
+ localVarQueryParameter['limit'] = limit;
352
+ }
353
+ if (offset !== null && offset !== undefined) {
354
+ localVarQueryParameter['offset'] = offset;
355
+ }
340
356
  if (name !== null && name !== undefined) {
341
357
  localVarQueryParameter['name'] = name;
342
358
  }
@@ -505,6 +521,8 @@ var ParamCreater = function () {
505
521
  var sortKey;
506
522
  var sortDir;
507
523
  var limit;
524
+ var marker;
525
+ var offset;
508
526
  if (listShareBandwidthTypesRequest !== null && listShareBandwidthTypesRequest !== undefined) {
509
527
  if (listShareBandwidthTypesRequest instanceof ListShareBandwidthTypesRequest_1.ListShareBandwidthTypesRequest) {
510
528
  fields = listShareBandwidthTypesRequest.fields;
@@ -516,6 +534,8 @@ var ParamCreater = function () {
516
534
  sortKey = listShareBandwidthTypesRequest.sortKey;
517
535
  sortDir = listShareBandwidthTypesRequest.sortDir;
518
536
  limit = listShareBandwidthTypesRequest.limit;
537
+ marker = listShareBandwidthTypesRequest.marker;
538
+ offset = listShareBandwidthTypesRequest.offset;
519
539
  }
520
540
  else {
521
541
  fields = listShareBandwidthTypesRequest['fields'];
@@ -527,6 +547,8 @@ var ParamCreater = function () {
527
547
  sortKey = listShareBandwidthTypesRequest['sort_key'];
528
548
  sortDir = listShareBandwidthTypesRequest['sort_dir'];
529
549
  limit = listShareBandwidthTypesRequest['limit'];
550
+ marker = listShareBandwidthTypesRequest['marker'];
551
+ offset = listShareBandwidthTypesRequest['offset'];
530
552
  }
531
553
  }
532
554
  if (fields !== null && fields !== undefined) {
@@ -556,6 +578,12 @@ var ParamCreater = function () {
556
578
  if (limit !== null && limit !== undefined) {
557
579
  localVarQueryParameter['limit'] = limit;
558
580
  }
581
+ if (marker !== null && marker !== undefined) {
582
+ localVarQueryParameter['marker'] = marker;
583
+ }
584
+ if (offset !== null && offset !== undefined) {
585
+ localVarQueryParameter['offset'] = offset;
586
+ }
559
587
  options.queryParams = localVarQueryParameter;
560
588
  options.headers = localVarHeaderParameter;
561
589
  return options;
@@ -1,9 +1,13 @@
1
1
  export declare class ListCommonPoolsRequest {
2
2
  fields?: string;
3
+ limit?: number;
4
+ offset?: number;
3
5
  name?: string;
4
6
  private 'public_border_group'?;
5
7
  constructor();
6
8
  withFields(fields: string): ListCommonPoolsRequest;
9
+ withLimit(limit: number): ListCommonPoolsRequest;
10
+ withOffset(offset: number): ListCommonPoolsRequest;
7
11
  withName(name: string): ListCommonPoolsRequest;
8
12
  withPublicBorderGroup(publicBorderGroup: string): ListCommonPoolsRequest;
9
13
  set publicBorderGroup(publicBorderGroup: string | undefined);
@@ -8,6 +8,14 @@ var ListCommonPoolsRequest = /** @class */ (function () {
8
8
  this['fields'] = fields;
9
9
  return this;
10
10
  };
11
+ ListCommonPoolsRequest.prototype.withLimit = function (limit) {
12
+ this['limit'] = limit;
13
+ return this;
14
+ };
15
+ ListCommonPoolsRequest.prototype.withOffset = function (offset) {
16
+ this['offset'] = offset;
17
+ return this;
18
+ };
11
19
  ListCommonPoolsRequest.prototype.withName = function (name) {
12
20
  this['name'] = name;
13
21
  return this;
@@ -8,6 +8,8 @@ export declare class ListShareBandwidthTypesRequest {
8
8
  private 'sort_key'?;
9
9
  private 'sort_dir'?;
10
10
  limit?: number;
11
+ marker?: string;
12
+ offset?: number;
11
13
  constructor();
12
14
  withFields(fields: string): ListShareBandwidthTypesRequest;
13
15
  withId(id: string): ListShareBandwidthTypesRequest;
@@ -30,4 +32,6 @@ export declare class ListShareBandwidthTypesRequest {
30
32
  set sortDir(sortDir: string | undefined);
31
33
  get sortDir(): string | undefined;
32
34
  withLimit(limit: number): ListShareBandwidthTypesRequest;
35
+ withMarker(marker: string): ListShareBandwidthTypesRequest;
36
+ withOffset(offset: number): ListShareBandwidthTypesRequest;
33
37
  }
@@ -100,6 +100,14 @@ var ListShareBandwidthTypesRequest = /** @class */ (function () {
100
100
  this['limit'] = limit;
101
101
  return this;
102
102
  };
103
+ ListShareBandwidthTypesRequest.prototype.withMarker = function (marker) {
104
+ this['marker'] = marker;
105
+ return this;
106
+ };
107
+ ListShareBandwidthTypesRequest.prototype.withOffset = function (offset) {
108
+ this['offset'] = offset;
109
+ return this;
110
+ };
103
111
  return ListShareBandwidthTypesRequest;
104
112
  }());
105
113
  exports.ListShareBandwidthTypesRequest = ListShareBandwidthTypesRequest;