qovery-typescript-axios 1.1.592 → 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 +198 -0
- package/dist/api.d.ts +96 -0
- package/dist/api.js +187 -1
- package/dist/esm/api.d.ts +96 -0
- package/dist/esm/api.js +182 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -56736,6 +56736,121 @@ export class TerraformConfigurationApi extends BaseAPI {
|
|
|
56736
56736
|
|
|
56737
56737
|
|
|
56738
56738
|
|
|
56739
|
+
/**
|
|
56740
|
+
* TerraformDeploymentHistoryApi - axios parameter creator
|
|
56741
|
+
* @export
|
|
56742
|
+
*/
|
|
56743
|
+
export const TerraformDeploymentHistoryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
56744
|
+
return {
|
|
56745
|
+
/**
|
|
56746
|
+
* Returns the 20 last terraform deployments
|
|
56747
|
+
* @summary List terraform deployments
|
|
56748
|
+
* @param {string} terraformId Terraform ID
|
|
56749
|
+
* @param {*} [options] Override http request option.
|
|
56750
|
+
* @throws {RequiredError}
|
|
56751
|
+
*/
|
|
56752
|
+
listTerraformDeploymentHistoryV2: async (terraformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56753
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
56754
|
+
assertParamExists('listTerraformDeploymentHistoryV2', 'terraformId', terraformId)
|
|
56755
|
+
const localVarPath = `/terraform/{terraformId}/deploymentHistoryV2`
|
|
56756
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
56757
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56758
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56759
|
+
let baseOptions;
|
|
56760
|
+
if (configuration) {
|
|
56761
|
+
baseOptions = configuration.baseOptions;
|
|
56762
|
+
}
|
|
56763
|
+
|
|
56764
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56765
|
+
const localVarHeaderParameter = {} as any;
|
|
56766
|
+
const localVarQueryParameter = {} as any;
|
|
56767
|
+
|
|
56768
|
+
// authentication ApiKeyAuth required
|
|
56769
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
56770
|
+
|
|
56771
|
+
// authentication bearerAuth required
|
|
56772
|
+
// http bearer authentication required
|
|
56773
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56774
|
+
|
|
56775
|
+
|
|
56776
|
+
|
|
56777
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56778
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56779
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56780
|
+
|
|
56781
|
+
return {
|
|
56782
|
+
url: toPathString(localVarUrlObj),
|
|
56783
|
+
options: localVarRequestOptions,
|
|
56784
|
+
};
|
|
56785
|
+
},
|
|
56786
|
+
}
|
|
56787
|
+
};
|
|
56788
|
+
|
|
56789
|
+
/**
|
|
56790
|
+
* TerraformDeploymentHistoryApi - functional programming interface
|
|
56791
|
+
* @export
|
|
56792
|
+
*/
|
|
56793
|
+
export const TerraformDeploymentHistoryApiFp = function(configuration?: Configuration) {
|
|
56794
|
+
const localVarAxiosParamCreator = TerraformDeploymentHistoryApiAxiosParamCreator(configuration)
|
|
56795
|
+
return {
|
|
56796
|
+
/**
|
|
56797
|
+
* Returns the 20 last terraform deployments
|
|
56798
|
+
* @summary List terraform deployments
|
|
56799
|
+
* @param {string} terraformId Terraform ID
|
|
56800
|
+
* @param {*} [options] Override http request option.
|
|
56801
|
+
* @throws {RequiredError}
|
|
56802
|
+
*/
|
|
56803
|
+
async listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2>> {
|
|
56804
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTerraformDeploymentHistoryV2(terraformId, options);
|
|
56805
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56806
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformDeploymentHistoryApi.listTerraformDeploymentHistoryV2']?.[localVarOperationServerIndex]?.url;
|
|
56807
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56808
|
+
},
|
|
56809
|
+
}
|
|
56810
|
+
};
|
|
56811
|
+
|
|
56812
|
+
/**
|
|
56813
|
+
* TerraformDeploymentHistoryApi - factory interface
|
|
56814
|
+
* @export
|
|
56815
|
+
*/
|
|
56816
|
+
export const TerraformDeploymentHistoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
56817
|
+
const localVarFp = TerraformDeploymentHistoryApiFp(configuration)
|
|
56818
|
+
return {
|
|
56819
|
+
/**
|
|
56820
|
+
* Returns the 20 last terraform deployments
|
|
56821
|
+
* @summary List terraform deployments
|
|
56822
|
+
* @param {string} terraformId Terraform ID
|
|
56823
|
+
* @param {*} [options] Override http request option.
|
|
56824
|
+
* @throws {RequiredError}
|
|
56825
|
+
*/
|
|
56826
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2> {
|
|
56827
|
+
return localVarFp.listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(axios, basePath));
|
|
56828
|
+
},
|
|
56829
|
+
};
|
|
56830
|
+
};
|
|
56831
|
+
|
|
56832
|
+
/**
|
|
56833
|
+
* TerraformDeploymentHistoryApi - object-oriented interface
|
|
56834
|
+
* @export
|
|
56835
|
+
* @class TerraformDeploymentHistoryApi
|
|
56836
|
+
* @extends {BaseAPI}
|
|
56837
|
+
*/
|
|
56838
|
+
export class TerraformDeploymentHistoryApi extends BaseAPI {
|
|
56839
|
+
/**
|
|
56840
|
+
* Returns the 20 last terraform deployments
|
|
56841
|
+
* @summary List terraform deployments
|
|
56842
|
+
* @param {string} terraformId Terraform ID
|
|
56843
|
+
* @param {*} [options] Override http request option.
|
|
56844
|
+
* @throws {RequiredError}
|
|
56845
|
+
* @memberof TerraformDeploymentHistoryApi
|
|
56846
|
+
*/
|
|
56847
|
+
public listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig) {
|
|
56848
|
+
return TerraformDeploymentHistoryApiFp(this.configuration).listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
56849
|
+
}
|
|
56850
|
+
}
|
|
56851
|
+
|
|
56852
|
+
|
|
56853
|
+
|
|
56739
56854
|
/**
|
|
56740
56855
|
* TerraformMainCallsApi - axios parameter creator
|
|
56741
56856
|
* @export
|
|
@@ -57016,6 +57131,51 @@ export class TerraformMainCallsApi extends BaseAPI {
|
|
|
57016
57131
|
*/
|
|
57017
57132
|
export const TerraformsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
57018
57133
|
return {
|
|
57134
|
+
/**
|
|
57135
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57136
|
+
* @summary Clone terraform
|
|
57137
|
+
* @param {string} terraformId Terraform ID
|
|
57138
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57139
|
+
* @param {*} [options] Override http request option.
|
|
57140
|
+
* @throws {RequiredError}
|
|
57141
|
+
*/
|
|
57142
|
+
cloneTerraform: async (terraformId: string, cloneServiceRequest?: CloneServiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57143
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
57144
|
+
assertParamExists('cloneTerraform', 'terraformId', terraformId)
|
|
57145
|
+
const localVarPath = `/terraform/{terraformId}/clone`
|
|
57146
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
57147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57149
|
+
let baseOptions;
|
|
57150
|
+
if (configuration) {
|
|
57151
|
+
baseOptions = configuration.baseOptions;
|
|
57152
|
+
}
|
|
57153
|
+
|
|
57154
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
57155
|
+
const localVarHeaderParameter = {} as any;
|
|
57156
|
+
const localVarQueryParameter = {} as any;
|
|
57157
|
+
|
|
57158
|
+
// authentication ApiKeyAuth required
|
|
57159
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57160
|
+
|
|
57161
|
+
// authentication bearerAuth required
|
|
57162
|
+
// http bearer authentication required
|
|
57163
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57164
|
+
|
|
57165
|
+
|
|
57166
|
+
|
|
57167
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
57168
|
+
|
|
57169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57171
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57172
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cloneServiceRequest, localVarRequestOptions, configuration)
|
|
57173
|
+
|
|
57174
|
+
return {
|
|
57175
|
+
url: toPathString(localVarUrlObj),
|
|
57176
|
+
options: localVarRequestOptions,
|
|
57177
|
+
};
|
|
57178
|
+
},
|
|
57019
57179
|
/**
|
|
57020
57180
|
*
|
|
57021
57181
|
* @summary Create a terraform
|
|
@@ -57149,6 +57309,20 @@ export const TerraformsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
57149
57309
|
export const TerraformsApiFp = function(configuration?: Configuration) {
|
|
57150
57310
|
const localVarAxiosParamCreator = TerraformsApiAxiosParamCreator(configuration)
|
|
57151
57311
|
return {
|
|
57312
|
+
/**
|
|
57313
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57314
|
+
* @summary Clone terraform
|
|
57315
|
+
* @param {string} terraformId Terraform ID
|
|
57316
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57317
|
+
* @param {*} [options] Override http request option.
|
|
57318
|
+
* @throws {RequiredError}
|
|
57319
|
+
*/
|
|
57320
|
+
async cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformResponse>> {
|
|
57321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cloneTerraform(terraformId, cloneServiceRequest, options);
|
|
57322
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57323
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformsApi.cloneTerraform']?.[localVarOperationServerIndex]?.url;
|
|
57324
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57325
|
+
},
|
|
57152
57326
|
/**
|
|
57153
57327
|
*
|
|
57154
57328
|
* @summary Create a terraform
|
|
@@ -57198,6 +57372,17 @@ export const TerraformsApiFp = function(configuration?: Configuration) {
|
|
|
57198
57372
|
export const TerraformsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
57199
57373
|
const localVarFp = TerraformsApiFp(configuration)
|
|
57200
57374
|
return {
|
|
57375
|
+
/**
|
|
57376
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57377
|
+
* @summary Clone terraform
|
|
57378
|
+
* @param {string} terraformId Terraform ID
|
|
57379
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57380
|
+
* @param {*} [options] Override http request option.
|
|
57381
|
+
* @throws {RequiredError}
|
|
57382
|
+
*/
|
|
57383
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformResponse> {
|
|
57384
|
+
return localVarFp.cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(axios, basePath));
|
|
57385
|
+
},
|
|
57201
57386
|
/**
|
|
57202
57387
|
*
|
|
57203
57388
|
* @summary Create a terraform
|
|
@@ -57238,6 +57423,19 @@ export const TerraformsApiFactory = function (configuration?: Configuration, bas
|
|
|
57238
57423
|
* @extends {BaseAPI}
|
|
57239
57424
|
*/
|
|
57240
57425
|
export class TerraformsApi extends BaseAPI {
|
|
57426
|
+
/**
|
|
57427
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57428
|
+
* @summary Clone terraform
|
|
57429
|
+
* @param {string} terraformId Terraform ID
|
|
57430
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57431
|
+
* @param {*} [options] Override http request option.
|
|
57432
|
+
* @throws {RequiredError}
|
|
57433
|
+
* @memberof TerraformsApi
|
|
57434
|
+
*/
|
|
57435
|
+
public cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig) {
|
|
57436
|
+
return TerraformsApiFp(this.configuration).cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
57437
|
+
}
|
|
57438
|
+
|
|
57241
57439
|
/**
|
|
57242
57440
|
*
|
|
57243
57441
|
* @summary Create a terraform
|
package/dist/api.d.ts
CHANGED
|
@@ -35225,6 +35225,65 @@ export declare class TerraformConfigurationApi extends BaseAPI {
|
|
|
35225
35225
|
*/
|
|
35226
35226
|
getTerraformAdvancedSettings(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformAdvancedSettings, any>>;
|
|
35227
35227
|
}
|
|
35228
|
+
/**
|
|
35229
|
+
* TerraformDeploymentHistoryApi - axios parameter creator
|
|
35230
|
+
* @export
|
|
35231
|
+
*/
|
|
35232
|
+
export declare const TerraformDeploymentHistoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
35233
|
+
/**
|
|
35234
|
+
* Returns the 20 last terraform deployments
|
|
35235
|
+
* @summary List terraform deployments
|
|
35236
|
+
* @param {string} terraformId Terraform ID
|
|
35237
|
+
* @param {*} [options] Override http request option.
|
|
35238
|
+
* @throws {RequiredError}
|
|
35239
|
+
*/
|
|
35240
|
+
listTerraformDeploymentHistoryV2: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35241
|
+
};
|
|
35242
|
+
/**
|
|
35243
|
+
* TerraformDeploymentHistoryApi - functional programming interface
|
|
35244
|
+
* @export
|
|
35245
|
+
*/
|
|
35246
|
+
export declare const TerraformDeploymentHistoryApiFp: (configuration?: Configuration) => {
|
|
35247
|
+
/**
|
|
35248
|
+
* Returns the 20 last terraform deployments
|
|
35249
|
+
* @summary List terraform deployments
|
|
35250
|
+
* @param {string} terraformId Terraform ID
|
|
35251
|
+
* @param {*} [options] Override http request option.
|
|
35252
|
+
* @throws {RequiredError}
|
|
35253
|
+
*/
|
|
35254
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2>>;
|
|
35255
|
+
};
|
|
35256
|
+
/**
|
|
35257
|
+
* TerraformDeploymentHistoryApi - factory interface
|
|
35258
|
+
* @export
|
|
35259
|
+
*/
|
|
35260
|
+
export declare const TerraformDeploymentHistoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
35261
|
+
/**
|
|
35262
|
+
* Returns the 20 last terraform deployments
|
|
35263
|
+
* @summary List terraform deployments
|
|
35264
|
+
* @param {string} terraformId Terraform ID
|
|
35265
|
+
* @param {*} [options] Override http request option.
|
|
35266
|
+
* @throws {RequiredError}
|
|
35267
|
+
*/
|
|
35268
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2>;
|
|
35269
|
+
};
|
|
35270
|
+
/**
|
|
35271
|
+
* TerraformDeploymentHistoryApi - object-oriented interface
|
|
35272
|
+
* @export
|
|
35273
|
+
* @class TerraformDeploymentHistoryApi
|
|
35274
|
+
* @extends {BaseAPI}
|
|
35275
|
+
*/
|
|
35276
|
+
export declare class TerraformDeploymentHistoryApi extends BaseAPI {
|
|
35277
|
+
/**
|
|
35278
|
+
* Returns the 20 last terraform deployments
|
|
35279
|
+
* @summary List terraform deployments
|
|
35280
|
+
* @param {string} terraformId Terraform ID
|
|
35281
|
+
* @param {*} [options] Override http request option.
|
|
35282
|
+
* @throws {RequiredError}
|
|
35283
|
+
* @memberof TerraformDeploymentHistoryApi
|
|
35284
|
+
*/
|
|
35285
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentHistoryServicePaginatedResponseListV2, any>>;
|
|
35286
|
+
}
|
|
35228
35287
|
/**
|
|
35229
35288
|
* TerraformMainCallsApi - axios parameter creator
|
|
35230
35289
|
* @export
|
|
@@ -35359,6 +35418,15 @@ export declare class TerraformMainCallsApi extends BaseAPI {
|
|
|
35359
35418
|
* @export
|
|
35360
35419
|
*/
|
|
35361
35420
|
export declare const TerraformsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
35421
|
+
/**
|
|
35422
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35423
|
+
* @summary Clone terraform
|
|
35424
|
+
* @param {string} terraformId Terraform ID
|
|
35425
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35426
|
+
* @param {*} [options] Override http request option.
|
|
35427
|
+
* @throws {RequiredError}
|
|
35428
|
+
*/
|
|
35429
|
+
cloneTerraform: (terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35362
35430
|
/**
|
|
35363
35431
|
*
|
|
35364
35432
|
* @summary Create a terraform
|
|
@@ -35389,6 +35457,15 @@ export declare const TerraformsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
35389
35457
|
* @export
|
|
35390
35458
|
*/
|
|
35391
35459
|
export declare const TerraformsApiFp: (configuration?: Configuration) => {
|
|
35460
|
+
/**
|
|
35461
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35462
|
+
* @summary Clone terraform
|
|
35463
|
+
* @param {string} terraformId Terraform ID
|
|
35464
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35465
|
+
* @param {*} [options] Override http request option.
|
|
35466
|
+
* @throws {RequiredError}
|
|
35467
|
+
*/
|
|
35468
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformResponse>>;
|
|
35392
35469
|
/**
|
|
35393
35470
|
*
|
|
35394
35471
|
* @summary Create a terraform
|
|
@@ -35419,6 +35496,15 @@ export declare const TerraformsApiFp: (configuration?: Configuration) => {
|
|
|
35419
35496
|
* @export
|
|
35420
35497
|
*/
|
|
35421
35498
|
export declare const TerraformsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
35499
|
+
/**
|
|
35500
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35501
|
+
* @summary Clone terraform
|
|
35502
|
+
* @param {string} terraformId Terraform ID
|
|
35503
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35504
|
+
* @param {*} [options] Override http request option.
|
|
35505
|
+
* @throws {RequiredError}
|
|
35506
|
+
*/
|
|
35507
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformResponse>;
|
|
35422
35508
|
/**
|
|
35423
35509
|
*
|
|
35424
35510
|
* @summary Create a terraform
|
|
@@ -35451,6 +35537,16 @@ export declare const TerraformsApiFactory: (configuration?: Configuration, baseP
|
|
|
35451
35537
|
* @extends {BaseAPI}
|
|
35452
35538
|
*/
|
|
35453
35539
|
export declare class TerraformsApi extends BaseAPI {
|
|
35540
|
+
/**
|
|
35541
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35542
|
+
* @summary Clone terraform
|
|
35543
|
+
* @param {string} terraformId Terraform ID
|
|
35544
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35545
|
+
* @param {*} [options] Override http request option.
|
|
35546
|
+
* @throws {RequiredError}
|
|
35547
|
+
* @memberof TerraformsApi
|
|
35548
|
+
*/
|
|
35549
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformResponse, any>>;
|
|
35454
35550
|
/**
|
|
35455
35551
|
*
|
|
35456
35552
|
* @summary Create a terraform
|
package/dist/api.js
CHANGED
|
@@ -30,7 +30,7 @@ exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.Env
|
|
|
30
30
|
exports.HelmMainCallsApiFp = exports.HelmMainCallsApiAxiosParamCreator = exports.HelmDeploymentRestrictionApi = exports.HelmDeploymentRestrictionApiFactory = exports.HelmDeploymentRestrictionApiFp = exports.HelmDeploymentRestrictionApiAxiosParamCreator = exports.HelmDeploymentHistoryApi = exports.HelmDeploymentHistoryApiFactory = exports.HelmDeploymentHistoryApiFp = exports.HelmDeploymentHistoryApiAxiosParamCreator = exports.HelmCustomDomainApi = exports.HelmCustomDomainApiFactory = exports.HelmCustomDomainApiFp = exports.HelmCustomDomainApiAxiosParamCreator = exports.HelmConfigurationApi = exports.HelmConfigurationApiFactory = exports.HelmConfigurationApiFp = exports.HelmConfigurationApiAxiosParamCreator = exports.HelmActionsApi = exports.HelmActionsApiFactory = exports.HelmActionsApiFp = exports.HelmActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = 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 = void 0;
|
|
31
31
|
exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.LifecycleTemplateMainCallsApi = exports.LifecycleTemplateMainCallsApiFactory = exports.LifecycleTemplateMainCallsApiFp = exports.LifecycleTemplateMainCallsApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentRestrictionApi = exports.JobDeploymentRestrictionApiFactory = exports.JobDeploymentRestrictionApiFp = exports.JobDeploymentRestrictionApiAxiosParamCreator = 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.HelmsApi = exports.HelmsApiFactory = exports.HelmsApiFp = exports.HelmsApiAxiosParamCreator = exports.HelmRepositoriesApi = exports.HelmRepositoriesApiFactory = exports.HelmRepositoriesApiFp = exports.HelmRepositoriesApiAxiosParamCreator = exports.HelmMainCallsApi = exports.HelmMainCallsApiFactory = void 0;
|
|
32
32
|
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.OrganizationLabelsGroupApi = exports.OrganizationLabelsGroupApiFactory = exports.OrganizationLabelsGroupApiFp = exports.OrganizationLabelsGroupApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationClusterLockApi = exports.OrganizationClusterLockApiFactory = exports.OrganizationClusterLockApiFp = exports.OrganizationClusterLockApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAnnotationsGroupApi = exports.OrganizationAnnotationsGroupApiFactory = exports.OrganizationAnnotationsGroupApiFp = exports.OrganizationAnnotationsGroupApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = void 0;
|
|
33
|
-
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformConfigurationApi = exports.TerraformConfigurationApiFactory = exports.TerraformConfigurationApiFp = exports.TerraformConfigurationApiAxiosParamCreator = exports.GetIngressDeploymentStatusServiceTypeEnum = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = void 0;
|
|
33
|
+
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformDeploymentHistoryApi = exports.TerraformDeploymentHistoryApiFactory = exports.TerraformDeploymentHistoryApiFp = exports.TerraformDeploymentHistoryApiAxiosParamCreator = exports.TerraformConfigurationApi = exports.TerraformConfigurationApiFactory = exports.TerraformConfigurationApiFp = exports.TerraformConfigurationApiAxiosParamCreator = exports.GetIngressDeploymentStatusServiceTypeEnum = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = void 0;
|
|
34
34
|
const axios_1 = require("axios");
|
|
35
35
|
// Some imports not used depending on template conditions
|
|
36
36
|
// @ts-ignore
|
|
@@ -37330,6 +37330,115 @@ class TerraformConfigurationApi extends base_1.BaseAPI {
|
|
|
37330
37330
|
}
|
|
37331
37331
|
}
|
|
37332
37332
|
exports.TerraformConfigurationApi = TerraformConfigurationApi;
|
|
37333
|
+
/**
|
|
37334
|
+
* TerraformDeploymentHistoryApi - axios parameter creator
|
|
37335
|
+
* @export
|
|
37336
|
+
*/
|
|
37337
|
+
const TerraformDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
37338
|
+
return {
|
|
37339
|
+
/**
|
|
37340
|
+
* Returns the 20 last terraform deployments
|
|
37341
|
+
* @summary List terraform deployments
|
|
37342
|
+
* @param {string} terraformId Terraform ID
|
|
37343
|
+
* @param {*} [options] Override http request option.
|
|
37344
|
+
* @throws {RequiredError}
|
|
37345
|
+
*/
|
|
37346
|
+
listTerraformDeploymentHistoryV2: (terraformId_1, ...args_1) => __awaiter(this, [terraformId_1, ...args_1], void 0, function* (terraformId, options = {}) {
|
|
37347
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37348
|
+
(0, common_1.assertParamExists)('listTerraformDeploymentHistoryV2', 'terraformId', terraformId);
|
|
37349
|
+
const localVarPath = `/terraform/{terraformId}/deploymentHistoryV2`
|
|
37350
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
37351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37352
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
37353
|
+
let baseOptions;
|
|
37354
|
+
if (configuration) {
|
|
37355
|
+
baseOptions = configuration.baseOptions;
|
|
37356
|
+
}
|
|
37357
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
37358
|
+
const localVarHeaderParameter = {};
|
|
37359
|
+
const localVarQueryParameter = {};
|
|
37360
|
+
// authentication ApiKeyAuth required
|
|
37361
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
37362
|
+
// authentication bearerAuth required
|
|
37363
|
+
// http bearer authentication required
|
|
37364
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
37365
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
37366
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37367
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37368
|
+
return {
|
|
37369
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
37370
|
+
options: localVarRequestOptions,
|
|
37371
|
+
};
|
|
37372
|
+
}),
|
|
37373
|
+
};
|
|
37374
|
+
};
|
|
37375
|
+
exports.TerraformDeploymentHistoryApiAxiosParamCreator = TerraformDeploymentHistoryApiAxiosParamCreator;
|
|
37376
|
+
/**
|
|
37377
|
+
* TerraformDeploymentHistoryApi - functional programming interface
|
|
37378
|
+
* @export
|
|
37379
|
+
*/
|
|
37380
|
+
const TerraformDeploymentHistoryApiFp = function (configuration) {
|
|
37381
|
+
const localVarAxiosParamCreator = (0, exports.TerraformDeploymentHistoryApiAxiosParamCreator)(configuration);
|
|
37382
|
+
return {
|
|
37383
|
+
/**
|
|
37384
|
+
* Returns the 20 last terraform deployments
|
|
37385
|
+
* @summary List terraform deployments
|
|
37386
|
+
* @param {string} terraformId Terraform ID
|
|
37387
|
+
* @param {*} [options] Override http request option.
|
|
37388
|
+
* @throws {RequiredError}
|
|
37389
|
+
*/
|
|
37390
|
+
listTerraformDeploymentHistoryV2(terraformId, options) {
|
|
37391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37392
|
+
var _a, _b, _c;
|
|
37393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTerraformDeploymentHistoryV2(terraformId, options);
|
|
37394
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37395
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformDeploymentHistoryApi.listTerraformDeploymentHistoryV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37396
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37397
|
+
});
|
|
37398
|
+
},
|
|
37399
|
+
};
|
|
37400
|
+
};
|
|
37401
|
+
exports.TerraformDeploymentHistoryApiFp = TerraformDeploymentHistoryApiFp;
|
|
37402
|
+
/**
|
|
37403
|
+
* TerraformDeploymentHistoryApi - factory interface
|
|
37404
|
+
* @export
|
|
37405
|
+
*/
|
|
37406
|
+
const TerraformDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
|
|
37407
|
+
const localVarFp = (0, exports.TerraformDeploymentHistoryApiFp)(configuration);
|
|
37408
|
+
return {
|
|
37409
|
+
/**
|
|
37410
|
+
* Returns the 20 last terraform deployments
|
|
37411
|
+
* @summary List terraform deployments
|
|
37412
|
+
* @param {string} terraformId Terraform ID
|
|
37413
|
+
* @param {*} [options] Override http request option.
|
|
37414
|
+
* @throws {RequiredError}
|
|
37415
|
+
*/
|
|
37416
|
+
listTerraformDeploymentHistoryV2(terraformId, options) {
|
|
37417
|
+
return localVarFp.listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(axios, basePath));
|
|
37418
|
+
},
|
|
37419
|
+
};
|
|
37420
|
+
};
|
|
37421
|
+
exports.TerraformDeploymentHistoryApiFactory = TerraformDeploymentHistoryApiFactory;
|
|
37422
|
+
/**
|
|
37423
|
+
* TerraformDeploymentHistoryApi - object-oriented interface
|
|
37424
|
+
* @export
|
|
37425
|
+
* @class TerraformDeploymentHistoryApi
|
|
37426
|
+
* @extends {BaseAPI}
|
|
37427
|
+
*/
|
|
37428
|
+
class TerraformDeploymentHistoryApi extends base_1.BaseAPI {
|
|
37429
|
+
/**
|
|
37430
|
+
* Returns the 20 last terraform deployments
|
|
37431
|
+
* @summary List terraform deployments
|
|
37432
|
+
* @param {string} terraformId Terraform ID
|
|
37433
|
+
* @param {*} [options] Override http request option.
|
|
37434
|
+
* @throws {RequiredError}
|
|
37435
|
+
* @memberof TerraformDeploymentHistoryApi
|
|
37436
|
+
*/
|
|
37437
|
+
listTerraformDeploymentHistoryV2(terraformId, options) {
|
|
37438
|
+
return (0, exports.TerraformDeploymentHistoryApiFp)(this.configuration).listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
37439
|
+
}
|
|
37440
|
+
}
|
|
37441
|
+
exports.TerraformDeploymentHistoryApi = TerraformDeploymentHistoryApi;
|
|
37333
37442
|
/**
|
|
37334
37443
|
* TerraformMainCallsApi - axios parameter creator
|
|
37335
37444
|
* @export
|
|
@@ -37593,6 +37702,43 @@ exports.TerraformMainCallsApi = TerraformMainCallsApi;
|
|
|
37593
37702
|
*/
|
|
37594
37703
|
const TerraformsApiAxiosParamCreator = function (configuration) {
|
|
37595
37704
|
return {
|
|
37705
|
+
/**
|
|
37706
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37707
|
+
* @summary Clone terraform
|
|
37708
|
+
* @param {string} terraformId Terraform ID
|
|
37709
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37710
|
+
* @param {*} [options] Override http request option.
|
|
37711
|
+
* @throws {RequiredError}
|
|
37712
|
+
*/
|
|
37713
|
+
cloneTerraform: (terraformId_1, cloneServiceRequest_1, ...args_1) => __awaiter(this, [terraformId_1, cloneServiceRequest_1, ...args_1], void 0, function* (terraformId, cloneServiceRequest, options = {}) {
|
|
37714
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37715
|
+
(0, common_1.assertParamExists)('cloneTerraform', 'terraformId', terraformId);
|
|
37716
|
+
const localVarPath = `/terraform/{terraformId}/clone`
|
|
37717
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
37718
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37719
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
37720
|
+
let baseOptions;
|
|
37721
|
+
if (configuration) {
|
|
37722
|
+
baseOptions = configuration.baseOptions;
|
|
37723
|
+
}
|
|
37724
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
37725
|
+
const localVarHeaderParameter = {};
|
|
37726
|
+
const localVarQueryParameter = {};
|
|
37727
|
+
// authentication ApiKeyAuth required
|
|
37728
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
37729
|
+
// authentication bearerAuth required
|
|
37730
|
+
// http bearer authentication required
|
|
37731
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
37732
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37733
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
37734
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37735
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37736
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cloneServiceRequest, localVarRequestOptions, configuration);
|
|
37737
|
+
return {
|
|
37738
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
37739
|
+
options: localVarRequestOptions,
|
|
37740
|
+
};
|
|
37741
|
+
}),
|
|
37596
37742
|
/**
|
|
37597
37743
|
*
|
|
37598
37744
|
* @summary Create a terraform
|
|
@@ -37704,6 +37850,23 @@ exports.TerraformsApiAxiosParamCreator = TerraformsApiAxiosParamCreator;
|
|
|
37704
37850
|
const TerraformsApiFp = function (configuration) {
|
|
37705
37851
|
const localVarAxiosParamCreator = (0, exports.TerraformsApiAxiosParamCreator)(configuration);
|
|
37706
37852
|
return {
|
|
37853
|
+
/**
|
|
37854
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37855
|
+
* @summary Clone terraform
|
|
37856
|
+
* @param {string} terraformId Terraform ID
|
|
37857
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37858
|
+
* @param {*} [options] Override http request option.
|
|
37859
|
+
* @throws {RequiredError}
|
|
37860
|
+
*/
|
|
37861
|
+
cloneTerraform(terraformId, cloneServiceRequest, options) {
|
|
37862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37863
|
+
var _a, _b, _c;
|
|
37864
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneTerraform(terraformId, cloneServiceRequest, options);
|
|
37865
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37866
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformsApi.cloneTerraform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37867
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37868
|
+
});
|
|
37869
|
+
},
|
|
37707
37870
|
/**
|
|
37708
37871
|
*
|
|
37709
37872
|
* @summary Create a terraform
|
|
@@ -37762,6 +37925,17 @@ exports.TerraformsApiFp = TerraformsApiFp;
|
|
|
37762
37925
|
const TerraformsApiFactory = function (configuration, basePath, axios) {
|
|
37763
37926
|
const localVarFp = (0, exports.TerraformsApiFp)(configuration);
|
|
37764
37927
|
return {
|
|
37928
|
+
/**
|
|
37929
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37930
|
+
* @summary Clone terraform
|
|
37931
|
+
* @param {string} terraformId Terraform ID
|
|
37932
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37933
|
+
* @param {*} [options] Override http request option.
|
|
37934
|
+
* @throws {RequiredError}
|
|
37935
|
+
*/
|
|
37936
|
+
cloneTerraform(terraformId, cloneServiceRequest, options) {
|
|
37937
|
+
return localVarFp.cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(axios, basePath));
|
|
37938
|
+
},
|
|
37765
37939
|
/**
|
|
37766
37940
|
*
|
|
37767
37941
|
* @summary Create a terraform
|
|
@@ -37802,6 +37976,18 @@ exports.TerraformsApiFactory = TerraformsApiFactory;
|
|
|
37802
37976
|
* @extends {BaseAPI}
|
|
37803
37977
|
*/
|
|
37804
37978
|
class TerraformsApi extends base_1.BaseAPI {
|
|
37979
|
+
/**
|
|
37980
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
37981
|
+
* @summary Clone terraform
|
|
37982
|
+
* @param {string} terraformId Terraform ID
|
|
37983
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
37984
|
+
* @param {*} [options] Override http request option.
|
|
37985
|
+
* @throws {RequiredError}
|
|
37986
|
+
* @memberof TerraformsApi
|
|
37987
|
+
*/
|
|
37988
|
+
cloneTerraform(terraformId, cloneServiceRequest, options) {
|
|
37989
|
+
return (0, exports.TerraformsApiFp)(this.configuration).cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37990
|
+
}
|
|
37805
37991
|
/**
|
|
37806
37992
|
*
|
|
37807
37993
|
* @summary Create a terraform
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -35225,6 +35225,65 @@ export declare class TerraformConfigurationApi extends BaseAPI {
|
|
|
35225
35225
|
*/
|
|
35226
35226
|
getTerraformAdvancedSettings(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformAdvancedSettings, any>>;
|
|
35227
35227
|
}
|
|
35228
|
+
/**
|
|
35229
|
+
* TerraformDeploymentHistoryApi - axios parameter creator
|
|
35230
|
+
* @export
|
|
35231
|
+
*/
|
|
35232
|
+
export declare const TerraformDeploymentHistoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
35233
|
+
/**
|
|
35234
|
+
* Returns the 20 last terraform deployments
|
|
35235
|
+
* @summary List terraform deployments
|
|
35236
|
+
* @param {string} terraformId Terraform ID
|
|
35237
|
+
* @param {*} [options] Override http request option.
|
|
35238
|
+
* @throws {RequiredError}
|
|
35239
|
+
*/
|
|
35240
|
+
listTerraformDeploymentHistoryV2: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35241
|
+
};
|
|
35242
|
+
/**
|
|
35243
|
+
* TerraformDeploymentHistoryApi - functional programming interface
|
|
35244
|
+
* @export
|
|
35245
|
+
*/
|
|
35246
|
+
export declare const TerraformDeploymentHistoryApiFp: (configuration?: Configuration) => {
|
|
35247
|
+
/**
|
|
35248
|
+
* Returns the 20 last terraform deployments
|
|
35249
|
+
* @summary List terraform deployments
|
|
35250
|
+
* @param {string} terraformId Terraform ID
|
|
35251
|
+
* @param {*} [options] Override http request option.
|
|
35252
|
+
* @throws {RequiredError}
|
|
35253
|
+
*/
|
|
35254
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2>>;
|
|
35255
|
+
};
|
|
35256
|
+
/**
|
|
35257
|
+
* TerraformDeploymentHistoryApi - factory interface
|
|
35258
|
+
* @export
|
|
35259
|
+
*/
|
|
35260
|
+
export declare const TerraformDeploymentHistoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
35261
|
+
/**
|
|
35262
|
+
* Returns the 20 last terraform deployments
|
|
35263
|
+
* @summary List terraform deployments
|
|
35264
|
+
* @param {string} terraformId Terraform ID
|
|
35265
|
+
* @param {*} [options] Override http request option.
|
|
35266
|
+
* @throws {RequiredError}
|
|
35267
|
+
*/
|
|
35268
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2>;
|
|
35269
|
+
};
|
|
35270
|
+
/**
|
|
35271
|
+
* TerraformDeploymentHistoryApi - object-oriented interface
|
|
35272
|
+
* @export
|
|
35273
|
+
* @class TerraformDeploymentHistoryApi
|
|
35274
|
+
* @extends {BaseAPI}
|
|
35275
|
+
*/
|
|
35276
|
+
export declare class TerraformDeploymentHistoryApi extends BaseAPI {
|
|
35277
|
+
/**
|
|
35278
|
+
* Returns the 20 last terraform deployments
|
|
35279
|
+
* @summary List terraform deployments
|
|
35280
|
+
* @param {string} terraformId Terraform ID
|
|
35281
|
+
* @param {*} [options] Override http request option.
|
|
35282
|
+
* @throws {RequiredError}
|
|
35283
|
+
* @memberof TerraformDeploymentHistoryApi
|
|
35284
|
+
*/
|
|
35285
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentHistoryServicePaginatedResponseListV2, any>>;
|
|
35286
|
+
}
|
|
35228
35287
|
/**
|
|
35229
35288
|
* TerraformMainCallsApi - axios parameter creator
|
|
35230
35289
|
* @export
|
|
@@ -35359,6 +35418,15 @@ export declare class TerraformMainCallsApi extends BaseAPI {
|
|
|
35359
35418
|
* @export
|
|
35360
35419
|
*/
|
|
35361
35420
|
export declare const TerraformsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
35421
|
+
/**
|
|
35422
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35423
|
+
* @summary Clone terraform
|
|
35424
|
+
* @param {string} terraformId Terraform ID
|
|
35425
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35426
|
+
* @param {*} [options] Override http request option.
|
|
35427
|
+
* @throws {RequiredError}
|
|
35428
|
+
*/
|
|
35429
|
+
cloneTerraform: (terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35362
35430
|
/**
|
|
35363
35431
|
*
|
|
35364
35432
|
* @summary Create a terraform
|
|
@@ -35389,6 +35457,15 @@ export declare const TerraformsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
35389
35457
|
* @export
|
|
35390
35458
|
*/
|
|
35391
35459
|
export declare const TerraformsApiFp: (configuration?: Configuration) => {
|
|
35460
|
+
/**
|
|
35461
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35462
|
+
* @summary Clone terraform
|
|
35463
|
+
* @param {string} terraformId Terraform ID
|
|
35464
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35465
|
+
* @param {*} [options] Override http request option.
|
|
35466
|
+
* @throws {RequiredError}
|
|
35467
|
+
*/
|
|
35468
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformResponse>>;
|
|
35392
35469
|
/**
|
|
35393
35470
|
*
|
|
35394
35471
|
* @summary Create a terraform
|
|
@@ -35419,6 +35496,15 @@ export declare const TerraformsApiFp: (configuration?: Configuration) => {
|
|
|
35419
35496
|
* @export
|
|
35420
35497
|
*/
|
|
35421
35498
|
export declare const TerraformsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
35499
|
+
/**
|
|
35500
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35501
|
+
* @summary Clone terraform
|
|
35502
|
+
* @param {string} terraformId Terraform ID
|
|
35503
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35504
|
+
* @param {*} [options] Override http request option.
|
|
35505
|
+
* @throws {RequiredError}
|
|
35506
|
+
*/
|
|
35507
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformResponse>;
|
|
35422
35508
|
/**
|
|
35423
35509
|
*
|
|
35424
35510
|
* @summary Create a terraform
|
|
@@ -35451,6 +35537,16 @@ export declare const TerraformsApiFactory: (configuration?: Configuration, baseP
|
|
|
35451
35537
|
* @extends {BaseAPI}
|
|
35452
35538
|
*/
|
|
35453
35539
|
export declare class TerraformsApi extends BaseAPI {
|
|
35540
|
+
/**
|
|
35541
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
35542
|
+
* @summary Clone terraform
|
|
35543
|
+
* @param {string} terraformId Terraform ID
|
|
35544
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
35545
|
+
* @param {*} [options] Override http request option.
|
|
35546
|
+
* @throws {RequiredError}
|
|
35547
|
+
* @memberof TerraformsApi
|
|
35548
|
+
*/
|
|
35549
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformResponse, any>>;
|
|
35454
35550
|
/**
|
|
35455
35551
|
*
|
|
35456
35552
|
* @summary Create a terraform
|
package/dist/esm/api.js
CHANGED
|
@@ -36995,6 +36995,111 @@ export class TerraformConfigurationApi extends BaseAPI {
|
|
|
36995
36995
|
return TerraformConfigurationApiFp(this.configuration).getTerraformAdvancedSettings(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
36996
36996
|
}
|
|
36997
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
|
+
}
|
|
36998
37103
|
/**
|
|
36999
37104
|
* TerraformMainCallsApi - axios parameter creator
|
|
37000
37105
|
* @export
|
|
@@ -37254,6 +37359,43 @@ export class TerraformMainCallsApi extends BaseAPI {
|
|
|
37254
37359
|
*/
|
|
37255
37360
|
export const TerraformsApiAxiosParamCreator = function (configuration) {
|
|
37256
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
|
+
}),
|
|
37257
37399
|
/**
|
|
37258
37400
|
*
|
|
37259
37401
|
* @summary Create a terraform
|
|
@@ -37364,6 +37506,23 @@ export const TerraformsApiAxiosParamCreator = function (configuration) {
|
|
|
37364
37506
|
export const TerraformsApiFp = function (configuration) {
|
|
37365
37507
|
const localVarAxiosParamCreator = TerraformsApiAxiosParamCreator(configuration);
|
|
37366
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
|
+
},
|
|
37367
37526
|
/**
|
|
37368
37527
|
*
|
|
37369
37528
|
* @summary Create a terraform
|
|
@@ -37421,6 +37580,17 @@ export const TerraformsApiFp = function (configuration) {
|
|
|
37421
37580
|
export const TerraformsApiFactory = function (configuration, basePath, axios) {
|
|
37422
37581
|
const localVarFp = TerraformsApiFp(configuration);
|
|
37423
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
|
+
},
|
|
37424
37594
|
/**
|
|
37425
37595
|
*
|
|
37426
37596
|
* @summary Create a terraform
|
|
@@ -37460,6 +37630,18 @@ export const TerraformsApiFactory = function (configuration, basePath, axios) {
|
|
|
37460
37630
|
* @extends {BaseAPI}
|
|
37461
37631
|
*/
|
|
37462
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
|
+
}
|
|
37463
37645
|
/**
|
|
37464
37646
|
*
|
|
37465
37647
|
* @summary Create a terraform
|