qovery-typescript-axios 1.1.591 → 1.1.593
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/api.ts +269 -1
- package/dist/api.d.ts +126 -0
- package/dist/api.js +253 -2
- package/dist/esm/api.d.ts +126 -0
- package/dist/esm/api.js +248 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -38,7 +38,8 @@ export const APIVariableScopeEnum = {
|
|
|
38
38
|
PROJECT: 'PROJECT',
|
|
39
39
|
CONTAINER: 'CONTAINER',
|
|
40
40
|
JOB: 'JOB',
|
|
41
|
-
HELM: 'HELM'
|
|
41
|
+
HELM: 'HELM',
|
|
42
|
+
TERRAFORM: 'TERRAFORM'
|
|
42
43
|
};
|
|
43
44
|
/**
|
|
44
45
|
* type of the environment variable (VALUE, FILE, ALIAS, OVERRIDE or BUIT_IN)
|
|
@@ -36994,6 +36995,111 @@ export class TerraformConfigurationApi extends BaseAPI {
|
|
|
36994
36995
|
return TerraformConfigurationApiFp(this.configuration).getTerraformAdvancedSettings(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
36995
36996
|
}
|
|
36996
36997
|
}
|
|
36998
|
+
/**
|
|
36999
|
+
* TerraformDeploymentHistoryApi - axios parameter creator
|
|
37000
|
+
* @export
|
|
37001
|
+
*/
|
|
37002
|
+
export const TerraformDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
37003
|
+
return {
|
|
37004
|
+
/**
|
|
37005
|
+
* Returns the 20 last terraform deployments
|
|
37006
|
+
* @summary List terraform deployments
|
|
37007
|
+
* @param {string} terraformId Terraform ID
|
|
37008
|
+
* @param {*} [options] Override http request option.
|
|
37009
|
+
* @throws {RequiredError}
|
|
37010
|
+
*/
|
|
37011
|
+
listTerraformDeploymentHistoryV2: (terraformId_1, ...args_1) => __awaiter(this, [terraformId_1, ...args_1], void 0, function* (terraformId, options = {}) {
|
|
37012
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37013
|
+
assertParamExists('listTerraformDeploymentHistoryV2', 'terraformId', terraformId);
|
|
37014
|
+
const localVarPath = `/terraform/{terraformId}/deploymentHistoryV2`
|
|
37015
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
37016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37017
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37018
|
+
let baseOptions;
|
|
37019
|
+
if (configuration) {
|
|
37020
|
+
baseOptions = configuration.baseOptions;
|
|
37021
|
+
}
|
|
37022
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
37023
|
+
const localVarHeaderParameter = {};
|
|
37024
|
+
const localVarQueryParameter = {};
|
|
37025
|
+
// authentication ApiKeyAuth required
|
|
37026
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
37027
|
+
// authentication bearerAuth required
|
|
37028
|
+
// http bearer authentication required
|
|
37029
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
37030
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37031
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37032
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37033
|
+
return {
|
|
37034
|
+
url: toPathString(localVarUrlObj),
|
|
37035
|
+
options: localVarRequestOptions,
|
|
37036
|
+
};
|
|
37037
|
+
}),
|
|
37038
|
+
};
|
|
37039
|
+
};
|
|
37040
|
+
/**
|
|
37041
|
+
* TerraformDeploymentHistoryApi - functional programming interface
|
|
37042
|
+
* @export
|
|
37043
|
+
*/
|
|
37044
|
+
export const TerraformDeploymentHistoryApiFp = function (configuration) {
|
|
37045
|
+
const localVarAxiosParamCreator = TerraformDeploymentHistoryApiAxiosParamCreator(configuration);
|
|
37046
|
+
return {
|
|
37047
|
+
/**
|
|
37048
|
+
* Returns the 20 last terraform deployments
|
|
37049
|
+
* @summary List terraform deployments
|
|
37050
|
+
* @param {string} terraformId Terraform ID
|
|
37051
|
+
* @param {*} [options] Override http request option.
|
|
37052
|
+
* @throws {RequiredError}
|
|
37053
|
+
*/
|
|
37054
|
+
listTerraformDeploymentHistoryV2(terraformId, options) {
|
|
37055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37056
|
+
var _a, _b, _c;
|
|
37057
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTerraformDeploymentHistoryV2(terraformId, options);
|
|
37058
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37059
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformDeploymentHistoryApi.listTerraformDeploymentHistoryV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37060
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37061
|
+
});
|
|
37062
|
+
},
|
|
37063
|
+
};
|
|
37064
|
+
};
|
|
37065
|
+
/**
|
|
37066
|
+
* TerraformDeploymentHistoryApi - factory interface
|
|
37067
|
+
* @export
|
|
37068
|
+
*/
|
|
37069
|
+
export const TerraformDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
|
|
37070
|
+
const localVarFp = TerraformDeploymentHistoryApiFp(configuration);
|
|
37071
|
+
return {
|
|
37072
|
+
/**
|
|
37073
|
+
* Returns the 20 last terraform deployments
|
|
37074
|
+
* @summary List terraform deployments
|
|
37075
|
+
* @param {string} terraformId Terraform ID
|
|
37076
|
+
* @param {*} [options] Override http request option.
|
|
37077
|
+
* @throws {RequiredError}
|
|
37078
|
+
*/
|
|
37079
|
+
listTerraformDeploymentHistoryV2(terraformId, options) {
|
|
37080
|
+
return localVarFp.listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(axios, basePath));
|
|
37081
|
+
},
|
|
37082
|
+
};
|
|
37083
|
+
};
|
|
37084
|
+
/**
|
|
37085
|
+
* TerraformDeploymentHistoryApi - object-oriented interface
|
|
37086
|
+
* @export
|
|
37087
|
+
* @class TerraformDeploymentHistoryApi
|
|
37088
|
+
* @extends {BaseAPI}
|
|
37089
|
+
*/
|
|
37090
|
+
export class TerraformDeploymentHistoryApi extends BaseAPI {
|
|
37091
|
+
/**
|
|
37092
|
+
* Returns the 20 last terraform deployments
|
|
37093
|
+
* @summary List terraform deployments
|
|
37094
|
+
* @param {string} terraformId Terraform ID
|
|
37095
|
+
* @param {*} [options] Override http request option.
|
|
37096
|
+
* @throws {RequiredError}
|
|
37097
|
+
* @memberof TerraformDeploymentHistoryApi
|
|
37098
|
+
*/
|
|
37099
|
+
listTerraformDeploymentHistoryV2(terraformId, options) {
|
|
37100
|
+
return TerraformDeploymentHistoryApiFp(this.configuration).listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
37101
|
+
}
|
|
37102
|
+
}
|
|
36997
37103
|
/**
|
|
36998
37104
|
* TerraformMainCallsApi - axios parameter creator
|
|
36999
37105
|
* @export
|
|
@@ -37253,6 +37359,43 @@ export class TerraformMainCallsApi extends BaseAPI {
|
|
|
37253
37359
|
*/
|
|
37254
37360
|
export const TerraformsApiAxiosParamCreator = function (configuration) {
|
|
37255
37361
|
return {
|
|
37362
|
+
/**
|
|
37363
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37364
|
+
* @summary Clone terraform
|
|
37365
|
+
* @param {string} terraformId Terraform ID
|
|
37366
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37367
|
+
* @param {*} [options] Override http request option.
|
|
37368
|
+
* @throws {RequiredError}
|
|
37369
|
+
*/
|
|
37370
|
+
cloneTerraform: (terraformId_1, cloneServiceRequest_1, ...args_1) => __awaiter(this, [terraformId_1, cloneServiceRequest_1, ...args_1], void 0, function* (terraformId, cloneServiceRequest, options = {}) {
|
|
37371
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37372
|
+
assertParamExists('cloneTerraform', 'terraformId', terraformId);
|
|
37373
|
+
const localVarPath = `/terraform/{terraformId}/clone`
|
|
37374
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
37375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37376
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37377
|
+
let baseOptions;
|
|
37378
|
+
if (configuration) {
|
|
37379
|
+
baseOptions = configuration.baseOptions;
|
|
37380
|
+
}
|
|
37381
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
37382
|
+
const localVarHeaderParameter = {};
|
|
37383
|
+
const localVarQueryParameter = {};
|
|
37384
|
+
// authentication ApiKeyAuth required
|
|
37385
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
37386
|
+
// authentication bearerAuth required
|
|
37387
|
+
// http bearer authentication required
|
|
37388
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
37389
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37390
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37391
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37392
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37393
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cloneServiceRequest, localVarRequestOptions, configuration);
|
|
37394
|
+
return {
|
|
37395
|
+
url: toPathString(localVarUrlObj),
|
|
37396
|
+
options: localVarRequestOptions,
|
|
37397
|
+
};
|
|
37398
|
+
}),
|
|
37256
37399
|
/**
|
|
37257
37400
|
*
|
|
37258
37401
|
* @summary Create a terraform
|
|
@@ -37290,6 +37433,36 @@ export const TerraformsApiAxiosParamCreator = function (configuration) {
|
|
|
37290
37433
|
options: localVarRequestOptions,
|
|
37291
37434
|
};
|
|
37292
37435
|
}),
|
|
37436
|
+
/**
|
|
37437
|
+
*
|
|
37438
|
+
* @summary List default terraform advanced settings
|
|
37439
|
+
* @param {*} [options] Override http request option.
|
|
37440
|
+
* @throws {RequiredError}
|
|
37441
|
+
*/
|
|
37442
|
+
getDefaultTerraformAdvancedSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
37443
|
+
const localVarPath = `/defaultTerraformAdvancedSettings:`;
|
|
37444
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37445
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37446
|
+
let baseOptions;
|
|
37447
|
+
if (configuration) {
|
|
37448
|
+
baseOptions = configuration.baseOptions;
|
|
37449
|
+
}
|
|
37450
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
37451
|
+
const localVarHeaderParameter = {};
|
|
37452
|
+
const localVarQueryParameter = {};
|
|
37453
|
+
// authentication ApiKeyAuth required
|
|
37454
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
37455
|
+
// authentication bearerAuth required
|
|
37456
|
+
// http bearer authentication required
|
|
37457
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
37458
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37460
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37461
|
+
return {
|
|
37462
|
+
url: toPathString(localVarUrlObj),
|
|
37463
|
+
options: localVarRequestOptions,
|
|
37464
|
+
};
|
|
37465
|
+
}),
|
|
37293
37466
|
/**
|
|
37294
37467
|
*
|
|
37295
37468
|
* @summary List terraforms
|
|
@@ -37333,6 +37506,23 @@ export const TerraformsApiAxiosParamCreator = function (configuration) {
|
|
|
37333
37506
|
export const TerraformsApiFp = function (configuration) {
|
|
37334
37507
|
const localVarAxiosParamCreator = TerraformsApiAxiosParamCreator(configuration);
|
|
37335
37508
|
return {
|
|
37509
|
+
/**
|
|
37510
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37511
|
+
* @summary Clone terraform
|
|
37512
|
+
* @param {string} terraformId Terraform ID
|
|
37513
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37514
|
+
* @param {*} [options] Override http request option.
|
|
37515
|
+
* @throws {RequiredError}
|
|
37516
|
+
*/
|
|
37517
|
+
cloneTerraform(terraformId, cloneServiceRequest, options) {
|
|
37518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37519
|
+
var _a, _b, _c;
|
|
37520
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneTerraform(terraformId, cloneServiceRequest, options);
|
|
37521
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37522
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformsApi.cloneTerraform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37523
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37524
|
+
});
|
|
37525
|
+
},
|
|
37336
37526
|
/**
|
|
37337
37527
|
*
|
|
37338
37528
|
* @summary Create a terraform
|
|
@@ -37350,6 +37540,21 @@ export const TerraformsApiFp = function (configuration) {
|
|
|
37350
37540
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37351
37541
|
});
|
|
37352
37542
|
},
|
|
37543
|
+
/**
|
|
37544
|
+
*
|
|
37545
|
+
* @summary List default terraform advanced settings
|
|
37546
|
+
* @param {*} [options] Override http request option.
|
|
37547
|
+
* @throws {RequiredError}
|
|
37548
|
+
*/
|
|
37549
|
+
getDefaultTerraformAdvancedSettings(options) {
|
|
37550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37551
|
+
var _a, _b, _c;
|
|
37552
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefaultTerraformAdvancedSettings(options);
|
|
37553
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37554
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformsApi.getDefaultTerraformAdvancedSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37555
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37556
|
+
});
|
|
37557
|
+
},
|
|
37353
37558
|
/**
|
|
37354
37559
|
*
|
|
37355
37560
|
* @summary List terraforms
|
|
@@ -37375,6 +37580,17 @@ export const TerraformsApiFp = function (configuration) {
|
|
|
37375
37580
|
export const TerraformsApiFactory = function (configuration, basePath, axios) {
|
|
37376
37581
|
const localVarFp = TerraformsApiFp(configuration);
|
|
37377
37582
|
return {
|
|
37583
|
+
/**
|
|
37584
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37585
|
+
* @summary Clone terraform
|
|
37586
|
+
* @param {string} terraformId Terraform ID
|
|
37587
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37588
|
+
* @param {*} [options] Override http request option.
|
|
37589
|
+
* @throws {RequiredError}
|
|
37590
|
+
*/
|
|
37591
|
+
cloneTerraform(terraformId, cloneServiceRequest, options) {
|
|
37592
|
+
return localVarFp.cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(axios, basePath));
|
|
37593
|
+
},
|
|
37378
37594
|
/**
|
|
37379
37595
|
*
|
|
37380
37596
|
* @summary Create a terraform
|
|
@@ -37386,6 +37602,15 @@ export const TerraformsApiFactory = function (configuration, basePath, axios) {
|
|
|
37386
37602
|
createTerraform(environmentId, terraformRequest, options) {
|
|
37387
37603
|
return localVarFp.createTerraform(environmentId, terraformRequest, options).then((request) => request(axios, basePath));
|
|
37388
37604
|
},
|
|
37605
|
+
/**
|
|
37606
|
+
*
|
|
37607
|
+
* @summary List default terraform advanced settings
|
|
37608
|
+
* @param {*} [options] Override http request option.
|
|
37609
|
+
* @throws {RequiredError}
|
|
37610
|
+
*/
|
|
37611
|
+
getDefaultTerraformAdvancedSettings(options) {
|
|
37612
|
+
return localVarFp.getDefaultTerraformAdvancedSettings(options).then((request) => request(axios, basePath));
|
|
37613
|
+
},
|
|
37389
37614
|
/**
|
|
37390
37615
|
*
|
|
37391
37616
|
* @summary List terraforms
|
|
@@ -37405,6 +37630,18 @@ export const TerraformsApiFactory = function (configuration, basePath, axios) {
|
|
|
37405
37630
|
* @extends {BaseAPI}
|
|
37406
37631
|
*/
|
|
37407
37632
|
export class TerraformsApi extends BaseAPI {
|
|
37633
|
+
/**
|
|
37634
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37635
|
+
* @summary Clone terraform
|
|
37636
|
+
* @param {string} terraformId Terraform ID
|
|
37637
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37638
|
+
* @param {*} [options] Override http request option.
|
|
37639
|
+
* @throws {RequiredError}
|
|
37640
|
+
* @memberof TerraformsApi
|
|
37641
|
+
*/
|
|
37642
|
+
cloneTerraform(terraformId, cloneServiceRequest, options) {
|
|
37643
|
+
return TerraformsApiFp(this.configuration).cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37644
|
+
}
|
|
37408
37645
|
/**
|
|
37409
37646
|
*
|
|
37410
37647
|
* @summary Create a terraform
|
|
@@ -37417,6 +37654,16 @@ export class TerraformsApi extends BaseAPI {
|
|
|
37417
37654
|
createTerraform(environmentId, terraformRequest, options) {
|
|
37418
37655
|
return TerraformsApiFp(this.configuration).createTerraform(environmentId, terraformRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37419
37656
|
}
|
|
37657
|
+
/**
|
|
37658
|
+
*
|
|
37659
|
+
* @summary List default terraform advanced settings
|
|
37660
|
+
* @param {*} [options] Override http request option.
|
|
37661
|
+
* @throws {RequiredError}
|
|
37662
|
+
* @memberof TerraformsApi
|
|
37663
|
+
*/
|
|
37664
|
+
getDefaultTerraformAdvancedSettings(options) {
|
|
37665
|
+
return TerraformsApiFp(this.configuration).getDefaultTerraformAdvancedSettings(options).then((request) => request(this.axios, this.basePath));
|
|
37666
|
+
}
|
|
37420
37667
|
/**
|
|
37421
37668
|
*
|
|
37422
37669
|
* @summary List terraforms
|