qovery-typescript-axios 1.1.171 → 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 +494 -6
  2. package/dist/api.d.ts +287 -6
  3. package/dist/api.js +361 -4
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -13446,13 +13446,32 @@ export interface VariableAliasRequest {
13446
13446
  * @type {APIVariableScopeEnum}
13447
13447
  * @memberof VariableAliasRequest
13448
13448
  */
13449
- 'aliasScope': APIVariableScopeEnum;
13449
+ 'alias_scope': APIVariableScopeEnum;
13450
13450
  /**
13451
13451
  *
13452
13452
  * @type {string}
13453
13453
  * @memberof VariableAliasRequest
13454
13454
  */
13455
- 'aliasParentId': string;
13455
+ 'alias_parent_id': string;
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;
13456
13475
  }
13457
13476
  /**
13458
13477
  *
@@ -13597,6 +13616,74 @@ export interface VariableOverride {
13597
13616
  */
13598
13617
  'variable_type': APIVariableTypeEnum;
13599
13618
  }
13619
+ /**
13620
+ *
13621
+ * @export
13622
+ * @interface VariableOverrideRequest
13623
+ */
13624
+ export interface VariableOverrideRequest {
13625
+ /**
13626
+ *
13627
+ * @type {string}
13628
+ * @memberof VariableOverrideRequest
13629
+ */
13630
+ 'value': string;
13631
+ /**
13632
+ *
13633
+ * @type {APIVariableScopeEnum}
13634
+ * @memberof VariableOverrideRequest
13635
+ */
13636
+ 'alias_scope': APIVariableScopeEnum;
13637
+ /**
13638
+ *
13639
+ * @type {string}
13640
+ * @memberof VariableOverrideRequest
13641
+ */
13642
+ 'alias_parent_id': string;
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
+ }
13600
13687
  /**
13601
13688
  *
13602
13689
  * @export
@@ -13725,6 +13812,19 @@ export interface VariableResponseAllOf {
13725
13812
  */
13726
13813
  'owned_by'?: string;
13727
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
+ }
13728
13828
  /**
13729
13829
  *
13730
13830
  * @export
@@ -43727,9 +43827,47 @@ export class UserSignUpApi extends BaseAPI {
43727
43827
  */
43728
43828
  export const VariableMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
43729
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
+ },
43730
43868
  /**
43731
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
43732
- * @summary WIP: Create a variable alias
43870
+ * @summary Create a variable alias
43733
43871
  * @param {string} variableId Variable ID
43734
43872
  * @param {VariableAliasRequest} [variableAliasRequest]
43735
43873
  * @param {*} [options] Override http request option.
@@ -43764,6 +43902,179 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
43764
43902
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43765
43903
  localVarRequestOptions.data = serializeDataIfNeeded(variableAliasRequest, localVarRequestOptions, configuration)
43766
43904
 
43905
+ return {
43906
+ url: toPathString(localVarUrlObj),
43907
+ options: localVarRequestOptions,
43908
+ };
43909
+ },
43910
+ /**
43911
+ * - Allows you to override a variable that has a higher scope. - You have to specify a value in the request body and the scope and the parent id of the variable to alias - The system will create a new environment variable at project level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" or in the \"overridden_secret\" field of the newly created variable
43912
+ * @summary Create a variable override
43913
+ * @param {string} variableId Variable ID
43914
+ * @param {VariableOverrideRequest} [variableOverrideRequest]
43915
+ * @param {*} [options] Override http request option.
43916
+ * @throws {RequiredError}
43917
+ */
43918
+ createVariableOverride: async (variableId: string, variableOverrideRequest?: VariableOverrideRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43919
+ // verify required parameter 'variableId' is not null or undefined
43920
+ assertParamExists('createVariableOverride', 'variableId', variableId)
43921
+ const localVarPath = `/variable/{variableId}/override`
43922
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
43923
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43924
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43925
+ let baseOptions;
43926
+ if (configuration) {
43927
+ baseOptions = configuration.baseOptions;
43928
+ }
43929
+
43930
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43931
+ const localVarHeaderParameter = {} as any;
43932
+ const localVarQueryParameter = {} as any;
43933
+
43934
+ // authentication bearerAuth required
43935
+ // http bearer authentication required
43936
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43937
+
43938
+
43939
+
43940
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43941
+
43942
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43944
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43945
+ localVarRequestOptions.data = serializeDataIfNeeded(variableOverrideRequest, localVarRequestOptions, configuration)
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
+
43767
44078
  return {
43768
44079
  url: toPathString(localVarUrlObj),
43769
44080
  options: localVarRequestOptions,
@@ -43779,9 +44090,20 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
43779
44090
  export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43780
44091
  const localVarAxiosParamCreator = VariableMainCallsApiAxiosParamCreator(configuration)
43781
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
+ },
43782
44104
  /**
43783
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
43784
- * @summary WIP: Create a variable alias
44106
+ * @summary Create a variable alias
43785
44107
  * @param {string} variableId Variable ID
43786
44108
  * @param {VariableAliasRequest} [variableAliasRequest]
43787
44109
  * @param {*} [options] Override http request option.
@@ -43791,6 +44113,54 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43791
44113
  const localVarAxiosArgs = await localVarAxiosParamCreator.createVariableAlias(variableId, variableAliasRequest, options);
43792
44114
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43793
44115
  },
44116
+ /**
44117
+ * - Allows you to override a variable that has a higher scope. - You have to specify a value in the request body and the scope and the parent id of the variable to alias - The system will create a new environment variable at project level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" or in the \"overridden_secret\" field of the newly created variable
44118
+ * @summary Create a variable override
44119
+ * @param {string} variableId Variable ID
44120
+ * @param {VariableOverrideRequest} [variableOverrideRequest]
44121
+ * @param {*} [options] Override http request option.
44122
+ * @throws {RequiredError}
44123
+ */
44124
+ async createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>> {
44125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariableOverride(variableId, variableOverrideRequest, options);
44126
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
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
+ },
43794
44164
  }
43795
44165
  };
43796
44166
 
@@ -43801,9 +44171,19 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43801
44171
  export const VariableMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43802
44172
  const localVarFp = VariableMainCallsApiFp(configuration)
43803
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
+ },
43804
44184
  /**
43805
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
43806
- * @summary WIP: Create a variable alias
44186
+ * @summary Create a variable alias
43807
44187
  * @param {string} variableId Variable ID
43808
44188
  * @param {VariableAliasRequest} [variableAliasRequest]
43809
44189
  * @param {*} [options] Override http request option.
@@ -43812,6 +44192,50 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
43812
44192
  createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: any): AxiosPromise<VariableResponse> {
43813
44193
  return localVarFp.createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(axios, basePath));
43814
44194
  },
44195
+ /**
44196
+ * - Allows you to override a variable that has a higher scope. - You have to specify a value in the request body and the scope and the parent id of the variable to alias - The system will create a new environment variable at project level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" or in the \"overridden_secret\" field of the newly created variable
44197
+ * @summary Create a variable override
44198
+ * @param {string} variableId Variable ID
44199
+ * @param {VariableOverrideRequest} [variableOverrideRequest]
44200
+ * @param {*} [options] Override http request option.
44201
+ * @throws {RequiredError}
44202
+ */
44203
+ createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: any): AxiosPromise<VariableResponse> {
44204
+ return localVarFp.createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(axios, basePath));
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
+ },
43815
44239
  };
43816
44240
  };
43817
44241
 
@@ -43822,9 +44246,21 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
43822
44246
  * @extends {BaseAPI}
43823
44247
  */
43824
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
+
43825
44261
  /**
43826
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
43827
- * @summary WIP: Create a variable alias
44263
+ * @summary Create a variable alias
43828
44264
  * @param {string} variableId Variable ID
43829
44265
  * @param {VariableAliasRequest} [variableAliasRequest]
43830
44266
  * @param {*} [options] Override http request option.
@@ -43834,6 +44270,58 @@ export class VariableMainCallsApi extends BaseAPI {
43834
44270
  public createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig) {
43835
44271
  return VariableMainCallsApiFp(this.configuration).createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(this.axios, this.basePath));
43836
44272
  }
44273
+
44274
+ /**
44275
+ * - Allows you to override a variable that has a higher scope. - You have to specify a value in the request body and the scope and the parent id of the variable to alias - The system will create a new environment variable at project level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" or in the \"overridden_secret\" field of the newly created variable
44276
+ * @summary Create a variable override
44277
+ * @param {string} variableId Variable ID
44278
+ * @param {VariableOverrideRequest} [variableOverrideRequest]
44279
+ * @param {*} [options] Override http request option.
44280
+ * @throws {RequiredError}
44281
+ * @memberof VariableMainCallsApi
44282
+ */
44283
+ public createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig) {
44284
+ return VariableMainCallsApiFp(this.configuration).createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(this.axios, this.basePath));
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
+ }
43837
44325
  }
43838
44326
 
43839
44327