qovery-typescript-axios 1.1.744 → 1.1.746

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 CHANGED
@@ -15076,6 +15076,12 @@ export interface OrganizationEventResponse {
15076
15076
  * @memberof OrganizationEventResponse
15077
15077
  */
15078
15078
  'user_agent'?: string | null;
15079
+ /**
15080
+ *
15081
+ * @type {string}
15082
+ * @memberof OrganizationEventResponse
15083
+ */
15084
+ 'original_change'?: string | null;
15079
15085
  }
15080
15086
 
15081
15087
 
@@ -19031,6 +19037,19 @@ export interface TerraformVariableResponse {
19031
19037
  */
19032
19038
  'secret': boolean;
19033
19039
  }
19040
+ /**
19041
+ * Request to atomically replace all Terraform variables. Note: For secret variables, use value \"SECRET_VALUE_UNCHANGED\" to preserve the existing secret value.
19042
+ * @export
19043
+ * @interface TerraformVariablesReplaceRequest
19044
+ */
19045
+ export interface TerraformVariablesReplaceRequest {
19046
+ /**
19047
+ * Complete list of variables to set (replaces all existing variables)
19048
+ * @type {Array<TerraformVarKeyValue>}
19049
+ * @memberof TerraformVariablesReplaceRequest
19050
+ */
19051
+ 'variables': Array<TerraformVarKeyValue>;
19052
+ }
19034
19053
  /**
19035
19054
  * Response containing list of Terraform variables
19036
19055
  * @export
@@ -61233,17 +61252,17 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
61233
61252
  },
61234
61253
  /**
61235
61254
  *
61236
- * @summary Create or update a terraform variable
61255
+ * @summary Replace all terraform variables
61237
61256
  * @param {string} terraformId Terraform ID
61238
- * @param {TerraformVarKeyValue} terraformVarKeyValue
61257
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
61239
61258
  * @param {*} [options] Override http request option.
61240
61259
  * @throws {RequiredError}
61241
61260
  */
61242
- updateTerraformVariable: async (terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61261
+ replaceAllTerraformVariables: async (terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61243
61262
  // verify required parameter 'terraformId' is not null or undefined
61244
- assertParamExists('updateTerraformVariable', 'terraformId', terraformId)
61245
- // verify required parameter 'terraformVarKeyValue' is not null or undefined
61246
- assertParamExists('updateTerraformVariable', 'terraformVarKeyValue', terraformVarKeyValue)
61263
+ assertParamExists('replaceAllTerraformVariables', 'terraformId', terraformId)
61264
+ // verify required parameter 'terraformVariablesReplaceRequest' is not null or undefined
61265
+ assertParamExists('replaceAllTerraformVariables', 'terraformVariablesReplaceRequest', terraformVariablesReplaceRequest)
61247
61266
  const localVarPath = `/terraform/{terraformId}/variables`
61248
61267
  .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
61249
61268
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -61253,7 +61272,7 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
61253
61272
  baseOptions = configuration.baseOptions;
61254
61273
  }
61255
61274
 
61256
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61275
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
61257
61276
  const localVarHeaderParameter = {} as any;
61258
61277
  const localVarQueryParameter = {} as any;
61259
61278
 
@@ -61271,7 +61290,7 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
61271
61290
  setSearchParams(localVarUrlObj, localVarQueryParameter);
61272
61291
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61273
61292
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61274
- localVarRequestOptions.data = serializeDataIfNeeded(terraformVarKeyValue, localVarRequestOptions, configuration)
61293
+ localVarRequestOptions.data = serializeDataIfNeeded(terraformVariablesReplaceRequest, localVarRequestOptions, configuration)
61275
61294
 
61276
61295
  return {
61277
61296
  url: toPathString(localVarUrlObj),
@@ -61344,16 +61363,16 @@ export const TerraformConfigurationApiFp = function(configuration?: Configuratio
61344
61363
  },
61345
61364
  /**
61346
61365
  *
61347
- * @summary Create or update a terraform variable
61366
+ * @summary Replace all terraform variables
61348
61367
  * @param {string} terraformId Terraform ID
61349
- * @param {TerraformVarKeyValue} terraformVarKeyValue
61368
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
61350
61369
  * @param {*} [options] Override http request option.
61351
61370
  * @throws {RequiredError}
61352
61371
  */
61353
- async updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
61354
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTerraformVariable(terraformId, terraformVarKeyValue, options);
61372
+ async replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
61373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options);
61355
61374
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61356
- const localVarOperationServerBasePath = operationServerMap['TerraformConfigurationApi.updateTerraformVariable']?.[localVarOperationServerIndex]?.url;
61375
+ const localVarOperationServerBasePath = operationServerMap['TerraformConfigurationApi.replaceAllTerraformVariables']?.[localVarOperationServerIndex]?.url;
61357
61376
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61358
61377
  },
61359
61378
  }
@@ -61410,14 +61429,14 @@ export const TerraformConfigurationApiFactory = function (configuration?: Config
61410
61429
  },
61411
61430
  /**
61412
61431
  *
61413
- * @summary Create or update a terraform variable
61432
+ * @summary Replace all terraform variables
61414
61433
  * @param {string} terraformId Terraform ID
61415
- * @param {TerraformVarKeyValue} terraformVarKeyValue
61434
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
61416
61435
  * @param {*} [options] Override http request option.
61417
61436
  * @throws {RequiredError}
61418
61437
  */
61419
- updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): AxiosPromise<void> {
61420
- return localVarFp.updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(axios, basePath));
61438
+ replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
61439
+ return localVarFp.replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options).then((request) => request(axios, basePath));
61421
61440
  },
61422
61441
  };
61423
61442
  };
@@ -61481,15 +61500,15 @@ export class TerraformConfigurationApi extends BaseAPI {
61481
61500
 
61482
61501
  /**
61483
61502
  *
61484
- * @summary Create or update a terraform variable
61503
+ * @summary Replace all terraform variables
61485
61504
  * @param {string} terraformId Terraform ID
61486
- * @param {TerraformVarKeyValue} terraformVarKeyValue
61505
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
61487
61506
  * @param {*} [options] Override http request option.
61488
61507
  * @throws {RequiredError}
61489
61508
  * @memberof TerraformConfigurationApi
61490
61509
  */
61491
- public updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig) {
61492
- return TerraformConfigurationApiFp(this.configuration).updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(this.axios, this.basePath));
61510
+ public replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig) {
61511
+ return TerraformConfigurationApiFp(this.configuration).replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
61493
61512
  }
61494
61513
  }
61495
61514
 
package/dist/api.d.ts CHANGED
@@ -14629,6 +14629,12 @@ export interface OrganizationEventResponse {
14629
14629
  * @memberof OrganizationEventResponse
14630
14630
  */
14631
14631
  'user_agent'?: string | null;
14632
+ /**
14633
+ *
14634
+ * @type {string}
14635
+ * @memberof OrganizationEventResponse
14636
+ */
14637
+ 'original_change'?: string | null;
14632
14638
  }
14633
14639
  /**
14634
14640
  *
@@ -18409,6 +18415,19 @@ export interface TerraformVariableResponse {
18409
18415
  */
18410
18416
  'secret': boolean;
18411
18417
  }
18418
+ /**
18419
+ * Request to atomically replace all Terraform variables. Note: For secret variables, use value \"SECRET_VALUE_UNCHANGED\" to preserve the existing secret value.
18420
+ * @export
18421
+ * @interface TerraformVariablesReplaceRequest
18422
+ */
18423
+ export interface TerraformVariablesReplaceRequest {
18424
+ /**
18425
+ * Complete list of variables to set (replaces all existing variables)
18426
+ * @type {Array<TerraformVarKeyValue>}
18427
+ * @memberof TerraformVariablesReplaceRequest
18428
+ */
18429
+ 'variables': Array<TerraformVarKeyValue>;
18430
+ }
18412
18431
  /**
18413
18432
  * Response containing list of Terraform variables
18414
18433
  * @export
@@ -38224,13 +38243,13 @@ export declare const TerraformConfigurationApiAxiosParamCreator: (configuration?
38224
38243
  getTerraformVariables: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38225
38244
  /**
38226
38245
  *
38227
- * @summary Create or update a terraform variable
38246
+ * @summary Replace all terraform variables
38228
38247
  * @param {string} terraformId Terraform ID
38229
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38248
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38230
38249
  * @param {*} [options] Override http request option.
38231
38250
  * @throws {RequiredError}
38232
38251
  */
38233
- updateTerraformVariable: (terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38252
+ replaceAllTerraformVariables: (terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38234
38253
  };
38235
38254
  /**
38236
38255
  * TerraformConfigurationApi - functional programming interface
@@ -38273,13 +38292,13 @@ export declare const TerraformConfigurationApiFp: (configuration?: Configuration
38273
38292
  getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformVariablesResponse>>;
38274
38293
  /**
38275
38294
  *
38276
- * @summary Create or update a terraform variable
38295
+ * @summary Replace all terraform variables
38277
38296
  * @param {string} terraformId Terraform ID
38278
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38297
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38279
38298
  * @param {*} [options] Override http request option.
38280
38299
  * @throws {RequiredError}
38281
38300
  */
38282
- updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38301
+ replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38283
38302
  };
38284
38303
  /**
38285
38304
  * TerraformConfigurationApi - factory interface
@@ -38322,13 +38341,13 @@ export declare const TerraformConfigurationApiFactory: (configuration?: Configur
38322
38341
  getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformVariablesResponse>;
38323
38342
  /**
38324
38343
  *
38325
- * @summary Create or update a terraform variable
38344
+ * @summary Replace all terraform variables
38326
38345
  * @param {string} terraformId Terraform ID
38327
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38346
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38328
38347
  * @param {*} [options] Override http request option.
38329
38348
  * @throws {RequiredError}
38330
38349
  */
38331
- updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): AxiosPromise<void>;
38350
+ replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
38332
38351
  };
38333
38352
  /**
38334
38353
  * TerraformConfigurationApi - object-oriented interface
@@ -38377,14 +38396,14 @@ export declare class TerraformConfigurationApi extends BaseAPI {
38377
38396
  getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformVariablesResponse, any, {}>>;
38378
38397
  /**
38379
38398
  *
38380
- * @summary Create or update a terraform variable
38399
+ * @summary Replace all terraform variables
38381
38400
  * @param {string} terraformId Terraform ID
38382
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38401
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38383
38402
  * @param {*} [options] Override http request option.
38384
38403
  * @throws {RequiredError}
38385
38404
  * @memberof TerraformConfigurationApi
38386
38405
  */
38387
- updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
38406
+ replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
38388
38407
  }
38389
38408
  /**
38390
38409
  * TerraformDeploymentHistoryApi - axios parameter creator
package/dist/api.js CHANGED
@@ -39877,17 +39877,17 @@ const TerraformConfigurationApiAxiosParamCreator = function (configuration) {
39877
39877
  }),
39878
39878
  /**
39879
39879
  *
39880
- * @summary Create or update a terraform variable
39880
+ * @summary Replace all terraform variables
39881
39881
  * @param {string} terraformId Terraform ID
39882
- * @param {TerraformVarKeyValue} terraformVarKeyValue
39882
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
39883
39883
  * @param {*} [options] Override http request option.
39884
39884
  * @throws {RequiredError}
39885
39885
  */
39886
- updateTerraformVariable: (terraformId_1, terraformVarKeyValue_1, ...args_1) => __awaiter(this, [terraformId_1, terraformVarKeyValue_1, ...args_1], void 0, function* (terraformId, terraformVarKeyValue, options = {}) {
39886
+ replaceAllTerraformVariables: (terraformId_1, terraformVariablesReplaceRequest_1, ...args_1) => __awaiter(this, [terraformId_1, terraformVariablesReplaceRequest_1, ...args_1], void 0, function* (terraformId, terraformVariablesReplaceRequest, options = {}) {
39887
39887
  // verify required parameter 'terraformId' is not null or undefined
39888
- (0, common_1.assertParamExists)('updateTerraformVariable', 'terraformId', terraformId);
39889
- // verify required parameter 'terraformVarKeyValue' is not null or undefined
39890
- (0, common_1.assertParamExists)('updateTerraformVariable', 'terraformVarKeyValue', terraformVarKeyValue);
39888
+ (0, common_1.assertParamExists)('replaceAllTerraformVariables', 'terraformId', terraformId);
39889
+ // verify required parameter 'terraformVariablesReplaceRequest' is not null or undefined
39890
+ (0, common_1.assertParamExists)('replaceAllTerraformVariables', 'terraformVariablesReplaceRequest', terraformVariablesReplaceRequest);
39891
39891
  const localVarPath = `/terraform/{terraformId}/variables`
39892
39892
  .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
39893
39893
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -39896,7 +39896,7 @@ const TerraformConfigurationApiAxiosParamCreator = function (configuration) {
39896
39896
  if (configuration) {
39897
39897
  baseOptions = configuration.baseOptions;
39898
39898
  }
39899
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
39899
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
39900
39900
  const localVarHeaderParameter = {};
39901
39901
  const localVarQueryParameter = {};
39902
39902
  // authentication ApiKeyAuth required
@@ -39908,7 +39908,7 @@ const TerraformConfigurationApiAxiosParamCreator = function (configuration) {
39908
39908
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
39909
39909
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39910
39910
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
39911
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(terraformVarKeyValue, localVarRequestOptions, configuration);
39911
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(terraformVariablesReplaceRequest, localVarRequestOptions, configuration);
39912
39912
  return {
39913
39913
  url: (0, common_1.toPathString)(localVarUrlObj),
39914
39914
  options: localVarRequestOptions,
@@ -39992,18 +39992,18 @@ const TerraformConfigurationApiFp = function (configuration) {
39992
39992
  },
39993
39993
  /**
39994
39994
  *
39995
- * @summary Create or update a terraform variable
39995
+ * @summary Replace all terraform variables
39996
39996
  * @param {string} terraformId Terraform ID
39997
- * @param {TerraformVarKeyValue} terraformVarKeyValue
39997
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
39998
39998
  * @param {*} [options] Override http request option.
39999
39999
  * @throws {RequiredError}
40000
40000
  */
40001
- updateTerraformVariable(terraformId, terraformVarKeyValue, options) {
40001
+ replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options) {
40002
40002
  return __awaiter(this, void 0, void 0, function* () {
40003
40003
  var _a, _b, _c;
40004
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTerraformVariable(terraformId, terraformVarKeyValue, options);
40004
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options);
40005
40005
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
40006
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformConfigurationApi.updateTerraformVariable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
40006
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformConfigurationApi.replaceAllTerraformVariables']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
40007
40007
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40008
40008
  });
40009
40009
  },
@@ -40061,14 +40061,14 @@ const TerraformConfigurationApiFactory = function (configuration, basePath, axio
40061
40061
  },
40062
40062
  /**
40063
40063
  *
40064
- * @summary Create or update a terraform variable
40064
+ * @summary Replace all terraform variables
40065
40065
  * @param {string} terraformId Terraform ID
40066
- * @param {TerraformVarKeyValue} terraformVarKeyValue
40066
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
40067
40067
  * @param {*} [options] Override http request option.
40068
40068
  * @throws {RequiredError}
40069
40069
  */
40070
- updateTerraformVariable(terraformId, terraformVarKeyValue, options) {
40071
- return localVarFp.updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(axios, basePath));
40070
+ replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options) {
40071
+ return localVarFp.replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options).then((request) => request(axios, basePath));
40072
40072
  },
40073
40073
  };
40074
40074
  };
@@ -40128,15 +40128,15 @@ class TerraformConfigurationApi extends base_1.BaseAPI {
40128
40128
  }
40129
40129
  /**
40130
40130
  *
40131
- * @summary Create or update a terraform variable
40131
+ * @summary Replace all terraform variables
40132
40132
  * @param {string} terraformId Terraform ID
40133
- * @param {TerraformVarKeyValue} terraformVarKeyValue
40133
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
40134
40134
  * @param {*} [options] Override http request option.
40135
40135
  * @throws {RequiredError}
40136
40136
  * @memberof TerraformConfigurationApi
40137
40137
  */
40138
- updateTerraformVariable(terraformId, terraformVarKeyValue, options) {
40139
- return (0, exports.TerraformConfigurationApiFp)(this.configuration).updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(this.axios, this.basePath));
40138
+ replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options) {
40139
+ return (0, exports.TerraformConfigurationApiFp)(this.configuration).replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
40140
40140
  }
40141
40141
  }
40142
40142
  exports.TerraformConfigurationApi = TerraformConfigurationApi;
package/dist/esm/api.d.ts CHANGED
@@ -14629,6 +14629,12 @@ export interface OrganizationEventResponse {
14629
14629
  * @memberof OrganizationEventResponse
14630
14630
  */
14631
14631
  'user_agent'?: string | null;
14632
+ /**
14633
+ *
14634
+ * @type {string}
14635
+ * @memberof OrganizationEventResponse
14636
+ */
14637
+ 'original_change'?: string | null;
14632
14638
  }
14633
14639
  /**
14634
14640
  *
@@ -18409,6 +18415,19 @@ export interface TerraformVariableResponse {
18409
18415
  */
18410
18416
  'secret': boolean;
18411
18417
  }
18418
+ /**
18419
+ * Request to atomically replace all Terraform variables. Note: For secret variables, use value \"SECRET_VALUE_UNCHANGED\" to preserve the existing secret value.
18420
+ * @export
18421
+ * @interface TerraformVariablesReplaceRequest
18422
+ */
18423
+ export interface TerraformVariablesReplaceRequest {
18424
+ /**
18425
+ * Complete list of variables to set (replaces all existing variables)
18426
+ * @type {Array<TerraformVarKeyValue>}
18427
+ * @memberof TerraformVariablesReplaceRequest
18428
+ */
18429
+ 'variables': Array<TerraformVarKeyValue>;
18430
+ }
18412
18431
  /**
18413
18432
  * Response containing list of Terraform variables
18414
18433
  * @export
@@ -38224,13 +38243,13 @@ export declare const TerraformConfigurationApiAxiosParamCreator: (configuration?
38224
38243
  getTerraformVariables: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38225
38244
  /**
38226
38245
  *
38227
- * @summary Create or update a terraform variable
38246
+ * @summary Replace all terraform variables
38228
38247
  * @param {string} terraformId Terraform ID
38229
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38248
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38230
38249
  * @param {*} [options] Override http request option.
38231
38250
  * @throws {RequiredError}
38232
38251
  */
38233
- updateTerraformVariable: (terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38252
+ replaceAllTerraformVariables: (terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38234
38253
  };
38235
38254
  /**
38236
38255
  * TerraformConfigurationApi - functional programming interface
@@ -38273,13 +38292,13 @@ export declare const TerraformConfigurationApiFp: (configuration?: Configuration
38273
38292
  getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformVariablesResponse>>;
38274
38293
  /**
38275
38294
  *
38276
- * @summary Create or update a terraform variable
38295
+ * @summary Replace all terraform variables
38277
38296
  * @param {string} terraformId Terraform ID
38278
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38297
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38279
38298
  * @param {*} [options] Override http request option.
38280
38299
  * @throws {RequiredError}
38281
38300
  */
38282
- updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38301
+ replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38283
38302
  };
38284
38303
  /**
38285
38304
  * TerraformConfigurationApi - factory interface
@@ -38322,13 +38341,13 @@ export declare const TerraformConfigurationApiFactory: (configuration?: Configur
38322
38341
  getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformVariablesResponse>;
38323
38342
  /**
38324
38343
  *
38325
- * @summary Create or update a terraform variable
38344
+ * @summary Replace all terraform variables
38326
38345
  * @param {string} terraformId Terraform ID
38327
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38346
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38328
38347
  * @param {*} [options] Override http request option.
38329
38348
  * @throws {RequiredError}
38330
38349
  */
38331
- updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): AxiosPromise<void>;
38350
+ replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
38332
38351
  };
38333
38352
  /**
38334
38353
  * TerraformConfigurationApi - object-oriented interface
@@ -38377,14 +38396,14 @@ export declare class TerraformConfigurationApi extends BaseAPI {
38377
38396
  getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformVariablesResponse, any, {}>>;
38378
38397
  /**
38379
38398
  *
38380
- * @summary Create or update a terraform variable
38399
+ * @summary Replace all terraform variables
38381
38400
  * @param {string} terraformId Terraform ID
38382
- * @param {TerraformVarKeyValue} terraformVarKeyValue
38401
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
38383
38402
  * @param {*} [options] Override http request option.
38384
38403
  * @throws {RequiredError}
38385
38404
  * @memberof TerraformConfigurationApi
38386
38405
  */
38387
- updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
38406
+ replaceAllTerraformVariables(terraformId: string, terraformVariablesReplaceRequest: TerraformVariablesReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
38388
38407
  }
38389
38408
  /**
38390
38409
  * TerraformDeploymentHistoryApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -39529,17 +39529,17 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
39529
39529
  }),
39530
39530
  /**
39531
39531
  *
39532
- * @summary Create or update a terraform variable
39532
+ * @summary Replace all terraform variables
39533
39533
  * @param {string} terraformId Terraform ID
39534
- * @param {TerraformVarKeyValue} terraformVarKeyValue
39534
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
39535
39535
  * @param {*} [options] Override http request option.
39536
39536
  * @throws {RequiredError}
39537
39537
  */
39538
- updateTerraformVariable: (terraformId_1, terraformVarKeyValue_1, ...args_1) => __awaiter(this, [terraformId_1, terraformVarKeyValue_1, ...args_1], void 0, function* (terraformId, terraformVarKeyValue, options = {}) {
39538
+ replaceAllTerraformVariables: (terraformId_1, terraformVariablesReplaceRequest_1, ...args_1) => __awaiter(this, [terraformId_1, terraformVariablesReplaceRequest_1, ...args_1], void 0, function* (terraformId, terraformVariablesReplaceRequest, options = {}) {
39539
39539
  // verify required parameter 'terraformId' is not null or undefined
39540
- assertParamExists('updateTerraformVariable', 'terraformId', terraformId);
39541
- // verify required parameter 'terraformVarKeyValue' is not null or undefined
39542
- assertParamExists('updateTerraformVariable', 'terraformVarKeyValue', terraformVarKeyValue);
39540
+ assertParamExists('replaceAllTerraformVariables', 'terraformId', terraformId);
39541
+ // verify required parameter 'terraformVariablesReplaceRequest' is not null or undefined
39542
+ assertParamExists('replaceAllTerraformVariables', 'terraformVariablesReplaceRequest', terraformVariablesReplaceRequest);
39543
39543
  const localVarPath = `/terraform/{terraformId}/variables`
39544
39544
  .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
39545
39545
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -39548,7 +39548,7 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
39548
39548
  if (configuration) {
39549
39549
  baseOptions = configuration.baseOptions;
39550
39550
  }
39551
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
39551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
39552
39552
  const localVarHeaderParameter = {};
39553
39553
  const localVarQueryParameter = {};
39554
39554
  // authentication ApiKeyAuth required
@@ -39560,7 +39560,7 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
39560
39560
  setSearchParams(localVarUrlObj, localVarQueryParameter);
39561
39561
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39562
39562
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
39563
- localVarRequestOptions.data = serializeDataIfNeeded(terraformVarKeyValue, localVarRequestOptions, configuration);
39563
+ localVarRequestOptions.data = serializeDataIfNeeded(terraformVariablesReplaceRequest, localVarRequestOptions, configuration);
39564
39564
  return {
39565
39565
  url: toPathString(localVarUrlObj),
39566
39566
  options: localVarRequestOptions,
@@ -39643,18 +39643,18 @@ export const TerraformConfigurationApiFp = function (configuration) {
39643
39643
  },
39644
39644
  /**
39645
39645
  *
39646
- * @summary Create or update a terraform variable
39646
+ * @summary Replace all terraform variables
39647
39647
  * @param {string} terraformId Terraform ID
39648
- * @param {TerraformVarKeyValue} terraformVarKeyValue
39648
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
39649
39649
  * @param {*} [options] Override http request option.
39650
39650
  * @throws {RequiredError}
39651
39651
  */
39652
- updateTerraformVariable(terraformId, terraformVarKeyValue, options) {
39652
+ replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options) {
39653
39653
  return __awaiter(this, void 0, void 0, function* () {
39654
39654
  var _a, _b, _c;
39655
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTerraformVariable(terraformId, terraformVarKeyValue, options);
39655
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options);
39656
39656
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
39657
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformConfigurationApi.updateTerraformVariable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
39657
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformConfigurationApi.replaceAllTerraformVariables']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
39658
39658
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39659
39659
  });
39660
39660
  },
@@ -39711,14 +39711,14 @@ export const TerraformConfigurationApiFactory = function (configuration, basePat
39711
39711
  },
39712
39712
  /**
39713
39713
  *
39714
- * @summary Create or update a terraform variable
39714
+ * @summary Replace all terraform variables
39715
39715
  * @param {string} terraformId Terraform ID
39716
- * @param {TerraformVarKeyValue} terraformVarKeyValue
39716
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
39717
39717
  * @param {*} [options] Override http request option.
39718
39718
  * @throws {RequiredError}
39719
39719
  */
39720
- updateTerraformVariable(terraformId, terraformVarKeyValue, options) {
39721
- return localVarFp.updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(axios, basePath));
39720
+ replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options) {
39721
+ return localVarFp.replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options).then((request) => request(axios, basePath));
39722
39722
  },
39723
39723
  };
39724
39724
  };
@@ -39777,15 +39777,15 @@ export class TerraformConfigurationApi extends BaseAPI {
39777
39777
  }
39778
39778
  /**
39779
39779
  *
39780
- * @summary Create or update a terraform variable
39780
+ * @summary Replace all terraform variables
39781
39781
  * @param {string} terraformId Terraform ID
39782
- * @param {TerraformVarKeyValue} terraformVarKeyValue
39782
+ * @param {TerraformVariablesReplaceRequest} terraformVariablesReplaceRequest
39783
39783
  * @param {*} [options] Override http request option.
39784
39784
  * @throws {RequiredError}
39785
39785
  * @memberof TerraformConfigurationApi
39786
39786
  */
39787
- updateTerraformVariable(terraformId, terraformVarKeyValue, options) {
39788
- return TerraformConfigurationApiFp(this.configuration).updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(this.axios, this.basePath));
39787
+ replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options) {
39788
+ return TerraformConfigurationApiFp(this.configuration).replaceAllTerraformVariables(terraformId, terraformVariablesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
39789
39789
  }
39790
39790
  }
39791
39791
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.744",
3
+ "version": "v1.1.746",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {