qovery-typescript-axios 1.1.594 → 1.1.596
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 +175 -1
- package/dist/api.d.ts +79 -0
- package/dist/api.js +164 -1
- package/dist/esm/api.d.ts +79 -0
- package/dist/esm/api.js +164 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -13870,7 +13870,8 @@ export const OrganizationEventTargetType = {
|
|
|
13870
13870
|
MEMBERS_AND_ROLES: 'MEMBERS_AND_ROLES',
|
|
13871
13871
|
ORGANIZATION: 'ORGANIZATION',
|
|
13872
13872
|
PROJECT: 'PROJECT',
|
|
13873
|
-
WEBHOOK: 'WEBHOOK'
|
|
13873
|
+
WEBHOOK: 'WEBHOOK',
|
|
13874
|
+
TERRAFORM: 'TERRAFORM'
|
|
13874
13875
|
} as const;
|
|
13875
13876
|
|
|
13876
13877
|
export type OrganizationEventTargetType = typeof OrganizationEventTargetType[keyof typeof OrganizationEventTargetType];
|
|
@@ -56975,6 +56976,100 @@ export const TerraformDeploymentRestrictionApiAxiosParamCreator = function (conf
|
|
|
56975
56976
|
|
|
56976
56977
|
|
|
56977
56978
|
|
|
56979
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56980
|
+
|
|
56981
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56982
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56983
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56984
|
+
localVarRequestOptions.data = serializeDataIfNeeded(terraformDeploymentRestrictionRequest, localVarRequestOptions, configuration)
|
|
56985
|
+
|
|
56986
|
+
return {
|
|
56987
|
+
url: toPathString(localVarUrlObj),
|
|
56988
|
+
options: localVarRequestOptions,
|
|
56989
|
+
};
|
|
56990
|
+
},
|
|
56991
|
+
/**
|
|
56992
|
+
* Delete a terraform deployment restriction
|
|
56993
|
+
* @summary Delete a terraform deployment restriction
|
|
56994
|
+
* @param {string} terraformId Terraform ID
|
|
56995
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
56996
|
+
* @param {*} [options] Override http request option.
|
|
56997
|
+
* @throws {RequiredError}
|
|
56998
|
+
*/
|
|
56999
|
+
deleteTerraformDeploymentRestriction: async (terraformId: string, deploymentRestrictionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57000
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
57001
|
+
assertParamExists('deleteTerraformDeploymentRestriction', 'terraformId', terraformId)
|
|
57002
|
+
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
57003
|
+
assertParamExists('deleteTerraformDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId)
|
|
57004
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
57005
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)))
|
|
57006
|
+
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
57007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57008
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57009
|
+
let baseOptions;
|
|
57010
|
+
if (configuration) {
|
|
57011
|
+
baseOptions = configuration.baseOptions;
|
|
57012
|
+
}
|
|
57013
|
+
|
|
57014
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
57015
|
+
const localVarHeaderParameter = {} as any;
|
|
57016
|
+
const localVarQueryParameter = {} as any;
|
|
57017
|
+
|
|
57018
|
+
// authentication ApiKeyAuth required
|
|
57019
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57020
|
+
|
|
57021
|
+
// authentication bearerAuth required
|
|
57022
|
+
// http bearer authentication required
|
|
57023
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57024
|
+
|
|
57025
|
+
|
|
57026
|
+
|
|
57027
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57029
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57030
|
+
|
|
57031
|
+
return {
|
|
57032
|
+
url: toPathString(localVarUrlObj),
|
|
57033
|
+
options: localVarRequestOptions,
|
|
57034
|
+
};
|
|
57035
|
+
},
|
|
57036
|
+
/**
|
|
57037
|
+
* Edit a terraform deployment restriction
|
|
57038
|
+
* @summary Edit a terraform deployment restriction
|
|
57039
|
+
* @param {string} terraformId Terraform ID
|
|
57040
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
57041
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
57042
|
+
* @param {*} [options] Override http request option.
|
|
57043
|
+
* @throws {RequiredError}
|
|
57044
|
+
*/
|
|
57045
|
+
editTerraformDeploymentRestriction: async (terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57046
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
57047
|
+
assertParamExists('editTerraformDeploymentRestriction', 'terraformId', terraformId)
|
|
57048
|
+
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
57049
|
+
assertParamExists('editTerraformDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId)
|
|
57050
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
57051
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)))
|
|
57052
|
+
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
57053
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57054
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57055
|
+
let baseOptions;
|
|
57056
|
+
if (configuration) {
|
|
57057
|
+
baseOptions = configuration.baseOptions;
|
|
57058
|
+
}
|
|
57059
|
+
|
|
57060
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
57061
|
+
const localVarHeaderParameter = {} as any;
|
|
57062
|
+
const localVarQueryParameter = {} as any;
|
|
57063
|
+
|
|
57064
|
+
// authentication ApiKeyAuth required
|
|
57065
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57066
|
+
|
|
57067
|
+
// authentication bearerAuth required
|
|
57068
|
+
// http bearer authentication required
|
|
57069
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57070
|
+
|
|
57071
|
+
|
|
57072
|
+
|
|
56978
57073
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56979
57074
|
|
|
56980
57075
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -57052,6 +57147,35 @@ export const TerraformDeploymentRestrictionApiFp = function(configuration?: Conf
|
|
|
57052
57147
|
const localVarOperationServerBasePath = operationServerMap['TerraformDeploymentRestrictionApi.createTerraformDeploymentRestriction']?.[localVarOperationServerIndex]?.url;
|
|
57053
57148
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57054
57149
|
},
|
|
57150
|
+
/**
|
|
57151
|
+
* Delete a terraform deployment restriction
|
|
57152
|
+
* @summary Delete a terraform deployment restriction
|
|
57153
|
+
* @param {string} terraformId Terraform ID
|
|
57154
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
57155
|
+
* @param {*} [options] Override http request option.
|
|
57156
|
+
* @throws {RequiredError}
|
|
57157
|
+
*/
|
|
57158
|
+
async deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
57159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options);
|
|
57160
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57161
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformDeploymentRestrictionApi.deleteTerraformDeploymentRestriction']?.[localVarOperationServerIndex]?.url;
|
|
57162
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57163
|
+
},
|
|
57164
|
+
/**
|
|
57165
|
+
* Edit a terraform deployment restriction
|
|
57166
|
+
* @summary Edit a terraform deployment restriction
|
|
57167
|
+
* @param {string} terraformId Terraform ID
|
|
57168
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
57169
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
57170
|
+
* @param {*} [options] Override http request option.
|
|
57171
|
+
* @throws {RequiredError}
|
|
57172
|
+
*/
|
|
57173
|
+
async editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>> {
|
|
57174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options);
|
|
57175
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57176
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformDeploymentRestrictionApi.editTerraformDeploymentRestriction']?.[localVarOperationServerIndex]?.url;
|
|
57177
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57178
|
+
},
|
|
57055
57179
|
/**
|
|
57056
57180
|
* Get terraform deployment restrictions
|
|
57057
57181
|
* @summary Get terraform deployment restrictions
|
|
@@ -57086,6 +57210,29 @@ export const TerraformDeploymentRestrictionApiFactory = function (configuration?
|
|
|
57086
57210
|
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse> {
|
|
57087
57211
|
return localVarFp.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
57088
57212
|
},
|
|
57213
|
+
/**
|
|
57214
|
+
* Delete a terraform deployment restriction
|
|
57215
|
+
* @summary Delete a terraform deployment restriction
|
|
57216
|
+
* @param {string} terraformId Terraform ID
|
|
57217
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
57218
|
+
* @param {*} [options] Override http request option.
|
|
57219
|
+
* @throws {RequiredError}
|
|
57220
|
+
*/
|
|
57221
|
+
deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
57222
|
+
return localVarFp.deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options).then((request) => request(axios, basePath));
|
|
57223
|
+
},
|
|
57224
|
+
/**
|
|
57225
|
+
* Edit a terraform deployment restriction
|
|
57226
|
+
* @summary Edit a terraform deployment restriction
|
|
57227
|
+
* @param {string} terraformId Terraform ID
|
|
57228
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
57229
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
57230
|
+
* @param {*} [options] Override http request option.
|
|
57231
|
+
* @throws {RequiredError}
|
|
57232
|
+
*/
|
|
57233
|
+
editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse> {
|
|
57234
|
+
return localVarFp.editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
57235
|
+
},
|
|
57089
57236
|
/**
|
|
57090
57237
|
* Get terraform deployment restrictions
|
|
57091
57238
|
* @summary Get terraform deployment restrictions
|
|
@@ -57119,6 +57266,33 @@ export class TerraformDeploymentRestrictionApi extends BaseAPI {
|
|
|
57119
57266
|
return TerraformDeploymentRestrictionApiFp(this.configuration).createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
57120
57267
|
}
|
|
57121
57268
|
|
|
57269
|
+
/**
|
|
57270
|
+
* Delete a terraform deployment restriction
|
|
57271
|
+
* @summary Delete a terraform deployment restriction
|
|
57272
|
+
* @param {string} terraformId Terraform ID
|
|
57273
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
57274
|
+
* @param {*} [options] Override http request option.
|
|
57275
|
+
* @throws {RequiredError}
|
|
57276
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
57277
|
+
*/
|
|
57278
|
+
public deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig) {
|
|
57279
|
+
return TerraformDeploymentRestrictionApiFp(this.configuration).deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options).then((request) => request(this.axios, this.basePath));
|
|
57280
|
+
}
|
|
57281
|
+
|
|
57282
|
+
/**
|
|
57283
|
+
* Edit a terraform deployment restriction
|
|
57284
|
+
* @summary Edit a terraform deployment restriction
|
|
57285
|
+
* @param {string} terraformId Terraform ID
|
|
57286
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
57287
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
57288
|
+
* @param {*} [options] Override http request option.
|
|
57289
|
+
* @throws {RequiredError}
|
|
57290
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
57291
|
+
*/
|
|
57292
|
+
public editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) {
|
|
57293
|
+
return TerraformDeploymentRestrictionApiFp(this.configuration).editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
57294
|
+
}
|
|
57295
|
+
|
|
57122
57296
|
/**
|
|
57123
57297
|
* Get terraform deployment restrictions
|
|
57124
57298
|
* @summary Get terraform deployment restrictions
|
package/dist/api.d.ts
CHANGED
|
@@ -13455,6 +13455,7 @@ export declare const OrganizationEventTargetType: {
|
|
|
13455
13455
|
readonly ORGANIZATION: "ORGANIZATION";
|
|
13456
13456
|
readonly PROJECT: "PROJECT";
|
|
13457
13457
|
readonly WEBHOOK: "WEBHOOK";
|
|
13458
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
13458
13459
|
};
|
|
13459
13460
|
export type OrganizationEventTargetType = typeof OrganizationEventTargetType[keyof typeof OrganizationEventTargetType];
|
|
13460
13461
|
/**
|
|
@@ -35379,6 +35380,25 @@ export declare const TerraformDeploymentRestrictionApiAxiosParamCreator: (config
|
|
|
35379
35380
|
* @throws {RequiredError}
|
|
35380
35381
|
*/
|
|
35381
35382
|
createTerraformDeploymentRestriction: (terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35383
|
+
/**
|
|
35384
|
+
* Delete a terraform deployment restriction
|
|
35385
|
+
* @summary Delete a terraform deployment restriction
|
|
35386
|
+
* @param {string} terraformId Terraform ID
|
|
35387
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35388
|
+
* @param {*} [options] Override http request option.
|
|
35389
|
+
* @throws {RequiredError}
|
|
35390
|
+
*/
|
|
35391
|
+
deleteTerraformDeploymentRestriction: (terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35392
|
+
/**
|
|
35393
|
+
* Edit a terraform deployment restriction
|
|
35394
|
+
* @summary Edit a terraform deployment restriction
|
|
35395
|
+
* @param {string} terraformId Terraform ID
|
|
35396
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35397
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35398
|
+
* @param {*} [options] Override http request option.
|
|
35399
|
+
* @throws {RequiredError}
|
|
35400
|
+
*/
|
|
35401
|
+
editTerraformDeploymentRestriction: (terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35382
35402
|
/**
|
|
35383
35403
|
* Get terraform deployment restrictions
|
|
35384
35404
|
* @summary Get terraform deployment restrictions
|
|
@@ -35402,6 +35422,25 @@ export declare const TerraformDeploymentRestrictionApiFp: (configuration?: Confi
|
|
|
35402
35422
|
* @throws {RequiredError}
|
|
35403
35423
|
*/
|
|
35404
35424
|
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>>;
|
|
35425
|
+
/**
|
|
35426
|
+
* Delete a terraform deployment restriction
|
|
35427
|
+
* @summary Delete a terraform deployment restriction
|
|
35428
|
+
* @param {string} terraformId Terraform ID
|
|
35429
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35430
|
+
* @param {*} [options] Override http request option.
|
|
35431
|
+
* @throws {RequiredError}
|
|
35432
|
+
*/
|
|
35433
|
+
deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
35434
|
+
/**
|
|
35435
|
+
* Edit a terraform deployment restriction
|
|
35436
|
+
* @summary Edit a terraform deployment restriction
|
|
35437
|
+
* @param {string} terraformId Terraform ID
|
|
35438
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35439
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35440
|
+
* @param {*} [options] Override http request option.
|
|
35441
|
+
* @throws {RequiredError}
|
|
35442
|
+
*/
|
|
35443
|
+
editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>>;
|
|
35405
35444
|
/**
|
|
35406
35445
|
* Get terraform deployment restrictions
|
|
35407
35446
|
* @summary Get terraform deployment restrictions
|
|
@@ -35425,6 +35464,25 @@ export declare const TerraformDeploymentRestrictionApiFactory: (configuration?:
|
|
|
35425
35464
|
* @throws {RequiredError}
|
|
35426
35465
|
*/
|
|
35427
35466
|
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse>;
|
|
35467
|
+
/**
|
|
35468
|
+
* Delete a terraform deployment restriction
|
|
35469
|
+
* @summary Delete a terraform deployment restriction
|
|
35470
|
+
* @param {string} terraformId Terraform ID
|
|
35471
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35472
|
+
* @param {*} [options] Override http request option.
|
|
35473
|
+
* @throws {RequiredError}
|
|
35474
|
+
*/
|
|
35475
|
+
deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
35476
|
+
/**
|
|
35477
|
+
* Edit a terraform deployment restriction
|
|
35478
|
+
* @summary Edit a terraform deployment restriction
|
|
35479
|
+
* @param {string} terraformId Terraform ID
|
|
35480
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35481
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35482
|
+
* @param {*} [options] Override http request option.
|
|
35483
|
+
* @throws {RequiredError}
|
|
35484
|
+
*/
|
|
35485
|
+
editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse>;
|
|
35428
35486
|
/**
|
|
35429
35487
|
* Get terraform deployment restrictions
|
|
35430
35488
|
* @summary Get terraform deployment restrictions
|
|
@@ -35451,6 +35509,27 @@ export declare class TerraformDeploymentRestrictionApi extends BaseAPI {
|
|
|
35451
35509
|
* @memberof TerraformDeploymentRestrictionApi
|
|
35452
35510
|
*/
|
|
35453
35511
|
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponse, any>>;
|
|
35512
|
+
/**
|
|
35513
|
+
* Delete a terraform deployment restriction
|
|
35514
|
+
* @summary Delete a terraform deployment restriction
|
|
35515
|
+
* @param {string} terraformId Terraform ID
|
|
35516
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35517
|
+
* @param {*} [options] Override http request option.
|
|
35518
|
+
* @throws {RequiredError}
|
|
35519
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
35520
|
+
*/
|
|
35521
|
+
deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
35522
|
+
/**
|
|
35523
|
+
* Edit a terraform deployment restriction
|
|
35524
|
+
* @summary Edit a terraform deployment restriction
|
|
35525
|
+
* @param {string} terraformId Terraform ID
|
|
35526
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35527
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35528
|
+
* @param {*} [options] Override http request option.
|
|
35529
|
+
* @throws {RequiredError}
|
|
35530
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
35531
|
+
*/
|
|
35532
|
+
editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponse, any>>;
|
|
35454
35533
|
/**
|
|
35455
35534
|
* Get terraform deployment restrictions
|
|
35456
35535
|
* @summary Get terraform deployment restrictions
|
package/dist/api.js
CHANGED
|
@@ -734,7 +734,8 @@ exports.OrganizationEventTargetType = {
|
|
|
734
734
|
MEMBERS_AND_ROLES: 'MEMBERS_AND_ROLES',
|
|
735
735
|
ORGANIZATION: 'ORGANIZATION',
|
|
736
736
|
PROJECT: 'PROJECT',
|
|
737
|
-
WEBHOOK: 'WEBHOOK'
|
|
737
|
+
WEBHOOK: 'WEBHOOK',
|
|
738
|
+
TERRAFORM: 'TERRAFORM'
|
|
738
739
|
};
|
|
739
740
|
/**
|
|
740
741
|
* Type of the organization event
|
|
@@ -37482,6 +37483,85 @@ const TerraformDeploymentRestrictionApiAxiosParamCreator = function (configurati
|
|
|
37482
37483
|
options: localVarRequestOptions,
|
|
37483
37484
|
};
|
|
37484
37485
|
}),
|
|
37486
|
+
/**
|
|
37487
|
+
* Delete a terraform deployment restriction
|
|
37488
|
+
* @summary Delete a terraform deployment restriction
|
|
37489
|
+
* @param {string} terraformId Terraform ID
|
|
37490
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37491
|
+
* @param {*} [options] Override http request option.
|
|
37492
|
+
* @throws {RequiredError}
|
|
37493
|
+
*/
|
|
37494
|
+
deleteTerraformDeploymentRestriction: (terraformId_1, deploymentRestrictionId_1, ...args_1) => __awaiter(this, [terraformId_1, deploymentRestrictionId_1, ...args_1], void 0, function* (terraformId, deploymentRestrictionId, options = {}) {
|
|
37495
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37496
|
+
(0, common_1.assertParamExists)('deleteTerraformDeploymentRestriction', 'terraformId', terraformId);
|
|
37497
|
+
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
37498
|
+
(0, common_1.assertParamExists)('deleteTerraformDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId);
|
|
37499
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
37500
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)))
|
|
37501
|
+
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
37502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37503
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
37504
|
+
let baseOptions;
|
|
37505
|
+
if (configuration) {
|
|
37506
|
+
baseOptions = configuration.baseOptions;
|
|
37507
|
+
}
|
|
37508
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
37509
|
+
const localVarHeaderParameter = {};
|
|
37510
|
+
const localVarQueryParameter = {};
|
|
37511
|
+
// authentication ApiKeyAuth required
|
|
37512
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
37513
|
+
// authentication bearerAuth required
|
|
37514
|
+
// http bearer authentication required
|
|
37515
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
37516
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
37517
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37518
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37519
|
+
return {
|
|
37520
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
37521
|
+
options: localVarRequestOptions,
|
|
37522
|
+
};
|
|
37523
|
+
}),
|
|
37524
|
+
/**
|
|
37525
|
+
* Edit a terraform deployment restriction
|
|
37526
|
+
* @summary Edit a terraform deployment restriction
|
|
37527
|
+
* @param {string} terraformId Terraform ID
|
|
37528
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37529
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37530
|
+
* @param {*} [options] Override http request option.
|
|
37531
|
+
* @throws {RequiredError}
|
|
37532
|
+
*/
|
|
37533
|
+
editTerraformDeploymentRestriction: (terraformId_1, deploymentRestrictionId_1, terraformDeploymentRestrictionRequest_1, ...args_1) => __awaiter(this, [terraformId_1, deploymentRestrictionId_1, terraformDeploymentRestrictionRequest_1, ...args_1], void 0, function* (terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options = {}) {
|
|
37534
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37535
|
+
(0, common_1.assertParamExists)('editTerraformDeploymentRestriction', 'terraformId', terraformId);
|
|
37536
|
+
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
37537
|
+
(0, common_1.assertParamExists)('editTerraformDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId);
|
|
37538
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
37539
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)))
|
|
37540
|
+
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
37541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37542
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
37543
|
+
let baseOptions;
|
|
37544
|
+
if (configuration) {
|
|
37545
|
+
baseOptions = configuration.baseOptions;
|
|
37546
|
+
}
|
|
37547
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
37548
|
+
const localVarHeaderParameter = {};
|
|
37549
|
+
const localVarQueryParameter = {};
|
|
37550
|
+
// authentication ApiKeyAuth required
|
|
37551
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
37552
|
+
// authentication bearerAuth required
|
|
37553
|
+
// http bearer authentication required
|
|
37554
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
37555
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37556
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
37557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37558
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37559
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(terraformDeploymentRestrictionRequest, localVarRequestOptions, configuration);
|
|
37560
|
+
return {
|
|
37561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
37562
|
+
options: localVarRequestOptions,
|
|
37563
|
+
};
|
|
37564
|
+
}),
|
|
37485
37565
|
/**
|
|
37486
37566
|
* Get terraform deployment restrictions
|
|
37487
37567
|
* @summary Get terraform deployment restrictions
|
|
@@ -37543,6 +37623,41 @@ const TerraformDeploymentRestrictionApiFp = function (configuration) {
|
|
|
37543
37623
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37544
37624
|
});
|
|
37545
37625
|
},
|
|
37626
|
+
/**
|
|
37627
|
+
* Delete a terraform deployment restriction
|
|
37628
|
+
* @summary Delete a terraform deployment restriction
|
|
37629
|
+
* @param {string} terraformId Terraform ID
|
|
37630
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37631
|
+
* @param {*} [options] Override http request option.
|
|
37632
|
+
* @throws {RequiredError}
|
|
37633
|
+
*/
|
|
37634
|
+
deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options) {
|
|
37635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37636
|
+
var _a, _b, _c;
|
|
37637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options);
|
|
37638
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37639
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformDeploymentRestrictionApi.deleteTerraformDeploymentRestriction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37640
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37641
|
+
});
|
|
37642
|
+
},
|
|
37643
|
+
/**
|
|
37644
|
+
* Edit a terraform deployment restriction
|
|
37645
|
+
* @summary Edit a terraform deployment restriction
|
|
37646
|
+
* @param {string} terraformId Terraform ID
|
|
37647
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37648
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37649
|
+
* @param {*} [options] Override http request option.
|
|
37650
|
+
* @throws {RequiredError}
|
|
37651
|
+
*/
|
|
37652
|
+
editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options) {
|
|
37653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37654
|
+
var _a, _b, _c;
|
|
37655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options);
|
|
37656
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37657
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformDeploymentRestrictionApi.editTerraformDeploymentRestriction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37658
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37659
|
+
});
|
|
37660
|
+
},
|
|
37546
37661
|
/**
|
|
37547
37662
|
* Get terraform deployment restrictions
|
|
37548
37663
|
* @summary Get terraform deployment restrictions
|
|
@@ -37580,6 +37695,29 @@ const TerraformDeploymentRestrictionApiFactory = function (configuration, basePa
|
|
|
37580
37695
|
createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
|
|
37581
37696
|
return localVarFp.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
37582
37697
|
},
|
|
37698
|
+
/**
|
|
37699
|
+
* Delete a terraform deployment restriction
|
|
37700
|
+
* @summary Delete a terraform deployment restriction
|
|
37701
|
+
* @param {string} terraformId Terraform ID
|
|
37702
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37703
|
+
* @param {*} [options] Override http request option.
|
|
37704
|
+
* @throws {RequiredError}
|
|
37705
|
+
*/
|
|
37706
|
+
deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options) {
|
|
37707
|
+
return localVarFp.deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options).then((request) => request(axios, basePath));
|
|
37708
|
+
},
|
|
37709
|
+
/**
|
|
37710
|
+
* Edit a terraform deployment restriction
|
|
37711
|
+
* @summary Edit a terraform deployment restriction
|
|
37712
|
+
* @param {string} terraformId Terraform ID
|
|
37713
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37714
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37715
|
+
* @param {*} [options] Override http request option.
|
|
37716
|
+
* @throws {RequiredError}
|
|
37717
|
+
*/
|
|
37718
|
+
editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options) {
|
|
37719
|
+
return localVarFp.editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
37720
|
+
},
|
|
37583
37721
|
/**
|
|
37584
37722
|
* Get terraform deployment restrictions
|
|
37585
37723
|
* @summary Get terraform deployment restrictions
|
|
@@ -37612,6 +37750,31 @@ class TerraformDeploymentRestrictionApi extends base_1.BaseAPI {
|
|
|
37612
37750
|
createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
|
|
37613
37751
|
return (0, exports.TerraformDeploymentRestrictionApiFp)(this.configuration).createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37614
37752
|
}
|
|
37753
|
+
/**
|
|
37754
|
+
* Delete a terraform deployment restriction
|
|
37755
|
+
* @summary Delete a terraform deployment restriction
|
|
37756
|
+
* @param {string} terraformId Terraform ID
|
|
37757
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37758
|
+
* @param {*} [options] Override http request option.
|
|
37759
|
+
* @throws {RequiredError}
|
|
37760
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
37761
|
+
*/
|
|
37762
|
+
deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options) {
|
|
37763
|
+
return (0, exports.TerraformDeploymentRestrictionApiFp)(this.configuration).deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options).then((request) => request(this.axios, this.basePath));
|
|
37764
|
+
}
|
|
37765
|
+
/**
|
|
37766
|
+
* Edit a terraform deployment restriction
|
|
37767
|
+
* @summary Edit a terraform deployment restriction
|
|
37768
|
+
* @param {string} terraformId Terraform ID
|
|
37769
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37770
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37771
|
+
* @param {*} [options] Override http request option.
|
|
37772
|
+
* @throws {RequiredError}
|
|
37773
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
37774
|
+
*/
|
|
37775
|
+
editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options) {
|
|
37776
|
+
return (0, exports.TerraformDeploymentRestrictionApiFp)(this.configuration).editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37777
|
+
}
|
|
37615
37778
|
/**
|
|
37616
37779
|
* Get terraform deployment restrictions
|
|
37617
37780
|
* @summary Get terraform deployment restrictions
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -13455,6 +13455,7 @@ export declare const OrganizationEventTargetType: {
|
|
|
13455
13455
|
readonly ORGANIZATION: "ORGANIZATION";
|
|
13456
13456
|
readonly PROJECT: "PROJECT";
|
|
13457
13457
|
readonly WEBHOOK: "WEBHOOK";
|
|
13458
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
13458
13459
|
};
|
|
13459
13460
|
export type OrganizationEventTargetType = typeof OrganizationEventTargetType[keyof typeof OrganizationEventTargetType];
|
|
13460
13461
|
/**
|
|
@@ -35379,6 +35380,25 @@ export declare const TerraformDeploymentRestrictionApiAxiosParamCreator: (config
|
|
|
35379
35380
|
* @throws {RequiredError}
|
|
35380
35381
|
*/
|
|
35381
35382
|
createTerraformDeploymentRestriction: (terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35383
|
+
/**
|
|
35384
|
+
* Delete a terraform deployment restriction
|
|
35385
|
+
* @summary Delete a terraform deployment restriction
|
|
35386
|
+
* @param {string} terraformId Terraform ID
|
|
35387
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35388
|
+
* @param {*} [options] Override http request option.
|
|
35389
|
+
* @throws {RequiredError}
|
|
35390
|
+
*/
|
|
35391
|
+
deleteTerraformDeploymentRestriction: (terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35392
|
+
/**
|
|
35393
|
+
* Edit a terraform deployment restriction
|
|
35394
|
+
* @summary Edit a terraform deployment restriction
|
|
35395
|
+
* @param {string} terraformId Terraform ID
|
|
35396
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35397
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35398
|
+
* @param {*} [options] Override http request option.
|
|
35399
|
+
* @throws {RequiredError}
|
|
35400
|
+
*/
|
|
35401
|
+
editTerraformDeploymentRestriction: (terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35382
35402
|
/**
|
|
35383
35403
|
* Get terraform deployment restrictions
|
|
35384
35404
|
* @summary Get terraform deployment restrictions
|
|
@@ -35402,6 +35422,25 @@ export declare const TerraformDeploymentRestrictionApiFp: (configuration?: Confi
|
|
|
35402
35422
|
* @throws {RequiredError}
|
|
35403
35423
|
*/
|
|
35404
35424
|
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>>;
|
|
35425
|
+
/**
|
|
35426
|
+
* Delete a terraform deployment restriction
|
|
35427
|
+
* @summary Delete a terraform deployment restriction
|
|
35428
|
+
* @param {string} terraformId Terraform ID
|
|
35429
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35430
|
+
* @param {*} [options] Override http request option.
|
|
35431
|
+
* @throws {RequiredError}
|
|
35432
|
+
*/
|
|
35433
|
+
deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
35434
|
+
/**
|
|
35435
|
+
* Edit a terraform deployment restriction
|
|
35436
|
+
* @summary Edit a terraform deployment restriction
|
|
35437
|
+
* @param {string} terraformId Terraform ID
|
|
35438
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35439
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35440
|
+
* @param {*} [options] Override http request option.
|
|
35441
|
+
* @throws {RequiredError}
|
|
35442
|
+
*/
|
|
35443
|
+
editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>>;
|
|
35405
35444
|
/**
|
|
35406
35445
|
* Get terraform deployment restrictions
|
|
35407
35446
|
* @summary Get terraform deployment restrictions
|
|
@@ -35425,6 +35464,25 @@ export declare const TerraformDeploymentRestrictionApiFactory: (configuration?:
|
|
|
35425
35464
|
* @throws {RequiredError}
|
|
35426
35465
|
*/
|
|
35427
35466
|
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse>;
|
|
35467
|
+
/**
|
|
35468
|
+
* Delete a terraform deployment restriction
|
|
35469
|
+
* @summary Delete a terraform deployment restriction
|
|
35470
|
+
* @param {string} terraformId Terraform ID
|
|
35471
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35472
|
+
* @param {*} [options] Override http request option.
|
|
35473
|
+
* @throws {RequiredError}
|
|
35474
|
+
*/
|
|
35475
|
+
deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
35476
|
+
/**
|
|
35477
|
+
* Edit a terraform deployment restriction
|
|
35478
|
+
* @summary Edit a terraform deployment restriction
|
|
35479
|
+
* @param {string} terraformId Terraform ID
|
|
35480
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35481
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35482
|
+
* @param {*} [options] Override http request option.
|
|
35483
|
+
* @throws {RequiredError}
|
|
35484
|
+
*/
|
|
35485
|
+
editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse>;
|
|
35428
35486
|
/**
|
|
35429
35487
|
* Get terraform deployment restrictions
|
|
35430
35488
|
* @summary Get terraform deployment restrictions
|
|
@@ -35451,6 +35509,27 @@ export declare class TerraformDeploymentRestrictionApi extends BaseAPI {
|
|
|
35451
35509
|
* @memberof TerraformDeploymentRestrictionApi
|
|
35452
35510
|
*/
|
|
35453
35511
|
createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponse, any>>;
|
|
35512
|
+
/**
|
|
35513
|
+
* Delete a terraform deployment restriction
|
|
35514
|
+
* @summary Delete a terraform deployment restriction
|
|
35515
|
+
* @param {string} terraformId Terraform ID
|
|
35516
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35517
|
+
* @param {*} [options] Override http request option.
|
|
35518
|
+
* @throws {RequiredError}
|
|
35519
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
35520
|
+
*/
|
|
35521
|
+
deleteTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
35522
|
+
/**
|
|
35523
|
+
* Edit a terraform deployment restriction
|
|
35524
|
+
* @summary Edit a terraform deployment restriction
|
|
35525
|
+
* @param {string} terraformId Terraform ID
|
|
35526
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
35527
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
35528
|
+
* @param {*} [options] Override http request option.
|
|
35529
|
+
* @throws {RequiredError}
|
|
35530
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
35531
|
+
*/
|
|
35532
|
+
editTerraformDeploymentRestriction(terraformId: string, deploymentRestrictionId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponse, any>>;
|
|
35454
35533
|
/**
|
|
35455
35534
|
* Get terraform deployment restrictions
|
|
35456
35535
|
* @summary Get terraform deployment restrictions
|
package/dist/esm/api.js
CHANGED
|
@@ -723,7 +723,8 @@ export const OrganizationEventTargetType = {
|
|
|
723
723
|
MEMBERS_AND_ROLES: 'MEMBERS_AND_ROLES',
|
|
724
724
|
ORGANIZATION: 'ORGANIZATION',
|
|
725
725
|
PROJECT: 'PROJECT',
|
|
726
|
-
WEBHOOK: 'WEBHOOK'
|
|
726
|
+
WEBHOOK: 'WEBHOOK',
|
|
727
|
+
TERRAFORM: 'TERRAFORM'
|
|
727
728
|
};
|
|
728
729
|
/**
|
|
729
730
|
* Type of the organization event
|
|
@@ -37143,6 +37144,85 @@ export const TerraformDeploymentRestrictionApiAxiosParamCreator = function (conf
|
|
|
37143
37144
|
options: localVarRequestOptions,
|
|
37144
37145
|
};
|
|
37145
37146
|
}),
|
|
37147
|
+
/**
|
|
37148
|
+
* Delete a terraform deployment restriction
|
|
37149
|
+
* @summary Delete a terraform deployment restriction
|
|
37150
|
+
* @param {string} terraformId Terraform ID
|
|
37151
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37152
|
+
* @param {*} [options] Override http request option.
|
|
37153
|
+
* @throws {RequiredError}
|
|
37154
|
+
*/
|
|
37155
|
+
deleteTerraformDeploymentRestriction: (terraformId_1, deploymentRestrictionId_1, ...args_1) => __awaiter(this, [terraformId_1, deploymentRestrictionId_1, ...args_1], void 0, function* (terraformId, deploymentRestrictionId, options = {}) {
|
|
37156
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37157
|
+
assertParamExists('deleteTerraformDeploymentRestriction', 'terraformId', terraformId);
|
|
37158
|
+
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
37159
|
+
assertParamExists('deleteTerraformDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId);
|
|
37160
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
37161
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)))
|
|
37162
|
+
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
37163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37165
|
+
let baseOptions;
|
|
37166
|
+
if (configuration) {
|
|
37167
|
+
baseOptions = configuration.baseOptions;
|
|
37168
|
+
}
|
|
37169
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
37170
|
+
const localVarHeaderParameter = {};
|
|
37171
|
+
const localVarQueryParameter = {};
|
|
37172
|
+
// authentication ApiKeyAuth required
|
|
37173
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
37174
|
+
// authentication bearerAuth required
|
|
37175
|
+
// http bearer authentication required
|
|
37176
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
37177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37179
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37180
|
+
return {
|
|
37181
|
+
url: toPathString(localVarUrlObj),
|
|
37182
|
+
options: localVarRequestOptions,
|
|
37183
|
+
};
|
|
37184
|
+
}),
|
|
37185
|
+
/**
|
|
37186
|
+
* Edit a terraform deployment restriction
|
|
37187
|
+
* @summary Edit a terraform deployment restriction
|
|
37188
|
+
* @param {string} terraformId Terraform ID
|
|
37189
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37190
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37191
|
+
* @param {*} [options] Override http request option.
|
|
37192
|
+
* @throws {RequiredError}
|
|
37193
|
+
*/
|
|
37194
|
+
editTerraformDeploymentRestriction: (terraformId_1, deploymentRestrictionId_1, terraformDeploymentRestrictionRequest_1, ...args_1) => __awaiter(this, [terraformId_1, deploymentRestrictionId_1, terraformDeploymentRestrictionRequest_1, ...args_1], void 0, function* (terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options = {}) {
|
|
37195
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37196
|
+
assertParamExists('editTerraformDeploymentRestriction', 'terraformId', terraformId);
|
|
37197
|
+
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
37198
|
+
assertParamExists('editTerraformDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId);
|
|
37199
|
+
const localVarPath = `/terraform/{terraformId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
37200
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)))
|
|
37201
|
+
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
37202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37203
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37204
|
+
let baseOptions;
|
|
37205
|
+
if (configuration) {
|
|
37206
|
+
baseOptions = configuration.baseOptions;
|
|
37207
|
+
}
|
|
37208
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
37209
|
+
const localVarHeaderParameter = {};
|
|
37210
|
+
const localVarQueryParameter = {};
|
|
37211
|
+
// authentication ApiKeyAuth required
|
|
37212
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
37213
|
+
// authentication bearerAuth required
|
|
37214
|
+
// http bearer authentication required
|
|
37215
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
37216
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37220
|
+
localVarRequestOptions.data = serializeDataIfNeeded(terraformDeploymentRestrictionRequest, localVarRequestOptions, configuration);
|
|
37221
|
+
return {
|
|
37222
|
+
url: toPathString(localVarUrlObj),
|
|
37223
|
+
options: localVarRequestOptions,
|
|
37224
|
+
};
|
|
37225
|
+
}),
|
|
37146
37226
|
/**
|
|
37147
37227
|
* Get terraform deployment restrictions
|
|
37148
37228
|
* @summary Get terraform deployment restrictions
|
|
@@ -37203,6 +37283,41 @@ export const TerraformDeploymentRestrictionApiFp = function (configuration) {
|
|
|
37203
37283
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37204
37284
|
});
|
|
37205
37285
|
},
|
|
37286
|
+
/**
|
|
37287
|
+
* Delete a terraform deployment restriction
|
|
37288
|
+
* @summary Delete a terraform deployment restriction
|
|
37289
|
+
* @param {string} terraformId Terraform ID
|
|
37290
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37291
|
+
* @param {*} [options] Override http request option.
|
|
37292
|
+
* @throws {RequiredError}
|
|
37293
|
+
*/
|
|
37294
|
+
deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options) {
|
|
37295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37296
|
+
var _a, _b, _c;
|
|
37297
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options);
|
|
37298
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37299
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformDeploymentRestrictionApi.deleteTerraformDeploymentRestriction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37300
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37301
|
+
});
|
|
37302
|
+
},
|
|
37303
|
+
/**
|
|
37304
|
+
* Edit a terraform deployment restriction
|
|
37305
|
+
* @summary Edit a terraform deployment restriction
|
|
37306
|
+
* @param {string} terraformId Terraform ID
|
|
37307
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37308
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37309
|
+
* @param {*} [options] Override http request option.
|
|
37310
|
+
* @throws {RequiredError}
|
|
37311
|
+
*/
|
|
37312
|
+
editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options) {
|
|
37313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37314
|
+
var _a, _b, _c;
|
|
37315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options);
|
|
37316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37317
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformDeploymentRestrictionApi.editTerraformDeploymentRestriction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37318
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37319
|
+
});
|
|
37320
|
+
},
|
|
37206
37321
|
/**
|
|
37207
37322
|
* Get terraform deployment restrictions
|
|
37208
37323
|
* @summary Get terraform deployment restrictions
|
|
@@ -37239,6 +37354,29 @@ export const TerraformDeploymentRestrictionApiFactory = function (configuration,
|
|
|
37239
37354
|
createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
|
|
37240
37355
|
return localVarFp.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
37241
37356
|
},
|
|
37357
|
+
/**
|
|
37358
|
+
* Delete a terraform deployment restriction
|
|
37359
|
+
* @summary Delete a terraform deployment restriction
|
|
37360
|
+
* @param {string} terraformId Terraform ID
|
|
37361
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37362
|
+
* @param {*} [options] Override http request option.
|
|
37363
|
+
* @throws {RequiredError}
|
|
37364
|
+
*/
|
|
37365
|
+
deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options) {
|
|
37366
|
+
return localVarFp.deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options).then((request) => request(axios, basePath));
|
|
37367
|
+
},
|
|
37368
|
+
/**
|
|
37369
|
+
* Edit a terraform deployment restriction
|
|
37370
|
+
* @summary Edit a terraform deployment restriction
|
|
37371
|
+
* @param {string} terraformId Terraform ID
|
|
37372
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37373
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37374
|
+
* @param {*} [options] Override http request option.
|
|
37375
|
+
* @throws {RequiredError}
|
|
37376
|
+
*/
|
|
37377
|
+
editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options) {
|
|
37378
|
+
return localVarFp.editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
37379
|
+
},
|
|
37242
37380
|
/**
|
|
37243
37381
|
* Get terraform deployment restrictions
|
|
37244
37382
|
* @summary Get terraform deployment restrictions
|
|
@@ -37270,6 +37408,31 @@ export class TerraformDeploymentRestrictionApi extends BaseAPI {
|
|
|
37270
37408
|
createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
|
|
37271
37409
|
return TerraformDeploymentRestrictionApiFp(this.configuration).createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37272
37410
|
}
|
|
37411
|
+
/**
|
|
37412
|
+
* Delete a terraform deployment restriction
|
|
37413
|
+
* @summary Delete a terraform deployment restriction
|
|
37414
|
+
* @param {string} terraformId Terraform ID
|
|
37415
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37416
|
+
* @param {*} [options] Override http request option.
|
|
37417
|
+
* @throws {RequiredError}
|
|
37418
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
37419
|
+
*/
|
|
37420
|
+
deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options) {
|
|
37421
|
+
return TerraformDeploymentRestrictionApiFp(this.configuration).deleteTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, options).then((request) => request(this.axios, this.basePath));
|
|
37422
|
+
}
|
|
37423
|
+
/**
|
|
37424
|
+
* Edit a terraform deployment restriction
|
|
37425
|
+
* @summary Edit a terraform deployment restriction
|
|
37426
|
+
* @param {string} terraformId Terraform ID
|
|
37427
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
37428
|
+
* @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
|
|
37429
|
+
* @param {*} [options] Override http request option.
|
|
37430
|
+
* @throws {RequiredError}
|
|
37431
|
+
* @memberof TerraformDeploymentRestrictionApi
|
|
37432
|
+
*/
|
|
37433
|
+
editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options) {
|
|
37434
|
+
return TerraformDeploymentRestrictionApiFp(this.configuration).editTerraformDeploymentRestriction(terraformId, deploymentRestrictionId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37435
|
+
}
|
|
37273
37436
|
/**
|
|
37274
37437
|
* Get terraform deployment restrictions
|
|
37275
37438
|
* @summary Get terraform deployment restrictions
|