qovery-typescript-axios 1.1.172 → 1.1.173

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.
Files changed (4) hide show
  1. package/api.ts +385 -0
  2. package/dist/api.d.ts +219 -0
  3. package/dist/api.js +285 -0
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -13454,6 +13454,25 @@ export interface VariableAliasRequest {
13454
13454
  */
13455
13455
  'alias_parent_id': string;
13456
13456
  }
13457
+ /**
13458
+ *
13459
+ * @export
13460
+ * @interface VariableEditRequest
13461
+ */
13462
+ export interface VariableEditRequest {
13463
+ /**
13464
+ *
13465
+ * @type {string}
13466
+ * @memberof VariableEditRequest
13467
+ */
13468
+ 'key': string;
13469
+ /**
13470
+ *
13471
+ * @type {string}
13472
+ * @memberof VariableEditRequest
13473
+ */
13474
+ 'value': string;
13475
+ }
13457
13476
  /**
13458
13477
  *
13459
13478
  * @export
@@ -13622,6 +13641,49 @@ export interface VariableOverrideRequest {
13622
13641
  */
13623
13642
  'alias_parent_id': string;
13624
13643
  }
13644
+ /**
13645
+ *
13646
+ * @export
13647
+ * @interface VariableRequest
13648
+ */
13649
+ export interface VariableRequest {
13650
+ /**
13651
+ *
13652
+ * @type {string}
13653
+ * @memberof VariableRequest
13654
+ */
13655
+ 'key': string;
13656
+ /**
13657
+ *
13658
+ * @type {string}
13659
+ * @memberof VariableRequest
13660
+ */
13661
+ 'value': string;
13662
+ /**
13663
+ *
13664
+ * @type {string}
13665
+ * @memberof VariableRequest
13666
+ */
13667
+ 'mount_path'?: string | null;
13668
+ /**
13669
+ *
13670
+ * @type {boolean}
13671
+ * @memberof VariableRequest
13672
+ */
13673
+ 'is_secret': boolean;
13674
+ /**
13675
+ *
13676
+ * @type {APIVariableScopeEnum}
13677
+ * @memberof VariableRequest
13678
+ */
13679
+ 'variable_scope': APIVariableScopeEnum;
13680
+ /**
13681
+ *
13682
+ * @type {string}
13683
+ * @memberof VariableRequest
13684
+ */
13685
+ 'variable_parent_id': string;
13686
+ }
13625
13687
  /**
13626
13688
  *
13627
13689
  * @export
@@ -13750,6 +13812,19 @@ export interface VariableResponseAllOf {
13750
13812
  */
13751
13813
  'owned_by'?: string;
13752
13814
  }
13815
+ /**
13816
+ *
13817
+ * @export
13818
+ * @interface VariableResponseList
13819
+ */
13820
+ export interface VariableResponseList {
13821
+ /**
13822
+ *
13823
+ * @type {Array<VariableResponse>}
13824
+ * @memberof VariableResponseList
13825
+ */
13826
+ 'results'?: Array<VariableResponse>;
13827
+ }
13753
13828
  /**
13754
13829
  *
13755
13830
  * @export
@@ -43752,6 +43827,44 @@ export class UserSignUpApi extends BaseAPI {
43752
43827
  */
43753
43828
  export const VariableMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
43754
43829
  return {
43830
+ /**
43831
+ * - Create a variable at the level defined in the request body.
43832
+ * @summary Create a variable
43833
+ * @param {VariableRequest} [variableRequest]
43834
+ * @param {*} [options] Override http request option.
43835
+ * @throws {RequiredError}
43836
+ */
43837
+ createVariable: async (variableRequest?: VariableRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43838
+ const localVarPath = `/variable`;
43839
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43840
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43841
+ let baseOptions;
43842
+ if (configuration) {
43843
+ baseOptions = configuration.baseOptions;
43844
+ }
43845
+
43846
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43847
+ const localVarHeaderParameter = {} as any;
43848
+ const localVarQueryParameter = {} as any;
43849
+
43850
+ // authentication bearerAuth required
43851
+ // http bearer authentication required
43852
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43853
+
43854
+
43855
+
43856
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43857
+
43858
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43859
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43860
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43861
+ localVarRequestOptions.data = serializeDataIfNeeded(variableRequest, localVarRequestOptions, configuration)
43862
+
43863
+ return {
43864
+ url: toPathString(localVarUrlObj),
43865
+ options: localVarRequestOptions,
43866
+ };
43867
+ },
43755
43868
  /**
43756
43869
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43757
43870
  * @summary Create a variable alias
@@ -43831,6 +43944,137 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
43831
43944
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43832
43945
  localVarRequestOptions.data = serializeDataIfNeeded(variableOverrideRequest, localVarRequestOptions, configuration)
43833
43946
 
43947
+ return {
43948
+ url: toPathString(localVarUrlObj),
43949
+ options: localVarRequestOptions,
43950
+ };
43951
+ },
43952
+ /**
43953
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
43954
+ * @summary Delete a variable
43955
+ * @param {string} variableId Variable ID
43956
+ * @param {*} [options] Override http request option.
43957
+ * @throws {RequiredError}
43958
+ */
43959
+ deleteVariable: async (variableId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43960
+ // verify required parameter 'variableId' is not null or undefined
43961
+ assertParamExists('deleteVariable', 'variableId', variableId)
43962
+ const localVarPath = `/variable/{variableId}`
43963
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
43964
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43965
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43966
+ let baseOptions;
43967
+ if (configuration) {
43968
+ baseOptions = configuration.baseOptions;
43969
+ }
43970
+
43971
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
43972
+ const localVarHeaderParameter = {} as any;
43973
+ const localVarQueryParameter = {} as any;
43974
+
43975
+ // authentication bearerAuth required
43976
+ // http bearer authentication required
43977
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43978
+
43979
+
43980
+
43981
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43983
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43984
+
43985
+ return {
43986
+ url: toPathString(localVarUrlObj),
43987
+ options: localVarRequestOptions,
43988
+ };
43989
+ },
43990
+ /**
43991
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
43992
+ * @summary Edit a variable
43993
+ * @param {string} variableId Variable ID
43994
+ * @param {VariableEditRequest} variableEditRequest
43995
+ * @param {*} [options] Override http request option.
43996
+ * @throws {RequiredError}
43997
+ */
43998
+ editVariable: async (variableId: string, variableEditRequest: VariableEditRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43999
+ // verify required parameter 'variableId' is not null or undefined
44000
+ assertParamExists('editVariable', 'variableId', variableId)
44001
+ // verify required parameter 'variableEditRequest' is not null or undefined
44002
+ assertParamExists('editVariable', 'variableEditRequest', variableEditRequest)
44003
+ const localVarPath = `/variable/{variableId}`
44004
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
44005
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44006
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44007
+ let baseOptions;
44008
+ if (configuration) {
44009
+ baseOptions = configuration.baseOptions;
44010
+ }
44011
+
44012
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
44013
+ const localVarHeaderParameter = {} as any;
44014
+ const localVarQueryParameter = {} as any;
44015
+
44016
+ // authentication bearerAuth required
44017
+ // http bearer authentication required
44018
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
44019
+
44020
+
44021
+
44022
+ localVarHeaderParameter['Content-Type'] = 'application/json';
44023
+
44024
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44025
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44026
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44027
+ localVarRequestOptions.data = serializeDataIfNeeded(variableEditRequest, localVarRequestOptions, configuration)
44028
+
44029
+ return {
44030
+ url: toPathString(localVarUrlObj),
44031
+ options: localVarRequestOptions,
44032
+ };
44033
+ },
44034
+ /**
44035
+ * Returns a list of variables
44036
+ * @summary List variables
44037
+ * @param {string} [parentId] the id where the variable will be added
44038
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44039
+ * @param {boolean} [isSecret]
44040
+ * @param {*} [options] Override http request option.
44041
+ * @throws {RequiredError}
44042
+ */
44043
+ listVariables: async (parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44044
+ const localVarPath = `/variable`;
44045
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44046
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44047
+ let baseOptions;
44048
+ if (configuration) {
44049
+ baseOptions = configuration.baseOptions;
44050
+ }
44051
+
44052
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
44053
+ const localVarHeaderParameter = {} as any;
44054
+ const localVarQueryParameter = {} as any;
44055
+
44056
+ // authentication bearerAuth required
44057
+ // http bearer authentication required
44058
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
44059
+
44060
+ if (parentId !== undefined) {
44061
+ localVarQueryParameter['parent_id'] = parentId;
44062
+ }
44063
+
44064
+ if (scope !== undefined) {
44065
+ localVarQueryParameter['scope'] = scope;
44066
+ }
44067
+
44068
+ if (isSecret !== undefined) {
44069
+ localVarQueryParameter['is_secret'] = isSecret;
44070
+ }
44071
+
44072
+
44073
+
44074
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44075
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44076
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44077
+
43834
44078
  return {
43835
44079
  url: toPathString(localVarUrlObj),
43836
44080
  options: localVarRequestOptions,
@@ -43846,6 +44090,17 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
43846
44090
  export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43847
44091
  const localVarAxiosParamCreator = VariableMainCallsApiAxiosParamCreator(configuration)
43848
44092
  return {
44093
+ /**
44094
+ * - Create a variable at the level defined in the request body.
44095
+ * @summary Create a variable
44096
+ * @param {VariableRequest} [variableRequest]
44097
+ * @param {*} [options] Override http request option.
44098
+ * @throws {RequiredError}
44099
+ */
44100
+ async createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>> {
44101
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariable(variableRequest, options);
44102
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44103
+ },
43849
44104
  /**
43850
44105
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43851
44106
  * @summary Create a variable alias
@@ -43870,6 +44125,42 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43870
44125
  const localVarAxiosArgs = await localVarAxiosParamCreator.createVariableOverride(variableId, variableOverrideRequest, options);
43871
44126
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43872
44127
  },
44128
+ /**
44129
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
44130
+ * @summary Delete a variable
44131
+ * @param {string} variableId Variable ID
44132
+ * @param {*} [options] Override http request option.
44133
+ * @throws {RequiredError}
44134
+ */
44135
+ async deleteVariable(variableId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
44136
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVariable(variableId, options);
44137
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44138
+ },
44139
+ /**
44140
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
44141
+ * @summary Edit a variable
44142
+ * @param {string} variableId Variable ID
44143
+ * @param {VariableEditRequest} variableEditRequest
44144
+ * @param {*} [options] Override http request option.
44145
+ * @throws {RequiredError}
44146
+ */
44147
+ async editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>> {
44148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editVariable(variableId, variableEditRequest, options);
44149
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44150
+ },
44151
+ /**
44152
+ * Returns a list of variables
44153
+ * @summary List variables
44154
+ * @param {string} [parentId] the id where the variable will be added
44155
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44156
+ * @param {boolean} [isSecret]
44157
+ * @param {*} [options] Override http request option.
44158
+ * @throws {RequiredError}
44159
+ */
44160
+ async listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponseList>> {
44161
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVariables(parentId, scope, isSecret, options);
44162
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44163
+ },
43873
44164
  }
43874
44165
  };
43875
44166
 
@@ -43880,6 +44171,16 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43880
44171
  export const VariableMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43881
44172
  const localVarFp = VariableMainCallsApiFp(configuration)
43882
44173
  return {
44174
+ /**
44175
+ * - Create a variable at the level defined in the request body.
44176
+ * @summary Create a variable
44177
+ * @param {VariableRequest} [variableRequest]
44178
+ * @param {*} [options] Override http request option.
44179
+ * @throws {RequiredError}
44180
+ */
44181
+ createVariable(variableRequest?: VariableRequest, options?: any): AxiosPromise<VariableResponse> {
44182
+ return localVarFp.createVariable(variableRequest, options).then((request) => request(axios, basePath));
44183
+ },
43883
44184
  /**
43884
44185
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43885
44186
  * @summary Create a variable alias
@@ -43902,6 +44203,39 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
43902
44203
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: any): AxiosPromise<VariableResponse> {
43903
44204
  return localVarFp.createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(axios, basePath));
43904
44205
  },
44206
+ /**
44207
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
44208
+ * @summary Delete a variable
44209
+ * @param {string} variableId Variable ID
44210
+ * @param {*} [options] Override http request option.
44211
+ * @throws {RequiredError}
44212
+ */
44213
+ deleteVariable(variableId: string, options?: any): AxiosPromise<void> {
44214
+ return localVarFp.deleteVariable(variableId, options).then((request) => request(axios, basePath));
44215
+ },
44216
+ /**
44217
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
44218
+ * @summary Edit a variable
44219
+ * @param {string} variableId Variable ID
44220
+ * @param {VariableEditRequest} variableEditRequest
44221
+ * @param {*} [options] Override http request option.
44222
+ * @throws {RequiredError}
44223
+ */
44224
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse> {
44225
+ return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
44226
+ },
44227
+ /**
44228
+ * Returns a list of variables
44229
+ * @summary List variables
44230
+ * @param {string} [parentId] the id where the variable will be added
44231
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44232
+ * @param {boolean} [isSecret]
44233
+ * @param {*} [options] Override http request option.
44234
+ * @throws {RequiredError}
44235
+ */
44236
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: any): AxiosPromise<VariableResponseList> {
44237
+ return localVarFp.listVariables(parentId, scope, isSecret, options).then((request) => request(axios, basePath));
44238
+ },
43905
44239
  };
43906
44240
  };
43907
44241
 
@@ -43912,6 +44246,18 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
43912
44246
  * @extends {BaseAPI}
43913
44247
  */
43914
44248
  export class VariableMainCallsApi extends BaseAPI {
44249
+ /**
44250
+ * - Create a variable at the level defined in the request body.
44251
+ * @summary Create a variable
44252
+ * @param {VariableRequest} [variableRequest]
44253
+ * @param {*} [options] Override http request option.
44254
+ * @throws {RequiredError}
44255
+ * @memberof VariableMainCallsApi
44256
+ */
44257
+ public createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig) {
44258
+ return VariableMainCallsApiFp(this.configuration).createVariable(variableRequest, options).then((request) => request(this.axios, this.basePath));
44259
+ }
44260
+
43915
44261
  /**
43916
44262
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43917
44263
  * @summary Create a variable alias
@@ -43937,6 +44283,45 @@ export class VariableMainCallsApi extends BaseAPI {
43937
44283
  public createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig) {
43938
44284
  return VariableMainCallsApiFp(this.configuration).createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(this.axios, this.basePath));
43939
44285
  }
44286
+
44287
+ /**
44288
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
44289
+ * @summary Delete a variable
44290
+ * @param {string} variableId Variable ID
44291
+ * @param {*} [options] Override http request option.
44292
+ * @throws {RequiredError}
44293
+ * @memberof VariableMainCallsApi
44294
+ */
44295
+ public deleteVariable(variableId: string, options?: AxiosRequestConfig) {
44296
+ return VariableMainCallsApiFp(this.configuration).deleteVariable(variableId, options).then((request) => request(this.axios, this.basePath));
44297
+ }
44298
+
44299
+ /**
44300
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
44301
+ * @summary Edit a variable
44302
+ * @param {string} variableId Variable ID
44303
+ * @param {VariableEditRequest} variableEditRequest
44304
+ * @param {*} [options] Override http request option.
44305
+ * @throws {RequiredError}
44306
+ * @memberof VariableMainCallsApi
44307
+ */
44308
+ public editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) {
44309
+ return VariableMainCallsApiFp(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
44310
+ }
44311
+
44312
+ /**
44313
+ * Returns a list of variables
44314
+ * @summary List variables
44315
+ * @param {string} [parentId] the id where the variable will be added
44316
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44317
+ * @param {boolean} [isSecret]
44318
+ * @param {*} [options] Override http request option.
44319
+ * @throws {RequiredError}
44320
+ * @memberof VariableMainCallsApi
44321
+ */
44322
+ public listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig) {
44323
+ return VariableMainCallsApiFp(this.configuration).listVariables(parentId, scope, isSecret, options).then((request) => request(this.axios, this.basePath));
44324
+ }
43940
44325
  }
43941
44326
 
43942
44327
 
package/dist/api.d.ts CHANGED
@@ -13349,6 +13349,25 @@ export interface VariableAliasRequest {
13349
13349
  */
13350
13350
  'alias_parent_id': string;
13351
13351
  }
13352
+ /**
13353
+ *
13354
+ * @export
13355
+ * @interface VariableEditRequest
13356
+ */
13357
+ export interface VariableEditRequest {
13358
+ /**
13359
+ *
13360
+ * @type {string}
13361
+ * @memberof VariableEditRequest
13362
+ */
13363
+ 'key': string;
13364
+ /**
13365
+ *
13366
+ * @type {string}
13367
+ * @memberof VariableEditRequest
13368
+ */
13369
+ 'value': string;
13370
+ }
13352
13371
  /**
13353
13372
  *
13354
13373
  * @export
@@ -13517,6 +13536,49 @@ export interface VariableOverrideRequest {
13517
13536
  */
13518
13537
  'alias_parent_id': string;
13519
13538
  }
13539
+ /**
13540
+ *
13541
+ * @export
13542
+ * @interface VariableRequest
13543
+ */
13544
+ export interface VariableRequest {
13545
+ /**
13546
+ *
13547
+ * @type {string}
13548
+ * @memberof VariableRequest
13549
+ */
13550
+ 'key': string;
13551
+ /**
13552
+ *
13553
+ * @type {string}
13554
+ * @memberof VariableRequest
13555
+ */
13556
+ 'value': string;
13557
+ /**
13558
+ *
13559
+ * @type {string}
13560
+ * @memberof VariableRequest
13561
+ */
13562
+ 'mount_path'?: string | null;
13563
+ /**
13564
+ *
13565
+ * @type {boolean}
13566
+ * @memberof VariableRequest
13567
+ */
13568
+ 'is_secret': boolean;
13569
+ /**
13570
+ *
13571
+ * @type {APIVariableScopeEnum}
13572
+ * @memberof VariableRequest
13573
+ */
13574
+ 'variable_scope': APIVariableScopeEnum;
13575
+ /**
13576
+ *
13577
+ * @type {string}
13578
+ * @memberof VariableRequest
13579
+ */
13580
+ 'variable_parent_id': string;
13581
+ }
13520
13582
  /**
13521
13583
  *
13522
13584
  * @export
@@ -13645,6 +13707,19 @@ export interface VariableResponseAllOf {
13645
13707
  */
13646
13708
  'owned_by'?: string;
13647
13709
  }
13710
+ /**
13711
+ *
13712
+ * @export
13713
+ * @interface VariableResponseList
13714
+ */
13715
+ export interface VariableResponseList {
13716
+ /**
13717
+ *
13718
+ * @type {Array<VariableResponse>}
13719
+ * @memberof VariableResponseList
13720
+ */
13721
+ 'results'?: Array<VariableResponse>;
13722
+ }
13648
13723
  /**
13649
13724
  *
13650
13725
  * @export
@@ -28355,6 +28430,14 @@ export declare class UserSignUpApi extends BaseAPI {
28355
28430
  * @export
28356
28431
  */
28357
28432
  export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
28433
+ /**
28434
+ * - Create a variable at the level defined in the request body.
28435
+ * @summary Create a variable
28436
+ * @param {VariableRequest} [variableRequest]
28437
+ * @param {*} [options] Override http request option.
28438
+ * @throws {RequiredError}
28439
+ */
28440
+ createVariable: (variableRequest?: VariableRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28358
28441
  /**
28359
28442
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28360
28443
  * @summary Create a variable alias
@@ -28373,12 +28456,47 @@ export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Con
28373
28456
  * @throws {RequiredError}
28374
28457
  */
28375
28458
  createVariableOverride: (variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28459
+ /**
28460
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28461
+ * @summary Delete a variable
28462
+ * @param {string} variableId Variable ID
28463
+ * @param {*} [options] Override http request option.
28464
+ * @throws {RequiredError}
28465
+ */
28466
+ deleteVariable: (variableId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28467
+ /**
28468
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28469
+ * @summary Edit a variable
28470
+ * @param {string} variableId Variable ID
28471
+ * @param {VariableEditRequest} variableEditRequest
28472
+ * @param {*} [options] Override http request option.
28473
+ * @throws {RequiredError}
28474
+ */
28475
+ editVariable: (variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28476
+ /**
28477
+ * Returns a list of variables
28478
+ * @summary List variables
28479
+ * @param {string} [parentId] the id where the variable will be added
28480
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28481
+ * @param {boolean} [isSecret]
28482
+ * @param {*} [options] Override http request option.
28483
+ * @throws {RequiredError}
28484
+ */
28485
+ listVariables: (parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28376
28486
  };
28377
28487
  /**
28378
28488
  * VariableMainCallsApi - functional programming interface
28379
28489
  * @export
28380
28490
  */
28381
28491
  export declare const VariableMainCallsApiFp: (configuration?: Configuration) => {
28492
+ /**
28493
+ * - Create a variable at the level defined in the request body.
28494
+ * @summary Create a variable
28495
+ * @param {VariableRequest} [variableRequest]
28496
+ * @param {*} [options] Override http request option.
28497
+ * @throws {RequiredError}
28498
+ */
28499
+ createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
28382
28500
  /**
28383
28501
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28384
28502
  * @summary Create a variable alias
@@ -28397,12 +28515,47 @@ export declare const VariableMainCallsApiFp: (configuration?: Configuration) =>
28397
28515
  * @throws {RequiredError}
28398
28516
  */
28399
28517
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
28518
+ /**
28519
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28520
+ * @summary Delete a variable
28521
+ * @param {string} variableId Variable ID
28522
+ * @param {*} [options] Override http request option.
28523
+ * @throws {RequiredError}
28524
+ */
28525
+ deleteVariable(variableId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
28526
+ /**
28527
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28528
+ * @summary Edit a variable
28529
+ * @param {string} variableId Variable ID
28530
+ * @param {VariableEditRequest} variableEditRequest
28531
+ * @param {*} [options] Override http request option.
28532
+ * @throws {RequiredError}
28533
+ */
28534
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
28535
+ /**
28536
+ * Returns a list of variables
28537
+ * @summary List variables
28538
+ * @param {string} [parentId] the id where the variable will be added
28539
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28540
+ * @param {boolean} [isSecret]
28541
+ * @param {*} [options] Override http request option.
28542
+ * @throws {RequiredError}
28543
+ */
28544
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponseList>>;
28400
28545
  };
28401
28546
  /**
28402
28547
  * VariableMainCallsApi - factory interface
28403
28548
  * @export
28404
28549
  */
28405
28550
  export declare const VariableMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
28551
+ /**
28552
+ * - Create a variable at the level defined in the request body.
28553
+ * @summary Create a variable
28554
+ * @param {VariableRequest} [variableRequest]
28555
+ * @param {*} [options] Override http request option.
28556
+ * @throws {RequiredError}
28557
+ */
28558
+ createVariable(variableRequest?: VariableRequest, options?: any): AxiosPromise<VariableResponse>;
28406
28559
  /**
28407
28560
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28408
28561
  * @summary Create a variable alias
@@ -28421,6 +28574,33 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
28421
28574
  * @throws {RequiredError}
28422
28575
  */
28423
28576
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: any): AxiosPromise<VariableResponse>;
28577
+ /**
28578
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28579
+ * @summary Delete a variable
28580
+ * @param {string} variableId Variable ID
28581
+ * @param {*} [options] Override http request option.
28582
+ * @throws {RequiredError}
28583
+ */
28584
+ deleteVariable(variableId: string, options?: any): AxiosPromise<void>;
28585
+ /**
28586
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28587
+ * @summary Edit a variable
28588
+ * @param {string} variableId Variable ID
28589
+ * @param {VariableEditRequest} variableEditRequest
28590
+ * @param {*} [options] Override http request option.
28591
+ * @throws {RequiredError}
28592
+ */
28593
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse>;
28594
+ /**
28595
+ * Returns a list of variables
28596
+ * @summary List variables
28597
+ * @param {string} [parentId] the id where the variable will be added
28598
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28599
+ * @param {boolean} [isSecret]
28600
+ * @param {*} [options] Override http request option.
28601
+ * @throws {RequiredError}
28602
+ */
28603
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: any): AxiosPromise<VariableResponseList>;
28424
28604
  };
28425
28605
  /**
28426
28606
  * VariableMainCallsApi - object-oriented interface
@@ -28429,6 +28609,15 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
28429
28609
  * @extends {BaseAPI}
28430
28610
  */
28431
28611
  export declare class VariableMainCallsApi extends BaseAPI {
28612
+ /**
28613
+ * - Create a variable at the level defined in the request body.
28614
+ * @summary Create a variable
28615
+ * @param {VariableRequest} [variableRequest]
28616
+ * @param {*} [options] Override http request option.
28617
+ * @throws {RequiredError}
28618
+ * @memberof VariableMainCallsApi
28619
+ */
28620
+ createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
28432
28621
  /**
28433
28622
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28434
28623
  * @summary Create a variable alias
@@ -28449,4 +28638,34 @@ export declare class VariableMainCallsApi extends BaseAPI {
28449
28638
  * @memberof VariableMainCallsApi
28450
28639
  */
28451
28640
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
28641
+ /**
28642
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28643
+ * @summary Delete a variable
28644
+ * @param {string} variableId Variable ID
28645
+ * @param {*} [options] Override http request option.
28646
+ * @throws {RequiredError}
28647
+ * @memberof VariableMainCallsApi
28648
+ */
28649
+ deleteVariable(variableId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
28650
+ /**
28651
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28652
+ * @summary Edit a variable
28653
+ * @param {string} variableId Variable ID
28654
+ * @param {VariableEditRequest} variableEditRequest
28655
+ * @param {*} [options] Override http request option.
28656
+ * @throws {RequiredError}
28657
+ * @memberof VariableMainCallsApi
28658
+ */
28659
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
28660
+ /**
28661
+ * Returns a list of variables
28662
+ * @summary List variables
28663
+ * @param {string} [parentId] the id where the variable will be added
28664
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28665
+ * @param {boolean} [isSecret]
28666
+ * @param {*} [options] Override http request option.
28667
+ * @throws {RequiredError}
28668
+ * @memberof VariableMainCallsApi
28669
+ */
28670
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponseList>>;
28452
28671
  }
package/dist/api.js CHANGED
@@ -28723,6 +28723,37 @@ exports.UserSignUpApi = UserSignUpApi;
28723
28723
  */
28724
28724
  const VariableMainCallsApiAxiosParamCreator = function (configuration) {
28725
28725
  return {
28726
+ /**
28727
+ * - Create a variable at the level defined in the request body.
28728
+ * @summary Create a variable
28729
+ * @param {VariableRequest} [variableRequest]
28730
+ * @param {*} [options] Override http request option.
28731
+ * @throws {RequiredError}
28732
+ */
28733
+ createVariable: (variableRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
28734
+ const localVarPath = `/variable`;
28735
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28736
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28737
+ let baseOptions;
28738
+ if (configuration) {
28739
+ baseOptions = configuration.baseOptions;
28740
+ }
28741
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
28742
+ const localVarHeaderParameter = {};
28743
+ const localVarQueryParameter = {};
28744
+ // authentication bearerAuth required
28745
+ // http bearer authentication required
28746
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28747
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28748
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28749
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28750
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28751
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableRequest, localVarRequestOptions, configuration);
28752
+ return {
28753
+ url: (0, common_1.toPathString)(localVarUrlObj),
28754
+ options: localVarRequestOptions,
28755
+ };
28756
+ }),
28726
28757
  /**
28727
28758
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28728
28759
  * @summary Create a variable alias
@@ -28793,6 +28824,115 @@ const VariableMainCallsApiAxiosParamCreator = function (configuration) {
28793
28824
  options: localVarRequestOptions,
28794
28825
  };
28795
28826
  }),
28827
+ /**
28828
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28829
+ * @summary Delete a variable
28830
+ * @param {string} variableId Variable ID
28831
+ * @param {*} [options] Override http request option.
28832
+ * @throws {RequiredError}
28833
+ */
28834
+ deleteVariable: (variableId, options = {}) => __awaiter(this, void 0, void 0, function* () {
28835
+ // verify required parameter 'variableId' is not null or undefined
28836
+ (0, common_1.assertParamExists)('deleteVariable', 'variableId', variableId);
28837
+ const localVarPath = `/variable/{variableId}`
28838
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
28839
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28840
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28841
+ let baseOptions;
28842
+ if (configuration) {
28843
+ baseOptions = configuration.baseOptions;
28844
+ }
28845
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
28846
+ const localVarHeaderParameter = {};
28847
+ const localVarQueryParameter = {};
28848
+ // authentication bearerAuth required
28849
+ // http bearer authentication required
28850
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28851
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28853
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28854
+ return {
28855
+ url: (0, common_1.toPathString)(localVarUrlObj),
28856
+ options: localVarRequestOptions,
28857
+ };
28858
+ }),
28859
+ /**
28860
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28861
+ * @summary Edit a variable
28862
+ * @param {string} variableId Variable ID
28863
+ * @param {VariableEditRequest} variableEditRequest
28864
+ * @param {*} [options] Override http request option.
28865
+ * @throws {RequiredError}
28866
+ */
28867
+ editVariable: (variableId, variableEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
28868
+ // verify required parameter 'variableId' is not null or undefined
28869
+ (0, common_1.assertParamExists)('editVariable', 'variableId', variableId);
28870
+ // verify required parameter 'variableEditRequest' is not null or undefined
28871
+ (0, common_1.assertParamExists)('editVariable', 'variableEditRequest', variableEditRequest);
28872
+ const localVarPath = `/variable/{variableId}`
28873
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
28874
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28875
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28876
+ let baseOptions;
28877
+ if (configuration) {
28878
+ baseOptions = configuration.baseOptions;
28879
+ }
28880
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
28881
+ const localVarHeaderParameter = {};
28882
+ const localVarQueryParameter = {};
28883
+ // authentication bearerAuth required
28884
+ // http bearer authentication required
28885
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28886
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28887
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28889
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28890
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableEditRequest, localVarRequestOptions, configuration);
28891
+ return {
28892
+ url: (0, common_1.toPathString)(localVarUrlObj),
28893
+ options: localVarRequestOptions,
28894
+ };
28895
+ }),
28896
+ /**
28897
+ * Returns a list of variables
28898
+ * @summary List variables
28899
+ * @param {string} [parentId] the id where the variable will be added
28900
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28901
+ * @param {boolean} [isSecret]
28902
+ * @param {*} [options] Override http request option.
28903
+ * @throws {RequiredError}
28904
+ */
28905
+ listVariables: (parentId, scope, isSecret, options = {}) => __awaiter(this, void 0, void 0, function* () {
28906
+ const localVarPath = `/variable`;
28907
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28908
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28909
+ let baseOptions;
28910
+ if (configuration) {
28911
+ baseOptions = configuration.baseOptions;
28912
+ }
28913
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
28914
+ const localVarHeaderParameter = {};
28915
+ const localVarQueryParameter = {};
28916
+ // authentication bearerAuth required
28917
+ // http bearer authentication required
28918
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28919
+ if (parentId !== undefined) {
28920
+ localVarQueryParameter['parent_id'] = parentId;
28921
+ }
28922
+ if (scope !== undefined) {
28923
+ localVarQueryParameter['scope'] = scope;
28924
+ }
28925
+ if (isSecret !== undefined) {
28926
+ localVarQueryParameter['is_secret'] = isSecret;
28927
+ }
28928
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28929
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28930
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28931
+ return {
28932
+ url: (0, common_1.toPathString)(localVarUrlObj),
28933
+ options: localVarRequestOptions,
28934
+ };
28935
+ }),
28796
28936
  };
28797
28937
  };
28798
28938
  exports.VariableMainCallsApiAxiosParamCreator = VariableMainCallsApiAxiosParamCreator;
@@ -28803,6 +28943,19 @@ exports.VariableMainCallsApiAxiosParamCreator = VariableMainCallsApiAxiosParamCr
28803
28943
  const VariableMainCallsApiFp = function (configuration) {
28804
28944
  const localVarAxiosParamCreator = (0, exports.VariableMainCallsApiAxiosParamCreator)(configuration);
28805
28945
  return {
28946
+ /**
28947
+ * - Create a variable at the level defined in the request body.
28948
+ * @summary Create a variable
28949
+ * @param {VariableRequest} [variableRequest]
28950
+ * @param {*} [options] Override http request option.
28951
+ * @throws {RequiredError}
28952
+ */
28953
+ createVariable(variableRequest, options) {
28954
+ return __awaiter(this, void 0, void 0, function* () {
28955
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createVariable(variableRequest, options);
28956
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
28957
+ });
28958
+ },
28806
28959
  /**
28807
28960
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28808
28961
  * @summary Create a variable alias
@@ -28831,6 +28984,48 @@ const VariableMainCallsApiFp = function (configuration) {
28831
28984
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
28832
28985
  });
28833
28986
  },
28987
+ /**
28988
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28989
+ * @summary Delete a variable
28990
+ * @param {string} variableId Variable ID
28991
+ * @param {*} [options] Override http request option.
28992
+ * @throws {RequiredError}
28993
+ */
28994
+ deleteVariable(variableId, options) {
28995
+ return __awaiter(this, void 0, void 0, function* () {
28996
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteVariable(variableId, options);
28997
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
28998
+ });
28999
+ },
29000
+ /**
29001
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
29002
+ * @summary Edit a variable
29003
+ * @param {string} variableId Variable ID
29004
+ * @param {VariableEditRequest} variableEditRequest
29005
+ * @param {*} [options] Override http request option.
29006
+ * @throws {RequiredError}
29007
+ */
29008
+ editVariable(variableId, variableEditRequest, options) {
29009
+ return __awaiter(this, void 0, void 0, function* () {
29010
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.editVariable(variableId, variableEditRequest, options);
29011
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
29012
+ });
29013
+ },
29014
+ /**
29015
+ * Returns a list of variables
29016
+ * @summary List variables
29017
+ * @param {string} [parentId] the id where the variable will be added
29018
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
29019
+ * @param {boolean} [isSecret]
29020
+ * @param {*} [options] Override http request option.
29021
+ * @throws {RequiredError}
29022
+ */
29023
+ listVariables(parentId, scope, isSecret, options) {
29024
+ return __awaiter(this, void 0, void 0, function* () {
29025
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listVariables(parentId, scope, isSecret, options);
29026
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
29027
+ });
29028
+ },
28834
29029
  };
28835
29030
  };
28836
29031
  exports.VariableMainCallsApiFp = VariableMainCallsApiFp;
@@ -28841,6 +29036,16 @@ exports.VariableMainCallsApiFp = VariableMainCallsApiFp;
28841
29036
  const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
28842
29037
  const localVarFp = (0, exports.VariableMainCallsApiFp)(configuration);
28843
29038
  return {
29039
+ /**
29040
+ * - Create a variable at the level defined in the request body.
29041
+ * @summary Create a variable
29042
+ * @param {VariableRequest} [variableRequest]
29043
+ * @param {*} [options] Override http request option.
29044
+ * @throws {RequiredError}
29045
+ */
29046
+ createVariable(variableRequest, options) {
29047
+ return localVarFp.createVariable(variableRequest, options).then((request) => request(axios, basePath));
29048
+ },
28844
29049
  /**
28845
29050
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28846
29051
  * @summary Create a variable alias
@@ -28863,6 +29068,39 @@ const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
28863
29068
  createVariableOverride(variableId, variableOverrideRequest, options) {
28864
29069
  return localVarFp.createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(axios, basePath));
28865
29070
  },
29071
+ /**
29072
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
29073
+ * @summary Delete a variable
29074
+ * @param {string} variableId Variable ID
29075
+ * @param {*} [options] Override http request option.
29076
+ * @throws {RequiredError}
29077
+ */
29078
+ deleteVariable(variableId, options) {
29079
+ return localVarFp.deleteVariable(variableId, options).then((request) => request(axios, basePath));
29080
+ },
29081
+ /**
29082
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
29083
+ * @summary Edit a variable
29084
+ * @param {string} variableId Variable ID
29085
+ * @param {VariableEditRequest} variableEditRequest
29086
+ * @param {*} [options] Override http request option.
29087
+ * @throws {RequiredError}
29088
+ */
29089
+ editVariable(variableId, variableEditRequest, options) {
29090
+ return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
29091
+ },
29092
+ /**
29093
+ * Returns a list of variables
29094
+ * @summary List variables
29095
+ * @param {string} [parentId] the id where the variable will be added
29096
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
29097
+ * @param {boolean} [isSecret]
29098
+ * @param {*} [options] Override http request option.
29099
+ * @throws {RequiredError}
29100
+ */
29101
+ listVariables(parentId, scope, isSecret, options) {
29102
+ return localVarFp.listVariables(parentId, scope, isSecret, options).then((request) => request(axios, basePath));
29103
+ },
28866
29104
  };
28867
29105
  };
28868
29106
  exports.VariableMainCallsApiFactory = VariableMainCallsApiFactory;
@@ -28873,6 +29111,17 @@ exports.VariableMainCallsApiFactory = VariableMainCallsApiFactory;
28873
29111
  * @extends {BaseAPI}
28874
29112
  */
28875
29113
  class VariableMainCallsApi extends base_1.BaseAPI {
29114
+ /**
29115
+ * - Create a variable at the level defined in the request body.
29116
+ * @summary Create a variable
29117
+ * @param {VariableRequest} [variableRequest]
29118
+ * @param {*} [options] Override http request option.
29119
+ * @throws {RequiredError}
29120
+ * @memberof VariableMainCallsApi
29121
+ */
29122
+ createVariable(variableRequest, options) {
29123
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).createVariable(variableRequest, options).then((request) => request(this.axios, this.basePath));
29124
+ }
28876
29125
  /**
28877
29126
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28878
29127
  * @summary Create a variable alias
@@ -28897,5 +29146,41 @@ class VariableMainCallsApi extends base_1.BaseAPI {
28897
29146
  createVariableOverride(variableId, variableOverrideRequest, options) {
28898
29147
  return (0, exports.VariableMainCallsApiFp)(this.configuration).createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(this.axios, this.basePath));
28899
29148
  }
29149
+ /**
29150
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
29151
+ * @summary Delete a variable
29152
+ * @param {string} variableId Variable ID
29153
+ * @param {*} [options] Override http request option.
29154
+ * @throws {RequiredError}
29155
+ * @memberof VariableMainCallsApi
29156
+ */
29157
+ deleteVariable(variableId, options) {
29158
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).deleteVariable(variableId, options).then((request) => request(this.axios, this.basePath));
29159
+ }
29160
+ /**
29161
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
29162
+ * @summary Edit a variable
29163
+ * @param {string} variableId Variable ID
29164
+ * @param {VariableEditRequest} variableEditRequest
29165
+ * @param {*} [options] Override http request option.
29166
+ * @throws {RequiredError}
29167
+ * @memberof VariableMainCallsApi
29168
+ */
29169
+ editVariable(variableId, variableEditRequest, options) {
29170
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
29171
+ }
29172
+ /**
29173
+ * Returns a list of variables
29174
+ * @summary List variables
29175
+ * @param {string} [parentId] the id where the variable will be added
29176
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
29177
+ * @param {boolean} [isSecret]
29178
+ * @param {*} [options] Override http request option.
29179
+ * @throws {RequiredError}
29180
+ * @memberof VariableMainCallsApi
29181
+ */
29182
+ listVariables(parentId, scope, isSecret, options) {
29183
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).listVariables(parentId, scope, isSecret, options).then((request) => request(this.axios, this.basePath));
29184
+ }
28900
29185
  }
28901
29186
  exports.VariableMainCallsApi = VariableMainCallsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.172",
3
+ "version": "v1.1.173",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [