@pulumi/esc-sdk 0.9.0-pubtest2 → 0.9.0-pubtest4
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/README.md +14 -55
- package/esc/index.d.ts +11 -2
- package/esc/index.js +92 -1
- package/esc/index.js.map +1 -1
- package/esc/raw/api.d.ts +462 -13
- package/esc/raw/api.js +741 -20
- package/esc/raw/api.js.map +1 -1
- package/esc/raw/common.d.ts +0 -5
- package/esc/raw/common.js +8 -15
- package/esc/raw/common.js.map +1 -1
- package/esc/raw/configuration.d.ts +5 -21
- package/esc/raw/configuration.js +1 -3
- package/esc/raw/configuration.js.map +1 -1
- package/package.json +5 -5
- package/package.json.bak +4 -4
- package/test/client.spec.js +35 -11
- package/test/client.spec.js.map +1 -1
package/esc/raw/api.js
CHANGED
|
@@ -16,6 +16,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.EscApi = exports.EscApiFactory = exports.EscApiFp = exports.EscApiAxiosParamCreator = void 0;
|
|
19
|
+
/**
|
|
20
|
+
* ESC (Environments, Secrets, Config) API
|
|
21
|
+
* Pulumi ESC allows you to compose and manage hierarchical collections of configuration and secrets and consume them in various ways.
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 0.1.0
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*/
|
|
30
|
+
const userAgent = 'esc-sdk/ts/v0.9.0-pubtest4';
|
|
19
31
|
const axios_1 = __importDefault(require("axios"));
|
|
20
32
|
// Some imports not used depending on template conditions
|
|
21
33
|
// @ts-ignore
|
|
@@ -57,7 +69,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
57
69
|
localVarHeaderParameter['Content-Type'] = 'application/x-yaml';
|
|
58
70
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
59
71
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
60
|
-
localVarHeaderParameter['User-Agent'] =
|
|
72
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
61
73
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
74
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
63
75
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
@@ -95,7 +107,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
95
107
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
96
108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
97
109
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
98
|
-
localVarHeaderParameter['User-Agent'] =
|
|
110
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
99
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
112
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
101
113
|
return {
|
|
@@ -103,6 +115,52 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
103
115
|
options: localVarRequestOptions,
|
|
104
116
|
};
|
|
105
117
|
}),
|
|
118
|
+
/**
|
|
119
|
+
* Create environment revision tag
|
|
120
|
+
* @summary Create environment revision tag
|
|
121
|
+
* @param {string} orgName Organization name
|
|
122
|
+
* @param {string} envName Environment name
|
|
123
|
+
* @param {string} tagName Tag name
|
|
124
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
createEnvironmentRevisionTag: (orgName_3, envName_2, tagName_1, updateEnvironmentRevisionTag_1, ...args_3) => __awaiter(this, [orgName_3, envName_2, tagName_1, updateEnvironmentRevisionTag_1, ...args_3], void 0, function* (orgName, envName, tagName, updateEnvironmentRevisionTag, options = {}) {
|
|
129
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
130
|
+
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'orgName', orgName);
|
|
131
|
+
// verify required parameter 'envName' is not null or undefined
|
|
132
|
+
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'envName', envName);
|
|
133
|
+
// verify required parameter 'tagName' is not null or undefined
|
|
134
|
+
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'tagName', tagName);
|
|
135
|
+
// verify required parameter 'updateEnvironmentRevisionTag' is not null or undefined
|
|
136
|
+
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'updateEnvironmentRevisionTag', updateEnvironmentRevisionTag);
|
|
137
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
138
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
139
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
140
|
+
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
141
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
142
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
143
|
+
let baseOptions;
|
|
144
|
+
if (configuration) {
|
|
145
|
+
baseOptions = configuration.baseOptions;
|
|
146
|
+
}
|
|
147
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
148
|
+
const localVarHeaderParameter = {};
|
|
149
|
+
const localVarQueryParameter = {};
|
|
150
|
+
// authentication Authorization required
|
|
151
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
152
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
155
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
158
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEnvironmentRevisionTag, localVarRequestOptions, configuration);
|
|
159
|
+
return {
|
|
160
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
161
|
+
options: localVarRequestOptions,
|
|
162
|
+
};
|
|
163
|
+
}),
|
|
106
164
|
/**
|
|
107
165
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
108
166
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
@@ -111,7 +169,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
111
169
|
* @param {*} [options] Override http request option.
|
|
112
170
|
* @throws {RequiredError}
|
|
113
171
|
*/
|
|
114
|
-
decryptEnvironment: (
|
|
172
|
+
decryptEnvironment: (orgName_4, envName_3, ...args_4) => __awaiter(this, [orgName_4, envName_3, ...args_4], void 0, function* (orgName, envName, options = {}) {
|
|
115
173
|
// verify required parameter 'orgName' is not null or undefined
|
|
116
174
|
(0, common_1.assertParamExists)('decryptEnvironment', 'orgName', orgName);
|
|
117
175
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -132,7 +190,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
132
190
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
133
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
134
192
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
135
|
-
localVarHeaderParameter['User-Agent'] =
|
|
193
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
136
194
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
195
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
196
|
return {
|
|
@@ -148,7 +206,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
148
206
|
* @param {*} [options] Override http request option.
|
|
149
207
|
* @throws {RequiredError}
|
|
150
208
|
*/
|
|
151
|
-
deleteEnvironment: (
|
|
209
|
+
deleteEnvironment: (orgName_5, envName_4, ...args_5) => __awaiter(this, [orgName_5, envName_4, ...args_5], void 0, function* (orgName, envName, options = {}) {
|
|
152
210
|
// verify required parameter 'orgName' is not null or undefined
|
|
153
211
|
(0, common_1.assertParamExists)('deleteEnvironment', 'orgName', orgName);
|
|
154
212
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -169,7 +227,48 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
169
227
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
170
228
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
171
229
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
172
|
-
localVarHeaderParameter['User-Agent'] =
|
|
230
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
233
|
+
return {
|
|
234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
235
|
+
options: localVarRequestOptions,
|
|
236
|
+
};
|
|
237
|
+
}),
|
|
238
|
+
/**
|
|
239
|
+
* Delete environment revision tag
|
|
240
|
+
* @summary Delete environment revision tag
|
|
241
|
+
* @param {string} orgName Organization name
|
|
242
|
+
* @param {string} envName Environment name
|
|
243
|
+
* @param {string} tagName Tag name
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
deleteEnvironmentRevisionTag: (orgName_6, envName_5, tagName_2, ...args_6) => __awaiter(this, [orgName_6, envName_5, tagName_2, ...args_6], void 0, function* (orgName, envName, tagName, options = {}) {
|
|
248
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
249
|
+
(0, common_1.assertParamExists)('deleteEnvironmentRevisionTag', 'orgName', orgName);
|
|
250
|
+
// verify required parameter 'envName' is not null or undefined
|
|
251
|
+
(0, common_1.assertParamExists)('deleteEnvironmentRevisionTag', 'envName', envName);
|
|
252
|
+
// verify required parameter 'tagName' is not null or undefined
|
|
253
|
+
(0, common_1.assertParamExists)('deleteEnvironmentRevisionTag', 'tagName', tagName);
|
|
254
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
255
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
256
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
257
|
+
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
+
let baseOptions;
|
|
261
|
+
if (configuration) {
|
|
262
|
+
baseOptions = configuration.baseOptions;
|
|
263
|
+
}
|
|
264
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
265
|
+
const localVarHeaderParameter = {};
|
|
266
|
+
const localVarQueryParameter = {};
|
|
267
|
+
// authentication Authorization required
|
|
268
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
269
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
270
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
271
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
173
272
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
273
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
175
274
|
return {
|
|
@@ -185,7 +284,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
185
284
|
* @param {*} [options] Override http request option.
|
|
186
285
|
* @throws {RequiredError}
|
|
187
286
|
*/
|
|
188
|
-
getEnvironment: (
|
|
287
|
+
getEnvironment: (orgName_7, envName_6, ...args_7) => __awaiter(this, [orgName_7, envName_6, ...args_7], void 0, function* (orgName, envName, options = {}) {
|
|
189
288
|
// verify required parameter 'orgName' is not null or undefined
|
|
190
289
|
(0, common_1.assertParamExists)('getEnvironment', 'orgName', orgName);
|
|
191
290
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -206,7 +305,48 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
206
305
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
207
306
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
208
307
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
209
|
-
localVarHeaderParameter['User-Agent'] =
|
|
308
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
310
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
311
|
+
return {
|
|
312
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
313
|
+
options: localVarRequestOptions,
|
|
314
|
+
};
|
|
315
|
+
}),
|
|
316
|
+
/**
|
|
317
|
+
* Read an environmentat a specific revision or tag
|
|
318
|
+
* @summary Read an environment at a specific version
|
|
319
|
+
* @param {string} orgName Organization name
|
|
320
|
+
* @param {string} envName Environment name
|
|
321
|
+
* @param {string} version Revision or tag
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
getEnvironmentAtVersion: (orgName_8, envName_7, version_1, ...args_8) => __awaiter(this, [orgName_8, envName_7, version_1, ...args_8], void 0, function* (orgName, envName, version, options = {}) {
|
|
326
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('getEnvironmentAtVersion', 'orgName', orgName);
|
|
328
|
+
// verify required parameter 'envName' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('getEnvironmentAtVersion', 'envName', envName);
|
|
330
|
+
// verify required parameter 'version' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('getEnvironmentAtVersion', 'version', version);
|
|
332
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions/{version}`
|
|
333
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
334
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
335
|
+
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
337
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
338
|
+
let baseOptions;
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
}
|
|
342
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
343
|
+
const localVarHeaderParameter = {};
|
|
344
|
+
const localVarQueryParameter = {};
|
|
345
|
+
// authentication Authorization required
|
|
346
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
347
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
348
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
349
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
210
350
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
211
351
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
212
352
|
return {
|
|
@@ -222,7 +362,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
222
362
|
* @param {*} [options] Override http request option.
|
|
223
363
|
* @throws {RequiredError}
|
|
224
364
|
*/
|
|
225
|
-
getEnvironmentETag: (
|
|
365
|
+
getEnvironmentETag: (orgName_9, envName_8, ...args_9) => __awaiter(this, [orgName_9, envName_8, ...args_9], void 0, function* (orgName, envName, options = {}) {
|
|
226
366
|
// verify required parameter 'orgName' is not null or undefined
|
|
227
367
|
(0, common_1.assertParamExists)('getEnvironmentETag', 'orgName', orgName);
|
|
228
368
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -243,7 +383,138 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
243
383
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
244
384
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
245
385
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
246
|
-
localVarHeaderParameter['User-Agent'] =
|
|
386
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
388
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
389
|
+
return {
|
|
390
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
391
|
+
options: localVarRequestOptions,
|
|
392
|
+
};
|
|
393
|
+
}),
|
|
394
|
+
/**
|
|
395
|
+
* Read environment revision tag
|
|
396
|
+
* @summary Read environment revision tag
|
|
397
|
+
* @param {string} orgName Organization name
|
|
398
|
+
* @param {string} envName Environment name
|
|
399
|
+
* @param {string} tagName Tag name
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
getEnvironmentRevisionTag: (orgName_10, envName_9, tagName_3, ...args_10) => __awaiter(this, [orgName_10, envName_9, tagName_3, ...args_10], void 0, function* (orgName, envName, tagName, options = {}) {
|
|
404
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
405
|
+
(0, common_1.assertParamExists)('getEnvironmentRevisionTag', 'orgName', orgName);
|
|
406
|
+
// verify required parameter 'envName' is not null or undefined
|
|
407
|
+
(0, common_1.assertParamExists)('getEnvironmentRevisionTag', 'envName', envName);
|
|
408
|
+
// verify required parameter 'tagName' is not null or undefined
|
|
409
|
+
(0, common_1.assertParamExists)('getEnvironmentRevisionTag', 'tagName', tagName);
|
|
410
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
411
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
412
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
413
|
+
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
414
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
415
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
416
|
+
let baseOptions;
|
|
417
|
+
if (configuration) {
|
|
418
|
+
baseOptions = configuration.baseOptions;
|
|
419
|
+
}
|
|
420
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
421
|
+
const localVarHeaderParameter = {};
|
|
422
|
+
const localVarQueryParameter = {};
|
|
423
|
+
// authentication Authorization required
|
|
424
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
425
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
426
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
427
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
429
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
430
|
+
return {
|
|
431
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
432
|
+
options: localVarRequestOptions,
|
|
433
|
+
};
|
|
434
|
+
}),
|
|
435
|
+
/**
|
|
436
|
+
* List environment revisions
|
|
437
|
+
* @summary List environment revisions
|
|
438
|
+
* @param {string} orgName Organization name
|
|
439
|
+
* @param {string} envName Environment name
|
|
440
|
+
* @param {string} [after] after tag for pagination
|
|
441
|
+
* @param {number} [count] limit of tags to return
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
listEnvironmentRevisionTags: (orgName_11, envName_10, after_1, count_1, ...args_11) => __awaiter(this, [orgName_11, envName_10, after_1, count_1, ...args_11], void 0, function* (orgName, envName, after, count, options = {}) {
|
|
446
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
447
|
+
(0, common_1.assertParamExists)('listEnvironmentRevisionTags', 'orgName', orgName);
|
|
448
|
+
// verify required parameter 'envName' is not null or undefined
|
|
449
|
+
(0, common_1.assertParamExists)('listEnvironmentRevisionTags', 'envName', envName);
|
|
450
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions/tags`
|
|
451
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
452
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
454
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
455
|
+
let baseOptions;
|
|
456
|
+
if (configuration) {
|
|
457
|
+
baseOptions = configuration.baseOptions;
|
|
458
|
+
}
|
|
459
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
460
|
+
const localVarHeaderParameter = {};
|
|
461
|
+
const localVarQueryParameter = {};
|
|
462
|
+
// authentication Authorization required
|
|
463
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
464
|
+
if (after !== undefined) {
|
|
465
|
+
localVarQueryParameter['after'] = after;
|
|
466
|
+
}
|
|
467
|
+
if (count !== undefined) {
|
|
468
|
+
localVarQueryParameter['count'] = count;
|
|
469
|
+
}
|
|
470
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
471
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
472
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
474
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
475
|
+
return {
|
|
476
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
477
|
+
options: localVarRequestOptions,
|
|
478
|
+
};
|
|
479
|
+
}),
|
|
480
|
+
/**
|
|
481
|
+
* List environment revisions
|
|
482
|
+
* @summary List environment revisions
|
|
483
|
+
* @param {string} orgName Organization name
|
|
484
|
+
* @param {string} envName Environment name
|
|
485
|
+
* @param {number} [before] before revision number for pagination
|
|
486
|
+
* @param {number} [count] limit of revisions to return
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
listEnvironmentRevisions: (orgName_12, envName_11, before_1, count_2, ...args_12) => __awaiter(this, [orgName_12, envName_11, before_1, count_2, ...args_12], void 0, function* (orgName, envName, before, count, options = {}) {
|
|
491
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
492
|
+
(0, common_1.assertParamExists)('listEnvironmentRevisions', 'orgName', orgName);
|
|
493
|
+
// verify required parameter 'envName' is not null or undefined
|
|
494
|
+
(0, common_1.assertParamExists)('listEnvironmentRevisions', 'envName', envName);
|
|
495
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions`
|
|
496
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
497
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
499
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
500
|
+
let baseOptions;
|
|
501
|
+
if (configuration) {
|
|
502
|
+
baseOptions = configuration.baseOptions;
|
|
503
|
+
}
|
|
504
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
505
|
+
const localVarHeaderParameter = {};
|
|
506
|
+
const localVarQueryParameter = {};
|
|
507
|
+
// authentication Authorization required
|
|
508
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
509
|
+
if (before !== undefined) {
|
|
510
|
+
localVarQueryParameter['before'] = before;
|
|
511
|
+
}
|
|
512
|
+
if (count !== undefined) {
|
|
513
|
+
localVarQueryParameter['count'] = count;
|
|
514
|
+
}
|
|
515
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
516
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
517
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
247
518
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
519
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
249
520
|
return {
|
|
@@ -259,7 +530,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
259
530
|
* @param {*} [options] Override http request option.
|
|
260
531
|
* @throws {RequiredError}
|
|
261
532
|
*/
|
|
262
|
-
listEnvironments: (
|
|
533
|
+
listEnvironments: (orgName_13, continuationToken_1, ...args_13) => __awaiter(this, [orgName_13, continuationToken_1, ...args_13], void 0, function* (orgName, continuationToken, options = {}) {
|
|
263
534
|
// verify required parameter 'orgName' is not null or undefined
|
|
264
535
|
(0, common_1.assertParamExists)('listEnvironments', 'orgName', orgName);
|
|
265
536
|
const localVarPath = `/environments/{orgName}`
|
|
@@ -280,7 +551,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
280
551
|
}
|
|
281
552
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
282
553
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
283
|
-
localVarHeaderParameter['User-Agent'] =
|
|
554
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
284
555
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
285
556
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
286
557
|
return {
|
|
@@ -297,7 +568,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
297
568
|
* @param {*} [options] Override http request option.
|
|
298
569
|
* @throws {RequiredError}
|
|
299
570
|
*/
|
|
300
|
-
openEnvironment: (
|
|
571
|
+
openEnvironment: (orgName_14, envName_12, duration_1, ...args_14) => __awaiter(this, [orgName_14, envName_12, duration_1, ...args_14], void 0, function* (orgName, envName, duration, options = {}) {
|
|
301
572
|
// verify required parameter 'orgName' is not null or undefined
|
|
302
573
|
(0, common_1.assertParamExists)('openEnvironment', 'orgName', orgName);
|
|
303
574
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -321,7 +592,52 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
321
592
|
}
|
|
322
593
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
594
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
324
|
-
localVarHeaderParameter['User-Agent'] =
|
|
595
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
598
|
+
return {
|
|
599
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
600
|
+
options: localVarRequestOptions,
|
|
601
|
+
};
|
|
602
|
+
}),
|
|
603
|
+
/**
|
|
604
|
+
* Opens a session the given environment at a specific version for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
605
|
+
* @summary Open an environment session at a specific version
|
|
606
|
+
* @param {string} orgName Organization name
|
|
607
|
+
* @param {string} envName Environment name
|
|
608
|
+
* @param {string} version Revision or tag
|
|
609
|
+
* @param {string} [duration] open duration - A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as “300ms”, “1.5h” or “2h45m”. Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
openEnvironmentAtVersion: (orgName_15, envName_13, version_2, duration_2, ...args_15) => __awaiter(this, [orgName_15, envName_13, version_2, duration_2, ...args_15], void 0, function* (orgName, envName, version, duration, options = {}) {
|
|
614
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
615
|
+
(0, common_1.assertParamExists)('openEnvironmentAtVersion', 'orgName', orgName);
|
|
616
|
+
// verify required parameter 'envName' is not null or undefined
|
|
617
|
+
(0, common_1.assertParamExists)('openEnvironmentAtVersion', 'envName', envName);
|
|
618
|
+
// verify required parameter 'version' is not null or undefined
|
|
619
|
+
(0, common_1.assertParamExists)('openEnvironmentAtVersion', 'version', version);
|
|
620
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions/{version}/open`
|
|
621
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
622
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
623
|
+
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
624
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
625
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
626
|
+
let baseOptions;
|
|
627
|
+
if (configuration) {
|
|
628
|
+
baseOptions = configuration.baseOptions;
|
|
629
|
+
}
|
|
630
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
631
|
+
const localVarHeaderParameter = {};
|
|
632
|
+
const localVarQueryParameter = {};
|
|
633
|
+
// authentication Authorization required
|
|
634
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
635
|
+
if (duration !== undefined) {
|
|
636
|
+
localVarQueryParameter['duration'] = duration;
|
|
637
|
+
}
|
|
638
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
639
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
640
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
325
641
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
642
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
327
643
|
return {
|
|
@@ -338,7 +654,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
338
654
|
* @param {*} [options] Override http request option.
|
|
339
655
|
* @throws {RequiredError}
|
|
340
656
|
*/
|
|
341
|
-
readOpenEnvironment: (
|
|
657
|
+
readOpenEnvironment: (orgName_16, envName_14, openSessionID_1, ...args_16) => __awaiter(this, [orgName_16, envName_14, openSessionID_1, ...args_16], void 0, function* (orgName, envName, openSessionID, options = {}) {
|
|
342
658
|
// verify required parameter 'orgName' is not null or undefined
|
|
343
659
|
(0, common_1.assertParamExists)('readOpenEnvironment', 'orgName', orgName);
|
|
344
660
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -362,7 +678,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
362
678
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
363
679
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
364
680
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
365
|
-
localVarHeaderParameter['User-Agent'] =
|
|
681
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
366
682
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
683
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
368
684
|
return {
|
|
@@ -380,7 +696,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
380
696
|
* @param {*} [options] Override http request option.
|
|
381
697
|
* @throws {RequiredError}
|
|
382
698
|
*/
|
|
383
|
-
readOpenEnvironmentProperty: (
|
|
699
|
+
readOpenEnvironmentProperty: (orgName_17, envName_15, openSessionID_2, property_1, ...args_17) => __awaiter(this, [orgName_17, envName_15, openSessionID_2, property_1, ...args_17], void 0, function* (orgName, envName, openSessionID, property, options = {}) {
|
|
384
700
|
// verify required parameter 'orgName' is not null or undefined
|
|
385
701
|
(0, common_1.assertParamExists)('readOpenEnvironmentProperty', 'orgName', orgName);
|
|
386
702
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -409,7 +725,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
409
725
|
}
|
|
410
726
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
411
727
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
412
|
-
localVarHeaderParameter['User-Agent'] =
|
|
728
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
413
729
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
414
730
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
415
731
|
return {
|
|
@@ -417,6 +733,52 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
417
733
|
options: localVarRequestOptions,
|
|
418
734
|
};
|
|
419
735
|
}),
|
|
736
|
+
/**
|
|
737
|
+
* Update environment revision tag
|
|
738
|
+
* @summary Update environment revision tag
|
|
739
|
+
* @param {string} orgName Organization name
|
|
740
|
+
* @param {string} envName Environment name
|
|
741
|
+
* @param {string} tagName Tag name
|
|
742
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
updateEnvironmentRevisionTag: (orgName_18, envName_16, tagName_4, updateEnvironmentRevisionTag_2, ...args_18) => __awaiter(this, [orgName_18, envName_16, tagName_4, updateEnvironmentRevisionTag_2, ...args_18], void 0, function* (orgName, envName, tagName, updateEnvironmentRevisionTag, options = {}) {
|
|
747
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
748
|
+
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'orgName', orgName);
|
|
749
|
+
// verify required parameter 'envName' is not null or undefined
|
|
750
|
+
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'envName', envName);
|
|
751
|
+
// verify required parameter 'tagName' is not null or undefined
|
|
752
|
+
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'tagName', tagName);
|
|
753
|
+
// verify required parameter 'updateEnvironmentRevisionTag' is not null or undefined
|
|
754
|
+
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'updateEnvironmentRevisionTag', updateEnvironmentRevisionTag);
|
|
755
|
+
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
756
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
757
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
758
|
+
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
760
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
761
|
+
let baseOptions;
|
|
762
|
+
if (configuration) {
|
|
763
|
+
baseOptions = configuration.baseOptions;
|
|
764
|
+
}
|
|
765
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
766
|
+
const localVarHeaderParameter = {};
|
|
767
|
+
const localVarQueryParameter = {};
|
|
768
|
+
// authentication Authorization required
|
|
769
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
770
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
771
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
772
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
773
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
774
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
775
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
776
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEnvironmentRevisionTag, localVarRequestOptions, configuration);
|
|
777
|
+
return {
|
|
778
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
779
|
+
options: localVarRequestOptions,
|
|
780
|
+
};
|
|
781
|
+
}),
|
|
420
782
|
/**
|
|
421
783
|
* Validates and updates the given environment\'s definition.
|
|
422
784
|
* @summary Update an existing environment with Yaml file
|
|
@@ -426,7 +788,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
426
788
|
* @param {*} [options] Override http request option.
|
|
427
789
|
* @throws {RequiredError}
|
|
428
790
|
*/
|
|
429
|
-
updateEnvironmentYaml: (
|
|
791
|
+
updateEnvironmentYaml: (orgName_19, envName_17, body_2, ...args_19) => __awaiter(this, [orgName_19, envName_17, body_2, ...args_19], void 0, function* (orgName, envName, body, options = {}) {
|
|
430
792
|
// verify required parameter 'orgName' is not null or undefined
|
|
431
793
|
(0, common_1.assertParamExists)('updateEnvironmentYaml', 'orgName', orgName);
|
|
432
794
|
// verify required parameter 'envName' is not null or undefined
|
|
@@ -450,7 +812,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
450
812
|
localVarHeaderParameter['Content-Type'] = 'application/x-yaml';
|
|
451
813
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
452
814
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
453
|
-
localVarHeaderParameter['User-Agent'] =
|
|
815
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
454
816
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
455
817
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
456
818
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
@@ -503,6 +865,25 @@ const EscApiFp = function (configuration) {
|
|
|
503
865
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
504
866
|
});
|
|
505
867
|
},
|
|
868
|
+
/**
|
|
869
|
+
* Create environment revision tag
|
|
870
|
+
* @summary Create environment revision tag
|
|
871
|
+
* @param {string} orgName Organization name
|
|
872
|
+
* @param {string} envName Environment name
|
|
873
|
+
* @param {string} tagName Tag name
|
|
874
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
*/
|
|
878
|
+
createEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
879
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
880
|
+
var _a, _b, _c;
|
|
881
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options);
|
|
882
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
883
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.createEnvironmentRevisionTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
884
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
885
|
+
});
|
|
886
|
+
},
|
|
506
887
|
/**
|
|
507
888
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
508
889
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
@@ -537,6 +918,24 @@ const EscApiFp = function (configuration) {
|
|
|
537
918
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
538
919
|
});
|
|
539
920
|
},
|
|
921
|
+
/**
|
|
922
|
+
* Delete environment revision tag
|
|
923
|
+
* @summary Delete environment revision tag
|
|
924
|
+
* @param {string} orgName Organization name
|
|
925
|
+
* @param {string} envName Environment name
|
|
926
|
+
* @param {string} tagName Tag name
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
deleteEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
931
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
932
|
+
var _a, _b, _c;
|
|
933
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentRevisionTag(orgName, envName, tagName, options);
|
|
934
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
935
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.deleteEnvironmentRevisionTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
936
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
937
|
+
});
|
|
938
|
+
},
|
|
540
939
|
/**
|
|
541
940
|
* Read an environment
|
|
542
941
|
* @summary Read an environment
|
|
@@ -554,6 +953,24 @@ const EscApiFp = function (configuration) {
|
|
|
554
953
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
555
954
|
});
|
|
556
955
|
},
|
|
956
|
+
/**
|
|
957
|
+
* Read an environmentat a specific revision or tag
|
|
958
|
+
* @summary Read an environment at a specific version
|
|
959
|
+
* @param {string} orgName Organization name
|
|
960
|
+
* @param {string} envName Environment name
|
|
961
|
+
* @param {string} version Revision or tag
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
getEnvironmentAtVersion(orgName, envName, version, options) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
var _a, _b, _c;
|
|
968
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentAtVersion(orgName, envName, version, options);
|
|
969
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
970
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.getEnvironmentAtVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
971
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
972
|
+
});
|
|
973
|
+
},
|
|
557
974
|
/**
|
|
558
975
|
* Returns the ETag for the given environment if it exists.
|
|
559
976
|
* @summary Return an Environment ETag
|
|
@@ -571,6 +988,62 @@ const EscApiFp = function (configuration) {
|
|
|
571
988
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
572
989
|
});
|
|
573
990
|
},
|
|
991
|
+
/**
|
|
992
|
+
* Read environment revision tag
|
|
993
|
+
* @summary Read environment revision tag
|
|
994
|
+
* @param {string} orgName Organization name
|
|
995
|
+
* @param {string} envName Environment name
|
|
996
|
+
* @param {string} tagName Tag name
|
|
997
|
+
* @param {*} [options] Override http request option.
|
|
998
|
+
* @throws {RequiredError}
|
|
999
|
+
*/
|
|
1000
|
+
getEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
1001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1002
|
+
var _a, _b, _c;
|
|
1003
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentRevisionTag(orgName, envName, tagName, options);
|
|
1004
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1005
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.getEnvironmentRevisionTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1006
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1007
|
+
});
|
|
1008
|
+
},
|
|
1009
|
+
/**
|
|
1010
|
+
* List environment revisions
|
|
1011
|
+
* @summary List environment revisions
|
|
1012
|
+
* @param {string} orgName Organization name
|
|
1013
|
+
* @param {string} envName Environment name
|
|
1014
|
+
* @param {string} [after] after tag for pagination
|
|
1015
|
+
* @param {number} [count] limit of tags to return
|
|
1016
|
+
* @param {*} [options] Override http request option.
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
*/
|
|
1019
|
+
listEnvironmentRevisionTags(orgName, envName, after, count, options) {
|
|
1020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
var _a, _b, _c;
|
|
1022
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentRevisionTags(orgName, envName, after, count, options);
|
|
1023
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1024
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.listEnvironmentRevisionTags']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1025
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1026
|
+
});
|
|
1027
|
+
},
|
|
1028
|
+
/**
|
|
1029
|
+
* List environment revisions
|
|
1030
|
+
* @summary List environment revisions
|
|
1031
|
+
* @param {string} orgName Organization name
|
|
1032
|
+
* @param {string} envName Environment name
|
|
1033
|
+
* @param {number} [before] before revision number for pagination
|
|
1034
|
+
* @param {number} [count] limit of revisions to return
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
listEnvironmentRevisions(orgName, envName, before, count, options) {
|
|
1039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1040
|
+
var _a, _b, _c;
|
|
1041
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentRevisions(orgName, envName, before, count, options);
|
|
1042
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1043
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.listEnvironmentRevisions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1044
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1045
|
+
});
|
|
1046
|
+
},
|
|
574
1047
|
/**
|
|
575
1048
|
* List environments in the organization available to the current user
|
|
576
1049
|
* @summary List environments in the organization
|
|
@@ -606,6 +1079,25 @@ const EscApiFp = function (configuration) {
|
|
|
606
1079
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
1080
|
});
|
|
608
1081
|
},
|
|
1082
|
+
/**
|
|
1083
|
+
* Opens a session the given environment at a specific version for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
1084
|
+
* @summary Open an environment session at a specific version
|
|
1085
|
+
* @param {string} orgName Organization name
|
|
1086
|
+
* @param {string} envName Environment name
|
|
1087
|
+
* @param {string} version Revision or tag
|
|
1088
|
+
* @param {string} [duration] open duration - A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as “300ms”, “1.5h” or “2h45m”. Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
openEnvironmentAtVersion(orgName, envName, version, duration, options) {
|
|
1093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
|
+
var _a, _b, _c;
|
|
1095
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.openEnvironmentAtVersion(orgName, envName, version, duration, options);
|
|
1096
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1097
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.openEnvironmentAtVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1098
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1099
|
+
});
|
|
1100
|
+
},
|
|
609
1101
|
/**
|
|
610
1102
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
611
1103
|
* @summary Read an open environment
|
|
@@ -643,6 +1135,25 @@ const EscApiFp = function (configuration) {
|
|
|
643
1135
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
644
1136
|
});
|
|
645
1137
|
},
|
|
1138
|
+
/**
|
|
1139
|
+
* Update environment revision tag
|
|
1140
|
+
* @summary Update environment revision tag
|
|
1141
|
+
* @param {string} orgName Organization name
|
|
1142
|
+
* @param {string} envName Environment name
|
|
1143
|
+
* @param {string} tagName Tag name
|
|
1144
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1145
|
+
* @param {*} [options] Override http request option.
|
|
1146
|
+
* @throws {RequiredError}
|
|
1147
|
+
*/
|
|
1148
|
+
updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1150
|
+
var _a, _b, _c;
|
|
1151
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options);
|
|
1152
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1153
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.updateEnvironmentRevisionTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1154
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1155
|
+
});
|
|
1156
|
+
},
|
|
646
1157
|
/**
|
|
647
1158
|
* Validates and updates the given environment\'s definition.
|
|
648
1159
|
* @summary Update an existing environment with Yaml file
|
|
@@ -693,6 +1204,19 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
693
1204
|
createEnvironment(orgName, envName, options) {
|
|
694
1205
|
return localVarFp.createEnvironment(orgName, envName, options).then((request) => request(axios, basePath));
|
|
695
1206
|
},
|
|
1207
|
+
/**
|
|
1208
|
+
* Create environment revision tag
|
|
1209
|
+
* @summary Create environment revision tag
|
|
1210
|
+
* @param {string} orgName Organization name
|
|
1211
|
+
* @param {string} envName Environment name
|
|
1212
|
+
* @param {string} tagName Tag name
|
|
1213
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
createEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1218
|
+
return localVarFp.createEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options).then((request) => request(axios, basePath));
|
|
1219
|
+
},
|
|
696
1220
|
/**
|
|
697
1221
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
698
1222
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
@@ -715,6 +1239,18 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
715
1239
|
deleteEnvironment(orgName, envName, options) {
|
|
716
1240
|
return localVarFp.deleteEnvironment(orgName, envName, options).then((request) => request(axios, basePath));
|
|
717
1241
|
},
|
|
1242
|
+
/**
|
|
1243
|
+
* Delete environment revision tag
|
|
1244
|
+
* @summary Delete environment revision tag
|
|
1245
|
+
* @param {string} orgName Organization name
|
|
1246
|
+
* @param {string} envName Environment name
|
|
1247
|
+
* @param {string} tagName Tag name
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
*/
|
|
1251
|
+
deleteEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
1252
|
+
return localVarFp.deleteEnvironmentRevisionTag(orgName, envName, tagName, options).then((request) => request(axios, basePath));
|
|
1253
|
+
},
|
|
718
1254
|
/**
|
|
719
1255
|
* Read an environment
|
|
720
1256
|
* @summary Read an environment
|
|
@@ -726,6 +1262,18 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
726
1262
|
getEnvironment(orgName, envName, options) {
|
|
727
1263
|
return localVarFp.getEnvironment(orgName, envName, options).then((request) => request(axios, basePath));
|
|
728
1264
|
},
|
|
1265
|
+
/**
|
|
1266
|
+
* Read an environmentat a specific revision or tag
|
|
1267
|
+
* @summary Read an environment at a specific version
|
|
1268
|
+
* @param {string} orgName Organization name
|
|
1269
|
+
* @param {string} envName Environment name
|
|
1270
|
+
* @param {string} version Revision or tag
|
|
1271
|
+
* @param {*} [options] Override http request option.
|
|
1272
|
+
* @throws {RequiredError}
|
|
1273
|
+
*/
|
|
1274
|
+
getEnvironmentAtVersion(orgName, envName, version, options) {
|
|
1275
|
+
return localVarFp.getEnvironmentAtVersion(orgName, envName, version, options).then((request) => request(axios, basePath));
|
|
1276
|
+
},
|
|
729
1277
|
/**
|
|
730
1278
|
* Returns the ETag for the given environment if it exists.
|
|
731
1279
|
* @summary Return an Environment ETag
|
|
@@ -737,6 +1285,44 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
737
1285
|
getEnvironmentETag(orgName, envName, options) {
|
|
738
1286
|
return localVarFp.getEnvironmentETag(orgName, envName, options).then((request) => request(axios, basePath));
|
|
739
1287
|
},
|
|
1288
|
+
/**
|
|
1289
|
+
* Read environment revision tag
|
|
1290
|
+
* @summary Read environment revision tag
|
|
1291
|
+
* @param {string} orgName Organization name
|
|
1292
|
+
* @param {string} envName Environment name
|
|
1293
|
+
* @param {string} tagName Tag name
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
getEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
1298
|
+
return localVarFp.getEnvironmentRevisionTag(orgName, envName, tagName, options).then((request) => request(axios, basePath));
|
|
1299
|
+
},
|
|
1300
|
+
/**
|
|
1301
|
+
* List environment revisions
|
|
1302
|
+
* @summary List environment revisions
|
|
1303
|
+
* @param {string} orgName Organization name
|
|
1304
|
+
* @param {string} envName Environment name
|
|
1305
|
+
* @param {string} [after] after tag for pagination
|
|
1306
|
+
* @param {number} [count] limit of tags to return
|
|
1307
|
+
* @param {*} [options] Override http request option.
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
*/
|
|
1310
|
+
listEnvironmentRevisionTags(orgName, envName, after, count, options) {
|
|
1311
|
+
return localVarFp.listEnvironmentRevisionTags(orgName, envName, after, count, options).then((request) => request(axios, basePath));
|
|
1312
|
+
},
|
|
1313
|
+
/**
|
|
1314
|
+
* List environment revisions
|
|
1315
|
+
* @summary List environment revisions
|
|
1316
|
+
* @param {string} orgName Organization name
|
|
1317
|
+
* @param {string} envName Environment name
|
|
1318
|
+
* @param {number} [before] before revision number for pagination
|
|
1319
|
+
* @param {number} [count] limit of revisions to return
|
|
1320
|
+
* @param {*} [options] Override http request option.
|
|
1321
|
+
* @throws {RequiredError}
|
|
1322
|
+
*/
|
|
1323
|
+
listEnvironmentRevisions(orgName, envName, before, count, options) {
|
|
1324
|
+
return localVarFp.listEnvironmentRevisions(orgName, envName, before, count, options).then((request) => request(axios, basePath));
|
|
1325
|
+
},
|
|
740
1326
|
/**
|
|
741
1327
|
* List environments in the organization available to the current user
|
|
742
1328
|
* @summary List environments in the organization
|
|
@@ -760,6 +1346,19 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
760
1346
|
openEnvironment(orgName, envName, duration, options) {
|
|
761
1347
|
return localVarFp.openEnvironment(orgName, envName, duration, options).then((request) => request(axios, basePath));
|
|
762
1348
|
},
|
|
1349
|
+
/**
|
|
1350
|
+
* Opens a session the given environment at a specific version for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
1351
|
+
* @summary Open an environment session at a specific version
|
|
1352
|
+
* @param {string} orgName Organization name
|
|
1353
|
+
* @param {string} envName Environment name
|
|
1354
|
+
* @param {string} version Revision or tag
|
|
1355
|
+
* @param {string} [duration] open duration - A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as “300ms”, “1.5h” or “2h45m”. Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.
|
|
1356
|
+
* @param {*} [options] Override http request option.
|
|
1357
|
+
* @throws {RequiredError}
|
|
1358
|
+
*/
|
|
1359
|
+
openEnvironmentAtVersion(orgName, envName, version, duration, options) {
|
|
1360
|
+
return localVarFp.openEnvironmentAtVersion(orgName, envName, version, duration, options).then((request) => request(axios, basePath));
|
|
1361
|
+
},
|
|
763
1362
|
/**
|
|
764
1363
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
765
1364
|
* @summary Read an open environment
|
|
@@ -785,6 +1384,19 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
785
1384
|
readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options) {
|
|
786
1385
|
return localVarFp.readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options).then((request) => request(axios, basePath));
|
|
787
1386
|
},
|
|
1387
|
+
/**
|
|
1388
|
+
* Update environment revision tag
|
|
1389
|
+
* @summary Update environment revision tag
|
|
1390
|
+
* @param {string} orgName Organization name
|
|
1391
|
+
* @param {string} envName Environment name
|
|
1392
|
+
* @param {string} tagName Tag name
|
|
1393
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1394
|
+
* @param {*} [options] Override http request option.
|
|
1395
|
+
* @throws {RequiredError}
|
|
1396
|
+
*/
|
|
1397
|
+
updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1398
|
+
return localVarFp.updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options).then((request) => request(axios, basePath));
|
|
1399
|
+
},
|
|
788
1400
|
/**
|
|
789
1401
|
* Validates and updates the given environment\'s definition.
|
|
790
1402
|
* @summary Update an existing environment with Yaml file
|
|
@@ -831,6 +1443,20 @@ class EscApi extends base_1.BaseAPI {
|
|
|
831
1443
|
createEnvironment(orgName, envName, options) {
|
|
832
1444
|
return (0, exports.EscApiFp)(this.configuration).createEnvironment(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
833
1445
|
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Create environment revision tag
|
|
1448
|
+
* @summary Create environment revision tag
|
|
1449
|
+
* @param {string} orgName Organization name
|
|
1450
|
+
* @param {string} envName Environment name
|
|
1451
|
+
* @param {string} tagName Tag name
|
|
1452
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1453
|
+
* @param {*} [options] Override http request option.
|
|
1454
|
+
* @throws {RequiredError}
|
|
1455
|
+
* @memberof EscApi
|
|
1456
|
+
*/
|
|
1457
|
+
createEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1458
|
+
return (0, exports.EscApiFp)(this.configuration).createEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options).then((request) => request(this.axios, this.basePath));
|
|
1459
|
+
}
|
|
834
1460
|
/**
|
|
835
1461
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
836
1462
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
@@ -855,6 +1481,19 @@ class EscApi extends base_1.BaseAPI {
|
|
|
855
1481
|
deleteEnvironment(orgName, envName, options) {
|
|
856
1482
|
return (0, exports.EscApiFp)(this.configuration).deleteEnvironment(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
857
1483
|
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Delete environment revision tag
|
|
1486
|
+
* @summary Delete environment revision tag
|
|
1487
|
+
* @param {string} orgName Organization name
|
|
1488
|
+
* @param {string} envName Environment name
|
|
1489
|
+
* @param {string} tagName Tag name
|
|
1490
|
+
* @param {*} [options] Override http request option.
|
|
1491
|
+
* @throws {RequiredError}
|
|
1492
|
+
* @memberof EscApi
|
|
1493
|
+
*/
|
|
1494
|
+
deleteEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
1495
|
+
return (0, exports.EscApiFp)(this.configuration).deleteEnvironmentRevisionTag(orgName, envName, tagName, options).then((request) => request(this.axios, this.basePath));
|
|
1496
|
+
}
|
|
858
1497
|
/**
|
|
859
1498
|
* Read an environment
|
|
860
1499
|
* @summary Read an environment
|
|
@@ -867,6 +1506,19 @@ class EscApi extends base_1.BaseAPI {
|
|
|
867
1506
|
getEnvironment(orgName, envName, options) {
|
|
868
1507
|
return (0, exports.EscApiFp)(this.configuration).getEnvironment(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
869
1508
|
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Read an environmentat a specific revision or tag
|
|
1511
|
+
* @summary Read an environment at a specific version
|
|
1512
|
+
* @param {string} orgName Organization name
|
|
1513
|
+
* @param {string} envName Environment name
|
|
1514
|
+
* @param {string} version Revision or tag
|
|
1515
|
+
* @param {*} [options] Override http request option.
|
|
1516
|
+
* @throws {RequiredError}
|
|
1517
|
+
* @memberof EscApi
|
|
1518
|
+
*/
|
|
1519
|
+
getEnvironmentAtVersion(orgName, envName, version, options) {
|
|
1520
|
+
return (0, exports.EscApiFp)(this.configuration).getEnvironmentAtVersion(orgName, envName, version, options).then((request) => request(this.axios, this.basePath));
|
|
1521
|
+
}
|
|
870
1522
|
/**
|
|
871
1523
|
* Returns the ETag for the given environment if it exists.
|
|
872
1524
|
* @summary Return an Environment ETag
|
|
@@ -879,6 +1531,47 @@ class EscApi extends base_1.BaseAPI {
|
|
|
879
1531
|
getEnvironmentETag(orgName, envName, options) {
|
|
880
1532
|
return (0, exports.EscApiFp)(this.configuration).getEnvironmentETag(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
881
1533
|
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Read environment revision tag
|
|
1536
|
+
* @summary Read environment revision tag
|
|
1537
|
+
* @param {string} orgName Organization name
|
|
1538
|
+
* @param {string} envName Environment name
|
|
1539
|
+
* @param {string} tagName Tag name
|
|
1540
|
+
* @param {*} [options] Override http request option.
|
|
1541
|
+
* @throws {RequiredError}
|
|
1542
|
+
* @memberof EscApi
|
|
1543
|
+
*/
|
|
1544
|
+
getEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
1545
|
+
return (0, exports.EscApiFp)(this.configuration).getEnvironmentRevisionTag(orgName, envName, tagName, options).then((request) => request(this.axios, this.basePath));
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* List environment revisions
|
|
1549
|
+
* @summary List environment revisions
|
|
1550
|
+
* @param {string} orgName Organization name
|
|
1551
|
+
* @param {string} envName Environment name
|
|
1552
|
+
* @param {string} [after] after tag for pagination
|
|
1553
|
+
* @param {number} [count] limit of tags to return
|
|
1554
|
+
* @param {*} [options] Override http request option.
|
|
1555
|
+
* @throws {RequiredError}
|
|
1556
|
+
* @memberof EscApi
|
|
1557
|
+
*/
|
|
1558
|
+
listEnvironmentRevisionTags(orgName, envName, after, count, options) {
|
|
1559
|
+
return (0, exports.EscApiFp)(this.configuration).listEnvironmentRevisionTags(orgName, envName, after, count, options).then((request) => request(this.axios, this.basePath));
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* List environment revisions
|
|
1563
|
+
* @summary List environment revisions
|
|
1564
|
+
* @param {string} orgName Organization name
|
|
1565
|
+
* @param {string} envName Environment name
|
|
1566
|
+
* @param {number} [before] before revision number for pagination
|
|
1567
|
+
* @param {number} [count] limit of revisions to return
|
|
1568
|
+
* @param {*} [options] Override http request option.
|
|
1569
|
+
* @throws {RequiredError}
|
|
1570
|
+
* @memberof EscApi
|
|
1571
|
+
*/
|
|
1572
|
+
listEnvironmentRevisions(orgName, envName, before, count, options) {
|
|
1573
|
+
return (0, exports.EscApiFp)(this.configuration).listEnvironmentRevisions(orgName, envName, before, count, options).then((request) => request(this.axios, this.basePath));
|
|
1574
|
+
}
|
|
882
1575
|
/**
|
|
883
1576
|
* List environments in the organization available to the current user
|
|
884
1577
|
* @summary List environments in the organization
|
|
@@ -904,6 +1597,20 @@ class EscApi extends base_1.BaseAPI {
|
|
|
904
1597
|
openEnvironment(orgName, envName, duration, options) {
|
|
905
1598
|
return (0, exports.EscApiFp)(this.configuration).openEnvironment(orgName, envName, duration, options).then((request) => request(this.axios, this.basePath));
|
|
906
1599
|
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Opens a session the given environment at a specific version for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
1602
|
+
* @summary Open an environment session at a specific version
|
|
1603
|
+
* @param {string} orgName Organization name
|
|
1604
|
+
* @param {string} envName Environment name
|
|
1605
|
+
* @param {string} version Revision or tag
|
|
1606
|
+
* @param {string} [duration] open duration - A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as “300ms”, “1.5h” or “2h45m”. Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.
|
|
1607
|
+
* @param {*} [options] Override http request option.
|
|
1608
|
+
* @throws {RequiredError}
|
|
1609
|
+
* @memberof EscApi
|
|
1610
|
+
*/
|
|
1611
|
+
openEnvironmentAtVersion(orgName, envName, version, duration, options) {
|
|
1612
|
+
return (0, exports.EscApiFp)(this.configuration).openEnvironmentAtVersion(orgName, envName, version, duration, options).then((request) => request(this.axios, this.basePath));
|
|
1613
|
+
}
|
|
907
1614
|
/**
|
|
908
1615
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
909
1616
|
* @summary Read an open environment
|
|
@@ -931,6 +1638,20 @@ class EscApi extends base_1.BaseAPI {
|
|
|
931
1638
|
readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options) {
|
|
932
1639
|
return (0, exports.EscApiFp)(this.configuration).readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options).then((request) => request(this.axios, this.basePath));
|
|
933
1640
|
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Update environment revision tag
|
|
1643
|
+
* @summary Update environment revision tag
|
|
1644
|
+
* @param {string} orgName Organization name
|
|
1645
|
+
* @param {string} envName Environment name
|
|
1646
|
+
* @param {string} tagName Tag name
|
|
1647
|
+
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
* @memberof EscApi
|
|
1651
|
+
*/
|
|
1652
|
+
updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1653
|
+
return (0, exports.EscApiFp)(this.configuration).updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options).then((request) => request(this.axios, this.basePath));
|
|
1654
|
+
}
|
|
934
1655
|
/**
|
|
935
1656
|
* Validates and updates the given environment\'s definition.
|
|
936
1657
|
* @summary Update an existing environment with Yaml file
|