qovery-typescript-axios 1.1.593 → 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 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
@@ -56851,6 +56936,204 @@ export class TerraformDeploymentHistoryApi extends BaseAPI {
56851
56936
 
56852
56937
 
56853
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
+
56854
57137
  /**
56855
57138
  * TerraformMainCallsApi - axios parameter creator
56856
57139
  * @export
package/dist/api.d.ts CHANGED
@@ -16351,6 +16351,87 @@ export interface TerraformAdvancedSettings {
16351
16351
  */
16352
16352
  'security.read_only_root_filesystem'?: boolean;
16353
16353
  }
16354
+ /**
16355
+ *
16356
+ * @export
16357
+ * @interface TerraformDeploymentRestrictionRequest
16358
+ */
16359
+ export interface TerraformDeploymentRestrictionRequest {
16360
+ /**
16361
+ *
16362
+ * @type {DeploymentRestrictionModeEnum}
16363
+ * @memberof TerraformDeploymentRestrictionRequest
16364
+ */
16365
+ 'mode': DeploymentRestrictionModeEnum;
16366
+ /**
16367
+ *
16368
+ * @type {DeploymentRestrictionTypeEnum}
16369
+ * @memberof TerraformDeploymentRestrictionRequest
16370
+ */
16371
+ 'type': DeploymentRestrictionTypeEnum;
16372
+ /**
16373
+ * ‘For `PATH` restrictions, the value must not start with `/`’
16374
+ * @type {string}
16375
+ * @memberof TerraformDeploymentRestrictionRequest
16376
+ */
16377
+ 'value'?: string;
16378
+ }
16379
+ /**
16380
+ *
16381
+ * @export
16382
+ * @interface TerraformDeploymentRestrictionResponse
16383
+ */
16384
+ export interface TerraformDeploymentRestrictionResponse {
16385
+ /**
16386
+ *
16387
+ * @type {string}
16388
+ * @memberof TerraformDeploymentRestrictionResponse
16389
+ */
16390
+ 'id': string;
16391
+ /**
16392
+ *
16393
+ * @type {string}
16394
+ * @memberof TerraformDeploymentRestrictionResponse
16395
+ */
16396
+ 'created_at': string;
16397
+ /**
16398
+ *
16399
+ * @type {string}
16400
+ * @memberof TerraformDeploymentRestrictionResponse
16401
+ */
16402
+ 'updated_at'?: string;
16403
+ /**
16404
+ *
16405
+ * @type {DeploymentRestrictionModeEnum}
16406
+ * @memberof TerraformDeploymentRestrictionResponse
16407
+ */
16408
+ 'mode': DeploymentRestrictionModeEnum;
16409
+ /**
16410
+ *
16411
+ * @type {DeploymentRestrictionTypeEnum}
16412
+ * @memberof TerraformDeploymentRestrictionResponse
16413
+ */
16414
+ 'type': DeploymentRestrictionTypeEnum;
16415
+ /**
16416
+ * ‘For `PATH` restrictions, the value must not start with `/`’
16417
+ * @type {string}
16418
+ * @memberof TerraformDeploymentRestrictionResponse
16419
+ */
16420
+ 'value'?: string;
16421
+ }
16422
+ /**
16423
+ *
16424
+ * @export
16425
+ * @interface TerraformDeploymentRestrictionResponseList
16426
+ */
16427
+ export interface TerraformDeploymentRestrictionResponseList {
16428
+ /**
16429
+ *
16430
+ * @type {Array<TerraformDeploymentRestrictionResponse>}
16431
+ * @memberof TerraformDeploymentRestrictionResponseList
16432
+ */
16433
+ 'results'?: Array<TerraformDeploymentRestrictionResponse>;
16434
+ }
16354
16435
  /**
16355
16436
  *
16356
16437
  * @export
@@ -35284,6 +35365,102 @@ export declare class TerraformDeploymentHistoryApi extends BaseAPI {
35284
35365
  */
35285
35366
  listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentHistoryServicePaginatedResponseListV2, any>>;
35286
35367
  }
35368
+ /**
35369
+ * TerraformDeploymentRestrictionApi - axios parameter creator
35370
+ * @export
35371
+ */
35372
+ export declare const TerraformDeploymentRestrictionApiAxiosParamCreator: (configuration?: Configuration) => {
35373
+ /**
35374
+ * Create a terraform deployment restriction
35375
+ * @summary Create a terraform deployment restriction
35376
+ * @param {string} terraformId Terraform ID
35377
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35378
+ * @param {*} [options] Override http request option.
35379
+ * @throws {RequiredError}
35380
+ */
35381
+ createTerraformDeploymentRestriction: (terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35382
+ /**
35383
+ * Get terraform deployment restrictions
35384
+ * @summary Get terraform deployment restrictions
35385
+ * @param {string} terraformId Terraform ID
35386
+ * @param {*} [options] Override http request option.
35387
+ * @throws {RequiredError}
35388
+ */
35389
+ getTerraformDeploymentRestrictions: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35390
+ };
35391
+ /**
35392
+ * TerraformDeploymentRestrictionApi - functional programming interface
35393
+ * @export
35394
+ */
35395
+ export declare const TerraformDeploymentRestrictionApiFp: (configuration?: Configuration) => {
35396
+ /**
35397
+ * Create a terraform deployment restriction
35398
+ * @summary Create a terraform deployment restriction
35399
+ * @param {string} terraformId Terraform ID
35400
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35401
+ * @param {*} [options] Override http request option.
35402
+ * @throws {RequiredError}
35403
+ */
35404
+ createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>>;
35405
+ /**
35406
+ * Get terraform deployment restrictions
35407
+ * @summary Get terraform deployment restrictions
35408
+ * @param {string} terraformId Terraform ID
35409
+ * @param {*} [options] Override http request option.
35410
+ * @throws {RequiredError}
35411
+ */
35412
+ getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponseList>>;
35413
+ };
35414
+ /**
35415
+ * TerraformDeploymentRestrictionApi - factory interface
35416
+ * @export
35417
+ */
35418
+ export declare const TerraformDeploymentRestrictionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
35419
+ /**
35420
+ * Create a terraform deployment restriction
35421
+ * @summary Create a terraform deployment restriction
35422
+ * @param {string} terraformId Terraform ID
35423
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35424
+ * @param {*} [options] Override http request option.
35425
+ * @throws {RequiredError}
35426
+ */
35427
+ createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse>;
35428
+ /**
35429
+ * Get terraform deployment restrictions
35430
+ * @summary Get terraform deployment restrictions
35431
+ * @param {string} terraformId Terraform ID
35432
+ * @param {*} [options] Override http request option.
35433
+ * @throws {RequiredError}
35434
+ */
35435
+ getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponseList>;
35436
+ };
35437
+ /**
35438
+ * TerraformDeploymentRestrictionApi - object-oriented interface
35439
+ * @export
35440
+ * @class TerraformDeploymentRestrictionApi
35441
+ * @extends {BaseAPI}
35442
+ */
35443
+ export declare class TerraformDeploymentRestrictionApi extends BaseAPI {
35444
+ /**
35445
+ * Create a terraform deployment restriction
35446
+ * @summary Create a terraform deployment restriction
35447
+ * @param {string} terraformId Terraform ID
35448
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35449
+ * @param {*} [options] Override http request option.
35450
+ * @throws {RequiredError}
35451
+ * @memberof TerraformDeploymentRestrictionApi
35452
+ */
35453
+ createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponse, any>>;
35454
+ /**
35455
+ * Get terraform deployment restrictions
35456
+ * @summary Get terraform deployment restrictions
35457
+ * @param {string} terraformId Terraform ID
35458
+ * @param {*} [options] Override http request option.
35459
+ * @throws {RequiredError}
35460
+ * @memberof TerraformDeploymentRestrictionApi
35461
+ */
35462
+ getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponseList, any>>;
35463
+ }
35287
35464
  /**
35288
35465
  * TerraformMainCallsApi - axios parameter creator
35289
35466
  * @export
package/dist/api.js CHANGED
@@ -30,7 +30,7 @@ exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.Env
30
30
  exports.HelmMainCallsApiFp = exports.HelmMainCallsApiAxiosParamCreator = exports.HelmDeploymentRestrictionApi = exports.HelmDeploymentRestrictionApiFactory = exports.HelmDeploymentRestrictionApiFp = exports.HelmDeploymentRestrictionApiAxiosParamCreator = exports.HelmDeploymentHistoryApi = exports.HelmDeploymentHistoryApiFactory = exports.HelmDeploymentHistoryApiFp = exports.HelmDeploymentHistoryApiAxiosParamCreator = exports.HelmCustomDomainApi = exports.HelmCustomDomainApiFactory = exports.HelmCustomDomainApiFp = exports.HelmCustomDomainApiAxiosParamCreator = exports.HelmConfigurationApi = exports.HelmConfigurationApiFactory = exports.HelmConfigurationApiFp = exports.HelmConfigurationApiAxiosParamCreator = exports.HelmActionsApi = exports.HelmActionsApiFactory = exports.HelmActionsApiFp = exports.HelmActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = 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 = void 0;
31
31
  exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.LifecycleTemplateMainCallsApi = exports.LifecycleTemplateMainCallsApiFactory = exports.LifecycleTemplateMainCallsApiFp = exports.LifecycleTemplateMainCallsApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentRestrictionApi = exports.JobDeploymentRestrictionApiFactory = exports.JobDeploymentRestrictionApiFp = exports.JobDeploymentRestrictionApiAxiosParamCreator = 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.HelmsApi = exports.HelmsApiFactory = exports.HelmsApiFp = exports.HelmsApiAxiosParamCreator = exports.HelmRepositoriesApi = exports.HelmRepositoriesApiFactory = exports.HelmRepositoriesApiFp = exports.HelmRepositoriesApiAxiosParamCreator = exports.HelmMainCallsApi = exports.HelmMainCallsApiFactory = void 0;
32
32
  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.OrganizationLabelsGroupApi = exports.OrganizationLabelsGroupApiFactory = exports.OrganizationLabelsGroupApiFp = exports.OrganizationLabelsGroupApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationClusterLockApi = exports.OrganizationClusterLockApiFactory = exports.OrganizationClusterLockApiFp = exports.OrganizationClusterLockApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAnnotationsGroupApi = exports.OrganizationAnnotationsGroupApiFactory = exports.OrganizationAnnotationsGroupApiFp = exports.OrganizationAnnotationsGroupApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = void 0;
33
- exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformDeploymentHistoryApi = exports.TerraformDeploymentHistoryApiFactory = exports.TerraformDeploymentHistoryApiFp = exports.TerraformDeploymentHistoryApiAxiosParamCreator = exports.TerraformConfigurationApi = exports.TerraformConfigurationApiFactory = exports.TerraformConfigurationApiFp = exports.TerraformConfigurationApiAxiosParamCreator = exports.GetIngressDeploymentStatusServiceTypeEnum = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = void 0;
33
+ exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformDeploymentRestrictionApi = exports.TerraformDeploymentRestrictionApiFactory = exports.TerraformDeploymentRestrictionApiFp = exports.TerraformDeploymentRestrictionApiAxiosParamCreator = exports.TerraformDeploymentHistoryApi = exports.TerraformDeploymentHistoryApiFactory = exports.TerraformDeploymentHistoryApiFp = exports.TerraformDeploymentHistoryApiAxiosParamCreator = exports.TerraformConfigurationApi = exports.TerraformConfigurationApiFactory = exports.TerraformConfigurationApiFp = exports.TerraformConfigurationApiAxiosParamCreator = exports.GetIngressDeploymentStatusServiceTypeEnum = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = void 0;
34
34
  const axios_1 = require("axios");
35
35
  // Some imports not used depending on template conditions
36
36
  // @ts-ignore
@@ -37439,6 +37439,192 @@ class TerraformDeploymentHistoryApi extends base_1.BaseAPI {
37439
37439
  }
37440
37440
  }
37441
37441
  exports.TerraformDeploymentHistoryApi = TerraformDeploymentHistoryApi;
37442
+ /**
37443
+ * TerraformDeploymentRestrictionApi - axios parameter creator
37444
+ * @export
37445
+ */
37446
+ const TerraformDeploymentRestrictionApiAxiosParamCreator = function (configuration) {
37447
+ return {
37448
+ /**
37449
+ * Create a terraform deployment restriction
37450
+ * @summary Create a terraform deployment restriction
37451
+ * @param {string} terraformId Terraform ID
37452
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37453
+ * @param {*} [options] Override http request option.
37454
+ * @throws {RequiredError}
37455
+ */
37456
+ createTerraformDeploymentRestriction: (terraformId_1, terraformDeploymentRestrictionRequest_1, ...args_1) => __awaiter(this, [terraformId_1, terraformDeploymentRestrictionRequest_1, ...args_1], void 0, function* (terraformId, terraformDeploymentRestrictionRequest, options = {}) {
37457
+ // verify required parameter 'terraformId' is not null or undefined
37458
+ (0, common_1.assertParamExists)('createTerraformDeploymentRestriction', 'terraformId', terraformId);
37459
+ const localVarPath = `/terraform/{terraformId}/deploymentRestriction`
37460
+ .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
37461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37462
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
37463
+ let baseOptions;
37464
+ if (configuration) {
37465
+ baseOptions = configuration.baseOptions;
37466
+ }
37467
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
37468
+ const localVarHeaderParameter = {};
37469
+ const localVarQueryParameter = {};
37470
+ // authentication ApiKeyAuth required
37471
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
37472
+ // authentication bearerAuth required
37473
+ // http bearer authentication required
37474
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
37475
+ localVarHeaderParameter['Content-Type'] = 'application/json';
37476
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
37477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37478
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
37479
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(terraformDeploymentRestrictionRequest, localVarRequestOptions, configuration);
37480
+ return {
37481
+ url: (0, common_1.toPathString)(localVarUrlObj),
37482
+ options: localVarRequestOptions,
37483
+ };
37484
+ }),
37485
+ /**
37486
+ * Get terraform deployment restrictions
37487
+ * @summary Get terraform deployment restrictions
37488
+ * @param {string} terraformId Terraform ID
37489
+ * @param {*} [options] Override http request option.
37490
+ * @throws {RequiredError}
37491
+ */
37492
+ getTerraformDeploymentRestrictions: (terraformId_1, ...args_1) => __awaiter(this, [terraformId_1, ...args_1], void 0, function* (terraformId, options = {}) {
37493
+ // verify required parameter 'terraformId' is not null or undefined
37494
+ (0, common_1.assertParamExists)('getTerraformDeploymentRestrictions', 'terraformId', terraformId);
37495
+ const localVarPath = `/terraform/{terraformId}/deploymentRestriction`
37496
+ .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
37497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37498
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
37499
+ let baseOptions;
37500
+ if (configuration) {
37501
+ baseOptions = configuration.baseOptions;
37502
+ }
37503
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
37504
+ const localVarHeaderParameter = {};
37505
+ const localVarQueryParameter = {};
37506
+ // authentication ApiKeyAuth required
37507
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
37508
+ // authentication bearerAuth required
37509
+ // http bearer authentication required
37510
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
37511
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
37512
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37513
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
37514
+ return {
37515
+ url: (0, common_1.toPathString)(localVarUrlObj),
37516
+ options: localVarRequestOptions,
37517
+ };
37518
+ }),
37519
+ };
37520
+ };
37521
+ exports.TerraformDeploymentRestrictionApiAxiosParamCreator = TerraformDeploymentRestrictionApiAxiosParamCreator;
37522
+ /**
37523
+ * TerraformDeploymentRestrictionApi - functional programming interface
37524
+ * @export
37525
+ */
37526
+ const TerraformDeploymentRestrictionApiFp = function (configuration) {
37527
+ const localVarAxiosParamCreator = (0, exports.TerraformDeploymentRestrictionApiAxiosParamCreator)(configuration);
37528
+ return {
37529
+ /**
37530
+ * Create a terraform deployment restriction
37531
+ * @summary Create a terraform deployment restriction
37532
+ * @param {string} terraformId Terraform ID
37533
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37534
+ * @param {*} [options] Override http request option.
37535
+ * @throws {RequiredError}
37536
+ */
37537
+ createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
37538
+ return __awaiter(this, void 0, void 0, function* () {
37539
+ var _a, _b, _c;
37540
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options);
37541
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
37542
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformDeploymentRestrictionApi.createTerraformDeploymentRestriction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
37543
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37544
+ });
37545
+ },
37546
+ /**
37547
+ * Get terraform deployment restrictions
37548
+ * @summary Get terraform deployment restrictions
37549
+ * @param {string} terraformId Terraform ID
37550
+ * @param {*} [options] Override http request option.
37551
+ * @throws {RequiredError}
37552
+ */
37553
+ getTerraformDeploymentRestrictions(terraformId, options) {
37554
+ return __awaiter(this, void 0, void 0, function* () {
37555
+ var _a, _b, _c;
37556
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTerraformDeploymentRestrictions(terraformId, options);
37557
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
37558
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformDeploymentRestrictionApi.getTerraformDeploymentRestrictions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
37559
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37560
+ });
37561
+ },
37562
+ };
37563
+ };
37564
+ exports.TerraformDeploymentRestrictionApiFp = TerraformDeploymentRestrictionApiFp;
37565
+ /**
37566
+ * TerraformDeploymentRestrictionApi - factory interface
37567
+ * @export
37568
+ */
37569
+ const TerraformDeploymentRestrictionApiFactory = function (configuration, basePath, axios) {
37570
+ const localVarFp = (0, exports.TerraformDeploymentRestrictionApiFp)(configuration);
37571
+ return {
37572
+ /**
37573
+ * Create a terraform deployment restriction
37574
+ * @summary Create a terraform deployment restriction
37575
+ * @param {string} terraformId Terraform ID
37576
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37577
+ * @param {*} [options] Override http request option.
37578
+ * @throws {RequiredError}
37579
+ */
37580
+ createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
37581
+ return localVarFp.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
37582
+ },
37583
+ /**
37584
+ * Get terraform deployment restrictions
37585
+ * @summary Get terraform deployment restrictions
37586
+ * @param {string} terraformId Terraform ID
37587
+ * @param {*} [options] Override http request option.
37588
+ * @throws {RequiredError}
37589
+ */
37590
+ getTerraformDeploymentRestrictions(terraformId, options) {
37591
+ return localVarFp.getTerraformDeploymentRestrictions(terraformId, options).then((request) => request(axios, basePath));
37592
+ },
37593
+ };
37594
+ };
37595
+ exports.TerraformDeploymentRestrictionApiFactory = TerraformDeploymentRestrictionApiFactory;
37596
+ /**
37597
+ * TerraformDeploymentRestrictionApi - object-oriented interface
37598
+ * @export
37599
+ * @class TerraformDeploymentRestrictionApi
37600
+ * @extends {BaseAPI}
37601
+ */
37602
+ class TerraformDeploymentRestrictionApi extends base_1.BaseAPI {
37603
+ /**
37604
+ * Create a terraform deployment restriction
37605
+ * @summary Create a terraform deployment restriction
37606
+ * @param {string} terraformId Terraform ID
37607
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37608
+ * @param {*} [options] Override http request option.
37609
+ * @throws {RequiredError}
37610
+ * @memberof TerraformDeploymentRestrictionApi
37611
+ */
37612
+ createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
37613
+ return (0, exports.TerraformDeploymentRestrictionApiFp)(this.configuration).createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
37614
+ }
37615
+ /**
37616
+ * Get terraform deployment restrictions
37617
+ * @summary Get terraform deployment restrictions
37618
+ * @param {string} terraformId Terraform ID
37619
+ * @param {*} [options] Override http request option.
37620
+ * @throws {RequiredError}
37621
+ * @memberof TerraformDeploymentRestrictionApi
37622
+ */
37623
+ getTerraformDeploymentRestrictions(terraformId, options) {
37624
+ return (0, exports.TerraformDeploymentRestrictionApiFp)(this.configuration).getTerraformDeploymentRestrictions(terraformId, options).then((request) => request(this.axios, this.basePath));
37625
+ }
37626
+ }
37627
+ exports.TerraformDeploymentRestrictionApi = TerraformDeploymentRestrictionApi;
37442
37628
  /**
37443
37629
  * TerraformMainCallsApi - axios parameter creator
37444
37630
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -16351,6 +16351,87 @@ export interface TerraformAdvancedSettings {
16351
16351
  */
16352
16352
  'security.read_only_root_filesystem'?: boolean;
16353
16353
  }
16354
+ /**
16355
+ *
16356
+ * @export
16357
+ * @interface TerraformDeploymentRestrictionRequest
16358
+ */
16359
+ export interface TerraformDeploymentRestrictionRequest {
16360
+ /**
16361
+ *
16362
+ * @type {DeploymentRestrictionModeEnum}
16363
+ * @memberof TerraformDeploymentRestrictionRequest
16364
+ */
16365
+ 'mode': DeploymentRestrictionModeEnum;
16366
+ /**
16367
+ *
16368
+ * @type {DeploymentRestrictionTypeEnum}
16369
+ * @memberof TerraformDeploymentRestrictionRequest
16370
+ */
16371
+ 'type': DeploymentRestrictionTypeEnum;
16372
+ /**
16373
+ * ‘For `PATH` restrictions, the value must not start with `/`’
16374
+ * @type {string}
16375
+ * @memberof TerraformDeploymentRestrictionRequest
16376
+ */
16377
+ 'value'?: string;
16378
+ }
16379
+ /**
16380
+ *
16381
+ * @export
16382
+ * @interface TerraformDeploymentRestrictionResponse
16383
+ */
16384
+ export interface TerraformDeploymentRestrictionResponse {
16385
+ /**
16386
+ *
16387
+ * @type {string}
16388
+ * @memberof TerraformDeploymentRestrictionResponse
16389
+ */
16390
+ 'id': string;
16391
+ /**
16392
+ *
16393
+ * @type {string}
16394
+ * @memberof TerraformDeploymentRestrictionResponse
16395
+ */
16396
+ 'created_at': string;
16397
+ /**
16398
+ *
16399
+ * @type {string}
16400
+ * @memberof TerraformDeploymentRestrictionResponse
16401
+ */
16402
+ 'updated_at'?: string;
16403
+ /**
16404
+ *
16405
+ * @type {DeploymentRestrictionModeEnum}
16406
+ * @memberof TerraformDeploymentRestrictionResponse
16407
+ */
16408
+ 'mode': DeploymentRestrictionModeEnum;
16409
+ /**
16410
+ *
16411
+ * @type {DeploymentRestrictionTypeEnum}
16412
+ * @memberof TerraformDeploymentRestrictionResponse
16413
+ */
16414
+ 'type': DeploymentRestrictionTypeEnum;
16415
+ /**
16416
+ * ‘For `PATH` restrictions, the value must not start with `/`’
16417
+ * @type {string}
16418
+ * @memberof TerraformDeploymentRestrictionResponse
16419
+ */
16420
+ 'value'?: string;
16421
+ }
16422
+ /**
16423
+ *
16424
+ * @export
16425
+ * @interface TerraformDeploymentRestrictionResponseList
16426
+ */
16427
+ export interface TerraformDeploymentRestrictionResponseList {
16428
+ /**
16429
+ *
16430
+ * @type {Array<TerraformDeploymentRestrictionResponse>}
16431
+ * @memberof TerraformDeploymentRestrictionResponseList
16432
+ */
16433
+ 'results'?: Array<TerraformDeploymentRestrictionResponse>;
16434
+ }
16354
16435
  /**
16355
16436
  *
16356
16437
  * @export
@@ -35284,6 +35365,102 @@ export declare class TerraformDeploymentHistoryApi extends BaseAPI {
35284
35365
  */
35285
35366
  listTerraformDeploymentHistoryV2(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentHistoryServicePaginatedResponseListV2, any>>;
35286
35367
  }
35368
+ /**
35369
+ * TerraformDeploymentRestrictionApi - axios parameter creator
35370
+ * @export
35371
+ */
35372
+ export declare const TerraformDeploymentRestrictionApiAxiosParamCreator: (configuration?: Configuration) => {
35373
+ /**
35374
+ * Create a terraform deployment restriction
35375
+ * @summary Create a terraform deployment restriction
35376
+ * @param {string} terraformId Terraform ID
35377
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35378
+ * @param {*} [options] Override http request option.
35379
+ * @throws {RequiredError}
35380
+ */
35381
+ createTerraformDeploymentRestriction: (terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35382
+ /**
35383
+ * Get terraform deployment restrictions
35384
+ * @summary Get terraform deployment restrictions
35385
+ * @param {string} terraformId Terraform ID
35386
+ * @param {*} [options] Override http request option.
35387
+ * @throws {RequiredError}
35388
+ */
35389
+ getTerraformDeploymentRestrictions: (terraformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35390
+ };
35391
+ /**
35392
+ * TerraformDeploymentRestrictionApi - functional programming interface
35393
+ * @export
35394
+ */
35395
+ export declare const TerraformDeploymentRestrictionApiFp: (configuration?: Configuration) => {
35396
+ /**
35397
+ * Create a terraform deployment restriction
35398
+ * @summary Create a terraform deployment restriction
35399
+ * @param {string} terraformId Terraform ID
35400
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35401
+ * @param {*} [options] Override http request option.
35402
+ * @throws {RequiredError}
35403
+ */
35404
+ createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponse>>;
35405
+ /**
35406
+ * Get terraform deployment restrictions
35407
+ * @summary Get terraform deployment restrictions
35408
+ * @param {string} terraformId Terraform ID
35409
+ * @param {*} [options] Override http request option.
35410
+ * @throws {RequiredError}
35411
+ */
35412
+ getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformDeploymentRestrictionResponseList>>;
35413
+ };
35414
+ /**
35415
+ * TerraformDeploymentRestrictionApi - factory interface
35416
+ * @export
35417
+ */
35418
+ export declare const TerraformDeploymentRestrictionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
35419
+ /**
35420
+ * Create a terraform deployment restriction
35421
+ * @summary Create a terraform deployment restriction
35422
+ * @param {string} terraformId Terraform ID
35423
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35424
+ * @param {*} [options] Override http request option.
35425
+ * @throws {RequiredError}
35426
+ */
35427
+ createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponse>;
35428
+ /**
35429
+ * Get terraform deployment restrictions
35430
+ * @summary Get terraform deployment restrictions
35431
+ * @param {string} terraformId Terraform ID
35432
+ * @param {*} [options] Override http request option.
35433
+ * @throws {RequiredError}
35434
+ */
35435
+ getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<TerraformDeploymentRestrictionResponseList>;
35436
+ };
35437
+ /**
35438
+ * TerraformDeploymentRestrictionApi - object-oriented interface
35439
+ * @export
35440
+ * @class TerraformDeploymentRestrictionApi
35441
+ * @extends {BaseAPI}
35442
+ */
35443
+ export declare class TerraformDeploymentRestrictionApi extends BaseAPI {
35444
+ /**
35445
+ * Create a terraform deployment restriction
35446
+ * @summary Create a terraform deployment restriction
35447
+ * @param {string} terraformId Terraform ID
35448
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
35449
+ * @param {*} [options] Override http request option.
35450
+ * @throws {RequiredError}
35451
+ * @memberof TerraformDeploymentRestrictionApi
35452
+ */
35453
+ createTerraformDeploymentRestriction(terraformId: string, terraformDeploymentRestrictionRequest?: TerraformDeploymentRestrictionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponse, any>>;
35454
+ /**
35455
+ * Get terraform deployment restrictions
35456
+ * @summary Get terraform deployment restrictions
35457
+ * @param {string} terraformId Terraform ID
35458
+ * @param {*} [options] Override http request option.
35459
+ * @throws {RequiredError}
35460
+ * @memberof TerraformDeploymentRestrictionApi
35461
+ */
35462
+ getTerraformDeploymentRestrictions(terraformId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerraformDeploymentRestrictionResponseList, any>>;
35463
+ }
35287
35464
  /**
35288
35465
  * TerraformMainCallsApi - axios parameter creator
35289
35466
  * @export
package/dist/esm/api.js CHANGED
@@ -37100,6 +37100,188 @@ export class TerraformDeploymentHistoryApi extends BaseAPI {
37100
37100
  return TerraformDeploymentHistoryApiFp(this.configuration).listTerraformDeploymentHistoryV2(terraformId, options).then((request) => request(this.axios, this.basePath));
37101
37101
  }
37102
37102
  }
37103
+ /**
37104
+ * TerraformDeploymentRestrictionApi - axios parameter creator
37105
+ * @export
37106
+ */
37107
+ export const TerraformDeploymentRestrictionApiAxiosParamCreator = function (configuration) {
37108
+ return {
37109
+ /**
37110
+ * Create a terraform deployment restriction
37111
+ * @summary Create a terraform deployment restriction
37112
+ * @param {string} terraformId Terraform ID
37113
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37114
+ * @param {*} [options] Override http request option.
37115
+ * @throws {RequiredError}
37116
+ */
37117
+ createTerraformDeploymentRestriction: (terraformId_1, terraformDeploymentRestrictionRequest_1, ...args_1) => __awaiter(this, [terraformId_1, terraformDeploymentRestrictionRequest_1, ...args_1], void 0, function* (terraformId, terraformDeploymentRestrictionRequest, options = {}) {
37118
+ // verify required parameter 'terraformId' is not null or undefined
37119
+ assertParamExists('createTerraformDeploymentRestriction', 'terraformId', terraformId);
37120
+ const localVarPath = `/terraform/{terraformId}/deploymentRestriction`
37121
+ .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
37122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37124
+ let baseOptions;
37125
+ if (configuration) {
37126
+ baseOptions = configuration.baseOptions;
37127
+ }
37128
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
37129
+ const localVarHeaderParameter = {};
37130
+ const localVarQueryParameter = {};
37131
+ // authentication ApiKeyAuth required
37132
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
37133
+ // authentication bearerAuth required
37134
+ // http bearer authentication required
37135
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
37136
+ localVarHeaderParameter['Content-Type'] = 'application/json';
37137
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37139
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
37140
+ localVarRequestOptions.data = serializeDataIfNeeded(terraformDeploymentRestrictionRequest, localVarRequestOptions, configuration);
37141
+ return {
37142
+ url: toPathString(localVarUrlObj),
37143
+ options: localVarRequestOptions,
37144
+ };
37145
+ }),
37146
+ /**
37147
+ * Get terraform deployment restrictions
37148
+ * @summary Get terraform deployment restrictions
37149
+ * @param {string} terraformId Terraform ID
37150
+ * @param {*} [options] Override http request option.
37151
+ * @throws {RequiredError}
37152
+ */
37153
+ getTerraformDeploymentRestrictions: (terraformId_1, ...args_1) => __awaiter(this, [terraformId_1, ...args_1], void 0, function* (terraformId, options = {}) {
37154
+ // verify required parameter 'terraformId' is not null or undefined
37155
+ assertParamExists('getTerraformDeploymentRestrictions', 'terraformId', terraformId);
37156
+ const localVarPath = `/terraform/{terraformId}/deploymentRestriction`
37157
+ .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
37158
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37159
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37160
+ let baseOptions;
37161
+ if (configuration) {
37162
+ baseOptions = configuration.baseOptions;
37163
+ }
37164
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
37165
+ const localVarHeaderParameter = {};
37166
+ const localVarQueryParameter = {};
37167
+ // authentication ApiKeyAuth required
37168
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
37169
+ // authentication bearerAuth required
37170
+ // http bearer authentication required
37171
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
37172
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37174
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
37175
+ return {
37176
+ url: toPathString(localVarUrlObj),
37177
+ options: localVarRequestOptions,
37178
+ };
37179
+ }),
37180
+ };
37181
+ };
37182
+ /**
37183
+ * TerraformDeploymentRestrictionApi - functional programming interface
37184
+ * @export
37185
+ */
37186
+ export const TerraformDeploymentRestrictionApiFp = function (configuration) {
37187
+ const localVarAxiosParamCreator = TerraformDeploymentRestrictionApiAxiosParamCreator(configuration);
37188
+ return {
37189
+ /**
37190
+ * Create a terraform deployment restriction
37191
+ * @summary Create a terraform deployment restriction
37192
+ * @param {string} terraformId Terraform ID
37193
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37194
+ * @param {*} [options] Override http request option.
37195
+ * @throws {RequiredError}
37196
+ */
37197
+ createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
37198
+ return __awaiter(this, void 0, void 0, function* () {
37199
+ var _a, _b, _c;
37200
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options);
37201
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
37202
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformDeploymentRestrictionApi.createTerraformDeploymentRestriction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
37203
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37204
+ });
37205
+ },
37206
+ /**
37207
+ * Get terraform deployment restrictions
37208
+ * @summary Get terraform deployment restrictions
37209
+ * @param {string} terraformId Terraform ID
37210
+ * @param {*} [options] Override http request option.
37211
+ * @throws {RequiredError}
37212
+ */
37213
+ getTerraformDeploymentRestrictions(terraformId, options) {
37214
+ return __awaiter(this, void 0, void 0, function* () {
37215
+ var _a, _b, _c;
37216
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTerraformDeploymentRestrictions(terraformId, options);
37217
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
37218
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformDeploymentRestrictionApi.getTerraformDeploymentRestrictions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
37219
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37220
+ });
37221
+ },
37222
+ };
37223
+ };
37224
+ /**
37225
+ * TerraformDeploymentRestrictionApi - factory interface
37226
+ * @export
37227
+ */
37228
+ export const TerraformDeploymentRestrictionApiFactory = function (configuration, basePath, axios) {
37229
+ const localVarFp = TerraformDeploymentRestrictionApiFp(configuration);
37230
+ return {
37231
+ /**
37232
+ * Create a terraform deployment restriction
37233
+ * @summary Create a terraform deployment restriction
37234
+ * @param {string} terraformId Terraform ID
37235
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37236
+ * @param {*} [options] Override http request option.
37237
+ * @throws {RequiredError}
37238
+ */
37239
+ createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
37240
+ return localVarFp.createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
37241
+ },
37242
+ /**
37243
+ * Get terraform deployment restrictions
37244
+ * @summary Get terraform deployment restrictions
37245
+ * @param {string} terraformId Terraform ID
37246
+ * @param {*} [options] Override http request option.
37247
+ * @throws {RequiredError}
37248
+ */
37249
+ getTerraformDeploymentRestrictions(terraformId, options) {
37250
+ return localVarFp.getTerraformDeploymentRestrictions(terraformId, options).then((request) => request(axios, basePath));
37251
+ },
37252
+ };
37253
+ };
37254
+ /**
37255
+ * TerraformDeploymentRestrictionApi - object-oriented interface
37256
+ * @export
37257
+ * @class TerraformDeploymentRestrictionApi
37258
+ * @extends {BaseAPI}
37259
+ */
37260
+ export class TerraformDeploymentRestrictionApi extends BaseAPI {
37261
+ /**
37262
+ * Create a terraform deployment restriction
37263
+ * @summary Create a terraform deployment restriction
37264
+ * @param {string} terraformId Terraform ID
37265
+ * @param {TerraformDeploymentRestrictionRequest} [terraformDeploymentRestrictionRequest]
37266
+ * @param {*} [options] Override http request option.
37267
+ * @throws {RequiredError}
37268
+ * @memberof TerraformDeploymentRestrictionApi
37269
+ */
37270
+ createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options) {
37271
+ return TerraformDeploymentRestrictionApiFp(this.configuration).createTerraformDeploymentRestriction(terraformId, terraformDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
37272
+ }
37273
+ /**
37274
+ * Get terraform deployment restrictions
37275
+ * @summary Get terraform deployment restrictions
37276
+ * @param {string} terraformId Terraform ID
37277
+ * @param {*} [options] Override http request option.
37278
+ * @throws {RequiredError}
37279
+ * @memberof TerraformDeploymentRestrictionApi
37280
+ */
37281
+ getTerraformDeploymentRestrictions(terraformId, options) {
37282
+ return TerraformDeploymentRestrictionApiFp(this.configuration).getTerraformDeploymentRestrictions(terraformId, options).then((request) => request(this.axios, this.basePath));
37283
+ }
37284
+ }
37103
37285
  /**
37104
37286
  * TerraformMainCallsApi - axios parameter creator
37105
37287
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.593",
3
+ "version": "v1.1.594",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {