qovery-typescript-axios 1.1.167 → 1.1.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +293 -0
- package/dist/api.d.ts +240 -0
- package/dist/api.js +111 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -13416,6 +13416,31 @@ export interface Value {
|
|
|
13416
13416
|
*/
|
|
13417
13417
|
'value'?: string;
|
|
13418
13418
|
}
|
|
13419
|
+
/**
|
|
13420
|
+
*
|
|
13421
|
+
* @export
|
|
13422
|
+
* @interface VariableAliasRequest
|
|
13423
|
+
*/
|
|
13424
|
+
export interface VariableAliasRequest {
|
|
13425
|
+
/**
|
|
13426
|
+
*
|
|
13427
|
+
* @type {string}
|
|
13428
|
+
* @memberof VariableAliasRequest
|
|
13429
|
+
*/
|
|
13430
|
+
'key': string;
|
|
13431
|
+
/**
|
|
13432
|
+
*
|
|
13433
|
+
* @type {APIVariableScopeEnum}
|
|
13434
|
+
* @memberof VariableAliasRequest
|
|
13435
|
+
*/
|
|
13436
|
+
'aliasScope': APIVariableScopeEnum;
|
|
13437
|
+
/**
|
|
13438
|
+
*
|
|
13439
|
+
* @type {string}
|
|
13440
|
+
* @memberof VariableAliasRequest
|
|
13441
|
+
*/
|
|
13442
|
+
'aliasParentId': string;
|
|
13443
|
+
}
|
|
13419
13444
|
/**
|
|
13420
13445
|
*
|
|
13421
13446
|
* @export
|
|
@@ -13516,6 +13541,158 @@ export interface VariableImportSuccessfulImportedVariables {
|
|
|
13516
13541
|
*/
|
|
13517
13542
|
'is_secret': boolean;
|
|
13518
13543
|
}
|
|
13544
|
+
/**
|
|
13545
|
+
*
|
|
13546
|
+
* @export
|
|
13547
|
+
* @interface VariableResponse
|
|
13548
|
+
*/
|
|
13549
|
+
export interface VariableResponse {
|
|
13550
|
+
/**
|
|
13551
|
+
*
|
|
13552
|
+
* @type {string}
|
|
13553
|
+
* @memberof VariableResponse
|
|
13554
|
+
*/
|
|
13555
|
+
'id': string;
|
|
13556
|
+
/**
|
|
13557
|
+
*
|
|
13558
|
+
* @type {string}
|
|
13559
|
+
* @memberof VariableResponse
|
|
13560
|
+
*/
|
|
13561
|
+
'created_at': string;
|
|
13562
|
+
/**
|
|
13563
|
+
*
|
|
13564
|
+
* @type {string}
|
|
13565
|
+
* @memberof VariableResponse
|
|
13566
|
+
*/
|
|
13567
|
+
'updated_at'?: string;
|
|
13568
|
+
/**
|
|
13569
|
+
*
|
|
13570
|
+
* @type {EnvironmentVariableOverride}
|
|
13571
|
+
* @memberof VariableResponse
|
|
13572
|
+
*/
|
|
13573
|
+
'overridden_variable'?: EnvironmentVariableOverride;
|
|
13574
|
+
/**
|
|
13575
|
+
*
|
|
13576
|
+
* @type {EnvironmentVariableAlias}
|
|
13577
|
+
* @memberof VariableResponse
|
|
13578
|
+
*/
|
|
13579
|
+
'aliased_variable'?: EnvironmentVariableAlias;
|
|
13580
|
+
/**
|
|
13581
|
+
*
|
|
13582
|
+
* @type {SecretOverride}
|
|
13583
|
+
* @memberof VariableResponse
|
|
13584
|
+
*/
|
|
13585
|
+
'overridden_secret'?: SecretOverride;
|
|
13586
|
+
/**
|
|
13587
|
+
*
|
|
13588
|
+
* @type {SecretAlias}
|
|
13589
|
+
* @memberof VariableResponse
|
|
13590
|
+
*/
|
|
13591
|
+
'aliased_secret'?: SecretAlias;
|
|
13592
|
+
/**
|
|
13593
|
+
*
|
|
13594
|
+
* @type {APIVariableScopeEnum}
|
|
13595
|
+
* @memberof VariableResponse
|
|
13596
|
+
*/
|
|
13597
|
+
'scope': APIVariableScopeEnum;
|
|
13598
|
+
/**
|
|
13599
|
+
*
|
|
13600
|
+
* @type {APIVariableTypeEnum}
|
|
13601
|
+
* @memberof VariableResponse
|
|
13602
|
+
*/
|
|
13603
|
+
'variable_type'?: APIVariableTypeEnum;
|
|
13604
|
+
/**
|
|
13605
|
+
* present only for `BUILT_IN` variable
|
|
13606
|
+
* @type {string}
|
|
13607
|
+
* @memberof VariableResponse
|
|
13608
|
+
*/
|
|
13609
|
+
'service_id'?: string;
|
|
13610
|
+
/**
|
|
13611
|
+
* present only for `BUILT_IN` variable
|
|
13612
|
+
* @type {string}
|
|
13613
|
+
* @memberof VariableResponse
|
|
13614
|
+
*/
|
|
13615
|
+
'service_name'?: string;
|
|
13616
|
+
/**
|
|
13617
|
+
*
|
|
13618
|
+
* @type {LinkedServiceTypeEnum}
|
|
13619
|
+
* @memberof VariableResponse
|
|
13620
|
+
*/
|
|
13621
|
+
'service_type'?: LinkedServiceTypeEnum;
|
|
13622
|
+
/**
|
|
13623
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
13624
|
+
* @type {string}
|
|
13625
|
+
* @memberof VariableResponse
|
|
13626
|
+
*/
|
|
13627
|
+
'owned_by'?: string;
|
|
13628
|
+
}
|
|
13629
|
+
/**
|
|
13630
|
+
*
|
|
13631
|
+
* @export
|
|
13632
|
+
* @interface VariableResponseAllOf
|
|
13633
|
+
*/
|
|
13634
|
+
export interface VariableResponseAllOf {
|
|
13635
|
+
/**
|
|
13636
|
+
*
|
|
13637
|
+
* @type {EnvironmentVariableOverride}
|
|
13638
|
+
* @memberof VariableResponseAllOf
|
|
13639
|
+
*/
|
|
13640
|
+
'overridden_variable'?: EnvironmentVariableOverride;
|
|
13641
|
+
/**
|
|
13642
|
+
*
|
|
13643
|
+
* @type {EnvironmentVariableAlias}
|
|
13644
|
+
* @memberof VariableResponseAllOf
|
|
13645
|
+
*/
|
|
13646
|
+
'aliased_variable'?: EnvironmentVariableAlias;
|
|
13647
|
+
/**
|
|
13648
|
+
*
|
|
13649
|
+
* @type {SecretOverride}
|
|
13650
|
+
* @memberof VariableResponseAllOf
|
|
13651
|
+
*/
|
|
13652
|
+
'overridden_secret'?: SecretOverride;
|
|
13653
|
+
/**
|
|
13654
|
+
*
|
|
13655
|
+
* @type {SecretAlias}
|
|
13656
|
+
* @memberof VariableResponseAllOf
|
|
13657
|
+
*/
|
|
13658
|
+
'aliased_secret'?: SecretAlias;
|
|
13659
|
+
/**
|
|
13660
|
+
*
|
|
13661
|
+
* @type {APIVariableScopeEnum}
|
|
13662
|
+
* @memberof VariableResponseAllOf
|
|
13663
|
+
*/
|
|
13664
|
+
'scope': APIVariableScopeEnum;
|
|
13665
|
+
/**
|
|
13666
|
+
*
|
|
13667
|
+
* @type {APIVariableTypeEnum}
|
|
13668
|
+
* @memberof VariableResponseAllOf
|
|
13669
|
+
*/
|
|
13670
|
+
'variable_type'?: APIVariableTypeEnum;
|
|
13671
|
+
/**
|
|
13672
|
+
* present only for `BUILT_IN` variable
|
|
13673
|
+
* @type {string}
|
|
13674
|
+
* @memberof VariableResponseAllOf
|
|
13675
|
+
*/
|
|
13676
|
+
'service_id'?: string;
|
|
13677
|
+
/**
|
|
13678
|
+
* present only for `BUILT_IN` variable
|
|
13679
|
+
* @type {string}
|
|
13680
|
+
* @memberof VariableResponseAllOf
|
|
13681
|
+
*/
|
|
13682
|
+
'service_name'?: string;
|
|
13683
|
+
/**
|
|
13684
|
+
*
|
|
13685
|
+
* @type {LinkedServiceTypeEnum}
|
|
13686
|
+
* @memberof VariableResponseAllOf
|
|
13687
|
+
*/
|
|
13688
|
+
'service_type'?: LinkedServiceTypeEnum;
|
|
13689
|
+
/**
|
|
13690
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
13691
|
+
* @type {string}
|
|
13692
|
+
* @memberof VariableResponseAllOf
|
|
13693
|
+
*/
|
|
13694
|
+
'owned_by'?: string;
|
|
13695
|
+
}
|
|
13519
13696
|
/**
|
|
13520
13697
|
*
|
|
13521
13698
|
* @export
|
|
@@ -43512,3 +43689,119 @@ export class UserSignUpApi extends BaseAPI {
|
|
|
43512
43689
|
}
|
|
43513
43690
|
|
|
43514
43691
|
|
|
43692
|
+
/**
|
|
43693
|
+
* VariableMainCallsApi - axios parameter creator
|
|
43694
|
+
* @export
|
|
43695
|
+
*/
|
|
43696
|
+
export const VariableMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
43697
|
+
return {
|
|
43698
|
+
/**
|
|
43699
|
+
* - 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
|
|
43700
|
+
* @summary Create a variable alias
|
|
43701
|
+
* @param {string} variableId Variable ID
|
|
43702
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
43703
|
+
* @param {*} [options] Override http request option.
|
|
43704
|
+
* @throws {RequiredError}
|
|
43705
|
+
*/
|
|
43706
|
+
createVariableAlias: async (variableId: string, variableAliasRequest?: VariableAliasRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43707
|
+
// verify required parameter 'variableId' is not null or undefined
|
|
43708
|
+
assertParamExists('createVariableAlias', 'variableId', variableId)
|
|
43709
|
+
const localVarPath = `/variable/{variableId}/alias`
|
|
43710
|
+
.replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
|
|
43711
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43712
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43713
|
+
let baseOptions;
|
|
43714
|
+
if (configuration) {
|
|
43715
|
+
baseOptions = configuration.baseOptions;
|
|
43716
|
+
}
|
|
43717
|
+
|
|
43718
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43719
|
+
const localVarHeaderParameter = {} as any;
|
|
43720
|
+
const localVarQueryParameter = {} as any;
|
|
43721
|
+
|
|
43722
|
+
// authentication bearerAuth required
|
|
43723
|
+
// http bearer authentication required
|
|
43724
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
43725
|
+
|
|
43726
|
+
|
|
43727
|
+
|
|
43728
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43729
|
+
|
|
43730
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43731
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43732
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43733
|
+
localVarRequestOptions.data = serializeDataIfNeeded(variableAliasRequest, localVarRequestOptions, configuration)
|
|
43734
|
+
|
|
43735
|
+
return {
|
|
43736
|
+
url: toPathString(localVarUrlObj),
|
|
43737
|
+
options: localVarRequestOptions,
|
|
43738
|
+
};
|
|
43739
|
+
},
|
|
43740
|
+
}
|
|
43741
|
+
};
|
|
43742
|
+
|
|
43743
|
+
/**
|
|
43744
|
+
* VariableMainCallsApi - functional programming interface
|
|
43745
|
+
* @export
|
|
43746
|
+
*/
|
|
43747
|
+
export const VariableMainCallsApiFp = function(configuration?: Configuration) {
|
|
43748
|
+
const localVarAxiosParamCreator = VariableMainCallsApiAxiosParamCreator(configuration)
|
|
43749
|
+
return {
|
|
43750
|
+
/**
|
|
43751
|
+
* - 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
|
|
43752
|
+
* @summary Create a variable alias
|
|
43753
|
+
* @param {string} variableId Variable ID
|
|
43754
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
43755
|
+
* @param {*} [options] Override http request option.
|
|
43756
|
+
* @throws {RequiredError}
|
|
43757
|
+
*/
|
|
43758
|
+
async createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>> {
|
|
43759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVariableAlias(variableId, variableAliasRequest, options);
|
|
43760
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43761
|
+
},
|
|
43762
|
+
}
|
|
43763
|
+
};
|
|
43764
|
+
|
|
43765
|
+
/**
|
|
43766
|
+
* VariableMainCallsApi - factory interface
|
|
43767
|
+
* @export
|
|
43768
|
+
*/
|
|
43769
|
+
export const VariableMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
43770
|
+
const localVarFp = VariableMainCallsApiFp(configuration)
|
|
43771
|
+
return {
|
|
43772
|
+
/**
|
|
43773
|
+
* - 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
|
|
43774
|
+
* @summary Create a variable alias
|
|
43775
|
+
* @param {string} variableId Variable ID
|
|
43776
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
43777
|
+
* @param {*} [options] Override http request option.
|
|
43778
|
+
* @throws {RequiredError}
|
|
43779
|
+
*/
|
|
43780
|
+
createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: any): AxiosPromise<VariableResponse> {
|
|
43781
|
+
return localVarFp.createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(axios, basePath));
|
|
43782
|
+
},
|
|
43783
|
+
};
|
|
43784
|
+
};
|
|
43785
|
+
|
|
43786
|
+
/**
|
|
43787
|
+
* VariableMainCallsApi - object-oriented interface
|
|
43788
|
+
* @export
|
|
43789
|
+
* @class VariableMainCallsApi
|
|
43790
|
+
* @extends {BaseAPI}
|
|
43791
|
+
*/
|
|
43792
|
+
export class VariableMainCallsApi extends BaseAPI {
|
|
43793
|
+
/**
|
|
43794
|
+
* - 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
|
|
43795
|
+
* @summary Create a variable alias
|
|
43796
|
+
* @param {string} variableId Variable ID
|
|
43797
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
43798
|
+
* @param {*} [options] Override http request option.
|
|
43799
|
+
* @throws {RequiredError}
|
|
43800
|
+
* @memberof VariableMainCallsApi
|
|
43801
|
+
*/
|
|
43802
|
+
public createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig) {
|
|
43803
|
+
return VariableMainCallsApiFp(this.configuration).createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43804
|
+
}
|
|
43805
|
+
}
|
|
43806
|
+
|
|
43807
|
+
|
package/dist/api.d.ts
CHANGED
|
@@ -13311,6 +13311,31 @@ export interface Value {
|
|
|
13311
13311
|
*/
|
|
13312
13312
|
'value'?: string;
|
|
13313
13313
|
}
|
|
13314
|
+
/**
|
|
13315
|
+
*
|
|
13316
|
+
* @export
|
|
13317
|
+
* @interface VariableAliasRequest
|
|
13318
|
+
*/
|
|
13319
|
+
export interface VariableAliasRequest {
|
|
13320
|
+
/**
|
|
13321
|
+
*
|
|
13322
|
+
* @type {string}
|
|
13323
|
+
* @memberof VariableAliasRequest
|
|
13324
|
+
*/
|
|
13325
|
+
'key': string;
|
|
13326
|
+
/**
|
|
13327
|
+
*
|
|
13328
|
+
* @type {APIVariableScopeEnum}
|
|
13329
|
+
* @memberof VariableAliasRequest
|
|
13330
|
+
*/
|
|
13331
|
+
'aliasScope': APIVariableScopeEnum;
|
|
13332
|
+
/**
|
|
13333
|
+
*
|
|
13334
|
+
* @type {string}
|
|
13335
|
+
* @memberof VariableAliasRequest
|
|
13336
|
+
*/
|
|
13337
|
+
'aliasParentId': string;
|
|
13338
|
+
}
|
|
13314
13339
|
/**
|
|
13315
13340
|
*
|
|
13316
13341
|
* @export
|
|
@@ -13411,6 +13436,158 @@ export interface VariableImportSuccessfulImportedVariables {
|
|
|
13411
13436
|
*/
|
|
13412
13437
|
'is_secret': boolean;
|
|
13413
13438
|
}
|
|
13439
|
+
/**
|
|
13440
|
+
*
|
|
13441
|
+
* @export
|
|
13442
|
+
* @interface VariableResponse
|
|
13443
|
+
*/
|
|
13444
|
+
export interface VariableResponse {
|
|
13445
|
+
/**
|
|
13446
|
+
*
|
|
13447
|
+
* @type {string}
|
|
13448
|
+
* @memberof VariableResponse
|
|
13449
|
+
*/
|
|
13450
|
+
'id': string;
|
|
13451
|
+
/**
|
|
13452
|
+
*
|
|
13453
|
+
* @type {string}
|
|
13454
|
+
* @memberof VariableResponse
|
|
13455
|
+
*/
|
|
13456
|
+
'created_at': string;
|
|
13457
|
+
/**
|
|
13458
|
+
*
|
|
13459
|
+
* @type {string}
|
|
13460
|
+
* @memberof VariableResponse
|
|
13461
|
+
*/
|
|
13462
|
+
'updated_at'?: string;
|
|
13463
|
+
/**
|
|
13464
|
+
*
|
|
13465
|
+
* @type {EnvironmentVariableOverride}
|
|
13466
|
+
* @memberof VariableResponse
|
|
13467
|
+
*/
|
|
13468
|
+
'overridden_variable'?: EnvironmentVariableOverride;
|
|
13469
|
+
/**
|
|
13470
|
+
*
|
|
13471
|
+
* @type {EnvironmentVariableAlias}
|
|
13472
|
+
* @memberof VariableResponse
|
|
13473
|
+
*/
|
|
13474
|
+
'aliased_variable'?: EnvironmentVariableAlias;
|
|
13475
|
+
/**
|
|
13476
|
+
*
|
|
13477
|
+
* @type {SecretOverride}
|
|
13478
|
+
* @memberof VariableResponse
|
|
13479
|
+
*/
|
|
13480
|
+
'overridden_secret'?: SecretOverride;
|
|
13481
|
+
/**
|
|
13482
|
+
*
|
|
13483
|
+
* @type {SecretAlias}
|
|
13484
|
+
* @memberof VariableResponse
|
|
13485
|
+
*/
|
|
13486
|
+
'aliased_secret'?: SecretAlias;
|
|
13487
|
+
/**
|
|
13488
|
+
*
|
|
13489
|
+
* @type {APIVariableScopeEnum}
|
|
13490
|
+
* @memberof VariableResponse
|
|
13491
|
+
*/
|
|
13492
|
+
'scope': APIVariableScopeEnum;
|
|
13493
|
+
/**
|
|
13494
|
+
*
|
|
13495
|
+
* @type {APIVariableTypeEnum}
|
|
13496
|
+
* @memberof VariableResponse
|
|
13497
|
+
*/
|
|
13498
|
+
'variable_type'?: APIVariableTypeEnum;
|
|
13499
|
+
/**
|
|
13500
|
+
* present only for `BUILT_IN` variable
|
|
13501
|
+
* @type {string}
|
|
13502
|
+
* @memberof VariableResponse
|
|
13503
|
+
*/
|
|
13504
|
+
'service_id'?: string;
|
|
13505
|
+
/**
|
|
13506
|
+
* present only for `BUILT_IN` variable
|
|
13507
|
+
* @type {string}
|
|
13508
|
+
* @memberof VariableResponse
|
|
13509
|
+
*/
|
|
13510
|
+
'service_name'?: string;
|
|
13511
|
+
/**
|
|
13512
|
+
*
|
|
13513
|
+
* @type {LinkedServiceTypeEnum}
|
|
13514
|
+
* @memberof VariableResponse
|
|
13515
|
+
*/
|
|
13516
|
+
'service_type'?: LinkedServiceTypeEnum;
|
|
13517
|
+
/**
|
|
13518
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
13519
|
+
* @type {string}
|
|
13520
|
+
* @memberof VariableResponse
|
|
13521
|
+
*/
|
|
13522
|
+
'owned_by'?: string;
|
|
13523
|
+
}
|
|
13524
|
+
/**
|
|
13525
|
+
*
|
|
13526
|
+
* @export
|
|
13527
|
+
* @interface VariableResponseAllOf
|
|
13528
|
+
*/
|
|
13529
|
+
export interface VariableResponseAllOf {
|
|
13530
|
+
/**
|
|
13531
|
+
*
|
|
13532
|
+
* @type {EnvironmentVariableOverride}
|
|
13533
|
+
* @memberof VariableResponseAllOf
|
|
13534
|
+
*/
|
|
13535
|
+
'overridden_variable'?: EnvironmentVariableOverride;
|
|
13536
|
+
/**
|
|
13537
|
+
*
|
|
13538
|
+
* @type {EnvironmentVariableAlias}
|
|
13539
|
+
* @memberof VariableResponseAllOf
|
|
13540
|
+
*/
|
|
13541
|
+
'aliased_variable'?: EnvironmentVariableAlias;
|
|
13542
|
+
/**
|
|
13543
|
+
*
|
|
13544
|
+
* @type {SecretOverride}
|
|
13545
|
+
* @memberof VariableResponseAllOf
|
|
13546
|
+
*/
|
|
13547
|
+
'overridden_secret'?: SecretOverride;
|
|
13548
|
+
/**
|
|
13549
|
+
*
|
|
13550
|
+
* @type {SecretAlias}
|
|
13551
|
+
* @memberof VariableResponseAllOf
|
|
13552
|
+
*/
|
|
13553
|
+
'aliased_secret'?: SecretAlias;
|
|
13554
|
+
/**
|
|
13555
|
+
*
|
|
13556
|
+
* @type {APIVariableScopeEnum}
|
|
13557
|
+
* @memberof VariableResponseAllOf
|
|
13558
|
+
*/
|
|
13559
|
+
'scope': APIVariableScopeEnum;
|
|
13560
|
+
/**
|
|
13561
|
+
*
|
|
13562
|
+
* @type {APIVariableTypeEnum}
|
|
13563
|
+
* @memberof VariableResponseAllOf
|
|
13564
|
+
*/
|
|
13565
|
+
'variable_type'?: APIVariableTypeEnum;
|
|
13566
|
+
/**
|
|
13567
|
+
* present only for `BUILT_IN` variable
|
|
13568
|
+
* @type {string}
|
|
13569
|
+
* @memberof VariableResponseAllOf
|
|
13570
|
+
*/
|
|
13571
|
+
'service_id'?: string;
|
|
13572
|
+
/**
|
|
13573
|
+
* present only for `BUILT_IN` variable
|
|
13574
|
+
* @type {string}
|
|
13575
|
+
* @memberof VariableResponseAllOf
|
|
13576
|
+
*/
|
|
13577
|
+
'service_name'?: string;
|
|
13578
|
+
/**
|
|
13579
|
+
*
|
|
13580
|
+
* @type {LinkedServiceTypeEnum}
|
|
13581
|
+
* @memberof VariableResponseAllOf
|
|
13582
|
+
*/
|
|
13583
|
+
'service_type'?: LinkedServiceTypeEnum;
|
|
13584
|
+
/**
|
|
13585
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
13586
|
+
* @type {string}
|
|
13587
|
+
* @memberof VariableResponseAllOf
|
|
13588
|
+
*/
|
|
13589
|
+
'owned_by'?: string;
|
|
13590
|
+
}
|
|
13414
13591
|
/**
|
|
13415
13592
|
*
|
|
13416
13593
|
* @export
|
|
@@ -28116,3 +28293,66 @@ export declare class UserSignUpApi extends BaseAPI {
|
|
|
28116
28293
|
*/
|
|
28117
28294
|
getUserSignUp(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SignUp>>;
|
|
28118
28295
|
}
|
|
28296
|
+
/**
|
|
28297
|
+
* VariableMainCallsApi - axios parameter creator
|
|
28298
|
+
* @export
|
|
28299
|
+
*/
|
|
28300
|
+
export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28301
|
+
/**
|
|
28302
|
+
* - 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
|
|
28303
|
+
* @summary Create a variable alias
|
|
28304
|
+
* @param {string} variableId Variable ID
|
|
28305
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28306
|
+
* @param {*} [options] Override http request option.
|
|
28307
|
+
* @throws {RequiredError}
|
|
28308
|
+
*/
|
|
28309
|
+
createVariableAlias: (variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28310
|
+
};
|
|
28311
|
+
/**
|
|
28312
|
+
* VariableMainCallsApi - functional programming interface
|
|
28313
|
+
* @export
|
|
28314
|
+
*/
|
|
28315
|
+
export declare const VariableMainCallsApiFp: (configuration?: Configuration) => {
|
|
28316
|
+
/**
|
|
28317
|
+
* - 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
|
|
28318
|
+
* @summary Create a variable alias
|
|
28319
|
+
* @param {string} variableId Variable ID
|
|
28320
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28321
|
+
* @param {*} [options] Override http request option.
|
|
28322
|
+
* @throws {RequiredError}
|
|
28323
|
+
*/
|
|
28324
|
+
createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
|
|
28325
|
+
};
|
|
28326
|
+
/**
|
|
28327
|
+
* VariableMainCallsApi - factory interface
|
|
28328
|
+
* @export
|
|
28329
|
+
*/
|
|
28330
|
+
export declare const VariableMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
28331
|
+
/**
|
|
28332
|
+
* - 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
|
|
28333
|
+
* @summary Create a variable alias
|
|
28334
|
+
* @param {string} variableId Variable ID
|
|
28335
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28336
|
+
* @param {*} [options] Override http request option.
|
|
28337
|
+
* @throws {RequiredError}
|
|
28338
|
+
*/
|
|
28339
|
+
createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: any): AxiosPromise<VariableResponse>;
|
|
28340
|
+
};
|
|
28341
|
+
/**
|
|
28342
|
+
* VariableMainCallsApi - object-oriented interface
|
|
28343
|
+
* @export
|
|
28344
|
+
* @class VariableMainCallsApi
|
|
28345
|
+
* @extends {BaseAPI}
|
|
28346
|
+
*/
|
|
28347
|
+
export declare class VariableMainCallsApi extends BaseAPI {
|
|
28348
|
+
/**
|
|
28349
|
+
* - 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
|
|
28350
|
+
* @summary Create a variable alias
|
|
28351
|
+
* @param {string} variableId Variable ID
|
|
28352
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28353
|
+
* @param {*} [options] Override http request option.
|
|
28354
|
+
* @throws {RequiredError}
|
|
28355
|
+
* @memberof VariableMainCallsApi
|
|
28356
|
+
*/
|
|
28357
|
+
createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
|
|
28358
|
+
}
|
package/dist/api.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator
|
|
|
28
28
|
exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = void 0;
|
|
29
29
|
exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.EnvironmentExportApiFp = exports.EnvironmentExportApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentStageMainCallsApi = exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = exports.DeploymentStageMainCallsApiAxiosParamCreator = void 0;
|
|
30
30
|
exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMetricsApi = exports.JobMetricsApiFactory = exports.JobMetricsApiFp = exports.JobMetricsApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = exports.JobConfigurationApiFp = exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = void 0;
|
|
31
|
-
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = void 0;
|
|
31
|
+
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -28717,3 +28717,113 @@ class UserSignUpApi extends base_1.BaseAPI {
|
|
|
28717
28717
|
}
|
|
28718
28718
|
}
|
|
28719
28719
|
exports.UserSignUpApi = UserSignUpApi;
|
|
28720
|
+
/**
|
|
28721
|
+
* VariableMainCallsApi - axios parameter creator
|
|
28722
|
+
* @export
|
|
28723
|
+
*/
|
|
28724
|
+
const VariableMainCallsApiAxiosParamCreator = function (configuration) {
|
|
28725
|
+
return {
|
|
28726
|
+
/**
|
|
28727
|
+
* - 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
|
+
* @summary Create a variable alias
|
|
28729
|
+
* @param {string} variableId Variable ID
|
|
28730
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28731
|
+
* @param {*} [options] Override http request option.
|
|
28732
|
+
* @throws {RequiredError}
|
|
28733
|
+
*/
|
|
28734
|
+
createVariableAlias: (variableId, variableAliasRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
28735
|
+
// verify required parameter 'variableId' is not null or undefined
|
|
28736
|
+
(0, common_1.assertParamExists)('createVariableAlias', 'variableId', variableId);
|
|
28737
|
+
const localVarPath = `/variable/{variableId}/alias`
|
|
28738
|
+
.replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
|
|
28739
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28740
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
28741
|
+
let baseOptions;
|
|
28742
|
+
if (configuration) {
|
|
28743
|
+
baseOptions = configuration.baseOptions;
|
|
28744
|
+
}
|
|
28745
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
28746
|
+
const localVarHeaderParameter = {};
|
|
28747
|
+
const localVarQueryParameter = {};
|
|
28748
|
+
// authentication bearerAuth required
|
|
28749
|
+
// http bearer authentication required
|
|
28750
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
28751
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28752
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
28753
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28754
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
28755
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableAliasRequest, localVarRequestOptions, configuration);
|
|
28756
|
+
return {
|
|
28757
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
28758
|
+
options: localVarRequestOptions,
|
|
28759
|
+
};
|
|
28760
|
+
}),
|
|
28761
|
+
};
|
|
28762
|
+
};
|
|
28763
|
+
exports.VariableMainCallsApiAxiosParamCreator = VariableMainCallsApiAxiosParamCreator;
|
|
28764
|
+
/**
|
|
28765
|
+
* VariableMainCallsApi - functional programming interface
|
|
28766
|
+
* @export
|
|
28767
|
+
*/
|
|
28768
|
+
const VariableMainCallsApiFp = function (configuration) {
|
|
28769
|
+
const localVarAxiosParamCreator = (0, exports.VariableMainCallsApiAxiosParamCreator)(configuration);
|
|
28770
|
+
return {
|
|
28771
|
+
/**
|
|
28772
|
+
* - 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
|
|
28773
|
+
* @summary Create a variable alias
|
|
28774
|
+
* @param {string} variableId Variable ID
|
|
28775
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28776
|
+
* @param {*} [options] Override http request option.
|
|
28777
|
+
* @throws {RequiredError}
|
|
28778
|
+
*/
|
|
28779
|
+
createVariableAlias(variableId, variableAliasRequest, options) {
|
|
28780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28781
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createVariableAlias(variableId, variableAliasRequest, options);
|
|
28782
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
28783
|
+
});
|
|
28784
|
+
},
|
|
28785
|
+
};
|
|
28786
|
+
};
|
|
28787
|
+
exports.VariableMainCallsApiFp = VariableMainCallsApiFp;
|
|
28788
|
+
/**
|
|
28789
|
+
* VariableMainCallsApi - factory interface
|
|
28790
|
+
* @export
|
|
28791
|
+
*/
|
|
28792
|
+
const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
28793
|
+
const localVarFp = (0, exports.VariableMainCallsApiFp)(configuration);
|
|
28794
|
+
return {
|
|
28795
|
+
/**
|
|
28796
|
+
* - 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
|
|
28797
|
+
* @summary Create a variable alias
|
|
28798
|
+
* @param {string} variableId Variable ID
|
|
28799
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28800
|
+
* @param {*} [options] Override http request option.
|
|
28801
|
+
* @throws {RequiredError}
|
|
28802
|
+
*/
|
|
28803
|
+
createVariableAlias(variableId, variableAliasRequest, options) {
|
|
28804
|
+
return localVarFp.createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(axios, basePath));
|
|
28805
|
+
},
|
|
28806
|
+
};
|
|
28807
|
+
};
|
|
28808
|
+
exports.VariableMainCallsApiFactory = VariableMainCallsApiFactory;
|
|
28809
|
+
/**
|
|
28810
|
+
* VariableMainCallsApi - object-oriented interface
|
|
28811
|
+
* @export
|
|
28812
|
+
* @class VariableMainCallsApi
|
|
28813
|
+
* @extends {BaseAPI}
|
|
28814
|
+
*/
|
|
28815
|
+
class VariableMainCallsApi extends base_1.BaseAPI {
|
|
28816
|
+
/**
|
|
28817
|
+
* - 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
|
|
28818
|
+
* @summary Create a variable alias
|
|
28819
|
+
* @param {string} variableId Variable ID
|
|
28820
|
+
* @param {VariableAliasRequest} [variableAliasRequest]
|
|
28821
|
+
* @param {*} [options] Override http request option.
|
|
28822
|
+
* @throws {RequiredError}
|
|
28823
|
+
* @memberof VariableMainCallsApi
|
|
28824
|
+
*/
|
|
28825
|
+
createVariableAlias(variableId, variableAliasRequest, options) {
|
|
28826
|
+
return (0, exports.VariableMainCallsApiFp)(this.configuration).createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28827
|
+
}
|
|
28828
|
+
}
|
|
28829
|
+
exports.VariableMainCallsApi = VariableMainCallsApi;
|