qovery-typescript-axios 1.1.161 → 1.1.163
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 +117 -79
- package/dist/api.d.ts +63 -37
- package/dist/api.js +114 -76
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -17524,49 +17524,6 @@ export const ApplicationsApiAxiosParamCreator = function (configuration?: Config
|
|
|
17524
17524
|
options: localVarRequestOptions,
|
|
17525
17525
|
};
|
|
17526
17526
|
},
|
|
17527
|
-
/**
|
|
17528
|
-
*
|
|
17529
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
17530
|
-
* @param {string} environmentId Environment ID
|
|
17531
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
17532
|
-
* @param {*} [options] Override http request option.
|
|
17533
|
-
* @throws {RequiredError}
|
|
17534
|
-
*/
|
|
17535
|
-
exportEnvironmentConfigurationIntoTerraform: async (environmentId: string, exportSecrets?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17536
|
-
// verify required parameter 'environmentId' is not null or undefined
|
|
17537
|
-
assertParamExists('exportEnvironmentConfigurationIntoTerraform', 'environmentId', environmentId)
|
|
17538
|
-
const localVarPath = `/environment/{environmentId}/terraformExport`
|
|
17539
|
-
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
17540
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17541
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17542
|
-
let baseOptions;
|
|
17543
|
-
if (configuration) {
|
|
17544
|
-
baseOptions = configuration.baseOptions;
|
|
17545
|
-
}
|
|
17546
|
-
|
|
17547
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17548
|
-
const localVarHeaderParameter = {} as any;
|
|
17549
|
-
const localVarQueryParameter = {} as any;
|
|
17550
|
-
|
|
17551
|
-
// authentication bearerAuth required
|
|
17552
|
-
// http bearer authentication required
|
|
17553
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17554
|
-
|
|
17555
|
-
if (exportSecrets !== undefined) {
|
|
17556
|
-
localVarQueryParameter['exportSecrets'] = exportSecrets;
|
|
17557
|
-
}
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
|
|
17561
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17562
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17563
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17564
|
-
|
|
17565
|
-
return {
|
|
17566
|
-
url: toPathString(localVarUrlObj),
|
|
17567
|
-
options: localVarRequestOptions,
|
|
17568
|
-
};
|
|
17569
|
-
},
|
|
17570
17527
|
/**
|
|
17571
17528
|
*
|
|
17572
17529
|
* @summary List default application advanced settings
|
|
@@ -17813,18 +17770,6 @@ export const ApplicationsApiFp = function(configuration?: Configuration) {
|
|
|
17813
17770
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createApplication(environmentId, applicationRequest, options);
|
|
17814
17771
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17815
17772
|
},
|
|
17816
|
-
/**
|
|
17817
|
-
*
|
|
17818
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
17819
|
-
* @param {string} environmentId Environment ID
|
|
17820
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
17821
|
-
* @param {*} [options] Override http request option.
|
|
17822
|
-
* @throws {RequiredError}
|
|
17823
|
-
*/
|
|
17824
|
-
async exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
17825
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options);
|
|
17826
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17827
|
-
},
|
|
17828
17773
|
/**
|
|
17829
17774
|
*
|
|
17830
17775
|
* @summary List default application advanced settings
|
|
@@ -17911,17 +17856,6 @@ export const ApplicationsApiFactory = function (configuration?: Configuration, b
|
|
|
17911
17856
|
createApplication(environmentId: string, applicationRequest?: ApplicationRequest, options?: any): AxiosPromise<Application> {
|
|
17912
17857
|
return localVarFp.createApplication(environmentId, applicationRequest, options).then((request) => request(axios, basePath));
|
|
17913
17858
|
},
|
|
17914
|
-
/**
|
|
17915
|
-
*
|
|
17916
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
17917
|
-
* @param {string} environmentId Environment ID
|
|
17918
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
17919
|
-
* @param {*} [options] Override http request option.
|
|
17920
|
-
* @throws {RequiredError}
|
|
17921
|
-
*/
|
|
17922
|
-
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: any): AxiosPromise<any> {
|
|
17923
|
-
return localVarFp.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(axios, basePath));
|
|
17924
|
-
},
|
|
17925
17859
|
/**
|
|
17926
17860
|
*
|
|
17927
17861
|
* @summary List default application advanced settings
|
|
@@ -18004,19 +17938,6 @@ export class ApplicationsApi extends BaseAPI {
|
|
|
18004
17938
|
return ApplicationsApiFp(this.configuration).createApplication(environmentId, applicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18005
17939
|
}
|
|
18006
17940
|
|
|
18007
|
-
/**
|
|
18008
|
-
*
|
|
18009
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
18010
|
-
* @param {string} environmentId Environment ID
|
|
18011
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
18012
|
-
* @param {*} [options] Override http request option.
|
|
18013
|
-
* @throws {RequiredError}
|
|
18014
|
-
* @memberof ApplicationsApi
|
|
18015
|
-
*/
|
|
18016
|
-
public exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig) {
|
|
18017
|
-
return ApplicationsApiFp(this.configuration).exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(this.axios, this.basePath));
|
|
18018
|
-
}
|
|
18019
|
-
|
|
18020
17941
|
/**
|
|
18021
17942
|
*
|
|
18022
17943
|
* @summary List default application advanced settings
|
|
@@ -32068,6 +31989,123 @@ export class EnvironmentDeploymentRuleApi extends BaseAPI {
|
|
|
32068
31989
|
}
|
|
32069
31990
|
|
|
32070
31991
|
|
|
31992
|
+
/**
|
|
31993
|
+
* EnvironmentExportApi - axios parameter creator
|
|
31994
|
+
* @export
|
|
31995
|
+
*/
|
|
31996
|
+
export const EnvironmentExportApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31997
|
+
return {
|
|
31998
|
+
/**
|
|
31999
|
+
*
|
|
32000
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
32001
|
+
* @param {string} environmentId Environment ID
|
|
32002
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
32003
|
+
* @param {*} [options] Override http request option.
|
|
32004
|
+
* @throws {RequiredError}
|
|
32005
|
+
*/
|
|
32006
|
+
exportEnvironmentConfigurationIntoTerraform: async (environmentId: string, exportSecrets?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32007
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
32008
|
+
assertParamExists('exportEnvironmentConfigurationIntoTerraform', 'environmentId', environmentId)
|
|
32009
|
+
const localVarPath = `/environment/{environmentId}/terraformExport`
|
|
32010
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
32011
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32012
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32013
|
+
let baseOptions;
|
|
32014
|
+
if (configuration) {
|
|
32015
|
+
baseOptions = configuration.baseOptions;
|
|
32016
|
+
}
|
|
32017
|
+
|
|
32018
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32019
|
+
const localVarHeaderParameter = {} as any;
|
|
32020
|
+
const localVarQueryParameter = {} as any;
|
|
32021
|
+
|
|
32022
|
+
// authentication bearerAuth required
|
|
32023
|
+
// http bearer authentication required
|
|
32024
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32025
|
+
|
|
32026
|
+
if (exportSecrets !== undefined) {
|
|
32027
|
+
localVarQueryParameter['exportSecrets'] = exportSecrets;
|
|
32028
|
+
}
|
|
32029
|
+
|
|
32030
|
+
|
|
32031
|
+
|
|
32032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32034
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32035
|
+
|
|
32036
|
+
return {
|
|
32037
|
+
url: toPathString(localVarUrlObj),
|
|
32038
|
+
options: localVarRequestOptions,
|
|
32039
|
+
};
|
|
32040
|
+
},
|
|
32041
|
+
}
|
|
32042
|
+
};
|
|
32043
|
+
|
|
32044
|
+
/**
|
|
32045
|
+
* EnvironmentExportApi - functional programming interface
|
|
32046
|
+
* @export
|
|
32047
|
+
*/
|
|
32048
|
+
export const EnvironmentExportApiFp = function(configuration?: Configuration) {
|
|
32049
|
+
const localVarAxiosParamCreator = EnvironmentExportApiAxiosParamCreator(configuration)
|
|
32050
|
+
return {
|
|
32051
|
+
/**
|
|
32052
|
+
*
|
|
32053
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
32054
|
+
* @param {string} environmentId Environment ID
|
|
32055
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
32056
|
+
* @param {*} [options] Override http request option.
|
|
32057
|
+
* @throws {RequiredError}
|
|
32058
|
+
*/
|
|
32059
|
+
async exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
32060
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options);
|
|
32061
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32062
|
+
},
|
|
32063
|
+
}
|
|
32064
|
+
};
|
|
32065
|
+
|
|
32066
|
+
/**
|
|
32067
|
+
* EnvironmentExportApi - factory interface
|
|
32068
|
+
* @export
|
|
32069
|
+
*/
|
|
32070
|
+
export const EnvironmentExportApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32071
|
+
const localVarFp = EnvironmentExportApiFp(configuration)
|
|
32072
|
+
return {
|
|
32073
|
+
/**
|
|
32074
|
+
*
|
|
32075
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
32076
|
+
* @param {string} environmentId Environment ID
|
|
32077
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
32078
|
+
* @param {*} [options] Override http request option.
|
|
32079
|
+
* @throws {RequiredError}
|
|
32080
|
+
*/
|
|
32081
|
+
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: any): AxiosPromise<any> {
|
|
32082
|
+
return localVarFp.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(axios, basePath));
|
|
32083
|
+
},
|
|
32084
|
+
};
|
|
32085
|
+
};
|
|
32086
|
+
|
|
32087
|
+
/**
|
|
32088
|
+
* EnvironmentExportApi - object-oriented interface
|
|
32089
|
+
* @export
|
|
32090
|
+
* @class EnvironmentExportApi
|
|
32091
|
+
* @extends {BaseAPI}
|
|
32092
|
+
*/
|
|
32093
|
+
export class EnvironmentExportApi extends BaseAPI {
|
|
32094
|
+
/**
|
|
32095
|
+
*
|
|
32096
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
32097
|
+
* @param {string} environmentId Environment ID
|
|
32098
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
32099
|
+
* @param {*} [options] Override http request option.
|
|
32100
|
+
* @throws {RequiredError}
|
|
32101
|
+
* @memberof EnvironmentExportApi
|
|
32102
|
+
*/
|
|
32103
|
+
public exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig) {
|
|
32104
|
+
return EnvironmentExportApiFp(this.configuration).exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(this.axios, this.basePath));
|
|
32105
|
+
}
|
|
32106
|
+
}
|
|
32107
|
+
|
|
32108
|
+
|
|
32071
32109
|
/**
|
|
32072
32110
|
* EnvironmentLogsApi - axios parameter creator
|
|
32073
32111
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -15345,15 +15345,6 @@ export declare const ApplicationsApiAxiosParamCreator: (configuration?: Configur
|
|
|
15345
15345
|
* @throws {RequiredError}
|
|
15346
15346
|
*/
|
|
15347
15347
|
createApplication: (environmentId: string, applicationRequest?: ApplicationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
15348
|
-
/**
|
|
15349
|
-
*
|
|
15350
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
15351
|
-
* @param {string} environmentId Environment ID
|
|
15352
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
15353
|
-
* @param {*} [options] Override http request option.
|
|
15354
|
-
* @throws {RequiredError}
|
|
15355
|
-
*/
|
|
15356
|
-
exportEnvironmentConfigurationIntoTerraform: (environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
15357
15348
|
/**
|
|
15358
15349
|
*
|
|
15359
15350
|
* @summary List default application advanced settings
|
|
@@ -15416,15 +15407,6 @@ export declare const ApplicationsApiFp: (configuration?: Configuration) => {
|
|
|
15416
15407
|
* @throws {RequiredError}
|
|
15417
15408
|
*/
|
|
15418
15409
|
createApplication(environmentId: string, applicationRequest?: ApplicationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
|
|
15419
|
-
/**
|
|
15420
|
-
*
|
|
15421
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
15422
|
-
* @param {string} environmentId Environment ID
|
|
15423
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
15424
|
-
* @param {*} [options] Override http request option.
|
|
15425
|
-
* @throws {RequiredError}
|
|
15426
|
-
*/
|
|
15427
|
-
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
15428
15410
|
/**
|
|
15429
15411
|
*
|
|
15430
15412
|
* @summary List default application advanced settings
|
|
@@ -15487,15 +15469,6 @@ export declare const ApplicationsApiFactory: (configuration?: Configuration, bas
|
|
|
15487
15469
|
* @throws {RequiredError}
|
|
15488
15470
|
*/
|
|
15489
15471
|
createApplication(environmentId: string, applicationRequest?: ApplicationRequest, options?: any): AxiosPromise<Application>;
|
|
15490
|
-
/**
|
|
15491
|
-
*
|
|
15492
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
15493
|
-
* @param {string} environmentId Environment ID
|
|
15494
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
15495
|
-
* @param {*} [options] Override http request option.
|
|
15496
|
-
* @throws {RequiredError}
|
|
15497
|
-
*/
|
|
15498
|
-
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: any): AxiosPromise<any>;
|
|
15499
15472
|
/**
|
|
15500
15473
|
*
|
|
15501
15474
|
* @summary List default application advanced settings
|
|
@@ -15561,16 +15534,6 @@ export declare class ApplicationsApi extends BaseAPI {
|
|
|
15561
15534
|
* @memberof ApplicationsApi
|
|
15562
15535
|
*/
|
|
15563
15536
|
createApplication(environmentId: string, applicationRequest?: ApplicationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Application>>;
|
|
15564
|
-
/**
|
|
15565
|
-
*
|
|
15566
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
15567
|
-
* @param {string} environmentId Environment ID
|
|
15568
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
15569
|
-
* @param {*} [options] Override http request option.
|
|
15570
|
-
* @throws {RequiredError}
|
|
15571
|
-
* @memberof ApplicationsApi
|
|
15572
|
-
*/
|
|
15573
|
-
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any>>;
|
|
15574
15537
|
/**
|
|
15575
15538
|
*
|
|
15576
15539
|
* @summary List default application advanced settings
|
|
@@ -22423,6 +22386,69 @@ export declare class EnvironmentDeploymentRuleApi extends BaseAPI {
|
|
|
22423
22386
|
*/
|
|
22424
22387
|
getEnvironmentDeploymentRule(environmentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EnvironmentDeploymentRule>>;
|
|
22425
22388
|
}
|
|
22389
|
+
/**
|
|
22390
|
+
* EnvironmentExportApi - axios parameter creator
|
|
22391
|
+
* @export
|
|
22392
|
+
*/
|
|
22393
|
+
export declare const EnvironmentExportApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22394
|
+
/**
|
|
22395
|
+
*
|
|
22396
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
22397
|
+
* @param {string} environmentId Environment ID
|
|
22398
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
22399
|
+
* @param {*} [options] Override http request option.
|
|
22400
|
+
* @throws {RequiredError}
|
|
22401
|
+
*/
|
|
22402
|
+
exportEnvironmentConfigurationIntoTerraform: (environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22403
|
+
};
|
|
22404
|
+
/**
|
|
22405
|
+
* EnvironmentExportApi - functional programming interface
|
|
22406
|
+
* @export
|
|
22407
|
+
*/
|
|
22408
|
+
export declare const EnvironmentExportApiFp: (configuration?: Configuration) => {
|
|
22409
|
+
/**
|
|
22410
|
+
*
|
|
22411
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
22412
|
+
* @param {string} environmentId Environment ID
|
|
22413
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
22414
|
+
* @param {*} [options] Override http request option.
|
|
22415
|
+
* @throws {RequiredError}
|
|
22416
|
+
*/
|
|
22417
|
+
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
22418
|
+
};
|
|
22419
|
+
/**
|
|
22420
|
+
* EnvironmentExportApi - factory interface
|
|
22421
|
+
* @export
|
|
22422
|
+
*/
|
|
22423
|
+
export declare const EnvironmentExportApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
22424
|
+
/**
|
|
22425
|
+
*
|
|
22426
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
22427
|
+
* @param {string} environmentId Environment ID
|
|
22428
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
22429
|
+
* @param {*} [options] Override http request option.
|
|
22430
|
+
* @throws {RequiredError}
|
|
22431
|
+
*/
|
|
22432
|
+
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: any): AxiosPromise<any>;
|
|
22433
|
+
};
|
|
22434
|
+
/**
|
|
22435
|
+
* EnvironmentExportApi - object-oriented interface
|
|
22436
|
+
* @export
|
|
22437
|
+
* @class EnvironmentExportApi
|
|
22438
|
+
* @extends {BaseAPI}
|
|
22439
|
+
*/
|
|
22440
|
+
export declare class EnvironmentExportApi extends BaseAPI {
|
|
22441
|
+
/**
|
|
22442
|
+
*
|
|
22443
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
22444
|
+
* @param {string} environmentId Environment ID
|
|
22445
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
22446
|
+
* @param {*} [options] Override http request option.
|
|
22447
|
+
* @throws {RequiredError}
|
|
22448
|
+
* @memberof EnvironmentExportApi
|
|
22449
|
+
*/
|
|
22450
|
+
exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any>>;
|
|
22451
|
+
}
|
|
22426
22452
|
/**
|
|
22427
22453
|
* EnvironmentLogsApi - axios parameter creator
|
|
22428
22454
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -26,9 +26,9 @@ exports.ServiceTypeEnum = exports.ServiceDeploymentStatusEnum = exports.RewardCl
|
|
|
26
26
|
exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMetricsApi = exports.ApplicationMetricsApiFactory = exports.ApplicationMetricsApiFp = exports.ApplicationMetricsApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEventApi = exports.ApplicationEventApiFactory = exports.ApplicationEventApiFp = exports.ApplicationEventApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StatusKindEnum = exports.StateEnum = void 0;
|
|
27
27
|
exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BackupsApi = exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = void 0;
|
|
28
28
|
exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = void 0;
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.EnvironmentExportApiFp = exports.EnvironmentExportApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentStageMainCallsApi = exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = exports.DeploymentStageMainCallsApiAxiosParamCreator = void 0;
|
|
30
|
+
exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMetricsApi = exports.JobMetricsApiFactory = exports.JobMetricsApiFp = exports.JobMetricsApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = exports.JobConfigurationApiFp = exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = void 0;
|
|
31
|
+
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -4516,42 +4516,6 @@ const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
4516
4516
|
options: localVarRequestOptions,
|
|
4517
4517
|
};
|
|
4518
4518
|
}),
|
|
4519
|
-
/**
|
|
4520
|
-
*
|
|
4521
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
4522
|
-
* @param {string} environmentId Environment ID
|
|
4523
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
4524
|
-
* @param {*} [options] Override http request option.
|
|
4525
|
-
* @throws {RequiredError}
|
|
4526
|
-
*/
|
|
4527
|
-
exportEnvironmentConfigurationIntoTerraform: (environmentId, exportSecrets, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4528
|
-
// verify required parameter 'environmentId' is not null or undefined
|
|
4529
|
-
(0, common_1.assertParamExists)('exportEnvironmentConfigurationIntoTerraform', 'environmentId', environmentId);
|
|
4530
|
-
const localVarPath = `/environment/{environmentId}/terraformExport`
|
|
4531
|
-
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
4532
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4533
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4534
|
-
let baseOptions;
|
|
4535
|
-
if (configuration) {
|
|
4536
|
-
baseOptions = configuration.baseOptions;
|
|
4537
|
-
}
|
|
4538
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4539
|
-
const localVarHeaderParameter = {};
|
|
4540
|
-
const localVarQueryParameter = {};
|
|
4541
|
-
// authentication bearerAuth required
|
|
4542
|
-
// http bearer authentication required
|
|
4543
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4544
|
-
if (exportSecrets !== undefined) {
|
|
4545
|
-
localVarQueryParameter['exportSecrets'] = exportSecrets;
|
|
4546
|
-
}
|
|
4547
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4548
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4549
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4550
|
-
return {
|
|
4551
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4552
|
-
options: localVarRequestOptions,
|
|
4553
|
-
};
|
|
4554
|
-
}),
|
|
4555
4519
|
/**
|
|
4556
4520
|
*
|
|
4557
4521
|
* @summary List default application advanced settings
|
|
@@ -4764,20 +4728,6 @@ const ApplicationsApiFp = function (configuration) {
|
|
|
4764
4728
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4765
4729
|
});
|
|
4766
4730
|
},
|
|
4767
|
-
/**
|
|
4768
|
-
*
|
|
4769
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
4770
|
-
* @param {string} environmentId Environment ID
|
|
4771
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
4772
|
-
* @param {*} [options] Override http request option.
|
|
4773
|
-
* @throws {RequiredError}
|
|
4774
|
-
*/
|
|
4775
|
-
exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options) {
|
|
4776
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4777
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options);
|
|
4778
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4779
|
-
});
|
|
4780
|
-
},
|
|
4781
4731
|
/**
|
|
4782
4732
|
*
|
|
4783
4733
|
* @summary List default application advanced settings
|
|
@@ -4876,17 +4826,6 @@ const ApplicationsApiFactory = function (configuration, basePath, axios) {
|
|
|
4876
4826
|
createApplication(environmentId, applicationRequest, options) {
|
|
4877
4827
|
return localVarFp.createApplication(environmentId, applicationRequest, options).then((request) => request(axios, basePath));
|
|
4878
4828
|
},
|
|
4879
|
-
/**
|
|
4880
|
-
*
|
|
4881
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
4882
|
-
* @param {string} environmentId Environment ID
|
|
4883
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
4884
|
-
* @param {*} [options] Override http request option.
|
|
4885
|
-
* @throws {RequiredError}
|
|
4886
|
-
*/
|
|
4887
|
-
exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options) {
|
|
4888
|
-
return localVarFp.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(axios, basePath));
|
|
4889
|
-
},
|
|
4890
4829
|
/**
|
|
4891
4830
|
*
|
|
4892
4831
|
* @summary List default application advanced settings
|
|
@@ -4968,18 +4907,6 @@ class ApplicationsApi extends base_1.BaseAPI {
|
|
|
4968
4907
|
createApplication(environmentId, applicationRequest, options) {
|
|
4969
4908
|
return (0, exports.ApplicationsApiFp)(this.configuration).createApplication(environmentId, applicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4970
4909
|
}
|
|
4971
|
-
/**
|
|
4972
|
-
*
|
|
4973
|
-
* @summary Export full environment and its resources into Terraform manifests
|
|
4974
|
-
* @param {string} environmentId Environment ID
|
|
4975
|
-
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
4976
|
-
* @param {*} [options] Override http request option.
|
|
4977
|
-
* @throws {RequiredError}
|
|
4978
|
-
* @memberof ApplicationsApi
|
|
4979
|
-
*/
|
|
4980
|
-
exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options) {
|
|
4981
|
-
return (0, exports.ApplicationsApiFp)(this.configuration).exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(this.axios, this.basePath));
|
|
4982
|
-
}
|
|
4983
4910
|
/**
|
|
4984
4911
|
*
|
|
4985
4912
|
* @summary List default application advanced settings
|
|
@@ -18109,6 +18036,117 @@ class EnvironmentDeploymentRuleApi extends base_1.BaseAPI {
|
|
|
18109
18036
|
}
|
|
18110
18037
|
}
|
|
18111
18038
|
exports.EnvironmentDeploymentRuleApi = EnvironmentDeploymentRuleApi;
|
|
18039
|
+
/**
|
|
18040
|
+
* EnvironmentExportApi - axios parameter creator
|
|
18041
|
+
* @export
|
|
18042
|
+
*/
|
|
18043
|
+
const EnvironmentExportApiAxiosParamCreator = function (configuration) {
|
|
18044
|
+
return {
|
|
18045
|
+
/**
|
|
18046
|
+
*
|
|
18047
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
18048
|
+
* @param {string} environmentId Environment ID
|
|
18049
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
18050
|
+
* @param {*} [options] Override http request option.
|
|
18051
|
+
* @throws {RequiredError}
|
|
18052
|
+
*/
|
|
18053
|
+
exportEnvironmentConfigurationIntoTerraform: (environmentId, exportSecrets, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
18054
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
18055
|
+
(0, common_1.assertParamExists)('exportEnvironmentConfigurationIntoTerraform', 'environmentId', environmentId);
|
|
18056
|
+
const localVarPath = `/environment/{environmentId}/terraformExport`
|
|
18057
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
18058
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18059
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18060
|
+
let baseOptions;
|
|
18061
|
+
if (configuration) {
|
|
18062
|
+
baseOptions = configuration.baseOptions;
|
|
18063
|
+
}
|
|
18064
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
18065
|
+
const localVarHeaderParameter = {};
|
|
18066
|
+
const localVarQueryParameter = {};
|
|
18067
|
+
// authentication bearerAuth required
|
|
18068
|
+
// http bearer authentication required
|
|
18069
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
18070
|
+
if (exportSecrets !== undefined) {
|
|
18071
|
+
localVarQueryParameter['exportSecrets'] = exportSecrets;
|
|
18072
|
+
}
|
|
18073
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
18074
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18075
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18076
|
+
return {
|
|
18077
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
18078
|
+
options: localVarRequestOptions,
|
|
18079
|
+
};
|
|
18080
|
+
}),
|
|
18081
|
+
};
|
|
18082
|
+
};
|
|
18083
|
+
exports.EnvironmentExportApiAxiosParamCreator = EnvironmentExportApiAxiosParamCreator;
|
|
18084
|
+
/**
|
|
18085
|
+
* EnvironmentExportApi - functional programming interface
|
|
18086
|
+
* @export
|
|
18087
|
+
*/
|
|
18088
|
+
const EnvironmentExportApiFp = function (configuration) {
|
|
18089
|
+
const localVarAxiosParamCreator = (0, exports.EnvironmentExportApiAxiosParamCreator)(configuration);
|
|
18090
|
+
return {
|
|
18091
|
+
/**
|
|
18092
|
+
*
|
|
18093
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
18094
|
+
* @param {string} environmentId Environment ID
|
|
18095
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
18096
|
+
* @param {*} [options] Override http request option.
|
|
18097
|
+
* @throws {RequiredError}
|
|
18098
|
+
*/
|
|
18099
|
+
exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options) {
|
|
18100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18101
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options);
|
|
18102
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
18103
|
+
});
|
|
18104
|
+
},
|
|
18105
|
+
};
|
|
18106
|
+
};
|
|
18107
|
+
exports.EnvironmentExportApiFp = EnvironmentExportApiFp;
|
|
18108
|
+
/**
|
|
18109
|
+
* EnvironmentExportApi - factory interface
|
|
18110
|
+
* @export
|
|
18111
|
+
*/
|
|
18112
|
+
const EnvironmentExportApiFactory = function (configuration, basePath, axios) {
|
|
18113
|
+
const localVarFp = (0, exports.EnvironmentExportApiFp)(configuration);
|
|
18114
|
+
return {
|
|
18115
|
+
/**
|
|
18116
|
+
*
|
|
18117
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
18118
|
+
* @param {string} environmentId Environment ID
|
|
18119
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
18120
|
+
* @param {*} [options] Override http request option.
|
|
18121
|
+
* @throws {RequiredError}
|
|
18122
|
+
*/
|
|
18123
|
+
exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options) {
|
|
18124
|
+
return localVarFp.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(axios, basePath));
|
|
18125
|
+
},
|
|
18126
|
+
};
|
|
18127
|
+
};
|
|
18128
|
+
exports.EnvironmentExportApiFactory = EnvironmentExportApiFactory;
|
|
18129
|
+
/**
|
|
18130
|
+
* EnvironmentExportApi - object-oriented interface
|
|
18131
|
+
* @export
|
|
18132
|
+
* @class EnvironmentExportApi
|
|
18133
|
+
* @extends {BaseAPI}
|
|
18134
|
+
*/
|
|
18135
|
+
class EnvironmentExportApi extends base_1.BaseAPI {
|
|
18136
|
+
/**
|
|
18137
|
+
*
|
|
18138
|
+
* @summary Export full environment and its resources into Terraform manifests
|
|
18139
|
+
* @param {string} environmentId Environment ID
|
|
18140
|
+
* @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
|
|
18141
|
+
* @param {*} [options] Override http request option.
|
|
18142
|
+
* @throws {RequiredError}
|
|
18143
|
+
* @memberof EnvironmentExportApi
|
|
18144
|
+
*/
|
|
18145
|
+
exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options) {
|
|
18146
|
+
return (0, exports.EnvironmentExportApiFp)(this.configuration).exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(this.axios, this.basePath));
|
|
18147
|
+
}
|
|
18148
|
+
}
|
|
18149
|
+
exports.EnvironmentExportApi = EnvironmentExportApi;
|
|
18112
18150
|
/**
|
|
18113
18151
|
* EnvironmentLogsApi - axios parameter creator
|
|
18114
18152
|
* @export
|