@huaweicloud/huaweicloud-sdk-eps 3.1.6

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 (81) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +1 -0
  3. package/huaweicloud-sdk-eps.d.ts +1 -0
  4. package/huaweicloud-sdk-eps.js +17 -0
  5. package/package.json +19 -0
  6. package/v1/EpsClient.d.ts +344 -0
  7. package/v1/EpsClient.js +677 -0
  8. package/v1/EpsRegion.d.ts +6 -0
  9. package/v1/EpsRegion.js +27 -0
  10. package/v1/model/CreateEnterpriseProjectRequest.d.ts +6 -0
  11. package/v1/model/CreateEnterpriseProjectRequest.js +13 -0
  12. package/v1/model/CreateEnterpriseProjectResponse.d.ts +9 -0
  13. package/v1/model/CreateEnterpriseProjectResponse.js +41 -0
  14. package/v1/model/DisableAction.d.ts +12 -0
  15. package/v1/model/DisableAction.js +22 -0
  16. package/v1/model/DisableEnterpriseProjectRequest.d.ts +10 -0
  17. package/v1/model/DisableEnterpriseProjectRequest.js +28 -0
  18. package/v1/model/DisableEnterpriseProjectResponse.d.ts +4 -0
  19. package/v1/model/DisableEnterpriseProjectResponse.js +27 -0
  20. package/v1/model/EnableAction.d.ts +12 -0
  21. package/v1/model/EnableAction.js +22 -0
  22. package/v1/model/EnableEnterpriseProjectRequest.d.ts +10 -0
  23. package/v1/model/EnableEnterpriseProjectRequest.js +28 -0
  24. package/v1/model/EnableEnterpriseProjectResponse.d.ts +4 -0
  25. package/v1/model/EnableEnterpriseProjectResponse.js +27 -0
  26. package/v1/model/EnterpriseProject.d.ts +9 -0
  27. package/v1/model/EnterpriseProject.js +22 -0
  28. package/v1/model/EpDetail.d.ts +29 -0
  29. package/v1/model/EpDetail.js +73 -0
  30. package/v1/model/EpQuotas.d.ts +9 -0
  31. package/v1/model/EpQuotas.js +24 -0
  32. package/v1/model/Errors.d.ts +19 -0
  33. package/v1/model/Errors.js +65 -0
  34. package/v1/model/Link.d.ts +7 -0
  35. package/v1/model/Link.js +19 -0
  36. package/v1/model/ListApiVersionsRequest.d.ts +3 -0
  37. package/v1/model/ListApiVersionsRequest.js +9 -0
  38. package/v1/model/ListApiVersionsResponse.d.ts +7 -0
  39. package/v1/model/ListApiVersionsResponse.js +31 -0
  40. package/v1/model/ListEnterpriseProjectRequest.d.ts +37 -0
  41. package/v1/model/ListEnterpriseProjectRequest.js +75 -0
  42. package/v1/model/ListEnterpriseProjectResponse.d.ts +13 -0
  43. package/v1/model/ListEnterpriseProjectResponse.js +55 -0
  44. package/v1/model/Match.d.ts +7 -0
  45. package/v1/model/Match.js +19 -0
  46. package/v1/model/MigrateResource.d.ts +17 -0
  47. package/v1/model/MigrateResource.js +57 -0
  48. package/v1/model/MigrateResourceRequest.d.ts +10 -0
  49. package/v1/model/MigrateResourceRequest.js +28 -0
  50. package/v1/model/MigrateResourceResponse.d.ts +4 -0
  51. package/v1/model/MigrateResourceResponse.js +27 -0
  52. package/v1/model/QuotasDetail.d.ts +6 -0
  53. package/v1/model/QuotasDetail.js +14 -0
  54. package/v1/model/Resources.d.ts +31 -0
  55. package/v1/model/Resources.js +114 -0
  56. package/v1/model/ResqEpResouce.d.ts +16 -0
  57. package/v1/model/ResqEpResouce.js +40 -0
  58. package/v1/model/ShowApiVersionRequest.d.ts +7 -0
  59. package/v1/model/ShowApiVersionRequest.js +24 -0
  60. package/v1/model/ShowApiVersionResponse.d.ts +7 -0
  61. package/v1/model/ShowApiVersionResponse.js +31 -0
  62. package/v1/model/ShowEnterpriseProjectQuotaRequest.d.ts +3 -0
  63. package/v1/model/ShowEnterpriseProjectQuotaRequest.js +9 -0
  64. package/v1/model/ShowEnterpriseProjectQuotaResponse.d.ts +7 -0
  65. package/v1/model/ShowEnterpriseProjectQuotaResponse.js +31 -0
  66. package/v1/model/ShowEnterpriseProjectRequest.d.ts +7 -0
  67. package/v1/model/ShowEnterpriseProjectRequest.js +24 -0
  68. package/v1/model/ShowEnterpriseProjectResponse.d.ts +9 -0
  69. package/v1/model/ShowEnterpriseProjectResponse.js +41 -0
  70. package/v1/model/ShowResourceBindEnterpriseProjectRequest.d.ts +10 -0
  71. package/v1/model/ShowResourceBindEnterpriseProjectRequest.js +28 -0
  72. package/v1/model/ShowResourceBindEnterpriseProjectResponse.d.ts +14 -0
  73. package/v1/model/ShowResourceBindEnterpriseProjectResponse.js +49 -0
  74. package/v1/model/UpdateEnterpriseProjectRequest.d.ts +10 -0
  75. package/v1/model/UpdateEnterpriseProjectRequest.js +28 -0
  76. package/v1/model/UpdateEnterpriseProjectResponse.d.ts +9 -0
  77. package/v1/model/UpdateEnterpriseProjectResponse.js +41 -0
  78. package/v1/model/VersionDetail.d.ts +27 -0
  79. package/v1/model/VersionDetail.js +59 -0
  80. package/v1/public-api.d.ts +37 -0
  81. package/v1/public-api.js +53 -0
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ See detailed information in [huaweicloud-sdk-nodejs-v3](https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3).
@@ -0,0 +1 @@
1
+ export * from './v1/public-api';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./v1/public-api"), exports);
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@huaweicloud/huaweicloud-sdk-eps",
3
+ "version": "3.1.6",
4
+ "description": "Huaweicloud SDK for eps",
5
+ "main": "huaweicloud-sdk-eps.js",
6
+ "typings": "huaweicloud-sdk-eps.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3"
13
+ },
14
+ "author": "HuaweiCloud_SDK",
15
+ "license": "Apache-2.0",
16
+ "dependencies": {
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.6"
18
+ }
19
+ }
@@ -0,0 +1,344 @@
1
+ import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
2
+ import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
+ import { CreateEnterpriseProjectRequest } from './model/CreateEnterpriseProjectRequest';
4
+ import { CreateEnterpriseProjectResponse } from './model/CreateEnterpriseProjectResponse';
5
+ import { DisableEnterpriseProjectRequest } from './model/DisableEnterpriseProjectRequest';
6
+ import { EnableEnterpriseProjectRequest } from './model/EnableEnterpriseProjectRequest';
7
+ import { ListApiVersionsResponse } from './model/ListApiVersionsResponse';
8
+ import { ListEnterpriseProjectRequest } from './model/ListEnterpriseProjectRequest';
9
+ import { ListEnterpriseProjectResponse } from './model/ListEnterpriseProjectResponse';
10
+ import { MigrateResourceRequest } from './model/MigrateResourceRequest';
11
+ import { ShowApiVersionRequest } from './model/ShowApiVersionRequest';
12
+ import { ShowApiVersionResponse } from './model/ShowApiVersionResponse';
13
+ import { ShowEnterpriseProjectQuotaResponse } from './model/ShowEnterpriseProjectQuotaResponse';
14
+ import { ShowEnterpriseProjectRequest } from './model/ShowEnterpriseProjectRequest';
15
+ import { ShowEnterpriseProjectResponse } from './model/ShowEnterpriseProjectResponse';
16
+ import { ShowResourceBindEnterpriseProjectRequest } from './model/ShowResourceBindEnterpriseProjectRequest';
17
+ import { ShowResourceBindEnterpriseProjectResponse } from './model/ShowResourceBindEnterpriseProjectResponse';
18
+ import { UpdateEnterpriseProjectRequest } from './model/UpdateEnterpriseProjectRequest';
19
+ import { UpdateEnterpriseProjectResponse } from './model/UpdateEnterpriseProjectResponse';
20
+ export declare class EpsClient {
21
+ static newBuilder(): ClientBuilder<EpsClient>;
22
+ private hcClient;
23
+ constructor(client: HcClient);
24
+ getPath(): any;
25
+ /**
26
+ * 创建企业项目。
27
+ *
28
+ * 详细说明请参考华为云API Explorer。
29
+ * Please refer to Huawei cloud API Explorer for details.
30
+ *
31
+ * @summary 创建企业项目
32
+ * @param {EnterpriseProject} createEp 创建企业项目
33
+ * @param {*} [options] Override http request option.
34
+ * @throws {RequiredError}
35
+ */
36
+ createEnterpriseProject(createEnterpriseProjectRequest?: CreateEnterpriseProjectRequest): Promise<CreateEnterpriseProjectResponse>;
37
+ /**
38
+ * 停用企业项目。
39
+ *
40
+ * 详细说明请参考华为云API Explorer。
41
+ * Please refer to Huawei cloud API Explorer for details.
42
+ *
43
+ * @summary 停用企业项目
44
+ * @param {string} enterpriseProjectId
45
+ * @param {DisableAction} action “disable”—停用。
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ disableEnterpriseProject(disableEnterpriseProjectRequest?: DisableEnterpriseProjectRequest): Promise<void>;
50
+ /**
51
+ * 启用企业项目。
52
+ *
53
+ * 详细说明请参考华为云API Explorer。
54
+ * Please refer to Huawei cloud API Explorer for details.
55
+ *
56
+ * @summary 启用企业项目
57
+ * @param {string} enterpriseProjectId 企业项目ID,不能为0。
58
+ * @param {EnableAction} action “enable”—启用。
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ enableEnterpriseProject(enableEnterpriseProjectRequest?: EnableEnterpriseProjectRequest): Promise<void>;
63
+ /**
64
+ * 查询企业项目的API版本列表。
65
+ *
66
+ * 详细说明请参考华为云API Explorer。
67
+ * Please refer to Huawei cloud API Explorer for details.
68
+ *
69
+ * @summary 查询API版本列表
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ listApiVersions(): Promise<ListApiVersionsResponse>;
74
+ /**
75
+ * 查询当前用户已授权的企业项目列表,用户可以使用企业项目绑定资源。
76
+ *
77
+ * 详细说明请参考华为云API Explorer。
78
+ * Please refer to Huawei cloud API Explorer for details.
79
+ *
80
+ * @summary 查询企业项目列表
81
+ * @param {string} [id] 企业项目ID,0表示默认企业项目
82
+ * @param {number} [limit] 查询记录数默认为1000,limit最多为1000, 最小值为1
83
+ * @param {string} [name] 企业项目名称,支持模糊搜索
84
+ * @param {number} [offset] 索引位置,从offset指定的下一条数据开始查询,必须为数字,不能为负数,默认为0
85
+ * @param {'desc' | 'asc'} [sortDir] 降序或升序,默认为“desc” 。desc表示降序 。asc 表示升序
86
+ * @param {'created_at' | 'updated_at'} [sortKey] 返回结果按该关键字排序(支持updated_at等关键字,默认为“created_at”)
87
+ * @param {number} [status] 企业项目状态。 1--启用,2--停用
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ listEnterpriseProject(listEnterpriseProjectRequest?: ListEnterpriseProjectRequest): Promise<ListEnterpriseProjectResponse>;
92
+ /**
93
+ * 迁移资源到目标企业项目。
94
+ *
95
+ * 详细说明请参考华为云API Explorer。
96
+ * Please refer to Huawei cloud API Explorer for details.
97
+ *
98
+ * @summary 迁移资源
99
+ * @param {string} enterpriseProjectId 目标企业项目ID,enterprise_project_id为0时表示迁移资源到默认资源组default。注:实际迁移时,会将资源所属的【当前企业项目ID】替换为【目标企业项目ID】,所以不需要指定【当前企业项目ID】。
100
+ * @param {MigrateResource} reqMigrateResource 资源迁移
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ migrateResource(migrateResourceRequest?: MigrateResourceRequest): Promise<void>;
105
+ /**
106
+ * 查询指定的企业项目API版本号详情
107
+ *
108
+ * 详细说明请参考华为云API Explorer。
109
+ * Please refer to Huawei cloud API Explorer for details.
110
+ *
111
+ * @summary 查询API版本号详情
112
+ * @param {string} apiVersion 版本ID(版本号),如v1.0。
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ showApiVersion(showApiVersionRequest?: ShowApiVersionRequest): Promise<ShowApiVersionResponse>;
117
+ /**
118
+ * 查询企业项目详情。
119
+ *
120
+ * 详细说明请参考华为云API Explorer。
121
+ * Please refer to Huawei cloud API Explorer for details.
122
+ *
123
+ * @summary 查询企业项目详情
124
+ * @param {string} enterpriseProjectId 企业项目ID。 可以通过查询企业项目列表接口获取。
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ showEnterpriseProject(showEnterpriseProjectRequest?: ShowEnterpriseProjectRequest): Promise<ShowEnterpriseProjectResponse>;
129
+ /**
130
+ * 查询企业项目的配额信息。
131
+ *
132
+ * 详细说明请参考华为云API Explorer。
133
+ * Please refer to Huawei cloud API Explorer for details.
134
+ *
135
+ * @summary 查询企业项目配额
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ showEnterpriseProjectQuota(): Promise<ShowEnterpriseProjectQuotaResponse>;
140
+ /**
141
+ * 查询企业项目下绑定的资源详情。
142
+ *
143
+ * 详细说明请参考华为云API Explorer。
144
+ * Please refer to Huawei cloud API Explorer for details.
145
+ *
146
+ * @summary 查询企业项目绑定的资源列表
147
+ * @param {string} enterpriseProjectId 企业项目ID
148
+ * @param {ResqEpResouce} reqEpResouce 获取企业项目下资源
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ showResourceBindEnterpriseProject(showResourceBindEnterpriseProjectRequest?: ShowResourceBindEnterpriseProjectRequest): Promise<ShowResourceBindEnterpriseProjectResponse>;
153
+ /**
154
+ * 修改企业项目。当前仅支持修改名称和描述。
155
+ *
156
+ * 详细说明请参考华为云API Explorer。
157
+ * Please refer to Huawei cloud API Explorer for details.
158
+ *
159
+ * @summary 修改企业项目
160
+ * @param {string} enterpriseProjectId 企业项目ID,不能为0。 可以通过查询企业项目列表接口获取。
161
+ * @param {EnterpriseProject} modifyEp 修改企业项目
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ updateEnterpriseProject(updateEnterpriseProjectRequest?: UpdateEnterpriseProjectRequest): Promise<UpdateEnterpriseProjectResponse>;
166
+ }
167
+ export declare const ParamCreater: () => {
168
+ /**
169
+ * 创建企业项目。
170
+ *
171
+ * 详细说明请参考华为云API Explorer。
172
+ * Please refer to Huawei cloud API Explorer for details.
173
+ */
174
+ createEnterpriseProject(createEnterpriseProjectRequest?: CreateEnterpriseProjectRequest): {
175
+ method: string;
176
+ url: string;
177
+ contentType: string;
178
+ queryParams: {};
179
+ pathParams: {};
180
+ headers: {};
181
+ data: {};
182
+ };
183
+ /**
184
+ * 停用企业项目。
185
+ *
186
+ * 详细说明请参考华为云API Explorer。
187
+ * Please refer to Huawei cloud API Explorer for details.
188
+ */
189
+ disableEnterpriseProject(disableEnterpriseProjectRequest?: DisableEnterpriseProjectRequest): {
190
+ method: string;
191
+ url: string;
192
+ contentType: string;
193
+ queryParams: {};
194
+ pathParams: {};
195
+ headers: {};
196
+ data: {};
197
+ };
198
+ /**
199
+ * 启用企业项目。
200
+ *
201
+ * 详细说明请参考华为云API Explorer。
202
+ * Please refer to Huawei cloud API Explorer for details.
203
+ */
204
+ enableEnterpriseProject(enableEnterpriseProjectRequest?: EnableEnterpriseProjectRequest): {
205
+ method: string;
206
+ url: string;
207
+ contentType: string;
208
+ queryParams: {};
209
+ pathParams: {};
210
+ headers: {};
211
+ data: {};
212
+ };
213
+ /**
214
+ * 查询企业项目的API版本列表。
215
+ *
216
+ * 详细说明请参考华为云API Explorer。
217
+ * Please refer to Huawei cloud API Explorer for details.
218
+ */
219
+ listApiVersions(): {
220
+ method: string;
221
+ url: string;
222
+ contentType: string;
223
+ queryParams: {};
224
+ pathParams: {};
225
+ headers: {};
226
+ data: {};
227
+ };
228
+ /**
229
+ * 查询当前用户已授权的企业项目列表,用户可以使用企业项目绑定资源。
230
+ *
231
+ * 详细说明请参考华为云API Explorer。
232
+ * Please refer to Huawei cloud API Explorer for details.
233
+ */
234
+ listEnterpriseProject(listEnterpriseProjectRequest?: ListEnterpriseProjectRequest): {
235
+ method: string;
236
+ url: string;
237
+ contentType: string;
238
+ queryParams: {};
239
+ pathParams: {};
240
+ headers: {};
241
+ data: {};
242
+ };
243
+ /**
244
+ * 迁移资源到目标企业项目。
245
+ *
246
+ * 详细说明请参考华为云API Explorer。
247
+ * Please refer to Huawei cloud API Explorer for details.
248
+ */
249
+ migrateResource(migrateResourceRequest?: MigrateResourceRequest): {
250
+ method: string;
251
+ url: string;
252
+ contentType: string;
253
+ queryParams: {};
254
+ pathParams: {};
255
+ headers: {};
256
+ data: {};
257
+ };
258
+ /**
259
+ * 查询指定的企业项目API版本号详情
260
+ *
261
+ * 详细说明请参考华为云API Explorer。
262
+ * Please refer to Huawei cloud API Explorer for details.
263
+ */
264
+ showApiVersion(showApiVersionRequest?: ShowApiVersionRequest): {
265
+ method: string;
266
+ url: string;
267
+ contentType: string;
268
+ queryParams: {};
269
+ pathParams: {};
270
+ headers: {};
271
+ data: {};
272
+ };
273
+ /**
274
+ * 查询企业项目详情。
275
+ *
276
+ * 详细说明请参考华为云API Explorer。
277
+ * Please refer to Huawei cloud API Explorer for details.
278
+ */
279
+ showEnterpriseProject(showEnterpriseProjectRequest?: ShowEnterpriseProjectRequest): {
280
+ method: string;
281
+ url: string;
282
+ contentType: string;
283
+ queryParams: {};
284
+ pathParams: {};
285
+ headers: {};
286
+ data: {};
287
+ };
288
+ /**
289
+ * 查询企业项目的配额信息。
290
+ *
291
+ * 详细说明请参考华为云API Explorer。
292
+ * Please refer to Huawei cloud API Explorer for details.
293
+ */
294
+ showEnterpriseProjectQuota(): {
295
+ method: string;
296
+ url: string;
297
+ contentType: string;
298
+ queryParams: {};
299
+ pathParams: {};
300
+ headers: {};
301
+ data: {};
302
+ };
303
+ /**
304
+ * 查询企业项目下绑定的资源详情。
305
+ *
306
+ * 详细说明请参考华为云API Explorer。
307
+ * Please refer to Huawei cloud API Explorer for details.
308
+ */
309
+ showResourceBindEnterpriseProject(showResourceBindEnterpriseProjectRequest?: ShowResourceBindEnterpriseProjectRequest): {
310
+ method: string;
311
+ url: string;
312
+ contentType: string;
313
+ queryParams: {};
314
+ pathParams: {};
315
+ headers: {};
316
+ data: {};
317
+ };
318
+ /**
319
+ * 修改企业项目。当前仅支持修改名称和描述。
320
+ *
321
+ * 详细说明请参考华为云API Explorer。
322
+ * Please refer to Huawei cloud API Explorer for details.
323
+ */
324
+ updateEnterpriseProject(updateEnterpriseProjectRequest?: UpdateEnterpriseProjectRequest): {
325
+ method: string;
326
+ url: string;
327
+ contentType: string;
328
+ queryParams: {};
329
+ pathParams: {};
330
+ headers: {};
331
+ data: {};
332
+ };
333
+ };
334
+ /**
335
+ *
336
+ * @export
337
+ * @class RequiredError
338
+ * @extends {Error}
339
+ */
340
+ export declare class RequiredError extends Error {
341
+ field: string;
342
+ name: "RequiredError";
343
+ constructor(field: string, msg?: string);
344
+ }