qovery-typescript-axios 1.1.737 → 1.1.738
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 +288 -0
- package/dist/api.d.ts +151 -0
- package/dist/api.js +228 -0
- package/dist/esm/api.d.ts +151 -0
- package/dist/esm/api.js +228 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -18994,6 +18994,44 @@ export interface TerraformVariableParsingRequest {
|
|
|
18994
18994
|
*/
|
|
18995
18995
|
'git_repository': ApplicationGitRepositoryRequest;
|
|
18996
18996
|
}
|
|
18997
|
+
/**
|
|
18998
|
+
* A Terraform variable with its configuration
|
|
18999
|
+
* @export
|
|
19000
|
+
* @interface TerraformVariableResponse
|
|
19001
|
+
*/
|
|
19002
|
+
export interface TerraformVariableResponse {
|
|
19003
|
+
/**
|
|
19004
|
+
* The variable key/name
|
|
19005
|
+
* @type {string}
|
|
19006
|
+
* @memberof TerraformVariableResponse
|
|
19007
|
+
*/
|
|
19008
|
+
'key': string;
|
|
19009
|
+
/**
|
|
19010
|
+
* The variable value (null if secret and not exposed)
|
|
19011
|
+
* @type {string}
|
|
19012
|
+
* @memberof TerraformVariableResponse
|
|
19013
|
+
*/
|
|
19014
|
+
'value'?: string | null;
|
|
19015
|
+
/**
|
|
19016
|
+
* Whether the variable is secret
|
|
19017
|
+
* @type {boolean}
|
|
19018
|
+
* @memberof TerraformVariableResponse
|
|
19019
|
+
*/
|
|
19020
|
+
'secret': boolean;
|
|
19021
|
+
}
|
|
19022
|
+
/**
|
|
19023
|
+
* Response containing list of Terraform variables
|
|
19024
|
+
* @export
|
|
19025
|
+
* @interface TerraformVariablesResponse
|
|
19026
|
+
*/
|
|
19027
|
+
export interface TerraformVariablesResponse {
|
|
19028
|
+
/**
|
|
19029
|
+
*
|
|
19030
|
+
* @type {Array<TerraformVariableResponse>}
|
|
19031
|
+
* @memberof TerraformVariablesResponse
|
|
19032
|
+
*/
|
|
19033
|
+
'variables': Array<TerraformVariableResponse>;
|
|
19034
|
+
}
|
|
18997
19035
|
/**
|
|
18998
19036
|
*
|
|
18999
19037
|
* @export
|
|
@@ -19025,6 +19063,12 @@ export interface TerraformVariablesSourceResponse {
|
|
|
19025
19063
|
* @memberof TerraformVariablesSourceResponse
|
|
19026
19064
|
*/
|
|
19027
19065
|
'tf_var_file_paths': Array<string>;
|
|
19066
|
+
/**
|
|
19067
|
+
*
|
|
19068
|
+
* @type {Array<TerraformVarKeyValue>}
|
|
19069
|
+
* @memberof TerraformVariablesSourceResponse
|
|
19070
|
+
*/
|
|
19071
|
+
'tf_vars': Array<TerraformVarKeyValue>;
|
|
19028
19072
|
}
|
|
19029
19073
|
/**
|
|
19030
19074
|
*
|
|
@@ -61003,6 +61047,51 @@ export class TerraformActionsApi extends BaseAPI {
|
|
|
61003
61047
|
*/
|
|
61004
61048
|
export const TerraformConfigurationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
61005
61049
|
return {
|
|
61050
|
+
/**
|
|
61051
|
+
*
|
|
61052
|
+
* @summary Delete a terraform variable
|
|
61053
|
+
* @param {string} terraformId Terraform ID
|
|
61054
|
+
* @param {string} key Variable key to delete
|
|
61055
|
+
* @param {*} [options] Override http request option.
|
|
61056
|
+
* @throws {RequiredError}
|
|
61057
|
+
*/
|
|
61058
|
+
deleteTerraformVariable: async (terraformId: string, key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61059
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
61060
|
+
assertParamExists('deleteTerraformVariable', 'terraformId', terraformId)
|
|
61061
|
+
// verify required parameter 'key' is not null or undefined
|
|
61062
|
+
assertParamExists('deleteTerraformVariable', 'key', key)
|
|
61063
|
+
const localVarPath = `/terraform/{terraformId}/variables/{key}`
|
|
61064
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)))
|
|
61065
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
61066
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61067
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61068
|
+
let baseOptions;
|
|
61069
|
+
if (configuration) {
|
|
61070
|
+
baseOptions = configuration.baseOptions;
|
|
61071
|
+
}
|
|
61072
|
+
|
|
61073
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
61074
|
+
const localVarHeaderParameter = {} as any;
|
|
61075
|
+
const localVarQueryParameter = {} as any;
|
|
61076
|
+
|
|
61077
|
+
// authentication ApiKeyAuth required
|
|
61078
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
61079
|
+
|
|
61080
|
+
// authentication bearerAuth required
|
|
61081
|
+
// http bearer authentication required
|
|
61082
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61083
|
+
|
|
61084
|
+
|
|
61085
|
+
|
|
61086
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61087
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61088
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61089
|
+
|
|
61090
|
+
return {
|
|
61091
|
+
url: toPathString(localVarUrlObj),
|
|
61092
|
+
options: localVarRequestOptions,
|
|
61093
|
+
};
|
|
61094
|
+
},
|
|
61006
61095
|
/**
|
|
61007
61096
|
*
|
|
61008
61097
|
* @summary Edit Advanced settings
|
|
@@ -61084,6 +61173,94 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
|
|
|
61084
61173
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61085
61174
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61086
61175
|
|
|
61176
|
+
return {
|
|
61177
|
+
url: toPathString(localVarUrlObj),
|
|
61178
|
+
options: localVarRequestOptions,
|
|
61179
|
+
};
|
|
61180
|
+
},
|
|
61181
|
+
/**
|
|
61182
|
+
*
|
|
61183
|
+
* @summary Get terraform variables
|
|
61184
|
+
* @param {string} terraformId Terraform ID
|
|
61185
|
+
* @param {*} [options] Override http request option.
|
|
61186
|
+
* @throws {RequiredError}
|
|
61187
|
+
*/
|
|
61188
|
+
getTerraformVariables: async (terraformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61189
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
61190
|
+
assertParamExists('getTerraformVariables', 'terraformId', terraformId)
|
|
61191
|
+
const localVarPath = `/terraform/{terraformId}/variables`
|
|
61192
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
61193
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61194
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61195
|
+
let baseOptions;
|
|
61196
|
+
if (configuration) {
|
|
61197
|
+
baseOptions = configuration.baseOptions;
|
|
61198
|
+
}
|
|
61199
|
+
|
|
61200
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
61201
|
+
const localVarHeaderParameter = {} as any;
|
|
61202
|
+
const localVarQueryParameter = {} as any;
|
|
61203
|
+
|
|
61204
|
+
// authentication ApiKeyAuth required
|
|
61205
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
61206
|
+
|
|
61207
|
+
// authentication bearerAuth required
|
|
61208
|
+
// http bearer authentication required
|
|
61209
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61210
|
+
|
|
61211
|
+
|
|
61212
|
+
|
|
61213
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61215
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61216
|
+
|
|
61217
|
+
return {
|
|
61218
|
+
url: toPathString(localVarUrlObj),
|
|
61219
|
+
options: localVarRequestOptions,
|
|
61220
|
+
};
|
|
61221
|
+
},
|
|
61222
|
+
/**
|
|
61223
|
+
*
|
|
61224
|
+
* @summary Create or update a terraform variable
|
|
61225
|
+
* @param {string} terraformId Terraform ID
|
|
61226
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
61227
|
+
* @param {*} [options] Override http request option.
|
|
61228
|
+
* @throws {RequiredError}
|
|
61229
|
+
*/
|
|
61230
|
+
updateTerraformVariable: async (terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61231
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
61232
|
+
assertParamExists('updateTerraformVariable', 'terraformId', terraformId)
|
|
61233
|
+
// verify required parameter 'terraformVarKeyValue' is not null or undefined
|
|
61234
|
+
assertParamExists('updateTerraformVariable', 'terraformVarKeyValue', terraformVarKeyValue)
|
|
61235
|
+
const localVarPath = `/terraform/{terraformId}/variables`
|
|
61236
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
61237
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61238
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61239
|
+
let baseOptions;
|
|
61240
|
+
if (configuration) {
|
|
61241
|
+
baseOptions = configuration.baseOptions;
|
|
61242
|
+
}
|
|
61243
|
+
|
|
61244
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61245
|
+
const localVarHeaderParameter = {} as any;
|
|
61246
|
+
const localVarQueryParameter = {} as any;
|
|
61247
|
+
|
|
61248
|
+
// authentication ApiKeyAuth required
|
|
61249
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
61250
|
+
|
|
61251
|
+
// authentication bearerAuth required
|
|
61252
|
+
// http bearer authentication required
|
|
61253
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61254
|
+
|
|
61255
|
+
|
|
61256
|
+
|
|
61257
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61258
|
+
|
|
61259
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61260
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61261
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61262
|
+
localVarRequestOptions.data = serializeDataIfNeeded(terraformVarKeyValue, localVarRequestOptions, configuration)
|
|
61263
|
+
|
|
61087
61264
|
return {
|
|
61088
61265
|
url: toPathString(localVarUrlObj),
|
|
61089
61266
|
options: localVarRequestOptions,
|
|
@@ -61099,6 +61276,20 @@ export const TerraformConfigurationApiAxiosParamCreator = function (configuratio
|
|
|
61099
61276
|
export const TerraformConfigurationApiFp = function(configuration?: Configuration) {
|
|
61100
61277
|
const localVarAxiosParamCreator = TerraformConfigurationApiAxiosParamCreator(configuration)
|
|
61101
61278
|
return {
|
|
61279
|
+
/**
|
|
61280
|
+
*
|
|
61281
|
+
* @summary Delete a terraform variable
|
|
61282
|
+
* @param {string} terraformId Terraform ID
|
|
61283
|
+
* @param {string} key Variable key to delete
|
|
61284
|
+
* @param {*} [options] Override http request option.
|
|
61285
|
+
* @throws {RequiredError}
|
|
61286
|
+
*/
|
|
61287
|
+
async deleteTerraformVariable(terraformId: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
61288
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTerraformVariable(terraformId, key, options);
|
|
61289
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
61290
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformConfigurationApi.deleteTerraformVariable']?.[localVarOperationServerIndex]?.url;
|
|
61291
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61292
|
+
},
|
|
61102
61293
|
/**
|
|
61103
61294
|
*
|
|
61104
61295
|
* @summary Edit Advanced settings
|
|
@@ -61126,6 +61317,33 @@ export const TerraformConfigurationApiFp = function(configuration?: Configuratio
|
|
|
61126
61317
|
const localVarOperationServerBasePath = operationServerMap['TerraformConfigurationApi.getTerraformAdvancedSettings']?.[localVarOperationServerIndex]?.url;
|
|
61127
61318
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61128
61319
|
},
|
|
61320
|
+
/**
|
|
61321
|
+
*
|
|
61322
|
+
* @summary Get terraform variables
|
|
61323
|
+
* @param {string} terraformId Terraform ID
|
|
61324
|
+
* @param {*} [options] Override http request option.
|
|
61325
|
+
* @throws {RequiredError}
|
|
61326
|
+
*/
|
|
61327
|
+
async getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformVariablesResponse>> {
|
|
61328
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTerraformVariables(terraformId, options);
|
|
61329
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
61330
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformConfigurationApi.getTerraformVariables']?.[localVarOperationServerIndex]?.url;
|
|
61331
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61332
|
+
},
|
|
61333
|
+
/**
|
|
61334
|
+
*
|
|
61335
|
+
* @summary Create or update a terraform variable
|
|
61336
|
+
* @param {string} terraformId Terraform ID
|
|
61337
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
61338
|
+
* @param {*} [options] Override http request option.
|
|
61339
|
+
* @throws {RequiredError}
|
|
61340
|
+
*/
|
|
61341
|
+
async updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
61342
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTerraformVariable(terraformId, terraformVarKeyValue, options);
|
|
61343
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
61344
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformConfigurationApi.updateTerraformVariable']?.[localVarOperationServerIndex]?.url;
|
|
61345
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61346
|
+
},
|
|
61129
61347
|
}
|
|
61130
61348
|
};
|
|
61131
61349
|
|
|
@@ -61136,6 +61354,17 @@ export const TerraformConfigurationApiFp = function(configuration?: Configuratio
|
|
|
61136
61354
|
export const TerraformConfigurationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
61137
61355
|
const localVarFp = TerraformConfigurationApiFp(configuration)
|
|
61138
61356
|
return {
|
|
61357
|
+
/**
|
|
61358
|
+
*
|
|
61359
|
+
* @summary Delete a terraform variable
|
|
61360
|
+
* @param {string} terraformId Terraform ID
|
|
61361
|
+
* @param {string} key Variable key to delete
|
|
61362
|
+
* @param {*} [options] Override http request option.
|
|
61363
|
+
* @throws {RequiredError}
|
|
61364
|
+
*/
|
|
61365
|
+
deleteTerraformVariable(terraformId: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
61366
|
+
return localVarFp.deleteTerraformVariable(terraformId, key, options).then((request) => request(axios, basePath));
|
|
61367
|
+
},
|
|
61139
61368
|
/**
|
|
61140
61369
|
*
|
|
61141
61370
|
* @summary Edit Advanced settings
|
|
@@ -61157,6 +61386,27 @@ export const TerraformConfigurationApiFactory = function (configuration?: Config
|
|
|
61157
61386
|
getTerraformAdvancedSettings(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformAdvancedSettings> {
|
|
61158
61387
|
return localVarFp.getTerraformAdvancedSettings(terraformId, options).then((request) => request(axios, basePath));
|
|
61159
61388
|
},
|
|
61389
|
+
/**
|
|
61390
|
+
*
|
|
61391
|
+
* @summary Get terraform variables
|
|
61392
|
+
* @param {string} terraformId Terraform ID
|
|
61393
|
+
* @param {*} [options] Override http request option.
|
|
61394
|
+
* @throws {RequiredError}
|
|
61395
|
+
*/
|
|
61396
|
+
getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformVariablesResponse> {
|
|
61397
|
+
return localVarFp.getTerraformVariables(terraformId, options).then((request) => request(axios, basePath));
|
|
61398
|
+
},
|
|
61399
|
+
/**
|
|
61400
|
+
*
|
|
61401
|
+
* @summary Create or update a terraform variable
|
|
61402
|
+
* @param {string} terraformId Terraform ID
|
|
61403
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
61404
|
+
* @param {*} [options] Override http request option.
|
|
61405
|
+
* @throws {RequiredError}
|
|
61406
|
+
*/
|
|
61407
|
+
updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
61408
|
+
return localVarFp.updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(axios, basePath));
|
|
61409
|
+
},
|
|
61160
61410
|
};
|
|
61161
61411
|
};
|
|
61162
61412
|
|
|
@@ -61167,6 +61417,19 @@ export const TerraformConfigurationApiFactory = function (configuration?: Config
|
|
|
61167
61417
|
* @extends {BaseAPI}
|
|
61168
61418
|
*/
|
|
61169
61419
|
export class TerraformConfigurationApi extends BaseAPI {
|
|
61420
|
+
/**
|
|
61421
|
+
*
|
|
61422
|
+
* @summary Delete a terraform variable
|
|
61423
|
+
* @param {string} terraformId Terraform ID
|
|
61424
|
+
* @param {string} key Variable key to delete
|
|
61425
|
+
* @param {*} [options] Override http request option.
|
|
61426
|
+
* @throws {RequiredError}
|
|
61427
|
+
* @memberof TerraformConfigurationApi
|
|
61428
|
+
*/
|
|
61429
|
+
public deleteTerraformVariable(terraformId: string, key: string, options?: RawAxiosRequestConfig) {
|
|
61430
|
+
return TerraformConfigurationApiFp(this.configuration).deleteTerraformVariable(terraformId, key, options).then((request) => request(this.axios, this.basePath));
|
|
61431
|
+
}
|
|
61432
|
+
|
|
61170
61433
|
/**
|
|
61171
61434
|
*
|
|
61172
61435
|
* @summary Edit Advanced settings
|
|
@@ -61191,6 +61454,31 @@ export class TerraformConfigurationApi extends BaseAPI {
|
|
|
61191
61454
|
public getTerraformAdvancedSettings(terraformId: string, options?: RawAxiosRequestConfig) {
|
|
61192
61455
|
return TerraformConfigurationApiFp(this.configuration).getTerraformAdvancedSettings(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
61193
61456
|
}
|
|
61457
|
+
|
|
61458
|
+
/**
|
|
61459
|
+
*
|
|
61460
|
+
* @summary Get terraform variables
|
|
61461
|
+
* @param {string} terraformId Terraform ID
|
|
61462
|
+
* @param {*} [options] Override http request option.
|
|
61463
|
+
* @throws {RequiredError}
|
|
61464
|
+
* @memberof TerraformConfigurationApi
|
|
61465
|
+
*/
|
|
61466
|
+
public getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig) {
|
|
61467
|
+
return TerraformConfigurationApiFp(this.configuration).getTerraformVariables(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
61468
|
+
}
|
|
61469
|
+
|
|
61470
|
+
/**
|
|
61471
|
+
*
|
|
61472
|
+
* @summary Create or update a terraform variable
|
|
61473
|
+
* @param {string} terraformId Terraform ID
|
|
61474
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
61475
|
+
* @param {*} [options] Override http request option.
|
|
61476
|
+
* @throws {RequiredError}
|
|
61477
|
+
* @memberof TerraformConfigurationApi
|
|
61478
|
+
*/
|
|
61479
|
+
public updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig) {
|
|
61480
|
+
return TerraformConfigurationApiFp(this.configuration).updateTerraformVariable(terraformId, terraformVarKeyValue, options).then((request) => request(this.axios, this.basePath));
|
|
61481
|
+
}
|
|
61194
61482
|
}
|
|
61195
61483
|
|
|
61196
61484
|
|
package/dist/api.d.ts
CHANGED
|
@@ -18372,6 +18372,44 @@ export interface TerraformVariableParsingRequest {
|
|
|
18372
18372
|
*/
|
|
18373
18373
|
'git_repository': ApplicationGitRepositoryRequest;
|
|
18374
18374
|
}
|
|
18375
|
+
/**
|
|
18376
|
+
* A Terraform variable with its configuration
|
|
18377
|
+
* @export
|
|
18378
|
+
* @interface TerraformVariableResponse
|
|
18379
|
+
*/
|
|
18380
|
+
export interface TerraformVariableResponse {
|
|
18381
|
+
/**
|
|
18382
|
+
* The variable key/name
|
|
18383
|
+
* @type {string}
|
|
18384
|
+
* @memberof TerraformVariableResponse
|
|
18385
|
+
*/
|
|
18386
|
+
'key': string;
|
|
18387
|
+
/**
|
|
18388
|
+
* The variable value (null if secret and not exposed)
|
|
18389
|
+
* @type {string}
|
|
18390
|
+
* @memberof TerraformVariableResponse
|
|
18391
|
+
*/
|
|
18392
|
+
'value'?: string | null;
|
|
18393
|
+
/**
|
|
18394
|
+
* Whether the variable is secret
|
|
18395
|
+
* @type {boolean}
|
|
18396
|
+
* @memberof TerraformVariableResponse
|
|
18397
|
+
*/
|
|
18398
|
+
'secret': boolean;
|
|
18399
|
+
}
|
|
18400
|
+
/**
|
|
18401
|
+
* Response containing list of Terraform variables
|
|
18402
|
+
* @export
|
|
18403
|
+
* @interface TerraformVariablesResponse
|
|
18404
|
+
*/
|
|
18405
|
+
export interface TerraformVariablesResponse {
|
|
18406
|
+
/**
|
|
18407
|
+
*
|
|
18408
|
+
* @type {Array<TerraformVariableResponse>}
|
|
18409
|
+
* @memberof TerraformVariablesResponse
|
|
18410
|
+
*/
|
|
18411
|
+
'variables': Array<TerraformVariableResponse>;
|
|
18412
|
+
}
|
|
18375
18413
|
/**
|
|
18376
18414
|
*
|
|
18377
18415
|
* @export
|
|
@@ -18403,6 +18441,12 @@ export interface TerraformVariablesSourceResponse {
|
|
|
18403
18441
|
* @memberof TerraformVariablesSourceResponse
|
|
18404
18442
|
*/
|
|
18405
18443
|
'tf_var_file_paths': Array<string>;
|
|
18444
|
+
/**
|
|
18445
|
+
*
|
|
18446
|
+
* @type {Array<TerraformVarKeyValue>}
|
|
18447
|
+
* @memberof TerraformVariablesSourceResponse
|
|
18448
|
+
*/
|
|
18449
|
+
'tf_vars': Array<TerraformVarKeyValue>;
|
|
18406
18450
|
}
|
|
18407
18451
|
/**
|
|
18408
18452
|
*
|
|
@@ -38132,6 +38176,15 @@ export declare class TerraformActionsApi extends BaseAPI {
|
|
|
38132
38176
|
* @export
|
|
38133
38177
|
*/
|
|
38134
38178
|
export declare const TerraformConfigurationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
38179
|
+
/**
|
|
38180
|
+
*
|
|
38181
|
+
* @summary Delete a terraform variable
|
|
38182
|
+
* @param {string} terraformId Terraform ID
|
|
38183
|
+
* @param {string} key Variable key to delete
|
|
38184
|
+
* @param {*} [options] Override http request option.
|
|
38185
|
+
* @throws {RequiredError}
|
|
38186
|
+
*/
|
|
38187
|
+
deleteTerraformVariable: (terraformId: string, key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38135
38188
|
/**
|
|
38136
38189
|
*
|
|
38137
38190
|
* @summary Edit Advanced settings
|
|
@@ -38149,12 +38202,38 @@ export declare const TerraformConfigurationApiAxiosParamCreator: (configuration?
|
|
|
38149
38202
|
* @throws {RequiredError}
|
|
38150
38203
|
*/
|
|
38151
38204
|
getTerraformAdvancedSettings: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38205
|
+
/**
|
|
38206
|
+
*
|
|
38207
|
+
* @summary Get terraform variables
|
|
38208
|
+
* @param {string} terraformId Terraform ID
|
|
38209
|
+
* @param {*} [options] Override http request option.
|
|
38210
|
+
* @throws {RequiredError}
|
|
38211
|
+
*/
|
|
38212
|
+
getTerraformVariables: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38213
|
+
/**
|
|
38214
|
+
*
|
|
38215
|
+
* @summary Create or update a terraform variable
|
|
38216
|
+
* @param {string} terraformId Terraform ID
|
|
38217
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
38218
|
+
* @param {*} [options] Override http request option.
|
|
38219
|
+
* @throws {RequiredError}
|
|
38220
|
+
*/
|
|
38221
|
+
updateTerraformVariable: (terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38152
38222
|
};
|
|
38153
38223
|
/**
|
|
38154
38224
|
* TerraformConfigurationApi - functional programming interface
|
|
38155
38225
|
* @export
|
|
38156
38226
|
*/
|
|
38157
38227
|
export declare const TerraformConfigurationApiFp: (configuration?: Configuration) => {
|
|
38228
|
+
/**
|
|
38229
|
+
*
|
|
38230
|
+
* @summary Delete a terraform variable
|
|
38231
|
+
* @param {string} terraformId Terraform ID
|
|
38232
|
+
* @param {string} key Variable key to delete
|
|
38233
|
+
* @param {*} [options] Override http request option.
|
|
38234
|
+
* @throws {RequiredError}
|
|
38235
|
+
*/
|
|
38236
|
+
deleteTerraformVariable(terraformId: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
38158
38237
|
/**
|
|
38159
38238
|
*
|
|
38160
38239
|
* @summary Edit Advanced settings
|
|
@@ -38172,12 +38251,38 @@ export declare const TerraformConfigurationApiFp: (configuration?: Configuration
|
|
|
38172
38251
|
* @throws {RequiredError}
|
|
38173
38252
|
*/
|
|
38174
38253
|
getTerraformAdvancedSettings(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformAdvancedSettings>>;
|
|
38254
|
+
/**
|
|
38255
|
+
*
|
|
38256
|
+
* @summary Get terraform variables
|
|
38257
|
+
* @param {string} terraformId Terraform ID
|
|
38258
|
+
* @param {*} [options] Override http request option.
|
|
38259
|
+
* @throws {RequiredError}
|
|
38260
|
+
*/
|
|
38261
|
+
getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformVariablesResponse>>;
|
|
38262
|
+
/**
|
|
38263
|
+
*
|
|
38264
|
+
* @summary Create or update a terraform variable
|
|
38265
|
+
* @param {string} terraformId Terraform ID
|
|
38266
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
38267
|
+
* @param {*} [options] Override http request option.
|
|
38268
|
+
* @throws {RequiredError}
|
|
38269
|
+
*/
|
|
38270
|
+
updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
38175
38271
|
};
|
|
38176
38272
|
/**
|
|
38177
38273
|
* TerraformConfigurationApi - factory interface
|
|
38178
38274
|
* @export
|
|
38179
38275
|
*/
|
|
38180
38276
|
export declare const TerraformConfigurationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
38277
|
+
/**
|
|
38278
|
+
*
|
|
38279
|
+
* @summary Delete a terraform variable
|
|
38280
|
+
* @param {string} terraformId Terraform ID
|
|
38281
|
+
* @param {string} key Variable key to delete
|
|
38282
|
+
* @param {*} [options] Override http request option.
|
|
38283
|
+
* @throws {RequiredError}
|
|
38284
|
+
*/
|
|
38285
|
+
deleteTerraformVariable(terraformId: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
38181
38286
|
/**
|
|
38182
38287
|
*
|
|
38183
38288
|
* @summary Edit Advanced settings
|
|
@@ -38195,6 +38300,23 @@ export declare const TerraformConfigurationApiFactory: (configuration?: Configur
|
|
|
38195
38300
|
* @throws {RequiredError}
|
|
38196
38301
|
*/
|
|
38197
38302
|
getTerraformAdvancedSettings(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformAdvancedSettings>;
|
|
38303
|
+
/**
|
|
38304
|
+
*
|
|
38305
|
+
* @summary Get terraform variables
|
|
38306
|
+
* @param {string} terraformId Terraform ID
|
|
38307
|
+
* @param {*} [options] Override http request option.
|
|
38308
|
+
* @throws {RequiredError}
|
|
38309
|
+
*/
|
|
38310
|
+
getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformVariablesResponse>;
|
|
38311
|
+
/**
|
|
38312
|
+
*
|
|
38313
|
+
* @summary Create or update a terraform variable
|
|
38314
|
+
* @param {string} terraformId Terraform ID
|
|
38315
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
38316
|
+
* @param {*} [options] Override http request option.
|
|
38317
|
+
* @throws {RequiredError}
|
|
38318
|
+
*/
|
|
38319
|
+
updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
38198
38320
|
};
|
|
38199
38321
|
/**
|
|
38200
38322
|
* TerraformConfigurationApi - object-oriented interface
|
|
@@ -38203,6 +38325,16 @@ export declare const TerraformConfigurationApiFactory: (configuration?: Configur
|
|
|
38203
38325
|
* @extends {BaseAPI}
|
|
38204
38326
|
*/
|
|
38205
38327
|
export declare class TerraformConfigurationApi extends BaseAPI {
|
|
38328
|
+
/**
|
|
38329
|
+
*
|
|
38330
|
+
* @summary Delete a terraform variable
|
|
38331
|
+
* @param {string} terraformId Terraform ID
|
|
38332
|
+
* @param {string} key Variable key to delete
|
|
38333
|
+
* @param {*} [options] Override http request option.
|
|
38334
|
+
* @throws {RequiredError}
|
|
38335
|
+
* @memberof TerraformConfigurationApi
|
|
38336
|
+
*/
|
|
38337
|
+
deleteTerraformVariable(terraformId: string, key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
38206
38338
|
/**
|
|
38207
38339
|
*
|
|
38208
38340
|
* @summary Edit Advanced settings
|
|
@@ -38222,6 +38354,25 @@ export declare class TerraformConfigurationApi extends BaseAPI {
|
|
|
38222
38354
|
* @memberof TerraformConfigurationApi
|
|
38223
38355
|
*/
|
|
38224
38356
|
getTerraformAdvancedSettings(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformAdvancedSettings, any, {}>>;
|
|
38357
|
+
/**
|
|
38358
|
+
*
|
|
38359
|
+
* @summary Get terraform variables
|
|
38360
|
+
* @param {string} terraformId Terraform ID
|
|
38361
|
+
* @param {*} [options] Override http request option.
|
|
38362
|
+
* @throws {RequiredError}
|
|
38363
|
+
* @memberof TerraformConfigurationApi
|
|
38364
|
+
*/
|
|
38365
|
+
getTerraformVariables(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformVariablesResponse, any, {}>>;
|
|
38366
|
+
/**
|
|
38367
|
+
*
|
|
38368
|
+
* @summary Create or update a terraform variable
|
|
38369
|
+
* @param {string} terraformId Terraform ID
|
|
38370
|
+
* @param {TerraformVarKeyValue} terraformVarKeyValue
|
|
38371
|
+
* @param {*} [options] Override http request option.
|
|
38372
|
+
* @throws {RequiredError}
|
|
38373
|
+
* @memberof TerraformConfigurationApi
|
|
38374
|
+
*/
|
|
38375
|
+
updateTerraformVariable(terraformId: string, terraformVarKeyValue: TerraformVarKeyValue, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
38225
38376
|
}
|
|
38226
38377
|
/**
|
|
38227
38378
|
* TerraformDeploymentHistoryApi - axios parameter creator
|