@pulumi/esc-sdk 0.9.1 → 0.10.0
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/esc/index.d.ts +275 -23
- package/esc/index.js +357 -47
- package/esc/index.js.map +1 -1
- package/esc/raw/api.d.ts +552 -80
- package/esc/raw/api.js +738 -161
- package/esc/raw/api.js.map +1 -1
- package/esc/raw/base.js +1 -1
- package/esc/raw/base.js.map +1 -1
- package/package.json +1 -1
- package/test/client.spec.js +45 -27
- package/test/client.spec.js.map +1 -1
package/esc/index.js
CHANGED
|
@@ -41,6 +41,8 @@ const yaml = __importStar(require("js-yaml"));
|
|
|
41
41
|
const axios_1 = require("axios");
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
+
* EscApi is a client for the ESC API.
|
|
45
|
+
* It wraps the raw API client and provides a more convenient interface.
|
|
44
46
|
* @export
|
|
45
47
|
* @class EscApi
|
|
46
48
|
*/
|
|
@@ -49,18 +51,33 @@ class EscApi {
|
|
|
49
51
|
this.config = config;
|
|
50
52
|
this.rawApi = new index_1.EscApi(config);
|
|
51
53
|
}
|
|
52
|
-
|
|
54
|
+
/**
|
|
55
|
+
* listEnvironments lists the environments in an organization.
|
|
56
|
+
* @summary List environments
|
|
57
|
+
* @param {string} orgName Organization name
|
|
58
|
+
* @param {string} continuationToken continuation Token from previous query to fetch next page of results
|
|
59
|
+
* @returns {Promise<OrgEnvironments | undefined>} A list of environments
|
|
60
|
+
*/
|
|
61
|
+
listEnvironments(orgName, continuationToken) {
|
|
53
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const resp = yield this.rawApi.listEnvironments(
|
|
63
|
+
const resp = yield this.rawApi.listEnvironments(orgName, continuationToken);
|
|
55
64
|
if (resp.status === 200) {
|
|
56
65
|
return resp.data;
|
|
57
66
|
}
|
|
58
67
|
throw new Error(`Failed to list environments: ${resp.statusText}`);
|
|
59
68
|
});
|
|
60
69
|
}
|
|
61
|
-
|
|
70
|
+
/**
|
|
71
|
+
* getEnvironment gets the definition of an environment.
|
|
72
|
+
* @summary Get environment
|
|
73
|
+
* @param {string} orgName Organization name
|
|
74
|
+
* @param {string} projectName Project name
|
|
75
|
+
* @param {string} envName Environment name
|
|
76
|
+
* @returns {Promise<EnvironmentDefinitionResponse | undefined>} The environment definition and the YAML representation
|
|
77
|
+
*/
|
|
78
|
+
getEnvironment(orgName, projectName, envName) {
|
|
62
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const resp = yield this.rawApi.getEnvironment(
|
|
80
|
+
const resp = yield this.rawApi.getEnvironment(orgName, projectName, envName);
|
|
64
81
|
if (resp.status === 200) {
|
|
65
82
|
const doc = yaml.load(resp.data);
|
|
66
83
|
return {
|
|
@@ -71,9 +88,18 @@ class EscApi {
|
|
|
71
88
|
throw new Error(`Failed to get environment: ${resp.statusText}`);
|
|
72
89
|
});
|
|
73
90
|
}
|
|
74
|
-
|
|
91
|
+
/**
|
|
92
|
+
* getEnvironmentAtVersion gets the definition of an environment at a specific version.
|
|
93
|
+
* @summary Get environment at version
|
|
94
|
+
* @param {string} orgName Organization name
|
|
95
|
+
* @param {string} projectName Project name
|
|
96
|
+
* @param {string} envName Environment name
|
|
97
|
+
* @param {string} version Version of the environment
|
|
98
|
+
* @returns {Promise<EnvironmentDefinitionResponse | undefined>} The environment definition and the YAML representation
|
|
99
|
+
*/
|
|
100
|
+
getEnvironmentAtVersion(orgName, projectName, envName, version) {
|
|
75
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
const resp = yield this.rawApi.getEnvironmentAtVersion(
|
|
102
|
+
const resp = yield this.rawApi.getEnvironmentAtVersion(orgName, projectName, envName, version);
|
|
77
103
|
if (resp.status === 200) {
|
|
78
104
|
const doc = yaml.load(resp.data);
|
|
79
105
|
return {
|
|
@@ -84,27 +110,54 @@ class EscApi {
|
|
|
84
110
|
throw new Error(`Failed to get environment: ${resp.statusText}`);
|
|
85
111
|
});
|
|
86
112
|
}
|
|
87
|
-
|
|
113
|
+
/**
|
|
114
|
+
* openEnvironment opens an environment session
|
|
115
|
+
* @summary Open environment
|
|
116
|
+
* @param {string} orgName Organization name
|
|
117
|
+
* @param {string} projectName Project name
|
|
118
|
+
* @param {string} envName Environment name
|
|
119
|
+
* @returns {Promise<OpenEnvironment | undefined>} The open environment session information
|
|
120
|
+
*/
|
|
121
|
+
openEnvironment(orgName, projectName, envName) {
|
|
88
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
const resp = yield this.rawApi.openEnvironment(
|
|
123
|
+
const resp = yield this.rawApi.openEnvironment(orgName, projectName, envName);
|
|
90
124
|
if (resp.status === 200) {
|
|
91
125
|
return resp.data;
|
|
92
126
|
}
|
|
93
127
|
throw new Error(`Failed to open environment: ${resp.statusText}`);
|
|
94
128
|
});
|
|
95
129
|
}
|
|
96
|
-
|
|
130
|
+
/**
|
|
131
|
+
* openEnvironmentAtVersion opens an environment session at a specific version
|
|
132
|
+
* @summary Open environment at version
|
|
133
|
+
* @param {string} orgName Organization name
|
|
134
|
+
* @param {string} projectName Project name
|
|
135
|
+
* @param {string} envName Environment name
|
|
136
|
+
* @param {string} version Version of the environment
|
|
137
|
+
* @returns {Promise<OpenEnvironment | undefined>} The open environment session information
|
|
138
|
+
*/
|
|
139
|
+
openEnvironmentAtVersion(orgName, projectName, envName, version) {
|
|
97
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
const resp = yield this.rawApi.openEnvironmentAtVersion(
|
|
141
|
+
const resp = yield this.rawApi.openEnvironmentAtVersion(orgName, projectName, envName, version);
|
|
99
142
|
if (resp.status === 200) {
|
|
100
143
|
return resp.data;
|
|
101
144
|
}
|
|
102
145
|
throw new Error(`Failed to open environment: ${resp.statusText}`);
|
|
103
146
|
});
|
|
104
147
|
}
|
|
105
|
-
|
|
148
|
+
/**
|
|
149
|
+
* readOpenEnvironment reads the environment properties in an open session,
|
|
150
|
+
* resolving configuration variables and secrets.
|
|
151
|
+
* @summary Read environment
|
|
152
|
+
* @param {string} orgName Organization name
|
|
153
|
+
* @param {string} projectName Project name
|
|
154
|
+
* @param {string} envName Environment name
|
|
155
|
+
* @param {string} openSessionID Open session ID
|
|
156
|
+
* @returns {Promise<EnvironmentResponse | undefined>} The environment and its values
|
|
157
|
+
*/
|
|
158
|
+
readOpenEnvironment(orgName, projectName, envName, openSessionID) {
|
|
106
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
const resp = yield this.rawApi.readOpenEnvironment(
|
|
160
|
+
const resp = yield this.rawApi.readOpenEnvironment(orgName, projectName, envName, openSessionID);
|
|
108
161
|
if (resp.status === 200) {
|
|
109
162
|
return {
|
|
110
163
|
environment: resp.data,
|
|
@@ -114,27 +167,57 @@ class EscApi {
|
|
|
114
167
|
throw new Error(`Failed to read environment: ${resp.statusText}`);
|
|
115
168
|
});
|
|
116
169
|
}
|
|
117
|
-
|
|
170
|
+
/**
|
|
171
|
+
* openAndReadEnvironment opens an environment session and reads the environment properties,
|
|
172
|
+
* resolving configuration variables and secrets.
|
|
173
|
+
* @summary Open and read environment
|
|
174
|
+
* @param {string} orgName Organization name
|
|
175
|
+
* @param {string} projectName Project name
|
|
176
|
+
* @param {string} envName Environment name
|
|
177
|
+
* @returns {Promise<EnvironmentResponse | undefined>} The environment and its values
|
|
178
|
+
*/
|
|
179
|
+
openAndReadEnvironment(orgName, projectName, envName) {
|
|
118
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
const open = yield this.openEnvironment(
|
|
181
|
+
const open = yield this.openEnvironment(orgName, projectName, envName);
|
|
120
182
|
if (open === null || open === void 0 ? void 0 : open.id) {
|
|
121
|
-
return yield this.readOpenEnvironment(
|
|
183
|
+
return yield this.readOpenEnvironment(orgName, projectName, envName, open.id);
|
|
122
184
|
}
|
|
123
185
|
throw new Error(`Failed to open and read environment: ${open}`);
|
|
124
186
|
});
|
|
125
187
|
}
|
|
126
|
-
|
|
188
|
+
/**
|
|
189
|
+
* openAndReadEnvironmentAtVersion opens an environment session at a specific version and reads the environment properties,
|
|
190
|
+
* resolving configuration variables and secrets.
|
|
191
|
+
* @summary Open and read environment at version
|
|
192
|
+
* @param {string} orgName Organization name
|
|
193
|
+
* @param {string} projectName Project name
|
|
194
|
+
* @param {string} envName Environment name
|
|
195
|
+
* @param {string} version Version of the environment
|
|
196
|
+
* @returns {Promise<EnvironmentResponse | undefined>} The environment and its values
|
|
197
|
+
*/
|
|
198
|
+
openAndReadEnvironmentAtVersion(orgName, projectName, envName, version) {
|
|
127
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
const open = yield this.openEnvironmentAtVersion(
|
|
200
|
+
const open = yield this.openEnvironmentAtVersion(orgName, projectName, envName, version);
|
|
129
201
|
if (open === null || open === void 0 ? void 0 : open.id) {
|
|
130
|
-
return yield this.readOpenEnvironment(
|
|
202
|
+
return yield this.readOpenEnvironment(orgName, projectName, envName, open.id);
|
|
131
203
|
}
|
|
132
204
|
throw new Error(`Failed to open and read environment: ${open}`);
|
|
133
205
|
});
|
|
134
206
|
}
|
|
135
|
-
|
|
207
|
+
/**
|
|
208
|
+
* readOpenEnvironmentProperty reads a specific environment property in an open session,
|
|
209
|
+
* resolving configuration variables and secrets.
|
|
210
|
+
* @summary Read environment property
|
|
211
|
+
* @param {string} orgName Organization name
|
|
212
|
+
* @param {string} projectName Project name
|
|
213
|
+
* @param {string} envName Environment name
|
|
214
|
+
* @param {string} openSessionID Open session ID
|
|
215
|
+
* @param {string} property Property name
|
|
216
|
+
* @returns {Promise<EnvironmentPropertyResponse | undefined>} The environment property and its value
|
|
217
|
+
*/
|
|
218
|
+
readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property) {
|
|
136
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
const resp = yield this.rawApi.readOpenEnvironmentProperty(
|
|
220
|
+
const resp = yield this.rawApi.readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property);
|
|
138
221
|
if (resp.status === 200) {
|
|
139
222
|
return {
|
|
140
223
|
property: resp.data,
|
|
@@ -144,48 +227,93 @@ class EscApi {
|
|
|
144
227
|
throw new Error(`Failed to read environment property: ${resp.statusText}`);
|
|
145
228
|
});
|
|
146
229
|
}
|
|
147
|
-
|
|
230
|
+
/**
|
|
231
|
+
* createEnvironment creates a new environment.
|
|
232
|
+
* @summary Create environment
|
|
233
|
+
* @param {string} orgName Organization name
|
|
234
|
+
* @param {string} projectName Project name
|
|
235
|
+
* @param {string} envName Environment name
|
|
236
|
+
* @returns {Promise<void>} A promise that resolves when the environment is created
|
|
237
|
+
*/
|
|
238
|
+
createEnvironment(orgName, projectName, envName) {
|
|
148
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
const
|
|
240
|
+
const body = {
|
|
241
|
+
project: projectName,
|
|
242
|
+
name: envName,
|
|
243
|
+
};
|
|
244
|
+
const resp = yield this.rawApi.createEnvironment(orgName, body);
|
|
150
245
|
if (resp.status === 200) {
|
|
151
246
|
return;
|
|
152
247
|
}
|
|
153
248
|
throw new Error(`Failed to create environment: ${resp.statusText}`);
|
|
154
249
|
});
|
|
155
250
|
}
|
|
156
|
-
|
|
251
|
+
/**
|
|
252
|
+
* updateEnvironmentYaml updates the environment definition from a YAML string.
|
|
253
|
+
* @summary Update environment YAML
|
|
254
|
+
* @param {string} orgName Organization name
|
|
255
|
+
* @param {string} projectName Project name
|
|
256
|
+
* @param {string} envName Environment name
|
|
257
|
+
* @param {string} yaml YAML representation of the environment
|
|
258
|
+
* @returns {Promise<EnvironmentDiagnostics | undefined>} The environment diagnostics
|
|
259
|
+
*/
|
|
260
|
+
updateEnvironmentYaml(orgName, projectName, envName, yaml) {
|
|
157
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
-
const resp = yield this.rawApi.updateEnvironmentYaml(
|
|
262
|
+
const resp = yield this.rawApi.updateEnvironmentYaml(orgName, projectName, envName, yaml);
|
|
159
263
|
if (resp.status === 200) {
|
|
160
264
|
return resp.data;
|
|
161
265
|
}
|
|
162
266
|
throw new Error(`Failed to update environment: ${resp.statusText}`);
|
|
163
267
|
});
|
|
164
268
|
}
|
|
165
|
-
|
|
269
|
+
/**
|
|
270
|
+
* updateEnvironment updates the environment definition.
|
|
271
|
+
* @summary Update environment
|
|
272
|
+
* @param {string} orgName Organization name
|
|
273
|
+
* @param {string} projectName Project name
|
|
274
|
+
* @param {string} envName Environment name
|
|
275
|
+
* @param {EnvironmentDefinition} values The environment definition
|
|
276
|
+
* @returns {Promise<EnvironmentDiagnostics | undefined>} The environment diagnostics
|
|
277
|
+
*/
|
|
278
|
+
updateEnvironment(orgName, projectName, envName, values) {
|
|
166
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
280
|
const body = yaml.dump(values);
|
|
168
|
-
const resp = yield this.rawApi.updateEnvironmentYaml(
|
|
281
|
+
const resp = yield this.rawApi.updateEnvironmentYaml(orgName, projectName, envName, body);
|
|
169
282
|
if (resp.status === 200) {
|
|
170
283
|
return resp.data;
|
|
171
284
|
}
|
|
172
285
|
throw new Error(`Failed to update environment: ${resp.statusText}`);
|
|
173
286
|
});
|
|
174
287
|
}
|
|
175
|
-
|
|
288
|
+
/**
|
|
289
|
+
* deleteEnvironment deletes an environment.
|
|
290
|
+
* @summary Delete environment
|
|
291
|
+
* @param {string} orgName Organization name
|
|
292
|
+
* @param {string} projectName Project name
|
|
293
|
+
* @param {string} envName Environment name
|
|
294
|
+
* @returns {Promise<void>} A promise that resolves when the environment is deleted
|
|
295
|
+
*/
|
|
296
|
+
deleteEnvironment(orgName, projectName, envName) {
|
|
176
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
-
const resp = yield this.rawApi.deleteEnvironment(
|
|
298
|
+
const resp = yield this.rawApi.deleteEnvironment(orgName, projectName, envName);
|
|
178
299
|
if (resp.status === 200) {
|
|
179
300
|
return;
|
|
180
301
|
}
|
|
181
302
|
throw new Error(`Failed to delete environment: ${resp.statusText}`);
|
|
182
303
|
});
|
|
183
304
|
}
|
|
184
|
-
|
|
305
|
+
/**
|
|
306
|
+
* checkEnvironmentYaml checks the environment definition from a YAML string.
|
|
307
|
+
* @summary Check environment YAML
|
|
308
|
+
* @param {string} orgName Organization name
|
|
309
|
+
* @param {string} yaml YAML representation of the environment
|
|
310
|
+
* @returns {Promise<CheckEnvironment | undefined>} The environment diagnostics
|
|
311
|
+
*/
|
|
312
|
+
checkEnvironmentYaml(orgName, yaml) {
|
|
185
313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
314
|
var _a, _b;
|
|
187
315
|
try {
|
|
188
|
-
const resp = yield this.rawApi.checkEnvironmentYaml(
|
|
316
|
+
const resp = yield this.rawApi.checkEnvironmentYaml(orgName, yaml);
|
|
189
317
|
if (resp.status === 200) {
|
|
190
318
|
return resp.data;
|
|
191
319
|
}
|
|
@@ -201,15 +329,30 @@ class EscApi {
|
|
|
201
329
|
}
|
|
202
330
|
});
|
|
203
331
|
}
|
|
204
|
-
|
|
332
|
+
/**
|
|
333
|
+
* checkEnvironment checks the environment definition.
|
|
334
|
+
* @summary Check environment
|
|
335
|
+
* @param {string} orgName Organization name
|
|
336
|
+
* @param {EnvironmentDefinition} env The environment definition
|
|
337
|
+
* @returns {Promise<CheckEnvironment | undefined>} The environment diagnostics
|
|
338
|
+
*/
|
|
339
|
+
checkEnvironment(orgName, env) {
|
|
205
340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
341
|
const body = yaml.dump(env);
|
|
207
|
-
return yield this.checkEnvironmentYaml(
|
|
342
|
+
return yield this.checkEnvironmentYaml(orgName, body);
|
|
208
343
|
});
|
|
209
344
|
}
|
|
210
|
-
|
|
345
|
+
/**
|
|
346
|
+
* decryptEnvironment decrypts the environment definition.
|
|
347
|
+
* @summary Decrypt environment
|
|
348
|
+
* @param {string} orgName Organization name
|
|
349
|
+
* @param {string} projectName Project name
|
|
350
|
+
* @param {string} envName Environment name
|
|
351
|
+
* @returns {Promise<EnvironmentDefinitionResponse | undefined>} The decrypted environment definition and the YAML representation
|
|
352
|
+
*/
|
|
353
|
+
decryptEnvironment(orgName, projectName, envName) {
|
|
211
354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
-
const resp = yield this.rawApi.decryptEnvironment(
|
|
355
|
+
const resp = yield this.rawApi.decryptEnvironment(orgName, projectName, envName);
|
|
213
356
|
if (resp.status === 200) {
|
|
214
357
|
const doc = yaml.load(resp.data);
|
|
215
358
|
return {
|
|
@@ -220,66 +363,233 @@ class EscApi {
|
|
|
220
363
|
throw new Error(`Failed to decrypt environment: ${resp.statusText}`);
|
|
221
364
|
});
|
|
222
365
|
}
|
|
223
|
-
|
|
366
|
+
/**
|
|
367
|
+
* listEnvironmentRevisions lists the environment revisions, from oldest to newest.
|
|
368
|
+
* @summary List environment revisions
|
|
369
|
+
* @param {string} orgName Organization name
|
|
370
|
+
* @param {string} projectName Project name
|
|
371
|
+
* @param {string} envName Environment name
|
|
372
|
+
* @param {number} before The revision number to start listing from
|
|
373
|
+
* @param {number} count The number of revisions to list
|
|
374
|
+
* @returns {Promise<Array<EnvironmentRevision> | undefined>} A list of environment revisions
|
|
375
|
+
*/
|
|
376
|
+
listEnvironmentRevisions(orgName, projectName, envName, before, count) {
|
|
224
377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
-
const resp = yield this.rawApi.listEnvironmentRevisions(
|
|
378
|
+
const resp = yield this.rawApi.listEnvironmentRevisions(orgName, projectName, envName, before, count);
|
|
226
379
|
if (resp.status === 200) {
|
|
227
380
|
return resp.data;
|
|
228
381
|
}
|
|
229
382
|
throw new Error(`Failed to list environment revisions: ${resp.statusText}`);
|
|
230
383
|
});
|
|
231
384
|
}
|
|
232
|
-
|
|
385
|
+
/**
|
|
386
|
+
* listEnvironmentRevisionTags lists the environment revision tags.
|
|
387
|
+
* @summary List environment revision tags
|
|
388
|
+
* @param {string} orgName Organization name
|
|
389
|
+
* @param {string} projectName Project name
|
|
390
|
+
* @param {string} envName Environment name
|
|
391
|
+
* @param {string} after The tag to start listing from
|
|
392
|
+
* @param {number} count The number of tags to list
|
|
393
|
+
* @returns {Promise<EnvironmentRevisionTags | undefined>} A list of environment revision tags
|
|
394
|
+
*/
|
|
395
|
+
listEnvironmentRevisionTags(orgName, projectName, envName, after, count) {
|
|
233
396
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
const resp = yield this.rawApi.listEnvironmentRevisionTags(
|
|
397
|
+
const resp = yield this.rawApi.listEnvironmentRevisionTags(orgName, projectName, envName, after, count);
|
|
235
398
|
if (resp.status === 200) {
|
|
236
399
|
return resp.data;
|
|
237
400
|
}
|
|
238
401
|
throw new Error(`Failed to list environment revision tags: ${resp.statusText}`);
|
|
239
402
|
});
|
|
240
403
|
}
|
|
241
|
-
|
|
404
|
+
/**
|
|
405
|
+
* getEnvironmentRevisionTag gets the environment revision tag.
|
|
406
|
+
* @summary Get environment revision tag
|
|
407
|
+
* @param {string} orgName Organization name
|
|
408
|
+
* @param {string} projectName Project name
|
|
409
|
+
* @param {string} envName Environment name
|
|
410
|
+
* @param {string} tag The tag name
|
|
411
|
+
* @returns {Promise<EnvironmentRevisionTag | undefined>} The environment revision tag
|
|
412
|
+
*/
|
|
413
|
+
getEnvironmentRevisionTag(orgName, projectName, envName, tag) {
|
|
242
414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
-
const resp = yield this.rawApi.getEnvironmentRevisionTag(
|
|
415
|
+
const resp = yield this.rawApi.getEnvironmentRevisionTag(orgName, projectName, envName, tag);
|
|
244
416
|
if (resp.status === 200) {
|
|
245
417
|
return resp.data;
|
|
246
418
|
}
|
|
247
419
|
throw new Error(`Failed to get environment revision tag: ${resp.statusText}`);
|
|
248
420
|
});
|
|
249
421
|
}
|
|
250
|
-
|
|
422
|
+
/**
|
|
423
|
+
* createEnvironmentRevisionTag creates a new environment revision tag.
|
|
424
|
+
* @summary Create environment revision tag
|
|
425
|
+
* @param {string} orgName Organization name
|
|
426
|
+
* @param {string} projectName Project name
|
|
427
|
+
* @param {string} envName Environment name
|
|
428
|
+
* @param {string} tag The tag name
|
|
429
|
+
* @param {number} revision The revision number
|
|
430
|
+
* @returns {Promise<void>} A promise that resolves when the tag is created
|
|
431
|
+
*/
|
|
432
|
+
createEnvironmentRevisionTag(orgName, projectName, envName, tag, revision) {
|
|
251
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
-
const
|
|
434
|
+
const createTag = {
|
|
435
|
+
name: tag,
|
|
253
436
|
revision: revision,
|
|
254
437
|
};
|
|
255
|
-
const resp = yield this.rawApi.createEnvironmentRevisionTag(
|
|
438
|
+
const resp = yield this.rawApi.createEnvironmentRevisionTag(orgName, projectName, envName, createTag);
|
|
256
439
|
if (resp.status === 204) {
|
|
257
440
|
return;
|
|
258
441
|
}
|
|
259
442
|
throw new Error(`Failed to create environment revision tag: ${resp.statusText}`);
|
|
260
443
|
});
|
|
261
444
|
}
|
|
262
|
-
|
|
445
|
+
/**
|
|
446
|
+
* updateEnvironmentRevisionTag updates the environment revision tag.
|
|
447
|
+
* @summary Update environment revision tag
|
|
448
|
+
* @param {string} orgName Organization name
|
|
449
|
+
* @param {string} projectName Project name
|
|
450
|
+
* @param {string} envName Environment name
|
|
451
|
+
* @param {string} tag The tag name
|
|
452
|
+
* @param {number} revision The revision number
|
|
453
|
+
* @returns {Promise<void>} A promise that resolves when the tag is updated
|
|
454
|
+
*/
|
|
455
|
+
updateEnvironmentRevisionTag(orgName, projectName, envName, tag, revision) {
|
|
263
456
|
return __awaiter(this, void 0, void 0, function* () {
|
|
264
457
|
const updateTag = {
|
|
265
458
|
revision: revision,
|
|
266
459
|
};
|
|
267
|
-
const resp = yield this.rawApi.updateEnvironmentRevisionTag(
|
|
460
|
+
const resp = yield this.rawApi.updateEnvironmentRevisionTag(orgName, projectName, envName, tag, updateTag);
|
|
268
461
|
if (resp.status === 204) {
|
|
269
462
|
return;
|
|
270
463
|
}
|
|
271
464
|
throw new Error(`Failed to update environment revision tag: ${resp.statusText}`);
|
|
272
465
|
});
|
|
273
466
|
}
|
|
274
|
-
|
|
467
|
+
/**
|
|
468
|
+
* deleteEnvironmentRevisionTag deletes the environment revision tag.
|
|
469
|
+
* @summary Delete environment revision tag
|
|
470
|
+
* @param {string} orgName Organization name
|
|
471
|
+
* @param {string} projectName Project name
|
|
472
|
+
* @param {string} envName Environment name
|
|
473
|
+
* @param {string} tag The tag name
|
|
474
|
+
* @returns {Promise<void>} A promise that resolves when the tag is deleted
|
|
475
|
+
*/
|
|
476
|
+
deleteEnvironmentRevisionTag(orgName, projectName, envName, tag) {
|
|
275
477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
-
const resp = yield this.rawApi.deleteEnvironmentRevisionTag(
|
|
478
|
+
const resp = yield this.rawApi.deleteEnvironmentRevisionTag(orgName, projectName, envName, tag);
|
|
277
479
|
if (resp.status === 204) {
|
|
278
480
|
return;
|
|
279
481
|
}
|
|
280
482
|
throw new Error(`Failed to delete environment revision tag: ${resp.statusText}`);
|
|
281
483
|
});
|
|
282
484
|
}
|
|
485
|
+
/**
|
|
486
|
+
* listEnvironmentTags lists the environment tags.
|
|
487
|
+
* @summary List environment tags
|
|
488
|
+
* @param {string} orgName Organization name
|
|
489
|
+
* @param {string} projectName Project name
|
|
490
|
+
* @param {string} envName Environment name
|
|
491
|
+
* @param {string} after The tag to start listing from
|
|
492
|
+
* @param {number} count The number of tags to list
|
|
493
|
+
* @returns {Promise<ListEnvironmentTags | undefined>} A list of environment tags
|
|
494
|
+
*/
|
|
495
|
+
listEnvironmentTags(orgName, projectName, envName, after, count) {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
+
const resp = yield this.rawApi.listEnvironmentTags(orgName, projectName, envName, after, count);
|
|
498
|
+
if (resp.status === 200) {
|
|
499
|
+
return resp.data;
|
|
500
|
+
}
|
|
501
|
+
throw new Error(`Failed to list environment tags: ${resp.statusText}`);
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* getEnvironmentTag gets the environment tag.
|
|
506
|
+
* @summary Get environment tag
|
|
507
|
+
* @param {string} orgName Organization name
|
|
508
|
+
* @param {string} projectName Project name
|
|
509
|
+
* @param {string} envName Environment name
|
|
510
|
+
* @param {string} tag The tag name
|
|
511
|
+
* @returns {Promise<EnvironmentTag | undefined>} The environment tag
|
|
512
|
+
*/
|
|
513
|
+
getEnvironmentTag(orgName, projectName, envName, tag) {
|
|
514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
515
|
+
const resp = yield this.rawApi.getEnvironmentTag(orgName, projectName, envName, tag);
|
|
516
|
+
if (resp.status === 200) {
|
|
517
|
+
return resp.data;
|
|
518
|
+
}
|
|
519
|
+
throw new Error(`Failed to get environment tag: ${resp.statusText}`);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* createEnvironmentTag creates a new environment tag.
|
|
524
|
+
* @summary Create environment tag
|
|
525
|
+
* @param {string} orgName Organization name
|
|
526
|
+
* @param {string} projectName Project name
|
|
527
|
+
* @param {string} envName Environment name
|
|
528
|
+
* @param {string} tag The tag name
|
|
529
|
+
* @param {string} value The tag value
|
|
530
|
+
* @returns {Promise<EnvironmentTag>} A promise that resolves when the tag is created
|
|
531
|
+
*/
|
|
532
|
+
createEnvironmentTag(orgName, projectName, envName, tag, value) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
534
|
+
const createTag = {
|
|
535
|
+
name: tag,
|
|
536
|
+
value: value,
|
|
537
|
+
};
|
|
538
|
+
const resp = yield this.rawApi.createEnvironmentTag(orgName, projectName, envName, createTag);
|
|
539
|
+
if (resp.status === 200) {
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
throw new Error(`Failed to create environment tag: ${resp.statusText}`);
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* updateEnvironmentTag updates the environment tag.
|
|
547
|
+
* @summary Update environment tag
|
|
548
|
+
* @param {string} orgName Organization name
|
|
549
|
+
* @param {string} projectName Project name
|
|
550
|
+
* @param {string} envName Environment name
|
|
551
|
+
* @param {string} tag The tag name
|
|
552
|
+
* @param {string} current_value The tag value
|
|
553
|
+
* @param {string} new_tag The new tag name
|
|
554
|
+
* @param {string} new_value The new tag value
|
|
555
|
+
* @returns {Promise<EnvironmentTag>} A promise that resolves when the tag is updated
|
|
556
|
+
*/
|
|
557
|
+
updateEnvironmentTag(orgName, projectName, envName, tag, current_value, new_tag, new_value) {
|
|
558
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
559
|
+
const updateTag = {
|
|
560
|
+
currentTag: {
|
|
561
|
+
value: current_value,
|
|
562
|
+
},
|
|
563
|
+
newTag: {
|
|
564
|
+
name: new_tag,
|
|
565
|
+
value: new_value,
|
|
566
|
+
},
|
|
567
|
+
};
|
|
568
|
+
const resp = yield this.rawApi.updateEnvironmentTag(orgName, projectName, envName, tag, updateTag);
|
|
569
|
+
if (resp.status === 200) {
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
throw new Error(`Failed to update environment tag: ${resp.statusText}`);
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* deleteEnvironmentTag deletes the environment tag.
|
|
577
|
+
* @summary Delete environment tag
|
|
578
|
+
* @param {string} orgName Organization name
|
|
579
|
+
* @param {string} projectName Project name
|
|
580
|
+
* @param {string} envName Environment name
|
|
581
|
+
* @param {string} tag The tag name
|
|
582
|
+
* @returns {Promise<void>} A promise that resolves when the tag is deleted
|
|
583
|
+
*/
|
|
584
|
+
deleteEnvironmentTag(orgName, projectName, envName, tag) {
|
|
585
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
586
|
+
const resp = yield this.rawApi.deleteEnvironmentTag(orgName, projectName, envName, tag);
|
|
587
|
+
if (resp.status === 204) {
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
throw new Error(`Failed to delete environment tag: ${resp.statusText}`);
|
|
591
|
+
});
|
|
592
|
+
}
|
|
283
593
|
}
|
|
284
594
|
exports.EscApi = EscApi;
|
|
285
595
|
function convertEnvPropertiesToValues(env) {
|
package/esc/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../esc/index.ts"],"names":[],"mappings":";AAAA,4DAA4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5D,uCAkBqB;AAYjB,0FAvBU,cAAS,OAuBV;AAPT,8FAfA,qBAAa,OAeA;AAJjB,8CAAgC;AAChC,iCAAmC;AAuCnC;;;;GAIG;AACH,MAAa,MAAM;IAGf,YAAY,MAAqB;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,IAAI,cAAS,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAEK,gBAAgB,CAAC,GAAW,EAAE,iBAAsC;;YACtE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;YACxE,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBACtB,OAAO,IAAI,CAAC,IAAI,CAAC;YACrB,CAAC;YAED,MAAM,IAAI,KAAK,CAAC,gCAAgC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QACvE,CAAC;KAAA;IAEK,cAAc,CAAC,GAAW,EAAE,IAAY;;YAC1C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YACzD,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBACtB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;gBAC3C,OAAO;oBACH,UAAU,EAAE,GAA4B;oBACxC,IAAI,EAAE,IAAI,CAAC,IAAc;iBAC5B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