@pulumi/esc-sdk 0.9.2 → 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 +94 -20
- package/esc/index.js +173 -41
- package/esc/index.js.map +1 -1
- package/esc/raw/api.d.ts +551 -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/raw/api.js
CHANGED
|
@@ -27,7 +27,7 @@ exports.EscApi = exports.EscApiFactory = exports.EscApiFp = exports.EscApiAxiosP
|
|
|
27
27
|
* https://openapi-generator.tech
|
|
28
28
|
* Do not edit the class manually.
|
|
29
29
|
*/
|
|
30
|
-
const userAgent = 'esc-sdk/ts/v0.
|
|
30
|
+
const userAgent = 'esc-sdk/ts/v0.10.0';
|
|
31
31
|
const axios_1 = __importDefault(require("axios"));
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -82,18 +82,17 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
82
82
|
* Creates an environment in the given org with the given name.
|
|
83
83
|
* @summary Create a new environment
|
|
84
84
|
* @param {string} orgName Organization name
|
|
85
|
-
* @param {
|
|
85
|
+
* @param {CreateEnvironment} createEnvironment Create Environment
|
|
86
86
|
* @param {*} [options] Override http request option.
|
|
87
87
|
* @throws {RequiredError}
|
|
88
88
|
*/
|
|
89
|
-
createEnvironment: (orgName_2,
|
|
89
|
+
createEnvironment: (orgName_2, createEnvironment_1, ...args_2) => __awaiter(this, [orgName_2, createEnvironment_1, ...args_2], void 0, function* (orgName, createEnvironment, options = {}) {
|
|
90
90
|
// verify required parameter 'orgName' is not null or undefined
|
|
91
91
|
(0, common_1.assertParamExists)('createEnvironment', 'orgName', orgName);
|
|
92
|
-
// verify required parameter '
|
|
93
|
-
(0, common_1.assertParamExists)('createEnvironment', '
|
|
94
|
-
const localVarPath = `/environments/{orgName}
|
|
95
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
96
|
-
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
92
|
+
// verify required parameter 'createEnvironment' is not null or undefined
|
|
93
|
+
(0, common_1.assertParamExists)('createEnvironment', 'createEnvironment', createEnvironment);
|
|
94
|
+
const localVarPath = `/environments/{orgName}`
|
|
95
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
97
96
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
97
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
99
98
|
let baseOptions;
|
|
@@ -105,11 +104,13 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
105
104
|
const localVarQueryParameter = {};
|
|
106
105
|
// authentication Authorization required
|
|
107
106
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
107
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
108
108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
109
109
|
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
110
110
|
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
111
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
112
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
113
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEnvironment, localVarRequestOptions, configuration);
|
|
113
114
|
return {
|
|
114
115
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
115
116
|
options: localVarRequestOptions,
|
|
@@ -119,25 +120,25 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
119
120
|
* Create environment revision tag
|
|
120
121
|
* @summary Create environment revision tag
|
|
121
122
|
* @param {string} orgName Organization name
|
|
123
|
+
* @param {string} projectName Project name
|
|
122
124
|
* @param {string} envName Environment name
|
|
123
|
-
* @param {
|
|
124
|
-
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
125
|
+
* @param {CreateEnvironmentRevisionTag} createEnvironmentRevisionTag Create environment revision tag
|
|
125
126
|
* @param {*} [options] Override http request option.
|
|
126
127
|
* @throws {RequiredError}
|
|
127
128
|
*/
|
|
128
|
-
createEnvironmentRevisionTag: (orgName_3,
|
|
129
|
+
createEnvironmentRevisionTag: (orgName_3, projectName_1, envName_1, createEnvironmentRevisionTag_1, ...args_3) => __awaiter(this, [orgName_3, projectName_1, envName_1, createEnvironmentRevisionTag_1, ...args_3], void 0, function* (orgName, projectName, envName, createEnvironmentRevisionTag, options = {}) {
|
|
129
130
|
// verify required parameter 'orgName' is not null or undefined
|
|
130
131
|
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'orgName', orgName);
|
|
132
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
133
|
+
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'projectName', projectName);
|
|
131
134
|
// verify required parameter 'envName' is not null or undefined
|
|
132
135
|
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'envName', envName);
|
|
133
|
-
// verify required parameter '
|
|
134
|
-
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', '
|
|
135
|
-
|
|
136
|
-
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'updateEnvironmentRevisionTag', updateEnvironmentRevisionTag);
|
|
137
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
136
|
+
// verify required parameter 'createEnvironmentRevisionTag' is not null or undefined
|
|
137
|
+
(0, common_1.assertParamExists)('createEnvironmentRevisionTag', 'createEnvironmentRevisionTag', createEnvironmentRevisionTag);
|
|
138
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions/tags`
|
|
138
139
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
139
|
-
.replace(`{${"
|
|
140
|
-
.replace(`{${"
|
|
140
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
141
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
141
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
142
143
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
143
144
|
let baseOptions;
|
|
@@ -155,7 +156,53 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
155
156
|
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
156
157
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
158
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
158
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
159
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEnvironmentRevisionTag, localVarRequestOptions, configuration);
|
|
160
|
+
return {
|
|
161
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
}),
|
|
165
|
+
/**
|
|
166
|
+
* Create environment tag
|
|
167
|
+
* @summary Create environment tag
|
|
168
|
+
* @param {string} orgName Organization name
|
|
169
|
+
* @param {string} projectName Project name
|
|
170
|
+
* @param {string} envName Environment name
|
|
171
|
+
* @param {CreateEnvironmentTag} createEnvironmentTag Create environment tag
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
*/
|
|
175
|
+
createEnvironmentTag: (orgName_4, projectName_2, envName_2, createEnvironmentTag_1, ...args_4) => __awaiter(this, [orgName_4, projectName_2, envName_2, createEnvironmentTag_1, ...args_4], void 0, function* (orgName, projectName, envName, createEnvironmentTag, options = {}) {
|
|
176
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
177
|
+
(0, common_1.assertParamExists)('createEnvironmentTag', 'orgName', orgName);
|
|
178
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
179
|
+
(0, common_1.assertParamExists)('createEnvironmentTag', 'projectName', projectName);
|
|
180
|
+
// verify required parameter 'envName' is not null or undefined
|
|
181
|
+
(0, common_1.assertParamExists)('createEnvironmentTag', 'envName', envName);
|
|
182
|
+
// verify required parameter 'createEnvironmentTag' is not null or undefined
|
|
183
|
+
(0, common_1.assertParamExists)('createEnvironmentTag', 'createEnvironmentTag', createEnvironmentTag);
|
|
184
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/tags`
|
|
185
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
186
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
187
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
188
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
190
|
+
let baseOptions;
|
|
191
|
+
if (configuration) {
|
|
192
|
+
baseOptions = configuration.baseOptions;
|
|
193
|
+
}
|
|
194
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
195
|
+
const localVarHeaderParameter = {};
|
|
196
|
+
const localVarQueryParameter = {};
|
|
197
|
+
// authentication Authorization required
|
|
198
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
199
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
200
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
201
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
202
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
205
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEnvironmentTag, localVarRequestOptions, configuration);
|
|
159
206
|
return {
|
|
160
207
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
161
208
|
options: localVarRequestOptions,
|
|
@@ -165,17 +212,21 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
165
212
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
166
213
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
167
214
|
* @param {string} orgName Organization name
|
|
215
|
+
* @param {string} projectName Project name
|
|
168
216
|
* @param {string} envName Environment name
|
|
169
217
|
* @param {*} [options] Override http request option.
|
|
170
218
|
* @throws {RequiredError}
|
|
171
219
|
*/
|
|
172
|
-
decryptEnvironment: (
|
|
220
|
+
decryptEnvironment: (orgName_5, projectName_3, envName_3, ...args_5) => __awaiter(this, [orgName_5, projectName_3, envName_3, ...args_5], void 0, function* (orgName, projectName, envName, options = {}) {
|
|
173
221
|
// verify required parameter 'orgName' is not null or undefined
|
|
174
222
|
(0, common_1.assertParamExists)('decryptEnvironment', 'orgName', orgName);
|
|
223
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
224
|
+
(0, common_1.assertParamExists)('decryptEnvironment', 'projectName', projectName);
|
|
175
225
|
// verify required parameter 'envName' is not null or undefined
|
|
176
226
|
(0, common_1.assertParamExists)('decryptEnvironment', 'envName', envName);
|
|
177
|
-
const localVarPath = `/environments/{orgName}/{envName}/decrypt`
|
|
227
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/decrypt`
|
|
178
228
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
229
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
179
230
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
180
231
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
181
232
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -202,17 +253,21 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
202
253
|
* Delete an environment
|
|
203
254
|
* @summary Delete an environment
|
|
204
255
|
* @param {string} orgName Organization name
|
|
256
|
+
* @param {string} projectName Project name
|
|
205
257
|
* @param {string} envName Environment name
|
|
206
258
|
* @param {*} [options] Override http request option.
|
|
207
259
|
* @throws {RequiredError}
|
|
208
260
|
*/
|
|
209
|
-
deleteEnvironment: (
|
|
261
|
+
deleteEnvironment: (orgName_6, projectName_4, envName_4, ...args_6) => __awaiter(this, [orgName_6, projectName_4, envName_4, ...args_6], void 0, function* (orgName, projectName, envName, options = {}) {
|
|
210
262
|
// verify required parameter 'orgName' is not null or undefined
|
|
211
263
|
(0, common_1.assertParamExists)('deleteEnvironment', 'orgName', orgName);
|
|
264
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
265
|
+
(0, common_1.assertParamExists)('deleteEnvironment', 'projectName', projectName);
|
|
212
266
|
// verify required parameter 'envName' is not null or undefined
|
|
213
267
|
(0, common_1.assertParamExists)('deleteEnvironment', 'envName', envName);
|
|
214
|
-
const localVarPath = `/environments/{orgName}/{envName}`
|
|
268
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}`
|
|
215
269
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
270
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
216
271
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
217
272
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
218
273
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -239,20 +294,69 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
239
294
|
* Delete environment revision tag
|
|
240
295
|
* @summary Delete environment revision tag
|
|
241
296
|
* @param {string} orgName Organization name
|
|
297
|
+
* @param {string} projectName Project name
|
|
242
298
|
* @param {string} envName Environment name
|
|
243
299
|
* @param {string} tagName Tag name
|
|
244
300
|
* @param {*} [options] Override http request option.
|
|
245
301
|
* @throws {RequiredError}
|
|
246
302
|
*/
|
|
247
|
-
deleteEnvironmentRevisionTag: (
|
|
303
|
+
deleteEnvironmentRevisionTag: (orgName_7, projectName_5, envName_5, tagName_1, ...args_7) => __awaiter(this, [orgName_7, projectName_5, envName_5, tagName_1, ...args_7], void 0, function* (orgName, projectName, envName, tagName, options = {}) {
|
|
248
304
|
// verify required parameter 'orgName' is not null or undefined
|
|
249
305
|
(0, common_1.assertParamExists)('deleteEnvironmentRevisionTag', 'orgName', orgName);
|
|
306
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
307
|
+
(0, common_1.assertParamExists)('deleteEnvironmentRevisionTag', 'projectName', projectName);
|
|
250
308
|
// verify required parameter 'envName' is not null or undefined
|
|
251
309
|
(0, common_1.assertParamExists)('deleteEnvironmentRevisionTag', 'envName', envName);
|
|
252
310
|
// verify required parameter 'tagName' is not null or undefined
|
|
253
311
|
(0, common_1.assertParamExists)('deleteEnvironmentRevisionTag', 'tagName', tagName);
|
|
254
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
312
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions/tags/{tagName}`
|
|
255
313
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
314
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
315
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
316
|
+
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
319
|
+
let baseOptions;
|
|
320
|
+
if (configuration) {
|
|
321
|
+
baseOptions = configuration.baseOptions;
|
|
322
|
+
}
|
|
323
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
324
|
+
const localVarHeaderParameter = {};
|
|
325
|
+
const localVarQueryParameter = {};
|
|
326
|
+
// authentication Authorization required
|
|
327
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
328
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
329
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
330
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
333
|
+
return {
|
|
334
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
335
|
+
options: localVarRequestOptions,
|
|
336
|
+
};
|
|
337
|
+
}),
|
|
338
|
+
/**
|
|
339
|
+
* Delete environment tag
|
|
340
|
+
* @summary Delete environment tag
|
|
341
|
+
* @param {string} orgName Organization name
|
|
342
|
+
* @param {string} projectName Project name
|
|
343
|
+
* @param {string} envName Environment name
|
|
344
|
+
* @param {string} tagName Tag name
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
deleteEnvironmentTag: (orgName_8, projectName_6, envName_6, tagName_2, ...args_8) => __awaiter(this, [orgName_8, projectName_6, envName_6, tagName_2, ...args_8], void 0, function* (orgName, projectName, envName, tagName, options = {}) {
|
|
349
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
350
|
+
(0, common_1.assertParamExists)('deleteEnvironmentTag', 'orgName', orgName);
|
|
351
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
352
|
+
(0, common_1.assertParamExists)('deleteEnvironmentTag', 'projectName', projectName);
|
|
353
|
+
// verify required parameter 'envName' is not null or undefined
|
|
354
|
+
(0, common_1.assertParamExists)('deleteEnvironmentTag', 'envName', envName);
|
|
355
|
+
// verify required parameter 'tagName' is not null or undefined
|
|
356
|
+
(0, common_1.assertParamExists)('deleteEnvironmentTag', 'tagName', tagName);
|
|
357
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/tags/{tagName}`
|
|
358
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
359
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
256
360
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
257
361
|
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
258
362
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -280,17 +384,21 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
280
384
|
* Read an environment
|
|
281
385
|
* @summary Read an environment
|
|
282
386
|
* @param {string} orgName Organization name
|
|
387
|
+
* @param {string} projectName Project name
|
|
283
388
|
* @param {string} envName Environment name
|
|
284
389
|
* @param {*} [options] Override http request option.
|
|
285
390
|
* @throws {RequiredError}
|
|
286
391
|
*/
|
|
287
|
-
getEnvironment: (
|
|
392
|
+
getEnvironment: (orgName_9, projectName_7, envName_7, ...args_9) => __awaiter(this, [orgName_9, projectName_7, envName_7, ...args_9], void 0, function* (orgName, projectName, envName, options = {}) {
|
|
288
393
|
// verify required parameter 'orgName' is not null or undefined
|
|
289
394
|
(0, common_1.assertParamExists)('getEnvironment', 'orgName', orgName);
|
|
395
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
396
|
+
(0, common_1.assertParamExists)('getEnvironment', 'projectName', projectName);
|
|
290
397
|
// verify required parameter 'envName' is not null or undefined
|
|
291
398
|
(0, common_1.assertParamExists)('getEnvironment', 'envName', envName);
|
|
292
|
-
const localVarPath = `/environments/{orgName}/{envName}`
|
|
399
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}`
|
|
293
400
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
401
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
294
402
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
295
403
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
404
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -317,20 +425,24 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
317
425
|
* Read an environmentat a specific revision or tag
|
|
318
426
|
* @summary Read an environment at a specific version
|
|
319
427
|
* @param {string} orgName Organization name
|
|
428
|
+
* @param {string} projectName Project name
|
|
320
429
|
* @param {string} envName Environment name
|
|
321
430
|
* @param {string} version Revision or tag
|
|
322
431
|
* @param {*} [options] Override http request option.
|
|
323
432
|
* @throws {RequiredError}
|
|
324
433
|
*/
|
|
325
|
-
getEnvironmentAtVersion: (
|
|
434
|
+
getEnvironmentAtVersion: (orgName_10, projectName_8, envName_8, version_1, ...args_10) => __awaiter(this, [orgName_10, projectName_8, envName_8, version_1, ...args_10], void 0, function* (orgName, projectName, envName, version, options = {}) {
|
|
326
435
|
// verify required parameter 'orgName' is not null or undefined
|
|
327
436
|
(0, common_1.assertParamExists)('getEnvironmentAtVersion', 'orgName', orgName);
|
|
437
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
438
|
+
(0, common_1.assertParamExists)('getEnvironmentAtVersion', 'projectName', projectName);
|
|
328
439
|
// verify required parameter 'envName' is not null or undefined
|
|
329
440
|
(0, common_1.assertParamExists)('getEnvironmentAtVersion', 'envName', envName);
|
|
330
441
|
// verify required parameter 'version' is not null or undefined
|
|
331
442
|
(0, common_1.assertParamExists)('getEnvironmentAtVersion', 'version', version);
|
|
332
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions/{version}`
|
|
443
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions/{version}`
|
|
333
444
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
445
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
334
446
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
335
447
|
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
336
448
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -358,17 +470,21 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
358
470
|
* Returns the ETag for the given environment if it exists.
|
|
359
471
|
* @summary Return an Environment ETag
|
|
360
472
|
* @param {string} orgName Organization name
|
|
473
|
+
* @param {string} projectName Project name
|
|
361
474
|
* @param {string} envName Environment name
|
|
362
475
|
* @param {*} [options] Override http request option.
|
|
363
476
|
* @throws {RequiredError}
|
|
364
477
|
*/
|
|
365
|
-
getEnvironmentETag: (
|
|
478
|
+
getEnvironmentETag: (orgName_11, projectName_9, envName_9, ...args_11) => __awaiter(this, [orgName_11, projectName_9, envName_9, ...args_11], void 0, function* (orgName, projectName, envName, options = {}) {
|
|
366
479
|
// verify required parameter 'orgName' is not null or undefined
|
|
367
480
|
(0, common_1.assertParamExists)('getEnvironmentETag', 'orgName', orgName);
|
|
481
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
482
|
+
(0, common_1.assertParamExists)('getEnvironmentETag', 'projectName', projectName);
|
|
368
483
|
// verify required parameter 'envName' is not null or undefined
|
|
369
484
|
(0, common_1.assertParamExists)('getEnvironmentETag', 'envName', envName);
|
|
370
|
-
const localVarPath = `/environments/{orgName}/{envName}`
|
|
485
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}`
|
|
371
486
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
487
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
372
488
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
373
489
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
490
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -395,20 +511,69 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
395
511
|
* Read environment revision tag
|
|
396
512
|
* @summary Read environment revision tag
|
|
397
513
|
* @param {string} orgName Organization name
|
|
514
|
+
* @param {string} projectName Project name
|
|
398
515
|
* @param {string} envName Environment name
|
|
399
516
|
* @param {string} tagName Tag name
|
|
400
517
|
* @param {*} [options] Override http request option.
|
|
401
518
|
* @throws {RequiredError}
|
|
402
519
|
*/
|
|
403
|
-
getEnvironmentRevisionTag: (
|
|
520
|
+
getEnvironmentRevisionTag: (orgName_12, projectName_10, envName_10, tagName_3, ...args_12) => __awaiter(this, [orgName_12, projectName_10, envName_10, tagName_3, ...args_12], void 0, function* (orgName, projectName, envName, tagName, options = {}) {
|
|
404
521
|
// verify required parameter 'orgName' is not null or undefined
|
|
405
522
|
(0, common_1.assertParamExists)('getEnvironmentRevisionTag', 'orgName', orgName);
|
|
523
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
524
|
+
(0, common_1.assertParamExists)('getEnvironmentRevisionTag', 'projectName', projectName);
|
|
406
525
|
// verify required parameter 'envName' is not null or undefined
|
|
407
526
|
(0, common_1.assertParamExists)('getEnvironmentRevisionTag', 'envName', envName);
|
|
408
527
|
// verify required parameter 'tagName' is not null or undefined
|
|
409
528
|
(0, common_1.assertParamExists)('getEnvironmentRevisionTag', 'tagName', tagName);
|
|
410
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
529
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions/tags/{tagName}`
|
|
530
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
531
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
532
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
533
|
+
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
534
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
535
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
536
|
+
let baseOptions;
|
|
537
|
+
if (configuration) {
|
|
538
|
+
baseOptions = configuration.baseOptions;
|
|
539
|
+
}
|
|
540
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
541
|
+
const localVarHeaderParameter = {};
|
|
542
|
+
const localVarQueryParameter = {};
|
|
543
|
+
// authentication Authorization required
|
|
544
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
545
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
546
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
547
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
548
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
549
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
550
|
+
return {
|
|
551
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
552
|
+
options: localVarRequestOptions,
|
|
553
|
+
};
|
|
554
|
+
}),
|
|
555
|
+
/**
|
|
556
|
+
* Read an environment tag
|
|
557
|
+
* @summary Read an environment tag
|
|
558
|
+
* @param {string} orgName Organization name
|
|
559
|
+
* @param {string} projectName Project name
|
|
560
|
+
* @param {string} envName Environment name
|
|
561
|
+
* @param {string} tagName Tag name
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
getEnvironmentTag: (orgName_13, projectName_11, envName_11, tagName_4, ...args_13) => __awaiter(this, [orgName_13, projectName_11, envName_11, tagName_4, ...args_13], void 0, function* (orgName, projectName, envName, tagName, options = {}) {
|
|
566
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
567
|
+
(0, common_1.assertParamExists)('getEnvironmentTag', 'orgName', orgName);
|
|
568
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
569
|
+
(0, common_1.assertParamExists)('getEnvironmentTag', 'projectName', projectName);
|
|
570
|
+
// verify required parameter 'envName' is not null or undefined
|
|
571
|
+
(0, common_1.assertParamExists)('getEnvironmentTag', 'envName', envName);
|
|
572
|
+
// verify required parameter 'tagName' is not null or undefined
|
|
573
|
+
(0, common_1.assertParamExists)('getEnvironmentTag', 'tagName', tagName);
|
|
574
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/tags/{tagName}`
|
|
411
575
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
576
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
412
577
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
413
578
|
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
414
579
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -436,19 +601,23 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
436
601
|
* List environment revisions
|
|
437
602
|
* @summary List environment revisions
|
|
438
603
|
* @param {string} orgName Organization name
|
|
604
|
+
* @param {string} projectName Project name
|
|
439
605
|
* @param {string} envName Environment name
|
|
440
606
|
* @param {string} [after] after tag for pagination
|
|
441
607
|
* @param {number} [count] limit of tags to return
|
|
442
608
|
* @param {*} [options] Override http request option.
|
|
443
609
|
* @throws {RequiredError}
|
|
444
610
|
*/
|
|
445
|
-
listEnvironmentRevisionTags: (
|
|
611
|
+
listEnvironmentRevisionTags: (orgName_14, projectName_12, envName_12, after_1, count_1, ...args_14) => __awaiter(this, [orgName_14, projectName_12, envName_12, after_1, count_1, ...args_14], void 0, function* (orgName, projectName, envName, after, count, options = {}) {
|
|
446
612
|
// verify required parameter 'orgName' is not null or undefined
|
|
447
613
|
(0, common_1.assertParamExists)('listEnvironmentRevisionTags', 'orgName', orgName);
|
|
614
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
615
|
+
(0, common_1.assertParamExists)('listEnvironmentRevisionTags', 'projectName', projectName);
|
|
448
616
|
// verify required parameter 'envName' is not null or undefined
|
|
449
617
|
(0, common_1.assertParamExists)('listEnvironmentRevisionTags', 'envName', envName);
|
|
450
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions/tags`
|
|
618
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions/tags`
|
|
451
619
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
620
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
452
621
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
453
622
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
454
623
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -481,19 +650,23 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
481
650
|
* List environment revisions
|
|
482
651
|
* @summary List environment revisions
|
|
483
652
|
* @param {string} orgName Organization name
|
|
653
|
+
* @param {string} projectName Project name
|
|
484
654
|
* @param {string} envName Environment name
|
|
485
655
|
* @param {number} [before] before revision number for pagination
|
|
486
656
|
* @param {number} [count] limit of revisions to return
|
|
487
657
|
* @param {*} [options] Override http request option.
|
|
488
658
|
* @throws {RequiredError}
|
|
489
659
|
*/
|
|
490
|
-
listEnvironmentRevisions: (
|
|
660
|
+
listEnvironmentRevisions: (orgName_15, projectName_13, envName_13, before_1, count_2, ...args_15) => __awaiter(this, [orgName_15, projectName_13, envName_13, before_1, count_2, ...args_15], void 0, function* (orgName, projectName, envName, before, count, options = {}) {
|
|
491
661
|
// verify required parameter 'orgName' is not null or undefined
|
|
492
662
|
(0, common_1.assertParamExists)('listEnvironmentRevisions', 'orgName', orgName);
|
|
663
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
664
|
+
(0, common_1.assertParamExists)('listEnvironmentRevisions', 'projectName', projectName);
|
|
493
665
|
// verify required parameter 'envName' is not null or undefined
|
|
494
666
|
(0, common_1.assertParamExists)('listEnvironmentRevisions', 'envName', envName);
|
|
495
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions`
|
|
667
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions`
|
|
496
668
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
669
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
497
670
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
498
671
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
499
672
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -522,6 +695,55 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
522
695
|
options: localVarRequestOptions,
|
|
523
696
|
};
|
|
524
697
|
}),
|
|
698
|
+
/**
|
|
699
|
+
* List environment tags
|
|
700
|
+
* @summary List environment tags
|
|
701
|
+
* @param {string} orgName Organization name
|
|
702
|
+
* @param {string} projectName Project name
|
|
703
|
+
* @param {string} envName Environment name
|
|
704
|
+
* @param {string} [after] after tag for pagination
|
|
705
|
+
* @param {number} [count] limit of tags to return
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
listEnvironmentTags: (orgName_16, projectName_14, envName_14, after_2, count_3, ...args_16) => __awaiter(this, [orgName_16, projectName_14, envName_14, after_2, count_3, ...args_16], void 0, function* (orgName, projectName, envName, after, count, options = {}) {
|
|
710
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
711
|
+
(0, common_1.assertParamExists)('listEnvironmentTags', 'orgName', orgName);
|
|
712
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
713
|
+
(0, common_1.assertParamExists)('listEnvironmentTags', 'projectName', projectName);
|
|
714
|
+
// verify required parameter 'envName' is not null or undefined
|
|
715
|
+
(0, common_1.assertParamExists)('listEnvironmentTags', 'envName', envName);
|
|
716
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/tags`
|
|
717
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
718
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
719
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
720
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
721
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
722
|
+
let baseOptions;
|
|
723
|
+
if (configuration) {
|
|
724
|
+
baseOptions = configuration.baseOptions;
|
|
725
|
+
}
|
|
726
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
727
|
+
const localVarHeaderParameter = {};
|
|
728
|
+
const localVarQueryParameter = {};
|
|
729
|
+
// authentication Authorization required
|
|
730
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
731
|
+
if (after !== undefined) {
|
|
732
|
+
localVarQueryParameter['after'] = after;
|
|
733
|
+
}
|
|
734
|
+
if (count !== undefined) {
|
|
735
|
+
localVarQueryParameter['count'] = count;
|
|
736
|
+
}
|
|
737
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
738
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
739
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
741
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
742
|
+
return {
|
|
743
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
744
|
+
options: localVarRequestOptions,
|
|
745
|
+
};
|
|
746
|
+
}),
|
|
525
747
|
/**
|
|
526
748
|
* List environments in the organization available to the current user
|
|
527
749
|
* @summary List environments in the organization
|
|
@@ -530,7 +752,7 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
530
752
|
* @param {*} [options] Override http request option.
|
|
531
753
|
* @throws {RequiredError}
|
|
532
754
|
*/
|
|
533
|
-
listEnvironments: (
|
|
755
|
+
listEnvironments: (orgName_17, continuationToken_1, ...args_17) => __awaiter(this, [orgName_17, continuationToken_1, ...args_17], void 0, function* (orgName, continuationToken, options = {}) {
|
|
534
756
|
// verify required parameter 'orgName' is not null or undefined
|
|
535
757
|
(0, common_1.assertParamExists)('listEnvironments', 'orgName', orgName);
|
|
536
758
|
const localVarPath = `/environments/{orgName}`
|
|
@@ -563,18 +785,22 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
563
785
|
* Opens a session the given environment for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
564
786
|
* @summary Open an environment session
|
|
565
787
|
* @param {string} orgName Organization name
|
|
788
|
+
* @param {string} projectName Project name
|
|
566
789
|
* @param {string} envName Environment name
|
|
567
790
|
* @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”.
|
|
568
791
|
* @param {*} [options] Override http request option.
|
|
569
792
|
* @throws {RequiredError}
|
|
570
793
|
*/
|
|
571
|
-
openEnvironment: (
|
|
794
|
+
openEnvironment: (orgName_18, projectName_15, envName_15, duration_1, ...args_18) => __awaiter(this, [orgName_18, projectName_15, envName_15, duration_1, ...args_18], void 0, function* (orgName, projectName, envName, duration, options = {}) {
|
|
572
795
|
// verify required parameter 'orgName' is not null or undefined
|
|
573
796
|
(0, common_1.assertParamExists)('openEnvironment', 'orgName', orgName);
|
|
797
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
798
|
+
(0, common_1.assertParamExists)('openEnvironment', 'projectName', projectName);
|
|
574
799
|
// verify required parameter 'envName' is not null or undefined
|
|
575
800
|
(0, common_1.assertParamExists)('openEnvironment', 'envName', envName);
|
|
576
|
-
const localVarPath = `/environments/{orgName}/{envName}/open`
|
|
801
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/open`
|
|
577
802
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
803
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
578
804
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
579
805
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
580
806
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -604,21 +830,25 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
604
830
|
* 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
831
|
* @summary Open an environment session at a specific version
|
|
606
832
|
* @param {string} orgName Organization name
|
|
833
|
+
* @param {string} projectName Project name
|
|
607
834
|
* @param {string} envName Environment name
|
|
608
835
|
* @param {string} version Revision or tag
|
|
609
836
|
* @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
837
|
* @param {*} [options] Override http request option.
|
|
611
838
|
* @throws {RequiredError}
|
|
612
839
|
*/
|
|
613
|
-
openEnvironmentAtVersion: (
|
|
840
|
+
openEnvironmentAtVersion: (orgName_19, projectName_16, envName_16, version_2, duration_2, ...args_19) => __awaiter(this, [orgName_19, projectName_16, envName_16, version_2, duration_2, ...args_19], void 0, function* (orgName, projectName, envName, version, duration, options = {}) {
|
|
614
841
|
// verify required parameter 'orgName' is not null or undefined
|
|
615
842
|
(0, common_1.assertParamExists)('openEnvironmentAtVersion', 'orgName', orgName);
|
|
843
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
844
|
+
(0, common_1.assertParamExists)('openEnvironmentAtVersion', 'projectName', projectName);
|
|
616
845
|
// verify required parameter 'envName' is not null or undefined
|
|
617
846
|
(0, common_1.assertParamExists)('openEnvironmentAtVersion', 'envName', envName);
|
|
618
847
|
// verify required parameter 'version' is not null or undefined
|
|
619
848
|
(0, common_1.assertParamExists)('openEnvironmentAtVersion', 'version', version);
|
|
620
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions/{version}/open`
|
|
849
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions/{version}/open`
|
|
621
850
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
851
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
622
852
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
623
853
|
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
624
854
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -649,20 +879,24 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
649
879
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
650
880
|
* @summary Read an open environment
|
|
651
881
|
* @param {string} orgName Organization name
|
|
882
|
+
* @param {string} projectName Project name
|
|
652
883
|
* @param {string} envName Environment name
|
|
653
884
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
654
885
|
* @param {*} [options] Override http request option.
|
|
655
886
|
* @throws {RequiredError}
|
|
656
887
|
*/
|
|
657
|
-
readOpenEnvironment: (
|
|
888
|
+
readOpenEnvironment: (orgName_20, projectName_17, envName_17, openSessionID_1, ...args_20) => __awaiter(this, [orgName_20, projectName_17, envName_17, openSessionID_1, ...args_20], void 0, function* (orgName, projectName, envName, openSessionID, options = {}) {
|
|
658
889
|
// verify required parameter 'orgName' is not null or undefined
|
|
659
890
|
(0, common_1.assertParamExists)('readOpenEnvironment', 'orgName', orgName);
|
|
891
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
892
|
+
(0, common_1.assertParamExists)('readOpenEnvironment', 'projectName', projectName);
|
|
660
893
|
// verify required parameter 'envName' is not null or undefined
|
|
661
894
|
(0, common_1.assertParamExists)('readOpenEnvironment', 'envName', envName);
|
|
662
895
|
// verify required parameter 'openSessionID' is not null or undefined
|
|
663
896
|
(0, common_1.assertParamExists)('readOpenEnvironment', 'openSessionID', openSessionID);
|
|
664
|
-
const localVarPath = `/environments/{orgName}/{envName}/open/{openSessionID}`
|
|
897
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/open/{openSessionID}`
|
|
665
898
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
899
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
666
900
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
667
901
|
.replace(`{${"openSessionID"}}`, encodeURIComponent(String(openSessionID)));
|
|
668
902
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -690,23 +924,27 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
690
924
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
691
925
|
* @summary Read an open environment
|
|
692
926
|
* @param {string} orgName Organization name
|
|
927
|
+
* @param {string} projectName Project name
|
|
693
928
|
* @param {string} envName Environment name
|
|
694
929
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
695
930
|
* @param {string} property Path to a specific property using Pulumi path syntax https://www.pulumi.com/docs/concepts/config/#structured-configuration
|
|
696
931
|
* @param {*} [options] Override http request option.
|
|
697
932
|
* @throws {RequiredError}
|
|
698
933
|
*/
|
|
699
|
-
readOpenEnvironmentProperty: (
|
|
934
|
+
readOpenEnvironmentProperty: (orgName_21, projectName_18, envName_18, openSessionID_2, property_1, ...args_21) => __awaiter(this, [orgName_21, projectName_18, envName_18, openSessionID_2, property_1, ...args_21], void 0, function* (orgName, projectName, envName, openSessionID, property, options = {}) {
|
|
700
935
|
// verify required parameter 'orgName' is not null or undefined
|
|
701
936
|
(0, common_1.assertParamExists)('readOpenEnvironmentProperty', 'orgName', orgName);
|
|
937
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
938
|
+
(0, common_1.assertParamExists)('readOpenEnvironmentProperty', 'projectName', projectName);
|
|
702
939
|
// verify required parameter 'envName' is not null or undefined
|
|
703
940
|
(0, common_1.assertParamExists)('readOpenEnvironmentProperty', 'envName', envName);
|
|
704
941
|
// verify required parameter 'openSessionID' is not null or undefined
|
|
705
942
|
(0, common_1.assertParamExists)('readOpenEnvironmentProperty', 'openSessionID', openSessionID);
|
|
706
943
|
// verify required parameter 'property' is not null or undefined
|
|
707
944
|
(0, common_1.assertParamExists)('readOpenEnvironmentProperty', 'property', property);
|
|
708
|
-
const localVarPath = `/environments/{orgName}/{envName}/open//{openSessionID}`
|
|
945
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/open//{openSessionID}`
|
|
709
946
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
947
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
710
948
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
711
949
|
.replace(`{${"openSessionID"}}`, encodeURIComponent(String(openSessionID)));
|
|
712
950
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -737,23 +975,27 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
737
975
|
* Update environment revision tag
|
|
738
976
|
* @summary Update environment revision tag
|
|
739
977
|
* @param {string} orgName Organization name
|
|
978
|
+
* @param {string} projectName Project name
|
|
740
979
|
* @param {string} envName Environment name
|
|
741
980
|
* @param {string} tagName Tag name
|
|
742
981
|
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
743
982
|
* @param {*} [options] Override http request option.
|
|
744
983
|
* @throws {RequiredError}
|
|
745
984
|
*/
|
|
746
|
-
updateEnvironmentRevisionTag: (
|
|
985
|
+
updateEnvironmentRevisionTag: (orgName_22, projectName_19, envName_19, tagName_5, updateEnvironmentRevisionTag_1, ...args_22) => __awaiter(this, [orgName_22, projectName_19, envName_19, tagName_5, updateEnvironmentRevisionTag_1, ...args_22], void 0, function* (orgName, projectName, envName, tagName, updateEnvironmentRevisionTag, options = {}) {
|
|
747
986
|
// verify required parameter 'orgName' is not null or undefined
|
|
748
987
|
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'orgName', orgName);
|
|
988
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
989
|
+
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'projectName', projectName);
|
|
749
990
|
// verify required parameter 'envName' is not null or undefined
|
|
750
991
|
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'envName', envName);
|
|
751
992
|
// verify required parameter 'tagName' is not null or undefined
|
|
752
993
|
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'tagName', tagName);
|
|
753
994
|
// verify required parameter 'updateEnvironmentRevisionTag' is not null or undefined
|
|
754
995
|
(0, common_1.assertParamExists)('updateEnvironmentRevisionTag', 'updateEnvironmentRevisionTag', updateEnvironmentRevisionTag);
|
|
755
|
-
const localVarPath = `/environments/{orgName}/{envName}/versions/tags/{tagName}`
|
|
996
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/versions/tags/{tagName}`
|
|
756
997
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
998
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
757
999
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
758
1000
|
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
759
1001
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -779,24 +1021,78 @@ const EscApiAxiosParamCreator = function (configuration) {
|
|
|
779
1021
|
options: localVarRequestOptions,
|
|
780
1022
|
};
|
|
781
1023
|
}),
|
|
1024
|
+
/**
|
|
1025
|
+
* Update an environment tag
|
|
1026
|
+
* @summary Update an environment tag
|
|
1027
|
+
* @param {string} orgName Organization name
|
|
1028
|
+
* @param {string} projectName Project name
|
|
1029
|
+
* @param {string} envName Environment name
|
|
1030
|
+
* @param {string} tagName Tag name
|
|
1031
|
+
* @param {UpdateEnvironmentTag} updateEnvironmentTag Update environment tag
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
*/
|
|
1035
|
+
updateEnvironmentTag: (orgName_23, projectName_20, envName_20, tagName_6, updateEnvironmentTag_1, ...args_23) => __awaiter(this, [orgName_23, projectName_20, envName_20, tagName_6, updateEnvironmentTag_1, ...args_23], void 0, function* (orgName, projectName, envName, tagName, updateEnvironmentTag, options = {}) {
|
|
1036
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1037
|
+
(0, common_1.assertParamExists)('updateEnvironmentTag', 'orgName', orgName);
|
|
1038
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
1039
|
+
(0, common_1.assertParamExists)('updateEnvironmentTag', 'projectName', projectName);
|
|
1040
|
+
// verify required parameter 'envName' is not null or undefined
|
|
1041
|
+
(0, common_1.assertParamExists)('updateEnvironmentTag', 'envName', envName);
|
|
1042
|
+
// verify required parameter 'tagName' is not null or undefined
|
|
1043
|
+
(0, common_1.assertParamExists)('updateEnvironmentTag', 'tagName', tagName);
|
|
1044
|
+
// verify required parameter 'updateEnvironmentTag' is not null or undefined
|
|
1045
|
+
(0, common_1.assertParamExists)('updateEnvironmentTag', 'updateEnvironmentTag', updateEnvironmentTag);
|
|
1046
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}/tags/{tagName}`
|
|
1047
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1048
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
1049
|
+
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)))
|
|
1050
|
+
.replace(`{${"tagName"}}`, encodeURIComponent(String(tagName)));
|
|
1051
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1052
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1053
|
+
let baseOptions;
|
|
1054
|
+
if (configuration) {
|
|
1055
|
+
baseOptions = configuration.baseOptions;
|
|
1056
|
+
}
|
|
1057
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1058
|
+
const localVarHeaderParameter = {};
|
|
1059
|
+
const localVarQueryParameter = {};
|
|
1060
|
+
// authentication Authorization required
|
|
1061
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1062
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1063
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1064
|
+
localVarHeaderParameter['X-Pulumi-Source'] = 'esc-sdk';
|
|
1065
|
+
localVarHeaderParameter['User-Agent'] = userAgent;
|
|
1066
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1067
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1068
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEnvironmentTag, localVarRequestOptions, configuration);
|
|
1069
|
+
return {
|
|
1070
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1071
|
+
options: localVarRequestOptions,
|
|
1072
|
+
};
|
|
1073
|
+
}),
|
|
782
1074
|
/**
|
|
783
1075
|
* Validates and updates the given environment\'s definition.
|
|
784
1076
|
* @summary Update an existing environment with Yaml file
|
|
785
1077
|
* @param {string} orgName Organization name
|
|
1078
|
+
* @param {string} projectName Project name
|
|
786
1079
|
* @param {string} envName Environment name
|
|
787
1080
|
* @param {string} body Environment Yaml content
|
|
788
1081
|
* @param {*} [options] Override http request option.
|
|
789
1082
|
* @throws {RequiredError}
|
|
790
1083
|
*/
|
|
791
|
-
updateEnvironmentYaml: (
|
|
1084
|
+
updateEnvironmentYaml: (orgName_24, projectName_21, envName_21, body_2, ...args_24) => __awaiter(this, [orgName_24, projectName_21, envName_21, body_2, ...args_24], void 0, function* (orgName, projectName, envName, body, options = {}) {
|
|
792
1085
|
// verify required parameter 'orgName' is not null or undefined
|
|
793
1086
|
(0, common_1.assertParamExists)('updateEnvironmentYaml', 'orgName', orgName);
|
|
1087
|
+
// verify required parameter 'projectName' is not null or undefined
|
|
1088
|
+
(0, common_1.assertParamExists)('updateEnvironmentYaml', 'projectName', projectName);
|
|
794
1089
|
// verify required parameter 'envName' is not null or undefined
|
|
795
1090
|
(0, common_1.assertParamExists)('updateEnvironmentYaml', 'envName', envName);
|
|
796
1091
|
// verify required parameter 'body' is not null or undefined
|
|
797
1092
|
(0, common_1.assertParamExists)('updateEnvironmentYaml', 'body', body);
|
|
798
|
-
const localVarPath = `/environments/{orgName}/{envName}`
|
|
1093
|
+
const localVarPath = `/environments/{orgName}/{projectName}/{envName}`
|
|
799
1094
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1095
|
+
.replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
|
|
800
1096
|
.replace(`{${"envName"}}`, encodeURIComponent(String(envName)));
|
|
801
1097
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
802
1098
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -852,14 +1148,14 @@ const EscApiFp = function (configuration) {
|
|
|
852
1148
|
* Creates an environment in the given org with the given name.
|
|
853
1149
|
* @summary Create a new environment
|
|
854
1150
|
* @param {string} orgName Organization name
|
|
855
|
-
* @param {
|
|
1151
|
+
* @param {CreateEnvironment} createEnvironment Create Environment
|
|
856
1152
|
* @param {*} [options] Override http request option.
|
|
857
1153
|
* @throws {RequiredError}
|
|
858
1154
|
*/
|
|
859
|
-
createEnvironment(orgName,
|
|
1155
|
+
createEnvironment(orgName, createEnvironment, options) {
|
|
860
1156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
861
1157
|
var _a, _b, _c;
|
|
862
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironment(orgName,
|
|
1158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironment(orgName, createEnvironment, options);
|
|
863
1159
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
864
1160
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.createEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
865
1161
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -869,33 +1165,53 @@ const EscApiFp = function (configuration) {
|
|
|
869
1165
|
* Create environment revision tag
|
|
870
1166
|
* @summary Create environment revision tag
|
|
871
1167
|
* @param {string} orgName Organization name
|
|
1168
|
+
* @param {string} projectName Project name
|
|
872
1169
|
* @param {string} envName Environment name
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1170
|
+
* @param {CreateEnvironmentRevisionTag} createEnvironmentRevisionTag Create environment revision tag
|
|
875
1171
|
* @param {*} [options] Override http request option.
|
|
876
1172
|
* @throws {RequiredError}
|
|
877
1173
|
*/
|
|
878
|
-
createEnvironmentRevisionTag(orgName,
|
|
1174
|
+
createEnvironmentRevisionTag(orgName, projectName, envName, createEnvironmentRevisionTag, options) {
|
|
879
1175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
880
1176
|
var _a, _b, _c;
|
|
881
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironmentRevisionTag(orgName,
|
|
1177
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironmentRevisionTag(orgName, projectName, envName, createEnvironmentRevisionTag, options);
|
|
882
1178
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
883
1179
|
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
1180
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
885
1181
|
});
|
|
886
1182
|
},
|
|
1183
|
+
/**
|
|
1184
|
+
* Create environment tag
|
|
1185
|
+
* @summary Create environment tag
|
|
1186
|
+
* @param {string} orgName Organization name
|
|
1187
|
+
* @param {string} projectName Project name
|
|
1188
|
+
* @param {string} envName Environment name
|
|
1189
|
+
* @param {CreateEnvironmentTag} createEnvironmentTag Create environment tag
|
|
1190
|
+
* @param {*} [options] Override http request option.
|
|
1191
|
+
* @throws {RequiredError}
|
|
1192
|
+
*/
|
|
1193
|
+
createEnvironmentTag(orgName, projectName, envName, createEnvironmentTag, options) {
|
|
1194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1195
|
+
var _a, _b, _c;
|
|
1196
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironmentTag(orgName, projectName, envName, createEnvironmentTag, options);
|
|
1197
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1198
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.createEnvironmentTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1199
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1200
|
+
});
|
|
1201
|
+
},
|
|
887
1202
|
/**
|
|
888
1203
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
889
1204
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
890
1205
|
* @param {string} orgName Organization name
|
|
1206
|
+
* @param {string} projectName Project name
|
|
891
1207
|
* @param {string} envName Environment name
|
|
892
1208
|
* @param {*} [options] Override http request option.
|
|
893
1209
|
* @throws {RequiredError}
|
|
894
1210
|
*/
|
|
895
|
-
decryptEnvironment(orgName, envName, options) {
|
|
1211
|
+
decryptEnvironment(orgName, projectName, envName, options) {
|
|
896
1212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
897
1213
|
var _a, _b, _c;
|
|
898
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.decryptEnvironment(orgName, envName, options);
|
|
1214
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.decryptEnvironment(orgName, projectName, envName, options);
|
|
899
1215
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
900
1216
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.decryptEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
901
1217
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -905,14 +1221,15 @@ const EscApiFp = function (configuration) {
|
|
|
905
1221
|
* Delete an environment
|
|
906
1222
|
* @summary Delete an environment
|
|
907
1223
|
* @param {string} orgName Organization name
|
|
1224
|
+
* @param {string} projectName Project name
|
|
908
1225
|
* @param {string} envName Environment name
|
|
909
1226
|
* @param {*} [options] Override http request option.
|
|
910
1227
|
* @throws {RequiredError}
|
|
911
1228
|
*/
|
|
912
|
-
deleteEnvironment(orgName, envName, options) {
|
|
1229
|
+
deleteEnvironment(orgName, projectName, envName, options) {
|
|
913
1230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
914
1231
|
var _a, _b, _c;
|
|
915
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironment(orgName, envName, options);
|
|
1232
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironment(orgName, projectName, envName, options);
|
|
916
1233
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
917
1234
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.deleteEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
918
1235
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -922,32 +1239,53 @@ const EscApiFp = function (configuration) {
|
|
|
922
1239
|
* Delete environment revision tag
|
|
923
1240
|
* @summary Delete environment revision tag
|
|
924
1241
|
* @param {string} orgName Organization name
|
|
1242
|
+
* @param {string} projectName Project name
|
|
925
1243
|
* @param {string} envName Environment name
|
|
926
1244
|
* @param {string} tagName Tag name
|
|
927
1245
|
* @param {*} [options] Override http request option.
|
|
928
1246
|
* @throws {RequiredError}
|
|
929
1247
|
*/
|
|
930
|
-
deleteEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
1248
|
+
deleteEnvironmentRevisionTag(orgName, projectName, envName, tagName, options) {
|
|
931
1249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
932
1250
|
var _a, _b, _c;
|
|
933
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentRevisionTag(orgName, envName, tagName, options);
|
|
1251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentRevisionTag(orgName, projectName, envName, tagName, options);
|
|
934
1252
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
935
1253
|
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
1254
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
937
1255
|
});
|
|
938
1256
|
},
|
|
1257
|
+
/**
|
|
1258
|
+
* Delete environment tag
|
|
1259
|
+
* @summary Delete environment tag
|
|
1260
|
+
* @param {string} orgName Organization name
|
|
1261
|
+
* @param {string} projectName Project name
|
|
1262
|
+
* @param {string} envName Environment name
|
|
1263
|
+
* @param {string} tagName Tag name
|
|
1264
|
+
* @param {*} [options] Override http request option.
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
*/
|
|
1267
|
+
deleteEnvironmentTag(orgName, projectName, envName, tagName, options) {
|
|
1268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1269
|
+
var _a, _b, _c;
|
|
1270
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentTag(orgName, projectName, envName, tagName, options);
|
|
1271
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1272
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.deleteEnvironmentTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1273
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1274
|
+
});
|
|
1275
|
+
},
|
|
939
1276
|
/**
|
|
940
1277
|
* Read an environment
|
|
941
1278
|
* @summary Read an environment
|
|
942
1279
|
* @param {string} orgName Organization name
|
|
1280
|
+
* @param {string} projectName Project name
|
|
943
1281
|
* @param {string} envName Environment name
|
|
944
1282
|
* @param {*} [options] Override http request option.
|
|
945
1283
|
* @throws {RequiredError}
|
|
946
1284
|
*/
|
|
947
|
-
getEnvironment(orgName, envName, options) {
|
|
1285
|
+
getEnvironment(orgName, projectName, envName, options) {
|
|
948
1286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
949
1287
|
var _a, _b, _c;
|
|
950
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironment(orgName, envName, options);
|
|
1288
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironment(orgName, projectName, envName, options);
|
|
951
1289
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
952
1290
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.getEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
953
1291
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -957,15 +1295,16 @@ const EscApiFp = function (configuration) {
|
|
|
957
1295
|
* Read an environmentat a specific revision or tag
|
|
958
1296
|
* @summary Read an environment at a specific version
|
|
959
1297
|
* @param {string} orgName Organization name
|
|
1298
|
+
* @param {string} projectName Project name
|
|
960
1299
|
* @param {string} envName Environment name
|
|
961
1300
|
* @param {string} version Revision or tag
|
|
962
1301
|
* @param {*} [options] Override http request option.
|
|
963
1302
|
* @throws {RequiredError}
|
|
964
1303
|
*/
|
|
965
|
-
getEnvironmentAtVersion(orgName, envName, version, options) {
|
|
1304
|
+
getEnvironmentAtVersion(orgName, projectName, envName, version, options) {
|
|
966
1305
|
return __awaiter(this, void 0, void 0, function* () {
|
|
967
1306
|
var _a, _b, _c;
|
|
968
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentAtVersion(orgName, envName, version, options);
|
|
1307
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentAtVersion(orgName, projectName, envName, version, options);
|
|
969
1308
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
970
1309
|
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
1310
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -975,14 +1314,15 @@ const EscApiFp = function (configuration) {
|
|
|
975
1314
|
* Returns the ETag for the given environment if it exists.
|
|
976
1315
|
* @summary Return an Environment ETag
|
|
977
1316
|
* @param {string} orgName Organization name
|
|
1317
|
+
* @param {string} projectName Project name
|
|
978
1318
|
* @param {string} envName Environment name
|
|
979
1319
|
* @param {*} [options] Override http request option.
|
|
980
1320
|
* @throws {RequiredError}
|
|
981
1321
|
*/
|
|
982
|
-
getEnvironmentETag(orgName, envName, options) {
|
|
1322
|
+
getEnvironmentETag(orgName, projectName, envName, options) {
|
|
983
1323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
984
1324
|
var _a, _b, _c;
|
|
985
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentETag(orgName, envName, options);
|
|
1325
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentETag(orgName, projectName, envName, options);
|
|
986
1326
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
987
1327
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.getEnvironmentETag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
988
1328
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -992,34 +1332,55 @@ const EscApiFp = function (configuration) {
|
|
|
992
1332
|
* Read environment revision tag
|
|
993
1333
|
* @summary Read environment revision tag
|
|
994
1334
|
* @param {string} orgName Organization name
|
|
1335
|
+
* @param {string} projectName Project name
|
|
995
1336
|
* @param {string} envName Environment name
|
|
996
1337
|
* @param {string} tagName Tag name
|
|
997
1338
|
* @param {*} [options] Override http request option.
|
|
998
1339
|
* @throws {RequiredError}
|
|
999
1340
|
*/
|
|
1000
|
-
getEnvironmentRevisionTag(orgName, envName, tagName, options) {
|
|
1341
|
+
getEnvironmentRevisionTag(orgName, projectName, envName, tagName, options) {
|
|
1001
1342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1002
1343
|
var _a, _b, _c;
|
|
1003
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentRevisionTag(orgName, envName, tagName, options);
|
|
1344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentRevisionTag(orgName, projectName, envName, tagName, options);
|
|
1004
1345
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1005
1346
|
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
1347
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1007
1348
|
});
|
|
1008
1349
|
},
|
|
1350
|
+
/**
|
|
1351
|
+
* Read an environment tag
|
|
1352
|
+
* @summary Read an environment tag
|
|
1353
|
+
* @param {string} orgName Organization name
|
|
1354
|
+
* @param {string} projectName Project name
|
|
1355
|
+
* @param {string} envName Environment name
|
|
1356
|
+
* @param {string} tagName Tag name
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
*/
|
|
1360
|
+
getEnvironmentTag(orgName, projectName, envName, tagName, options) {
|
|
1361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1362
|
+
var _a, _b, _c;
|
|
1363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentTag(orgName, projectName, envName, tagName, options);
|
|
1364
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.getEnvironmentTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1367
|
+
});
|
|
1368
|
+
},
|
|
1009
1369
|
/**
|
|
1010
1370
|
* List environment revisions
|
|
1011
1371
|
* @summary List environment revisions
|
|
1012
1372
|
* @param {string} orgName Organization name
|
|
1373
|
+
* @param {string} projectName Project name
|
|
1013
1374
|
* @param {string} envName Environment name
|
|
1014
1375
|
* @param {string} [after] after tag for pagination
|
|
1015
1376
|
* @param {number} [count] limit of tags to return
|
|
1016
1377
|
* @param {*} [options] Override http request option.
|
|
1017
1378
|
* @throws {RequiredError}
|
|
1018
1379
|
*/
|
|
1019
|
-
listEnvironmentRevisionTags(orgName, envName, after, count, options) {
|
|
1380
|
+
listEnvironmentRevisionTags(orgName, projectName, envName, after, count, options) {
|
|
1020
1381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
1382
|
var _a, _b, _c;
|
|
1022
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentRevisionTags(orgName, envName, after, count, options);
|
|
1383
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentRevisionTags(orgName, projectName, envName, after, count, options);
|
|
1023
1384
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1024
1385
|
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
1386
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1029,21 +1390,42 @@ const EscApiFp = function (configuration) {
|
|
|
1029
1390
|
* List environment revisions
|
|
1030
1391
|
* @summary List environment revisions
|
|
1031
1392
|
* @param {string} orgName Organization name
|
|
1393
|
+
* @param {string} projectName Project name
|
|
1032
1394
|
* @param {string} envName Environment name
|
|
1033
1395
|
* @param {number} [before] before revision number for pagination
|
|
1034
1396
|
* @param {number} [count] limit of revisions to return
|
|
1035
1397
|
* @param {*} [options] Override http request option.
|
|
1036
1398
|
* @throws {RequiredError}
|
|
1037
1399
|
*/
|
|
1038
|
-
listEnvironmentRevisions(orgName, envName, before, count, options) {
|
|
1400
|
+
listEnvironmentRevisions(orgName, projectName, envName, before, count, options) {
|
|
1039
1401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1040
1402
|
var _a, _b, _c;
|
|
1041
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentRevisions(orgName, envName, before, count, options);
|
|
1403
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentRevisions(orgName, projectName, envName, before, count, options);
|
|
1042
1404
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1043
1405
|
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
1406
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1045
1407
|
});
|
|
1046
1408
|
},
|
|
1409
|
+
/**
|
|
1410
|
+
* List environment tags
|
|
1411
|
+
* @summary List environment tags
|
|
1412
|
+
* @param {string} orgName Organization name
|
|
1413
|
+
* @param {string} projectName Project name
|
|
1414
|
+
* @param {string} envName Environment name
|
|
1415
|
+
* @param {string} [after] after tag for pagination
|
|
1416
|
+
* @param {number} [count] limit of tags to return
|
|
1417
|
+
* @param {*} [options] Override http request option.
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
*/
|
|
1420
|
+
listEnvironmentTags(orgName, projectName, envName, after, count, options) {
|
|
1421
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1422
|
+
var _a, _b, _c;
|
|
1423
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentTags(orgName, projectName, envName, after, count, options);
|
|
1424
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1425
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.listEnvironmentTags']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1426
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1427
|
+
});
|
|
1428
|
+
},
|
|
1047
1429
|
/**
|
|
1048
1430
|
* List environments in the organization available to the current user
|
|
1049
1431
|
* @summary List environments in the organization
|
|
@@ -1065,15 +1447,16 @@ const EscApiFp = function (configuration) {
|
|
|
1065
1447
|
* Opens a session the given environment for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
1066
1448
|
* @summary Open an environment session
|
|
1067
1449
|
* @param {string} orgName Organization name
|
|
1450
|
+
* @param {string} projectName Project name
|
|
1068
1451
|
* @param {string} envName Environment name
|
|
1069
1452
|
* @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”.
|
|
1070
1453
|
* @param {*} [options] Override http request option.
|
|
1071
1454
|
* @throws {RequiredError}
|
|
1072
1455
|
*/
|
|
1073
|
-
openEnvironment(orgName, envName, duration, options) {
|
|
1456
|
+
openEnvironment(orgName, projectName, envName, duration, options) {
|
|
1074
1457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1075
1458
|
var _a, _b, _c;
|
|
1076
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.openEnvironment(orgName, envName, duration, options);
|
|
1459
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.openEnvironment(orgName, projectName, envName, duration, options);
|
|
1077
1460
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1078
1461
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.openEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1079
1462
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1083,16 +1466,17 @@ const EscApiFp = function (configuration) {
|
|
|
1083
1466
|
* 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
1467
|
* @summary Open an environment session at a specific version
|
|
1085
1468
|
* @param {string} orgName Organization name
|
|
1469
|
+
* @param {string} projectName Project name
|
|
1086
1470
|
* @param {string} envName Environment name
|
|
1087
1471
|
* @param {string} version Revision or tag
|
|
1088
1472
|
* @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
1473
|
* @param {*} [options] Override http request option.
|
|
1090
1474
|
* @throws {RequiredError}
|
|
1091
1475
|
*/
|
|
1092
|
-
openEnvironmentAtVersion(orgName, envName, version, duration, options) {
|
|
1476
|
+
openEnvironmentAtVersion(orgName, projectName, envName, version, duration, options) {
|
|
1093
1477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
1478
|
var _a, _b, _c;
|
|
1095
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.openEnvironmentAtVersion(orgName, envName, version, duration, options);
|
|
1479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.openEnvironmentAtVersion(orgName, projectName, envName, version, duration, options);
|
|
1096
1480
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1097
1481
|
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
1482
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1102,15 +1486,16 @@ const EscApiFp = function (configuration) {
|
|
|
1102
1486
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
1103
1487
|
* @summary Read an open environment
|
|
1104
1488
|
* @param {string} orgName Organization name
|
|
1489
|
+
* @param {string} projectName Project name
|
|
1105
1490
|
* @param {string} envName Environment name
|
|
1106
1491
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
1107
1492
|
* @param {*} [options] Override http request option.
|
|
1108
1493
|
* @throws {RequiredError}
|
|
1109
1494
|
*/
|
|
1110
|
-
readOpenEnvironment(orgName, envName, openSessionID, options) {
|
|
1495
|
+
readOpenEnvironment(orgName, projectName, envName, openSessionID, options) {
|
|
1111
1496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1112
1497
|
var _a, _b, _c;
|
|
1113
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.readOpenEnvironment(orgName, envName, openSessionID, options);
|
|
1498
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.readOpenEnvironment(orgName, projectName, envName, openSessionID, options);
|
|
1114
1499
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1115
1500
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.readOpenEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1116
1501
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1120,16 +1505,17 @@ const EscApiFp = function (configuration) {
|
|
|
1120
1505
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
1121
1506
|
* @summary Read an open environment
|
|
1122
1507
|
* @param {string} orgName Organization name
|
|
1508
|
+
* @param {string} projectName Project name
|
|
1123
1509
|
* @param {string} envName Environment name
|
|
1124
1510
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
1125
1511
|
* @param {string} property Path to a specific property using Pulumi path syntax https://www.pulumi.com/docs/concepts/config/#structured-configuration
|
|
1126
1512
|
* @param {*} [options] Override http request option.
|
|
1127
1513
|
* @throws {RequiredError}
|
|
1128
1514
|
*/
|
|
1129
|
-
readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options) {
|
|
1515
|
+
readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property, options) {
|
|
1130
1516
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1131
1517
|
var _a, _b, _c;
|
|
1132
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options);
|
|
1518
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property, options);
|
|
1133
1519
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1134
1520
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.readOpenEnvironmentProperty']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1135
1521
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1139,34 +1525,56 @@ const EscApiFp = function (configuration) {
|
|
|
1139
1525
|
* Update environment revision tag
|
|
1140
1526
|
* @summary Update environment revision tag
|
|
1141
1527
|
* @param {string} orgName Organization name
|
|
1528
|
+
* @param {string} projectName Project name
|
|
1142
1529
|
* @param {string} envName Environment name
|
|
1143
1530
|
* @param {string} tagName Tag name
|
|
1144
1531
|
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1145
1532
|
* @param {*} [options] Override http request option.
|
|
1146
1533
|
* @throws {RequiredError}
|
|
1147
1534
|
*/
|
|
1148
|
-
updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1535
|
+
updateEnvironmentRevisionTag(orgName, projectName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1149
1536
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1150
1537
|
var _a, _b, _c;
|
|
1151
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options);
|
|
1538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentRevisionTag(orgName, projectName, envName, tagName, updateEnvironmentRevisionTag, options);
|
|
1152
1539
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1153
1540
|
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
1541
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1155
1542
|
});
|
|
1156
1543
|
},
|
|
1544
|
+
/**
|
|
1545
|
+
* Update an environment tag
|
|
1546
|
+
* @summary Update an environment tag
|
|
1547
|
+
* @param {string} orgName Organization name
|
|
1548
|
+
* @param {string} projectName Project name
|
|
1549
|
+
* @param {string} envName Environment name
|
|
1550
|
+
* @param {string} tagName Tag name
|
|
1551
|
+
* @param {UpdateEnvironmentTag} updateEnvironmentTag Update environment tag
|
|
1552
|
+
* @param {*} [options] Override http request option.
|
|
1553
|
+
* @throws {RequiredError}
|
|
1554
|
+
*/
|
|
1555
|
+
updateEnvironmentTag(orgName, projectName, envName, tagName, updateEnvironmentTag, options) {
|
|
1556
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1557
|
+
var _a, _b, _c;
|
|
1558
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentTag(orgName, projectName, envName, tagName, updateEnvironmentTag, options);
|
|
1559
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1560
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.updateEnvironmentTag']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1561
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1562
|
+
});
|
|
1563
|
+
},
|
|
1157
1564
|
/**
|
|
1158
1565
|
* Validates and updates the given environment\'s definition.
|
|
1159
1566
|
* @summary Update an existing environment with Yaml file
|
|
1160
1567
|
* @param {string} orgName Organization name
|
|
1568
|
+
* @param {string} projectName Project name
|
|
1161
1569
|
* @param {string} envName Environment name
|
|
1162
1570
|
* @param {string} body Environment Yaml content
|
|
1163
1571
|
* @param {*} [options] Override http request option.
|
|
1164
1572
|
* @throws {RequiredError}
|
|
1165
1573
|
*/
|
|
1166
|
-
updateEnvironmentYaml(orgName, envName, body, options) {
|
|
1574
|
+
updateEnvironmentYaml(orgName, projectName, envName, body, options) {
|
|
1167
1575
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1168
1576
|
var _a, _b, _c;
|
|
1169
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentYaml(orgName, envName, body, options);
|
|
1577
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentYaml(orgName, projectName, envName, body, options);
|
|
1170
1578
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1171
1579
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EscApi.updateEnvironmentYaml']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1172
1580
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1197,131 +1605,193 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
1197
1605
|
* Creates an environment in the given org with the given name.
|
|
1198
1606
|
* @summary Create a new environment
|
|
1199
1607
|
* @param {string} orgName Organization name
|
|
1200
|
-
* @param {
|
|
1608
|
+
* @param {CreateEnvironment} createEnvironment Create Environment
|
|
1201
1609
|
* @param {*} [options] Override http request option.
|
|
1202
1610
|
* @throws {RequiredError}
|
|
1203
1611
|
*/
|
|
1204
|
-
createEnvironment(orgName,
|
|
1205
|
-
return localVarFp.createEnvironment(orgName,
|
|
1612
|
+
createEnvironment(orgName, createEnvironment, options) {
|
|
1613
|
+
return localVarFp.createEnvironment(orgName, createEnvironment, options).then((request) => request(axios, basePath));
|
|
1206
1614
|
},
|
|
1207
1615
|
/**
|
|
1208
1616
|
* Create environment revision tag
|
|
1209
1617
|
* @summary Create environment revision tag
|
|
1210
1618
|
* @param {string} orgName Organization name
|
|
1619
|
+
* @param {string} projectName Project name
|
|
1211
1620
|
* @param {string} envName Environment name
|
|
1212
|
-
* @param {
|
|
1213
|
-
* @param {
|
|
1621
|
+
* @param {CreateEnvironmentRevisionTag} createEnvironmentRevisionTag Create environment revision tag
|
|
1622
|
+
* @param {*} [options] Override http request option.
|
|
1623
|
+
* @throws {RequiredError}
|
|
1624
|
+
*/
|
|
1625
|
+
createEnvironmentRevisionTag(orgName, projectName, envName, createEnvironmentRevisionTag, options) {
|
|
1626
|
+
return localVarFp.createEnvironmentRevisionTag(orgName, projectName, envName, createEnvironmentRevisionTag, options).then((request) => request(axios, basePath));
|
|
1627
|
+
},
|
|
1628
|
+
/**
|
|
1629
|
+
* Create environment tag
|
|
1630
|
+
* @summary Create environment tag
|
|
1631
|
+
* @param {string} orgName Organization name
|
|
1632
|
+
* @param {string} projectName Project name
|
|
1633
|
+
* @param {string} envName Environment name
|
|
1634
|
+
* @param {CreateEnvironmentTag} createEnvironmentTag Create environment tag
|
|
1214
1635
|
* @param {*} [options] Override http request option.
|
|
1215
1636
|
* @throws {RequiredError}
|
|
1216
1637
|
*/
|
|
1217
|
-
|
|
1218
|
-
return localVarFp.
|
|
1638
|
+
createEnvironmentTag(orgName, projectName, envName, createEnvironmentTag, options) {
|
|
1639
|
+
return localVarFp.createEnvironmentTag(orgName, projectName, envName, createEnvironmentTag, options).then((request) => request(axios, basePath));
|
|
1219
1640
|
},
|
|
1220
1641
|
/**
|
|
1221
1642
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
1222
1643
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
1223
1644
|
* @param {string} orgName Organization name
|
|
1645
|
+
* @param {string} projectName Project name
|
|
1224
1646
|
* @param {string} envName Environment name
|
|
1225
1647
|
* @param {*} [options] Override http request option.
|
|
1226
1648
|
* @throws {RequiredError}
|
|
1227
1649
|
*/
|
|
1228
|
-
decryptEnvironment(orgName, envName, options) {
|
|
1229
|
-
return localVarFp.decryptEnvironment(orgName, envName, options).then((request) => request(axios, basePath));
|
|
1650
|
+
decryptEnvironment(orgName, projectName, envName, options) {
|
|
1651
|
+
return localVarFp.decryptEnvironment(orgName, projectName, envName, options).then((request) => request(axios, basePath));
|
|
1230
1652
|
},
|
|
1231
1653
|
/**
|
|
1232
1654
|
* Delete an environment
|
|
1233
1655
|
* @summary Delete an environment
|
|
1234
1656
|
* @param {string} orgName Organization name
|
|
1657
|
+
* @param {string} projectName Project name
|
|
1235
1658
|
* @param {string} envName Environment name
|
|
1236
1659
|
* @param {*} [options] Override http request option.
|
|
1237
1660
|
* @throws {RequiredError}
|
|
1238
1661
|
*/
|
|
1239
|
-
deleteEnvironment(orgName, envName, options) {
|
|
1240
|
-
return localVarFp.deleteEnvironment(orgName, envName, options).then((request) => request(axios, basePath));
|
|
1662
|
+
deleteEnvironment(orgName, projectName, envName, options) {
|
|
1663
|
+
return localVarFp.deleteEnvironment(orgName, projectName, envName, options).then((request) => request(axios, basePath));
|
|
1241
1664
|
},
|
|
1242
1665
|
/**
|
|
1243
1666
|
* Delete environment revision tag
|
|
1244
1667
|
* @summary Delete environment revision tag
|
|
1245
1668
|
* @param {string} orgName Organization name
|
|
1669
|
+
* @param {string} projectName Project name
|
|
1670
|
+
* @param {string} envName Environment name
|
|
1671
|
+
* @param {string} tagName Tag name
|
|
1672
|
+
* @param {*} [options] Override http request option.
|
|
1673
|
+
* @throws {RequiredError}
|
|
1674
|
+
*/
|
|
1675
|
+
deleteEnvironmentRevisionTag(orgName, projectName, envName, tagName, options) {
|
|
1676
|
+
return localVarFp.deleteEnvironmentRevisionTag(orgName, projectName, envName, tagName, options).then((request) => request(axios, basePath));
|
|
1677
|
+
},
|
|
1678
|
+
/**
|
|
1679
|
+
* Delete environment tag
|
|
1680
|
+
* @summary Delete environment tag
|
|
1681
|
+
* @param {string} orgName Organization name
|
|
1682
|
+
* @param {string} projectName Project name
|
|
1246
1683
|
* @param {string} envName Environment name
|
|
1247
1684
|
* @param {string} tagName Tag name
|
|
1248
1685
|
* @param {*} [options] Override http request option.
|
|
1249
1686
|
* @throws {RequiredError}
|
|
1250
1687
|
*/
|
|
1251
|
-
|
|
1252
|
-
return localVarFp.
|
|
1688
|
+
deleteEnvironmentTag(orgName, projectName, envName, tagName, options) {
|
|
1689
|
+
return localVarFp.deleteEnvironmentTag(orgName, projectName, envName, tagName, options).then((request) => request(axios, basePath));
|
|
1253
1690
|
},
|
|
1254
1691
|
/**
|
|
1255
1692
|
* Read an environment
|
|
1256
1693
|
* @summary Read an environment
|
|
1257
1694
|
* @param {string} orgName Organization name
|
|
1695
|
+
* @param {string} projectName Project name
|
|
1258
1696
|
* @param {string} envName Environment name
|
|
1259
1697
|
* @param {*} [options] Override http request option.
|
|
1260
1698
|
* @throws {RequiredError}
|
|
1261
1699
|
*/
|
|
1262
|
-
getEnvironment(orgName, envName, options) {
|
|
1263
|
-
return localVarFp.getEnvironment(orgName, envName, options).then((request) => request(axios, basePath));
|
|
1700
|
+
getEnvironment(orgName, projectName, envName, options) {
|
|
1701
|
+
return localVarFp.getEnvironment(orgName, projectName, envName, options).then((request) => request(axios, basePath));
|
|
1264
1702
|
},
|
|
1265
1703
|
/**
|
|
1266
1704
|
* Read an environmentat a specific revision or tag
|
|
1267
1705
|
* @summary Read an environment at a specific version
|
|
1268
1706
|
* @param {string} orgName Organization name
|
|
1707
|
+
* @param {string} projectName Project name
|
|
1269
1708
|
* @param {string} envName Environment name
|
|
1270
1709
|
* @param {string} version Revision or tag
|
|
1271
1710
|
* @param {*} [options] Override http request option.
|
|
1272
1711
|
* @throws {RequiredError}
|
|
1273
1712
|
*/
|
|
1274
|
-
getEnvironmentAtVersion(orgName, envName, version, options) {
|
|
1275
|
-
return localVarFp.getEnvironmentAtVersion(orgName, envName, version, options).then((request) => request(axios, basePath));
|
|
1713
|
+
getEnvironmentAtVersion(orgName, projectName, envName, version, options) {
|
|
1714
|
+
return localVarFp.getEnvironmentAtVersion(orgName, projectName, envName, version, options).then((request) => request(axios, basePath));
|
|
1276
1715
|
},
|
|
1277
1716
|
/**
|
|
1278
1717
|
* Returns the ETag for the given environment if it exists.
|
|
1279
1718
|
* @summary Return an Environment ETag
|
|
1280
1719
|
* @param {string} orgName Organization name
|
|
1720
|
+
* @param {string} projectName Project name
|
|
1281
1721
|
* @param {string} envName Environment name
|
|
1282
1722
|
* @param {*} [options] Override http request option.
|
|
1283
1723
|
* @throws {RequiredError}
|
|
1284
1724
|
*/
|
|
1285
|
-
getEnvironmentETag(orgName, envName, options) {
|
|
1286
|
-
return localVarFp.getEnvironmentETag(orgName, envName, options).then((request) => request(axios, basePath));
|
|
1725
|
+
getEnvironmentETag(orgName, projectName, envName, options) {
|
|
1726
|
+
return localVarFp.getEnvironmentETag(orgName, projectName, envName, options).then((request) => request(axios, basePath));
|
|
1287
1727
|
},
|
|
1288
1728
|
/**
|
|
1289
1729
|
* Read environment revision tag
|
|
1290
1730
|
* @summary Read environment revision tag
|
|
1291
1731
|
* @param {string} orgName Organization name
|
|
1732
|
+
* @param {string} projectName Project name
|
|
1733
|
+
* @param {string} envName Environment name
|
|
1734
|
+
* @param {string} tagName Tag name
|
|
1735
|
+
* @param {*} [options] Override http request option.
|
|
1736
|
+
* @throws {RequiredError}
|
|
1737
|
+
*/
|
|
1738
|
+
getEnvironmentRevisionTag(orgName, projectName, envName, tagName, options) {
|
|
1739
|
+
return localVarFp.getEnvironmentRevisionTag(orgName, projectName, envName, tagName, options).then((request) => request(axios, basePath));
|
|
1740
|
+
},
|
|
1741
|
+
/**
|
|
1742
|
+
* Read an environment tag
|
|
1743
|
+
* @summary Read an environment tag
|
|
1744
|
+
* @param {string} orgName Organization name
|
|
1745
|
+
* @param {string} projectName Project name
|
|
1292
1746
|
* @param {string} envName Environment name
|
|
1293
1747
|
* @param {string} tagName Tag name
|
|
1294
1748
|
* @param {*} [options] Override http request option.
|
|
1295
1749
|
* @throws {RequiredError}
|
|
1296
1750
|
*/
|
|
1297
|
-
|
|
1298
|
-
return localVarFp.
|
|
1751
|
+
getEnvironmentTag(orgName, projectName, envName, tagName, options) {
|
|
1752
|
+
return localVarFp.getEnvironmentTag(orgName, projectName, envName, tagName, options).then((request) => request(axios, basePath));
|
|
1299
1753
|
},
|
|
1300
1754
|
/**
|
|
1301
1755
|
* List environment revisions
|
|
1302
1756
|
* @summary List environment revisions
|
|
1303
1757
|
* @param {string} orgName Organization name
|
|
1758
|
+
* @param {string} projectName Project name
|
|
1304
1759
|
* @param {string} envName Environment name
|
|
1305
1760
|
* @param {string} [after] after tag for pagination
|
|
1306
1761
|
* @param {number} [count] limit of tags to return
|
|
1307
1762
|
* @param {*} [options] Override http request option.
|
|
1308
1763
|
* @throws {RequiredError}
|
|
1309
1764
|
*/
|
|
1310
|
-
listEnvironmentRevisionTags(orgName, envName, after, count, options) {
|
|
1311
|
-
return localVarFp.listEnvironmentRevisionTags(orgName, envName, after, count, options).then((request) => request(axios, basePath));
|
|
1765
|
+
listEnvironmentRevisionTags(orgName, projectName, envName, after, count, options) {
|
|
1766
|
+
return localVarFp.listEnvironmentRevisionTags(orgName, projectName, envName, after, count, options).then((request) => request(axios, basePath));
|
|
1312
1767
|
},
|
|
1313
1768
|
/**
|
|
1314
1769
|
* List environment revisions
|
|
1315
1770
|
* @summary List environment revisions
|
|
1316
1771
|
* @param {string} orgName Organization name
|
|
1772
|
+
* @param {string} projectName Project name
|
|
1317
1773
|
* @param {string} envName Environment name
|
|
1318
1774
|
* @param {number} [before] before revision number for pagination
|
|
1319
1775
|
* @param {number} [count] limit of revisions to return
|
|
1320
1776
|
* @param {*} [options] Override http request option.
|
|
1321
1777
|
* @throws {RequiredError}
|
|
1322
1778
|
*/
|
|
1323
|
-
listEnvironmentRevisions(orgName, envName, before, count, options) {
|
|
1324
|
-
return localVarFp.listEnvironmentRevisions(orgName, envName, before, count, options).then((request) => request(axios, basePath));
|
|
1779
|
+
listEnvironmentRevisions(orgName, projectName, envName, before, count, options) {
|
|
1780
|
+
return localVarFp.listEnvironmentRevisions(orgName, projectName, envName, before, count, options).then((request) => request(axios, basePath));
|
|
1781
|
+
},
|
|
1782
|
+
/**
|
|
1783
|
+
* List environment tags
|
|
1784
|
+
* @summary List environment tags
|
|
1785
|
+
* @param {string} orgName Organization name
|
|
1786
|
+
* @param {string} projectName Project name
|
|
1787
|
+
* @param {string} envName Environment name
|
|
1788
|
+
* @param {string} [after] after tag for pagination
|
|
1789
|
+
* @param {number} [count] limit of tags to return
|
|
1790
|
+
* @param {*} [options] Override http request option.
|
|
1791
|
+
* @throws {RequiredError}
|
|
1792
|
+
*/
|
|
1793
|
+
listEnvironmentTags(orgName, projectName, envName, after, count, options) {
|
|
1794
|
+
return localVarFp.listEnvironmentTags(orgName, projectName, envName, after, count, options).then((request) => request(axios, basePath));
|
|
1325
1795
|
},
|
|
1326
1796
|
/**
|
|
1327
1797
|
* List environments in the organization available to the current user
|
|
@@ -1338,76 +1808,96 @@ const EscApiFactory = function (configuration, basePath, axios) {
|
|
|
1338
1808
|
* Opens a session the given environment for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
1339
1809
|
* @summary Open an environment session
|
|
1340
1810
|
* @param {string} orgName Organization name
|
|
1811
|
+
* @param {string} projectName Project name
|
|
1341
1812
|
* @param {string} envName Environment name
|
|
1342
1813
|
* @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”.
|
|
1343
1814
|
* @param {*} [options] Override http request option.
|
|
1344
1815
|
* @throws {RequiredError}
|
|
1345
1816
|
*/
|
|
1346
|
-
openEnvironment(orgName, envName, duration, options) {
|
|
1347
|
-
return localVarFp.openEnvironment(orgName, envName, duration, options).then((request) => request(axios, basePath));
|
|
1817
|
+
openEnvironment(orgName, projectName, envName, duration, options) {
|
|
1818
|
+
return localVarFp.openEnvironment(orgName, projectName, envName, duration, options).then((request) => request(axios, basePath));
|
|
1348
1819
|
},
|
|
1349
1820
|
/**
|
|
1350
1821
|
* 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
1822
|
* @summary Open an environment session at a specific version
|
|
1352
1823
|
* @param {string} orgName Organization name
|
|
1824
|
+
* @param {string} projectName Project name
|
|
1353
1825
|
* @param {string} envName Environment name
|
|
1354
1826
|
* @param {string} version Revision or tag
|
|
1355
1827
|
* @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
1828
|
* @param {*} [options] Override http request option.
|
|
1357
1829
|
* @throws {RequiredError}
|
|
1358
1830
|
*/
|
|
1359
|
-
openEnvironmentAtVersion(orgName, envName, version, duration, options) {
|
|
1360
|
-
return localVarFp.openEnvironmentAtVersion(orgName, envName, version, duration, options).then((request) => request(axios, basePath));
|
|
1831
|
+
openEnvironmentAtVersion(orgName, projectName, envName, version, duration, options) {
|
|
1832
|
+
return localVarFp.openEnvironmentAtVersion(orgName, projectName, envName, version, duration, options).then((request) => request(axios, basePath));
|
|
1361
1833
|
},
|
|
1362
1834
|
/**
|
|
1363
1835
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
1364
1836
|
* @summary Read an open environment
|
|
1365
1837
|
* @param {string} orgName Organization name
|
|
1838
|
+
* @param {string} projectName Project name
|
|
1366
1839
|
* @param {string} envName Environment name
|
|
1367
1840
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
1368
1841
|
* @param {*} [options] Override http request option.
|
|
1369
1842
|
* @throws {RequiredError}
|
|
1370
1843
|
*/
|
|
1371
|
-
readOpenEnvironment(orgName, envName, openSessionID, options) {
|
|
1372
|
-
return localVarFp.readOpenEnvironment(orgName, envName, openSessionID, options).then((request) => request(axios, basePath));
|
|
1844
|
+
readOpenEnvironment(orgName, projectName, envName, openSessionID, options) {
|
|
1845
|
+
return localVarFp.readOpenEnvironment(orgName, projectName, envName, openSessionID, options).then((request) => request(axios, basePath));
|
|
1373
1846
|
},
|
|
1374
1847
|
/**
|
|
1375
1848
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
1376
1849
|
* @summary Read an open environment
|
|
1377
1850
|
* @param {string} orgName Organization name
|
|
1851
|
+
* @param {string} projectName Project name
|
|
1378
1852
|
* @param {string} envName Environment name
|
|
1379
1853
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
1380
1854
|
* @param {string} property Path to a specific property using Pulumi path syntax https://www.pulumi.com/docs/concepts/config/#structured-configuration
|
|
1381
1855
|
* @param {*} [options] Override http request option.
|
|
1382
1856
|
* @throws {RequiredError}
|
|
1383
1857
|
*/
|
|
1384
|
-
readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options) {
|
|
1385
|
-
return localVarFp.readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options).then((request) => request(axios, basePath));
|
|
1858
|
+
readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property, options) {
|
|
1859
|
+
return localVarFp.readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property, options).then((request) => request(axios, basePath));
|
|
1386
1860
|
},
|
|
1387
1861
|
/**
|
|
1388
1862
|
* Update environment revision tag
|
|
1389
1863
|
* @summary Update environment revision tag
|
|
1390
1864
|
* @param {string} orgName Organization name
|
|
1865
|
+
* @param {string} projectName Project name
|
|
1391
1866
|
* @param {string} envName Environment name
|
|
1392
1867
|
* @param {string} tagName Tag name
|
|
1393
1868
|
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1394
1869
|
* @param {*} [options] Override http request option.
|
|
1395
1870
|
* @throws {RequiredError}
|
|
1396
1871
|
*/
|
|
1397
|
-
updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1398
|
-
return localVarFp.updateEnvironmentRevisionTag(orgName, envName, tagName, updateEnvironmentRevisionTag, options).then((request) => request(axios, basePath));
|
|
1872
|
+
updateEnvironmentRevisionTag(orgName, projectName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
1873
|
+
return localVarFp.updateEnvironmentRevisionTag(orgName, projectName, envName, tagName, updateEnvironmentRevisionTag, options).then((request) => request(axios, basePath));
|
|
1874
|
+
},
|
|
1875
|
+
/**
|
|
1876
|
+
* Update an environment tag
|
|
1877
|
+
* @summary Update an environment tag
|
|
1878
|
+
* @param {string} orgName Organization name
|
|
1879
|
+
* @param {string} projectName Project name
|
|
1880
|
+
* @param {string} envName Environment name
|
|
1881
|
+
* @param {string} tagName Tag name
|
|
1882
|
+
* @param {UpdateEnvironmentTag} updateEnvironmentTag Update environment tag
|
|
1883
|
+
* @param {*} [options] Override http request option.
|
|
1884
|
+
* @throws {RequiredError}
|
|
1885
|
+
*/
|
|
1886
|
+
updateEnvironmentTag(orgName, projectName, envName, tagName, updateEnvironmentTag, options) {
|
|
1887
|
+
return localVarFp.updateEnvironmentTag(orgName, projectName, envName, tagName, updateEnvironmentTag, options).then((request) => request(axios, basePath));
|
|
1399
1888
|
},
|
|
1400
1889
|
/**
|
|
1401
1890
|
* Validates and updates the given environment\'s definition.
|
|
1402
1891
|
* @summary Update an existing environment with Yaml file
|
|
1403
1892
|
* @param {string} orgName Organization name
|
|
1893
|
+
* @param {string} projectName Project name
|
|
1404
1894
|
* @param {string} envName Environment name
|
|
1405
1895
|
* @param {string} body Environment Yaml content
|
|
1406
1896
|
* @param {*} [options] Override http request option.
|
|
1407
1897
|
* @throws {RequiredError}
|
|
1408
1898
|
*/
|
|
1409
|
-
updateEnvironmentYaml(orgName, envName, body, options) {
|
|
1410
|
-
return localVarFp.updateEnvironmentYaml(orgName, envName, body, options).then((request) => request(axios, basePath));
|
|
1899
|
+
updateEnvironmentYaml(orgName, projectName, envName, body, options) {
|
|
1900
|
+
return localVarFp.updateEnvironmentYaml(orgName, projectName, envName, body, options).then((request) => request(axios, basePath));
|
|
1411
1901
|
},
|
|
1412
1902
|
};
|
|
1413
1903
|
};
|
|
@@ -1435,119 +1925,169 @@ class EscApi extends base_1.BaseAPI {
|
|
|
1435
1925
|
* Creates an environment in the given org with the given name.
|
|
1436
1926
|
* @summary Create a new environment
|
|
1437
1927
|
* @param {string} orgName Organization name
|
|
1438
|
-
* @param {
|
|
1928
|
+
* @param {CreateEnvironment} createEnvironment Create Environment
|
|
1439
1929
|
* @param {*} [options] Override http request option.
|
|
1440
1930
|
* @throws {RequiredError}
|
|
1441
1931
|
* @memberof EscApi
|
|
1442
1932
|
*/
|
|
1443
|
-
createEnvironment(orgName,
|
|
1444
|
-
return (0, exports.EscApiFp)(this.configuration).createEnvironment(orgName,
|
|
1933
|
+
createEnvironment(orgName, createEnvironment, options) {
|
|
1934
|
+
return (0, exports.EscApiFp)(this.configuration).createEnvironment(orgName, createEnvironment, options).then((request) => request(this.axios, this.basePath));
|
|
1445
1935
|
}
|
|
1446
1936
|
/**
|
|
1447
1937
|
* Create environment revision tag
|
|
1448
1938
|
* @summary Create environment revision tag
|
|
1449
1939
|
* @param {string} orgName Organization name
|
|
1940
|
+
* @param {string} projectName Project name
|
|
1450
1941
|
* @param {string} envName Environment name
|
|
1451
|
-
* @param {
|
|
1452
|
-
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
1942
|
+
* @param {CreateEnvironmentRevisionTag} createEnvironmentRevisionTag Create environment revision tag
|
|
1453
1943
|
* @param {*} [options] Override http request option.
|
|
1454
1944
|
* @throws {RequiredError}
|
|
1455
1945
|
* @memberof EscApi
|
|
1456
1946
|
*/
|
|
1457
|
-
createEnvironmentRevisionTag(orgName,
|
|
1458
|
-
return (0, exports.EscApiFp)(this.configuration).createEnvironmentRevisionTag(orgName,
|
|
1947
|
+
createEnvironmentRevisionTag(orgName, projectName, envName, createEnvironmentRevisionTag, options) {
|
|
1948
|
+
return (0, exports.EscApiFp)(this.configuration).createEnvironmentRevisionTag(orgName, projectName, envName, createEnvironmentRevisionTag, options).then((request) => request(this.axios, this.basePath));
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* Create environment tag
|
|
1952
|
+
* @summary Create environment tag
|
|
1953
|
+
* @param {string} orgName Organization name
|
|
1954
|
+
* @param {string} projectName Project name
|
|
1955
|
+
* @param {string} envName Environment name
|
|
1956
|
+
* @param {CreateEnvironmentTag} createEnvironmentTag Create environment tag
|
|
1957
|
+
* @param {*} [options] Override http request option.
|
|
1958
|
+
* @throws {RequiredError}
|
|
1959
|
+
* @memberof EscApi
|
|
1960
|
+
*/
|
|
1961
|
+
createEnvironmentTag(orgName, projectName, envName, createEnvironmentTag, options) {
|
|
1962
|
+
return (0, exports.EscApiFp)(this.configuration).createEnvironmentTag(orgName, projectName, envName, createEnvironmentTag, options).then((request) => request(this.axios, this.basePath));
|
|
1459
1963
|
}
|
|
1460
1964
|
/**
|
|
1461
1965
|
* Reads the definition for the given environment with static secrets in plaintext
|
|
1462
1966
|
* @summary Reads the definition for the given environment with static secrets in plaintext
|
|
1463
1967
|
* @param {string} orgName Organization name
|
|
1968
|
+
* @param {string} projectName Project name
|
|
1464
1969
|
* @param {string} envName Environment name
|
|
1465
1970
|
* @param {*} [options] Override http request option.
|
|
1466
1971
|
* @throws {RequiredError}
|
|
1467
1972
|
* @memberof EscApi
|
|
1468
1973
|
*/
|
|
1469
|
-
decryptEnvironment(orgName, envName, options) {
|
|
1470
|
-
return (0, exports.EscApiFp)(this.configuration).decryptEnvironment(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
1974
|
+
decryptEnvironment(orgName, projectName, envName, options) {
|
|
1975
|
+
return (0, exports.EscApiFp)(this.configuration).decryptEnvironment(orgName, projectName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
1471
1976
|
}
|
|
1472
1977
|
/**
|
|
1473
1978
|
* Delete an environment
|
|
1474
1979
|
* @summary Delete an environment
|
|
1475
1980
|
* @param {string} orgName Organization name
|
|
1981
|
+
* @param {string} projectName Project name
|
|
1476
1982
|
* @param {string} envName Environment name
|
|
1477
1983
|
* @param {*} [options] Override http request option.
|
|
1478
1984
|
* @throws {RequiredError}
|
|
1479
1985
|
* @memberof EscApi
|
|
1480
1986
|
*/
|
|
1481
|
-
deleteEnvironment(orgName, envName, options) {
|
|
1482
|
-
return (0, exports.EscApiFp)(this.configuration).deleteEnvironment(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
1987
|
+
deleteEnvironment(orgName, projectName, envName, options) {
|
|
1988
|
+
return (0, exports.EscApiFp)(this.configuration).deleteEnvironment(orgName, projectName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
1483
1989
|
}
|
|
1484
1990
|
/**
|
|
1485
1991
|
* Delete environment revision tag
|
|
1486
1992
|
* @summary Delete environment revision tag
|
|
1487
1993
|
* @param {string} orgName Organization name
|
|
1994
|
+
* @param {string} projectName Project name
|
|
1995
|
+
* @param {string} envName Environment name
|
|
1996
|
+
* @param {string} tagName Tag name
|
|
1997
|
+
* @param {*} [options] Override http request option.
|
|
1998
|
+
* @throws {RequiredError}
|
|
1999
|
+
* @memberof EscApi
|
|
2000
|
+
*/
|
|
2001
|
+
deleteEnvironmentRevisionTag(orgName, projectName, envName, tagName, options) {
|
|
2002
|
+
return (0, exports.EscApiFp)(this.configuration).deleteEnvironmentRevisionTag(orgName, projectName, envName, tagName, options).then((request) => request(this.axios, this.basePath));
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Delete environment tag
|
|
2006
|
+
* @summary Delete environment tag
|
|
2007
|
+
* @param {string} orgName Organization name
|
|
2008
|
+
* @param {string} projectName Project name
|
|
1488
2009
|
* @param {string} envName Environment name
|
|
1489
2010
|
* @param {string} tagName Tag name
|
|
1490
2011
|
* @param {*} [options] Override http request option.
|
|
1491
2012
|
* @throws {RequiredError}
|
|
1492
2013
|
* @memberof EscApi
|
|
1493
2014
|
*/
|
|
1494
|
-
|
|
1495
|
-
return (0, exports.EscApiFp)(this.configuration).
|
|
2015
|
+
deleteEnvironmentTag(orgName, projectName, envName, tagName, options) {
|
|
2016
|
+
return (0, exports.EscApiFp)(this.configuration).deleteEnvironmentTag(orgName, projectName, envName, tagName, options).then((request) => request(this.axios, this.basePath));
|
|
1496
2017
|
}
|
|
1497
2018
|
/**
|
|
1498
2019
|
* Read an environment
|
|
1499
2020
|
* @summary Read an environment
|
|
1500
2021
|
* @param {string} orgName Organization name
|
|
2022
|
+
* @param {string} projectName Project name
|
|
1501
2023
|
* @param {string} envName Environment name
|
|
1502
2024
|
* @param {*} [options] Override http request option.
|
|
1503
2025
|
* @throws {RequiredError}
|
|
1504
2026
|
* @memberof EscApi
|
|
1505
2027
|
*/
|
|
1506
|
-
getEnvironment(orgName, envName, options) {
|
|
1507
|
-
return (0, exports.EscApiFp)(this.configuration).getEnvironment(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
2028
|
+
getEnvironment(orgName, projectName, envName, options) {
|
|
2029
|
+
return (0, exports.EscApiFp)(this.configuration).getEnvironment(orgName, projectName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
1508
2030
|
}
|
|
1509
2031
|
/**
|
|
1510
2032
|
* Read an environmentat a specific revision or tag
|
|
1511
2033
|
* @summary Read an environment at a specific version
|
|
1512
2034
|
* @param {string} orgName Organization name
|
|
2035
|
+
* @param {string} projectName Project name
|
|
1513
2036
|
* @param {string} envName Environment name
|
|
1514
2037
|
* @param {string} version Revision or tag
|
|
1515
2038
|
* @param {*} [options] Override http request option.
|
|
1516
2039
|
* @throws {RequiredError}
|
|
1517
2040
|
* @memberof EscApi
|
|
1518
2041
|
*/
|
|
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));
|
|
2042
|
+
getEnvironmentAtVersion(orgName, projectName, envName, version, options) {
|
|
2043
|
+
return (0, exports.EscApiFp)(this.configuration).getEnvironmentAtVersion(orgName, projectName, envName, version, options).then((request) => request(this.axios, this.basePath));
|
|
1521
2044
|
}
|
|
1522
2045
|
/**
|
|
1523
2046
|
* Returns the ETag for the given environment if it exists.
|
|
1524
2047
|
* @summary Return an Environment ETag
|
|
1525
2048
|
* @param {string} orgName Organization name
|
|
2049
|
+
* @param {string} projectName Project name
|
|
1526
2050
|
* @param {string} envName Environment name
|
|
1527
2051
|
* @param {*} [options] Override http request option.
|
|
1528
2052
|
* @throws {RequiredError}
|
|
1529
2053
|
* @memberof EscApi
|
|
1530
2054
|
*/
|
|
1531
|
-
getEnvironmentETag(orgName, envName, options) {
|
|
1532
|
-
return (0, exports.EscApiFp)(this.configuration).getEnvironmentETag(orgName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
2055
|
+
getEnvironmentETag(orgName, projectName, envName, options) {
|
|
2056
|
+
return (0, exports.EscApiFp)(this.configuration).getEnvironmentETag(orgName, projectName, envName, options).then((request) => request(this.axios, this.basePath));
|
|
1533
2057
|
}
|
|
1534
2058
|
/**
|
|
1535
2059
|
* Read environment revision tag
|
|
1536
2060
|
* @summary Read environment revision tag
|
|
1537
2061
|
* @param {string} orgName Organization name
|
|
2062
|
+
* @param {string} projectName Project name
|
|
1538
2063
|
* @param {string} envName Environment name
|
|
1539
2064
|
* @param {string} tagName Tag name
|
|
1540
2065
|
* @param {*} [options] Override http request option.
|
|
1541
2066
|
* @throws {RequiredError}
|
|
1542
2067
|
* @memberof EscApi
|
|
1543
2068
|
*/
|
|
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));
|
|
2069
|
+
getEnvironmentRevisionTag(orgName, projectName, envName, tagName, options) {
|
|
2070
|
+
return (0, exports.EscApiFp)(this.configuration).getEnvironmentRevisionTag(orgName, projectName, envName, tagName, options).then((request) => request(this.axios, this.basePath));
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Read an environment tag
|
|
2074
|
+
* @summary Read an environment tag
|
|
2075
|
+
* @param {string} orgName Organization name
|
|
2076
|
+
* @param {string} projectName Project name
|
|
2077
|
+
* @param {string} envName Environment name
|
|
2078
|
+
* @param {string} tagName Tag name
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
* @memberof EscApi
|
|
2082
|
+
*/
|
|
2083
|
+
getEnvironmentTag(orgName, projectName, envName, tagName, options) {
|
|
2084
|
+
return (0, exports.EscApiFp)(this.configuration).getEnvironmentTag(orgName, projectName, envName, tagName, options).then((request) => request(this.axios, this.basePath));
|
|
1546
2085
|
}
|
|
1547
2086
|
/**
|
|
1548
2087
|
* List environment revisions
|
|
1549
2088
|
* @summary List environment revisions
|
|
1550
2089
|
* @param {string} orgName Organization name
|
|
2090
|
+
* @param {string} projectName Project name
|
|
1551
2091
|
* @param {string} envName Environment name
|
|
1552
2092
|
* @param {string} [after] after tag for pagination
|
|
1553
2093
|
* @param {number} [count] limit of tags to return
|
|
@@ -1555,13 +2095,14 @@ class EscApi extends base_1.BaseAPI {
|
|
|
1555
2095
|
* @throws {RequiredError}
|
|
1556
2096
|
* @memberof EscApi
|
|
1557
2097
|
*/
|
|
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));
|
|
2098
|
+
listEnvironmentRevisionTags(orgName, projectName, envName, after, count, options) {
|
|
2099
|
+
return (0, exports.EscApiFp)(this.configuration).listEnvironmentRevisionTags(orgName, projectName, envName, after, count, options).then((request) => request(this.axios, this.basePath));
|
|
1560
2100
|
}
|
|
1561
2101
|
/**
|
|
1562
2102
|
* List environment revisions
|
|
1563
2103
|
* @summary List environment revisions
|
|
1564
2104
|
* @param {string} orgName Organization name
|
|
2105
|
+
* @param {string} projectName Project name
|
|
1565
2106
|
* @param {string} envName Environment name
|
|
1566
2107
|
* @param {number} [before] before revision number for pagination
|
|
1567
2108
|
* @param {number} [count] limit of revisions to return
|
|
@@ -1569,8 +2110,23 @@ class EscApi extends base_1.BaseAPI {
|
|
|
1569
2110
|
* @throws {RequiredError}
|
|
1570
2111
|
* @memberof EscApi
|
|
1571
2112
|
*/
|
|
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));
|
|
2113
|
+
listEnvironmentRevisions(orgName, projectName, envName, before, count, options) {
|
|
2114
|
+
return (0, exports.EscApiFp)(this.configuration).listEnvironmentRevisions(orgName, projectName, envName, before, count, options).then((request) => request(this.axios, this.basePath));
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* List environment tags
|
|
2118
|
+
* @summary List environment tags
|
|
2119
|
+
* @param {string} orgName Organization name
|
|
2120
|
+
* @param {string} projectName Project name
|
|
2121
|
+
* @param {string} envName Environment name
|
|
2122
|
+
* @param {string} [after] after tag for pagination
|
|
2123
|
+
* @param {number} [count] limit of tags to return
|
|
2124
|
+
* @param {*} [options] Override http request option.
|
|
2125
|
+
* @throws {RequiredError}
|
|
2126
|
+
* @memberof EscApi
|
|
2127
|
+
*/
|
|
2128
|
+
listEnvironmentTags(orgName, projectName, envName, after, count, options) {
|
|
2129
|
+
return (0, exports.EscApiFp)(this.configuration).listEnvironmentTags(orgName, projectName, envName, after, count, options).then((request) => request(this.axios, this.basePath));
|
|
1574
2130
|
}
|
|
1575
2131
|
/**
|
|
1576
2132
|
* List environments in the organization available to the current user
|
|
@@ -1588,19 +2144,21 @@ class EscApi extends base_1.BaseAPI {
|
|
|
1588
2144
|
* Opens a session the given environment for the indicated duration. This returns a session id that can be used to then read values. The default duration is 1 hour.
|
|
1589
2145
|
* @summary Open an environment session
|
|
1590
2146
|
* @param {string} orgName Organization name
|
|
2147
|
+
* @param {string} projectName Project name
|
|
1591
2148
|
* @param {string} envName Environment name
|
|
1592
2149
|
* @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”.
|
|
1593
2150
|
* @param {*} [options] Override http request option.
|
|
1594
2151
|
* @throws {RequiredError}
|
|
1595
2152
|
* @memberof EscApi
|
|
1596
2153
|
*/
|
|
1597
|
-
openEnvironment(orgName, envName, duration, options) {
|
|
1598
|
-
return (0, exports.EscApiFp)(this.configuration).openEnvironment(orgName, envName, duration, options).then((request) => request(this.axios, this.basePath));
|
|
2154
|
+
openEnvironment(orgName, projectName, envName, duration, options) {
|
|
2155
|
+
return (0, exports.EscApiFp)(this.configuration).openEnvironment(orgName, projectName, envName, duration, options).then((request) => request(this.axios, this.basePath));
|
|
1599
2156
|
}
|
|
1600
2157
|
/**
|
|
1601
2158
|
* 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
2159
|
* @summary Open an environment session at a specific version
|
|
1603
2160
|
* @param {string} orgName Organization name
|
|
2161
|
+
* @param {string} projectName Project name
|
|
1604
2162
|
* @param {string} envName Environment name
|
|
1605
2163
|
* @param {string} version Revision or tag
|
|
1606
2164
|
* @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”.
|
|
@@ -1608,26 +2166,28 @@ class EscApi extends base_1.BaseAPI {
|
|
|
1608
2166
|
* @throws {RequiredError}
|
|
1609
2167
|
* @memberof EscApi
|
|
1610
2168
|
*/
|
|
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));
|
|
2169
|
+
openEnvironmentAtVersion(orgName, projectName, envName, version, duration, options) {
|
|
2170
|
+
return (0, exports.EscApiFp)(this.configuration).openEnvironmentAtVersion(orgName, projectName, envName, version, duration, options).then((request) => request(this.axios, this.basePath));
|
|
1613
2171
|
}
|
|
1614
2172
|
/**
|
|
1615
2173
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
1616
2174
|
* @summary Read an open environment
|
|
1617
2175
|
* @param {string} orgName Organization name
|
|
2176
|
+
* @param {string} projectName Project name
|
|
1618
2177
|
* @param {string} envName Environment name
|
|
1619
2178
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
1620
2179
|
* @param {*} [options] Override http request option.
|
|
1621
2180
|
* @throws {RequiredError}
|
|
1622
2181
|
* @memberof EscApi
|
|
1623
2182
|
*/
|
|
1624
|
-
readOpenEnvironment(orgName, envName, openSessionID, options) {
|
|
1625
|
-
return (0, exports.EscApiFp)(this.configuration).readOpenEnvironment(orgName, envName, openSessionID, options).then((request) => request(this.axios, this.basePath));
|
|
2183
|
+
readOpenEnvironment(orgName, projectName, envName, openSessionID, options) {
|
|
2184
|
+
return (0, exports.EscApiFp)(this.configuration).readOpenEnvironment(orgName, projectName, envName, openSessionID, options).then((request) => request(this.axios, this.basePath));
|
|
1626
2185
|
}
|
|
1627
2186
|
/**
|
|
1628
2187
|
* Reads and decrypts secrets including retrieving dynamic secrets from providers.
|
|
1629
2188
|
* @summary Read an open environment
|
|
1630
2189
|
* @param {string} orgName Organization name
|
|
2190
|
+
* @param {string} projectName Project name
|
|
1631
2191
|
* @param {string} envName Environment name
|
|
1632
2192
|
* @param {string} openSessionID Open session ID returned from environment open
|
|
1633
2193
|
* @param {string} property Path to a specific property using Pulumi path syntax https://www.pulumi.com/docs/concepts/config/#structured-configuration
|
|
@@ -1635,13 +2195,14 @@ class EscApi extends base_1.BaseAPI {
|
|
|
1635
2195
|
* @throws {RequiredError}
|
|
1636
2196
|
* @memberof EscApi
|
|
1637
2197
|
*/
|
|
1638
|
-
readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options) {
|
|
1639
|
-
return (0, exports.EscApiFp)(this.configuration).readOpenEnvironmentProperty(orgName, envName, openSessionID, property, options).then((request) => request(this.axios, this.basePath));
|
|
2198
|
+
readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property, options) {
|
|
2199
|
+
return (0, exports.EscApiFp)(this.configuration).readOpenEnvironmentProperty(orgName, projectName, envName, openSessionID, property, options).then((request) => request(this.axios, this.basePath));
|
|
1640
2200
|
}
|
|
1641
2201
|
/**
|
|
1642
2202
|
* Update environment revision tag
|
|
1643
2203
|
* @summary Update environment revision tag
|
|
1644
2204
|
* @param {string} orgName Organization name
|
|
2205
|
+
* @param {string} projectName Project name
|
|
1645
2206
|
* @param {string} envName Environment name
|
|
1646
2207
|
* @param {string} tagName Tag name
|
|
1647
2208
|
* @param {UpdateEnvironmentRevisionTag} updateEnvironmentRevisionTag Update environment revision tag
|
|
@@ -1649,21 +2210,37 @@ class EscApi extends base_1.BaseAPI {
|
|
|
1649
2210
|
* @throws {RequiredError}
|
|
1650
2211
|
* @memberof EscApi
|
|
1651
2212
|
*/
|
|
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));
|
|
2213
|
+
updateEnvironmentRevisionTag(orgName, projectName, envName, tagName, updateEnvironmentRevisionTag, options) {
|
|
2214
|
+
return (0, exports.EscApiFp)(this.configuration).updateEnvironmentRevisionTag(orgName, projectName, envName, tagName, updateEnvironmentRevisionTag, options).then((request) => request(this.axios, this.basePath));
|
|
2215
|
+
}
|
|
2216
|
+
/**
|
|
2217
|
+
* Update an environment tag
|
|
2218
|
+
* @summary Update an environment tag
|
|
2219
|
+
* @param {string} orgName Organization name
|
|
2220
|
+
* @param {string} projectName Project name
|
|
2221
|
+
* @param {string} envName Environment name
|
|
2222
|
+
* @param {string} tagName Tag name
|
|
2223
|
+
* @param {UpdateEnvironmentTag} updateEnvironmentTag Update environment tag
|
|
2224
|
+
* @param {*} [options] Override http request option.
|
|
2225
|
+
* @throws {RequiredError}
|
|
2226
|
+
* @memberof EscApi
|
|
2227
|
+
*/
|
|
2228
|
+
updateEnvironmentTag(orgName, projectName, envName, tagName, updateEnvironmentTag, options) {
|
|
2229
|
+
return (0, exports.EscApiFp)(this.configuration).updateEnvironmentTag(orgName, projectName, envName, tagName, updateEnvironmentTag, options).then((request) => request(this.axios, this.basePath));
|
|
1654
2230
|
}
|
|
1655
2231
|
/**
|
|
1656
2232
|
* Validates and updates the given environment\'s definition.
|
|
1657
2233
|
* @summary Update an existing environment with Yaml file
|
|
1658
2234
|
* @param {string} orgName Organization name
|
|
2235
|
+
* @param {string} projectName Project name
|
|
1659
2236
|
* @param {string} envName Environment name
|
|
1660
2237
|
* @param {string} body Environment Yaml content
|
|
1661
2238
|
* @param {*} [options] Override http request option.
|
|
1662
2239
|
* @throws {RequiredError}
|
|
1663
2240
|
* @memberof EscApi
|
|
1664
2241
|
*/
|
|
1665
|
-
updateEnvironmentYaml(orgName, envName, body, options) {
|
|
1666
|
-
return (0, exports.EscApiFp)(this.configuration).updateEnvironmentYaml(orgName, envName, body, options).then((request) => request(this.axios, this.basePath));
|
|
2242
|
+
updateEnvironmentYaml(orgName, projectName, envName, body, options) {
|
|
2243
|
+
return (0, exports.EscApiFp)(this.configuration).updateEnvironmentYaml(orgName, projectName, envName, body, options).then((request) => request(this.axios, this.basePath));
|
|
1667
2244
|
}
|
|
1668
2245
|
}
|
|
1669
2246
|
exports.EscApi = EscApi;
|