qovery-typescript-axios 1.1.592 → 1.1.594
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 +481 -0
- package/dist/api.d.ts +273 -0
- package/dist/api.js +373 -1
- package/dist/esm/api.d.ts +273 -0
- package/dist/esm/api.js +364 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -16913,6 +16913,91 @@ export interface TerraformAdvancedSettings {
|
|
|
16913
16913
|
*/
|
|
16914
16914
|
'security.read_only_root_filesystem'?: boolean;
|
|
16915
16915
|
}
|
|
16916
|
+
/**
|
|
16917
|
+
*
|
|
16918
|
+
* @export
|
|
16919
|
+
* @interface TerraformDeploymentRestrictionRequest
|
|
16920
|
+
*/
|
|
16921
|
+
export interface TerraformDeploymentRestrictionRequest {
|
|
16922
|
+
/**
|
|
16923
|
+
*
|
|
16924
|
+
* @type {DeploymentRestrictionModeEnum}
|
|
16925
|
+
* @memberof TerraformDeploymentRestrictionRequest
|
|
16926
|
+
*/
|
|
16927
|
+
'mode': DeploymentRestrictionModeEnum;
|
|
16928
|
+
/**
|
|
16929
|
+
*
|
|
16930
|
+
* @type {DeploymentRestrictionTypeEnum}
|
|
16931
|
+
* @memberof TerraformDeploymentRestrictionRequest
|
|
16932
|
+
*/
|
|
16933
|
+
'type': DeploymentRestrictionTypeEnum;
|
|
16934
|
+
/**
|
|
16935
|
+
* ‘For `PATH` restrictions, the value must not start with `/`’
|
|
16936
|
+
* @type {string}
|
|
16937
|
+
* @memberof TerraformDeploymentRestrictionRequest
|
|
16938
|
+
*/
|
|
16939
|
+
'value'?: string;
|
|
16940
|
+
}
|
|
16941
|
+
|
|
16942
|
+
|
|
16943
|
+
/**
|
|
16944
|
+
*
|
|
16945
|
+
* @export
|
|
16946
|
+
* @interface TerraformDeploymentRestrictionResponse
|
|
16947
|
+
*/
|
|
16948
|
+
export interface TerraformDeploymentRestrictionResponse {
|
|
16949
|
+
/**
|
|
16950
|
+
*
|
|
16951
|
+
* @type {string}
|
|
16952
|
+
* @memberof TerraformDeploymentRestrictionResponse
|
|
16953
|
+
*/
|
|
16954
|
+
'id': string;
|
|
16955
|
+
/**
|
|
16956
|
+
*
|
|
16957
|
+
* @type {string}
|
|
16958
|
+
* @memberof TerraformDeploymentRestrictionResponse
|
|
16959
|
+
*/
|
|
16960
|
+
'created_at': string;
|
|
16961
|
+
/**
|
|
16962
|
+
*
|
|
16963
|
+
* @type {string}
|
|
16964
|
+
* @memberof TerraformDeploymentRestrictionResponse
|
|
16965
|
+
*/
|
|
16966
|
+
'updated_at'?: string;
|
|
16967
|
+
/**
|
|
16968
|
+
*
|
|
16969
|
+
* @type {DeploymentRestrictionModeEnum}
|
|
16970
|
+
* @memberof TerraformDeploymentRestrictionResponse
|
|
16971
|
+
*/
|
|
16972
|
+
'mode': DeploymentRestrictionModeEnum;
|
|
16973
|
+
/**
|
|
16974
|
+
*
|
|
16975
|
+
* @type {DeploymentRestrictionTypeEnum}
|
|
16976
|
+
* @memberof TerraformDeploymentRestrictionResponse
|
|
16977
|
+
*/
|
|
16978
|
+
'type': DeploymentRestrictionTypeEnum;
|
|
16979
|
+
/**
|
|
16980
|
+
* ‘For `PATH` restrictions, the value must not start with `/`’
|
|
16981
|
+
* @type {string}
|
|
16982
|
+
* @memberof TerraformDeploymentRestrictionResponse
|
|
16983
|
+
*/
|
|
16984
|
+
'value'?: string;
|
|
16985
|
+
}
|
|
16986
|
+
|
|
16987
|
+
|
|
16988
|
+
/**
|
|
16989
|
+
*
|
|
16990
|
+
* @export
|
|
16991
|
+
* @interface TerraformDeploymentRestrictionResponseList
|
|
16992
|
+
*/
|
|
16993
|
+
export interface TerraformDeploymentRestrictionResponseList {
|
|
16994
|
+
/**
|
|
16995
|
+
*
|
|
16996
|
+
* @type {Array<TerraformDeploymentRestrictionResponse>}
|
|
16997
|
+
* @memberof TerraformDeploymentRestrictionResponseList
|
|
16998
|
+
*/
|
|
16999
|
+
'results'?: Array<TerraformDeploymentRestrictionResponse>;
|
|
17000
|
+
}
|
|
16916
17001
|
/**
|
|
16917
17002
|
*
|
|
16918
17003
|
* @export
|
|
@@ -56736,6 +56821,319 @@ export class TerraformConfigurationApi extends BaseAPI {
|
|
|
56736
56821
|
|
|
56737
56822
|
|
|
56738
56823
|
|
|
56824
|
+
/**
|
|
56825
|
+
* TerraformDeploymentHistoryApi - axios parameter creator
|
|
56826
|
+
* @export
|
|
56827
|
+
*/
|
|
56828
|
+
export const TerraformDeploymentHistoryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
56829
|
+
return {
|
|
56830
|
+
/**
|
|
56831
|
+
* Returns the 20 last terraform deployments
|
|
56832
|
+
* @summary List terraform deployments
|
|
56833
|
+
* @param {string} terraformId Terraform ID
|
|
56834
|
+
* @param {*} [options] Override http request option.
|
|
56835
|
+
* @throws {RequiredError}
|
|
56836
|
+
*/
|
|
56837
|
+
listTerraformDeploymentHistoryV2: async (terraformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56838
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
56839
|
+
assertParamExists('listTerraformDeploymentHistoryV2', 'terraformId', terraformId)
|
|
56840
|
+
const localVarPath = `/terraform/{terraformId}/deploymentHistoryV2`
|
|
56841
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
56842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56844
|
+
let baseOptions;
|
|
56845
|
+
if (configuration) {
|
|
56846
|
+
baseOptions = configuration.baseOptions;
|
|
56847
|
+
}
|
|
56848
|
+
|
|
56849
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56850
|
+
const localVarHeaderParameter = {} as any;
|
|
56851
|
+
const localVarQueryParameter = {} as any;
|
|
56852
|
+
|
|
56853
|
+
// authentication ApiKeyAuth required
|
|
56854
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
56855
|
+
|
|
56856
|
+
// authentication bearerAuth required
|
|
56857
|
+
// http bearer authentication required
|
|
56858
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56859
|
+
|
|
56860
|
+
|
|
56861
|
+
|
|
56862
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56863
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56864
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56865
|
+
|
|
56866
|
+
return {
|
|
56867
|
+
url: toPathString(localVarUrlObj),
|
|
56868
|
+
options: localVarRequestOptions,
|
|
56869
|
+
};
|
|
56870
|
+
},
|
|
56871
|
+
}
|
|
56872
|
+
};
|
|
56873
|
+
|
|
56874
|
+
/**
|
|
56875
|
+
* TerraformDeploymentHistoryApi - functional programming interface
|
|
56876
|
+
* @export
|
|
56877
|
+
*/
|
|
56878
|
+
export const TerraformDeploymentHistoryApiFp = function(configuration?: Configuration) {
|
|
56879
|
+
const localVarAxiosParamCreator = TerraformDeploymentHistoryApiAxiosParamCreator(configuration)
|
|
56880
|
+
return {
|
|
56881
|
+
/**
|
|
56882
|
+
* Returns the 20 last terraform deployments
|
|
56883
|
+
* @summary List terraform deployments
|
|
56884
|
+
* @param {string} terraformId Terraform ID
|
|
56885
|
+
* @param {*} [options] Override http request option.
|
|
56886
|
+
* @throws {RequiredError}
|
|
56887
|
+
*/
|
|
56888
|
+
async listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2>> {
|
|
56889
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTerraformDeploymentHistoryV2(terraformId, options);
|
|
56890
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56891
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformDeploymentHistoryApi.listTerraformDeploymentHistoryV2']?.[localVarOperationServerIndex]?.url;
|
|
56892
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56893
|
+
},
|
|
56894
|
+
}
|
|
56895
|
+
};
|
|
56896
|
+
|
|
56897
|
+
/**
|
|
56898
|
+
* TerraformDeploymentHistoryApi - factory interface
|
|
56899
|
+
* @export
|
|
56900
|
+
*/
|
|
56901
|
+
export const TerraformDeploymentHistoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
56902
|
+
const localVarFp = TerraformDeploymentHistoryApiFp(configuration)
|
|
56903
|
+
return {
|
|
56904
|
+
/**
|
|
56905
|
+
* Returns the 20 last terraform deployments
|
|
56906
|
+
* @summary List terraform deployments
|
|
56907
|
+
* @param {string} terraformId Terraform ID
|
|
56908
|
+
* @param {*} [options] Override http request option.
|
|
56909
|
+
* @throws {RequiredError}
|
|
56910
|
+
*/
|
|
56911
|
+
listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentHistoryServicePaginatedResponseListV2> {
|
|
56912
|
+
return localVarFp.listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(axios, basePath));
|
|
56913
|
+
},
|
|
56914
|
+
};
|
|
56915
|
+
};
|
|
56916
|
+
|
|
56917
|
+
/**
|
|
56918
|
+
* TerraformDeploymentHistoryApi - object-oriented interface
|
|
56919
|
+
* @export
|
|
56920
|
+
* @class TerraformDeploymentHistoryApi
|
|
56921
|
+
* @extends {BaseAPI}
|
|
56922
|
+
*/
|
|
56923
|
+
export class TerraformDeploymentHistoryApi extends BaseAPI {
|
|
56924
|
+
/**
|
|
56925
|
+
* Returns the 20 last terraform deployments
|
|
56926
|
+
* @summary List terraform deployments
|
|
56927
|
+
* @param {string} terraformId Terraform ID
|
|
56928
|
+
* @param {*} [options] Override http request option.
|
|
56929
|
+
* @throws {RequiredError}
|
|
56930
|
+
* @memberof TerraformDeploymentHistoryApi
|
|
56931
|
+
*/
|
|
56932
|
+
public listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig) {
|
|
56933
|
+
return TerraformDeploymentHistoryApiFp(this.configuration).listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
56934
|
+
}
|
|
56935
|
+
}
|
|
56936
|
+
|
|
56937
|
+
|
|
56938
|
+
|
|
56939
|
+
/**
|
|
56940
|
+
* TerraformDeploymentRestrictionApi - axios parameter creator
|
|
56941
|
+
* @export
|
|
56942
|
+
*/
|
|
56943
|
+
export const TerraformDeploymentRestrictionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
56944
|
+
return {
|
|
56945
|
+
/**
|
|
56946
|
+
* Create a terraform deployment restriction
|
|
56947
|
+
* @summary Create a terraform deployment restriction
|
|
56948
|
+
* @param {string} terraformId Terraform ID
|
|
56949
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
56950
|
+
* @param {*} [options] Override http request option.
|
|
56951
|
+
* @throws {RequiredError}
|
|
56952
|
+
*/
|
|
56953
|
+
createTerraformDeploymentRestriction: async (terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56954
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
56955
|
+
assertParamExists('createTerraformDeploymentRestriction', 'terraformId', terraformId)
|
|
56956
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction`
|
|
56957
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
56958
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56959
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56960
|
+
let baseOptions;
|
|
56961
|
+
if (configuration) {
|
|
56962
|
+
baseOptions = configuration.baseOptions;
|
|
56963
|
+
}
|
|
56964
|
+
|
|
56965
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
56966
|
+
const localVarHeaderParameter = {} as any;
|
|
56967
|
+
const localVarQueryParameter = {} as any;
|
|
56968
|
+
|
|
56969
|
+
// authentication ApiKeyAuth required
|
|
56970
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
56971
|
+
|
|
56972
|
+
// authentication bearerAuth required
|
|
56973
|
+
// http bearer authentication required
|
|
56974
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56975
|
+
|
|
56976
|
+
|
|
56977
|
+
|
|
56978
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56979
|
+
|
|
56980
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56981
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56982
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56983
|
+
localVarRequestOptions.data = serializeDataIfNeeded(terraformDeploymentRestrictionRequest, localVarRequestOptions, configuration)
|
|
56984
|
+
|
|
56985
|
+
return {
|
|
56986
|
+
url: toPathString(localVarUrlObj),
|
|
56987
|
+
options: localVarRequestOptions,
|
|
56988
|
+
};
|
|
56989
|
+
},
|
|
56990
|
+
/**
|
|
56991
|
+
* Get terraform deployment restrictions
|
|
56992
|
+
* @summary Get terraform deployment restrictions
|
|
56993
|
+
* @param {string} terraformId Terraform ID
|
|
56994
|
+
* @param {*} [options] Override http request option.
|
|
56995
|
+
* @throws {RequiredError}
|
|
56996
|
+
*/
|
|
56997
|
+
getTerraformDeploymentRestrictions: async (terraformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56998
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
56999
|
+
assertParamExists('getTerraformDeploymentRestrictions', 'terraformId', terraformId)
|
|
57000
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction`
|
|
57001
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
57002
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57003
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57004
|
+
let baseOptions;
|
|
57005
|
+
if (configuration) {
|
|
57006
|
+
baseOptions = configuration.baseOptions;
|
|
57007
|
+
}
|
|
57008
|
+
|
|
57009
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57010
|
+
const localVarHeaderParameter = {} as any;
|
|
57011
|
+
const localVarQueryParameter = {} as any;
|
|
57012
|
+
|
|
57013
|
+
// authentication ApiKeyAuth required
|
|
57014
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57015
|
+
|
|
57016
|
+
// authentication bearerAuth required
|
|
57017
|
+
// http bearer authentication required
|
|
57018
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57019
|
+
|
|
57020
|
+
|
|
57021
|
+
|
|
57022
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57023
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57024
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57025
|
+
|
|
57026
|
+
return {
|
|
57027
|
+
url: toPathString(localVarUrlObj),
|
|
57028
|
+
options: localVarRequestOptions,
|
|
57029
|
+
};
|
|
57030
|
+
},
|
|
57031
|
+
}
|
|
57032
|
+
};
|
|
57033
|
+
|
|
57034
|
+
/**
|
|
57035
|
+
* TerraformDeploymentRestrictionApi - functional programming interface
|
|
57036
|
+
* @export
|
|
57037
|
+
*/
|
|
57038
|
+
export const TerraformDeploymentRestrictionApiFp = function(configuration?: Configuration) {
|
|
57039
|
+
const localVarAxiosParamCreator = TerraformDeploymentRestrictionApiAxiosParamCreator(configuration)
|
|
57040
|
+
return {
|
|
57041
|
+
/**
|
|
57042
|
+
* Create a terraform deployment restriction
|
|
57043
|
+
* @summary Create a terraform deployment restriction
|
|
57044
|
+
* @param {string} terraformId Terraform ID
|
|
57045
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
57046
|
+
* @param {*} [options] Override http request option.
|
|
57047
|
+
* @throws {RequiredError}
|
|
57048
|
+
*/
|
|
57049
|
+
async createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>> {
|
|
57050
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options);
|
|
57051
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57052
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformDeploymentRestrictionApi.createTerraformDeploymentRestriction']?.[localVarOperationServerIndex]?.url;
|
|
57053
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57054
|
+
},
|
|
57055
|
+
/**
|
|
57056
|
+
* Get terraform deployment restrictions
|
|
57057
|
+
* @summary Get terraform deployment restrictions
|
|
57058
|
+
* @param {string} terraformId Terraform ID
|
|
57059
|
+
* @param {*} [options] Override http request option.
|
|
57060
|
+
* @throws {RequiredError}
|
|
57061
|
+
*/
|
|
57062
|
+
async getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponseList>> {
|
|
57063
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTerraformDeploymentRestrictions(terraformId, options);
|
|
57064
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57065
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformDeploymentRestrictionApi.getTerraformDeploymentRestrictions']?.[localVarOperationServerIndex]?.url;
|
|
57066
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57067
|
+
},
|
|
57068
|
+
}
|
|
57069
|
+
};
|
|
57070
|
+
|
|
57071
|
+
/**
|
|
57072
|
+
* TerraformDeploymentRestrictionApi - factory interface
|
|
57073
|
+
* @export
|
|
57074
|
+
*/
|
|
57075
|
+
export const TerraformDeploymentRestrictionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
57076
|
+
const localVarFp = TerraformDeploymentRestrictionApiFp(configuration)
|
|
57077
|
+
return {
|
|
57078
|
+
/**
|
|
57079
|
+
* Create a terraform deployment restriction
|
|
57080
|
+
* @summary Create a terraform deployment restriction
|
|
57081
|
+
* @param {string} terraformId Terraform ID
|
|
57082
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
57083
|
+
* @param {*} [options] Override http request option.
|
|
57084
|
+
* @throws {RequiredError}
|
|
57085
|
+
*/
|
|
57086
|
+
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse> {
|
|
57087
|
+
return localVarFp.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
57088
|
+
},
|
|
57089
|
+
/**
|
|
57090
|
+
* Get terraform deployment restrictions
|
|
57091
|
+
* @summary Get terraform deployment restrictions
|
|
57092
|
+
* @param {string} terraformId Terraform ID
|
|
57093
|
+
* @param {*} [options] Override http request option.
|
|
57094
|
+
* @throws {RequiredError}
|
|
57095
|
+
*/
|
|
57096
|
+
getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponseList> {
|
|
57097
|
+
return localVarFp.getTerraformDeploymentRestrictions(terraformId, options).then((request) => request(axios, basePath));
|
|
57098
|
+
},
|
|
57099
|
+
};
|
|
57100
|
+
};
|
|
57101
|
+
|
|
57102
|
+
/**
|
|
57103
|
+
* TerraformDeploymentRestrictionApi - object-oriented interface
|
|
57104
|
+
* @export
|
|
57105
|
+
* @class TerraformDeploymentRestrictionApi
|
|
57106
|
+
* @extends {BaseAPI}
|
|
57107
|
+
*/
|
|
57108
|
+
export class TerraformDeploymentRestrictionApi extends BaseAPI {
|
|
57109
|
+
/**
|
|
57110
|
+
* Create a terraform deployment restriction
|
|
57111
|
+
* @summary Create a terraform deployment restriction
|
|
57112
|
+
* @param {string} terraformId Terraform ID
|
|
57113
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
57114
|
+
* @param {*} [options] Override http request option.
|
|
57115
|
+
* @throws {RequiredError}
|
|
57116
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
57117
|
+
*/
|
|
57118
|
+
public createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) {
|
|
57119
|
+
return TerraformDeploymentRestrictionApiFp(this.configuration).createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
57120
|
+
}
|
|
57121
|
+
|
|
57122
|
+
/**
|
|
57123
|
+
* Get terraform deployment restrictions
|
|
57124
|
+
* @summary Get terraform deployment restrictions
|
|
57125
|
+
* @param {string} terraformId Terraform ID
|
|
57126
|
+
* @param {*} [options] Override http request option.
|
|
57127
|
+
* @throws {RequiredError}
|
|
57128
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
57129
|
+
*/
|
|
57130
|
+
public getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig) {
|
|
57131
|
+
return TerraformDeploymentRestrictionApiFp(this.configuration).getTerraformDeploymentRestrictions(terraformId, options).then((request) => request(this.axios, this.basePath));
|
|
57132
|
+
}
|
|
57133
|
+
}
|
|
57134
|
+
|
|
57135
|
+
|
|
57136
|
+
|
|
56739
57137
|
/**
|
|
56740
57138
|
* TerraformMainCallsApi - axios parameter creator
|
|
56741
57139
|
* @export
|
|
@@ -57016,6 +57414,51 @@ export class TerraformMainCallsApi extends BaseAPI {
|
|
|
57016
57414
|
*/
|
|
57017
57415
|
export const TerraformsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
57018
57416
|
return {
|
|
57417
|
+
/**
|
|
57418
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57419
|
+
* @summary Clone terraform
|
|
57420
|
+
* @param {string} terraformId Terraform ID
|
|
57421
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57422
|
+
* @param {*} [options] Override http request option.
|
|
57423
|
+
* @throws {RequiredError}
|
|
57424
|
+
*/
|
|
57425
|
+
cloneTerraform: async (terraformId: string, cloneServiceRequest?: CloneServiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57426
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
57427
|
+
assertParamExists('cloneTerraform', 'terraformId', terraformId)
|
|
57428
|
+
const localVarPath = `/terraform/{terraformId}/clone`
|
|
57429
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
57430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57431
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57432
|
+
let baseOptions;
|
|
57433
|
+
if (configuration) {
|
|
57434
|
+
baseOptions = configuration.baseOptions;
|
|
57435
|
+
}
|
|
57436
|
+
|
|
57437
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
57438
|
+
const localVarHeaderParameter = {} as any;
|
|
57439
|
+
const localVarQueryParameter = {} as any;
|
|
57440
|
+
|
|
57441
|
+
// authentication ApiKeyAuth required
|
|
57442
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57443
|
+
|
|
57444
|
+
// authentication bearerAuth required
|
|
57445
|
+
// http bearer authentication required
|
|
57446
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57447
|
+
|
|
57448
|
+
|
|
57449
|
+
|
|
57450
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
57451
|
+
|
|
57452
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57453
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57454
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57455
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cloneServiceRequest, localVarRequestOptions, configuration)
|
|
57456
|
+
|
|
57457
|
+
return {
|
|
57458
|
+
url: toPathString(localVarUrlObj),
|
|
57459
|
+
options: localVarRequestOptions,
|
|
57460
|
+
};
|
|
57461
|
+
},
|
|
57019
57462
|
/**
|
|
57020
57463
|
*
|
|
57021
57464
|
* @summary Create a terraform
|
|
@@ -57149,6 +57592,20 @@ export const TerraformsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
57149
57592
|
export const TerraformsApiFp = function(configuration?: Configuration) {
|
|
57150
57593
|
const localVarAxiosParamCreator = TerraformsApiAxiosParamCreator(configuration)
|
|
57151
57594
|
return {
|
|
57595
|
+
/**
|
|
57596
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57597
|
+
* @summary Clone terraform
|
|
57598
|
+
* @param {string} terraformId Terraform ID
|
|
57599
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57600
|
+
* @param {*} [options] Override http request option.
|
|
57601
|
+
* @throws {RequiredError}
|
|
57602
|
+
*/
|
|
57603
|
+
async cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformResponse>> {
|
|
57604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cloneTerraform(terraformId, cloneServiceRequest, options);
|
|
57605
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57606
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformsApi.cloneTerraform']?.[localVarOperationServerIndex]?.url;
|
|
57607
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57608
|
+
},
|
|
57152
57609
|
/**
|
|
57153
57610
|
*
|
|
57154
57611
|
* @summary Create a terraform
|
|
@@ -57198,6 +57655,17 @@ export const TerraformsApiFp = function(configuration?: Configuration) {
|
|
|
57198
57655
|
export const TerraformsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
57199
57656
|
const localVarFp = TerraformsApiFp(configuration)
|
|
57200
57657
|
return {
|
|
57658
|
+
/**
|
|
57659
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57660
|
+
* @summary Clone terraform
|
|
57661
|
+
* @param {string} terraformId Terraform ID
|
|
57662
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57663
|
+
* @param {*} [options] Override http request option.
|
|
57664
|
+
* @throws {RequiredError}
|
|
57665
|
+
*/
|
|
57666
|
+
cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformResponse> {
|
|
57667
|
+
return localVarFp.cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(axios, basePath));
|
|
57668
|
+
},
|
|
57201
57669
|
/**
|
|
57202
57670
|
*
|
|
57203
57671
|
* @summary Create a terraform
|
|
@@ -57238,6 +57706,19 @@ export const TerraformsApiFactory = function (configuration?: Configuration, bas
|
|
|
57238
57706
|
* @extends {BaseAPI}
|
|
57239
57707
|
*/
|
|
57240
57708
|
export class TerraformsApi extends BaseAPI {
|
|
57709
|
+
/**
|
|
57710
|
+
* This will create a new terraform with the same configuration on the targeted environment Id.
|
|
57711
|
+
* @summary Clone terraform
|
|
57712
|
+
* @param {string} terraformId Terraform ID
|
|
57713
|
+
* @param {CloneServiceRequest} [cloneServiceRequest]
|
|
57714
|
+
* @param {*} [options] Override http request option.
|
|
57715
|
+
* @throws {RequiredError}
|
|
57716
|
+
* @memberof TerraformsApi
|
|
57717
|
+
*/
|
|
57718
|
+
public cloneTerraform(terraformId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig) {
|
|
57719
|
+
return TerraformsApiFp(this.configuration).cloneTerraform(terraformId, cloneServiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
57720
|
+
}
|
|
57721
|
+
|
|
57241
57722
|
/**
|
|
57242
57723
|
*
|
|
57243
57724
|
* @summary Create a terraform
|