qovery-typescript-axios 1.1.612 → 1.1.614
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 +147 -3
- package/dist/api.d.ts +85 -0
- package/dist/api.js +123 -4
- package/dist/esm/api.d.ts +85 -0
- package/dist/esm/api.js +117 -3
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -8987,7 +8987,8 @@ export const GitTokenAssociatedServiceType = {
|
|
|
8987
8987
|
APPLICATION: 'APPLICATION',
|
|
8988
8988
|
CRON: 'CRON',
|
|
8989
8989
|
LIFECYCLE: 'LIFECYCLE',
|
|
8990
|
-
HELM: 'HELM'
|
|
8990
|
+
HELM: 'HELM',
|
|
8991
|
+
TERRAFORM: 'TERRAFORM'
|
|
8991
8992
|
} as const;
|
|
8992
8993
|
|
|
8993
8994
|
export type GitTokenAssociatedServiceType = typeof GitTokenAssociatedServiceType[keyof typeof GitTokenAssociatedServiceType];
|
|
@@ -12381,7 +12382,8 @@ export const LinkedServiceTypeEnum = {
|
|
|
12381
12382
|
CONTAINER: 'CONTAINER',
|
|
12382
12383
|
DATABASE: 'DATABASE',
|
|
12383
12384
|
JOB: 'JOB',
|
|
12384
|
-
HELM: 'HELM'
|
|
12385
|
+
HELM: 'HELM',
|
|
12386
|
+
TERRAFORM: 'TERRAFORM'
|
|
12385
12387
|
} as const;
|
|
12386
12388
|
|
|
12387
12389
|
export type LinkedServiceTypeEnum = typeof LinkedServiceTypeEnum[keyof typeof LinkedServiceTypeEnum];
|
|
@@ -16519,7 +16521,8 @@ export const ServiceTypeForVariableEnum = {
|
|
|
16519
16521
|
APPLICATION: 'APPLICATION',
|
|
16520
16522
|
CONTAINER: 'CONTAINER',
|
|
16521
16523
|
JOB: 'JOB',
|
|
16522
|
-
HELM: 'HELM'
|
|
16524
|
+
HELM: 'HELM',
|
|
16525
|
+
TERRAFORM: 'TERRAFORM'
|
|
16523
16526
|
} as const;
|
|
16524
16527
|
|
|
16525
16528
|
export type ServiceTypeForVariableEnum = typeof ServiceTypeForVariableEnum[keyof typeof ServiceTypeForVariableEnum];
|
|
@@ -17072,6 +17075,25 @@ export interface TerraformAdvancedSettings {
|
|
|
17072
17075
|
*/
|
|
17073
17076
|
'security.read_only_root_filesystem'?: boolean;
|
|
17074
17077
|
}
|
|
17078
|
+
/**
|
|
17079
|
+
*
|
|
17080
|
+
* @export
|
|
17081
|
+
* @interface TerraformDeployRequest
|
|
17082
|
+
*/
|
|
17083
|
+
export interface TerraformDeployRequest {
|
|
17084
|
+
/**
|
|
17085
|
+
* Commit to deploy for chart source.
|
|
17086
|
+
* @type {string}
|
|
17087
|
+
* @memberof TerraformDeployRequest
|
|
17088
|
+
*/
|
|
17089
|
+
'git_commit_id'?: string;
|
|
17090
|
+
/**
|
|
17091
|
+
*
|
|
17092
|
+
* @type {boolean}
|
|
17093
|
+
* @memberof TerraformDeployRequest
|
|
17094
|
+
*/
|
|
17095
|
+
'dry_run'?: boolean;
|
|
17096
|
+
}
|
|
17075
17097
|
/**
|
|
17076
17098
|
*
|
|
17077
17099
|
* @export
|
|
@@ -56785,6 +56807,128 @@ export const GetIngressDeploymentStatusServiceTypeEnum = {
|
|
|
56785
56807
|
export type GetIngressDeploymentStatusServiceTypeEnum = typeof GetIngressDeploymentStatusServiceTypeEnum[keyof typeof GetIngressDeploymentStatusServiceTypeEnum];
|
|
56786
56808
|
|
|
56787
56809
|
|
|
56810
|
+
/**
|
|
56811
|
+
* TerraformActionsApi - axios parameter creator
|
|
56812
|
+
* @export
|
|
56813
|
+
*/
|
|
56814
|
+
export const TerraformActionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
56815
|
+
return {
|
|
56816
|
+
/**
|
|
56817
|
+
* You must provide a git commit id.
|
|
56818
|
+
* @summary Deploy terraform
|
|
56819
|
+
* @param {string} terraformId Terraform ID
|
|
56820
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
56821
|
+
* @param {*} [options] Override http request option.
|
|
56822
|
+
* @throws {RequiredError}
|
|
56823
|
+
*/
|
|
56824
|
+
deployTerraform: async (terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56825
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
56826
|
+
assertParamExists('deployTerraform', 'terraformId', terraformId)
|
|
56827
|
+
const localVarPath = `/terraform/{terraformId}/deploy`
|
|
56828
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
56829
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56830
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56831
|
+
let baseOptions;
|
|
56832
|
+
if (configuration) {
|
|
56833
|
+
baseOptions = configuration.baseOptions;
|
|
56834
|
+
}
|
|
56835
|
+
|
|
56836
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
56837
|
+
const localVarHeaderParameter = {} as any;
|
|
56838
|
+
const localVarQueryParameter = {} as any;
|
|
56839
|
+
|
|
56840
|
+
// authentication ApiKeyAuth required
|
|
56841
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
56842
|
+
|
|
56843
|
+
// authentication bearerAuth required
|
|
56844
|
+
// http bearer authentication required
|
|
56845
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56846
|
+
|
|
56847
|
+
|
|
56848
|
+
|
|
56849
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56850
|
+
|
|
56851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56853
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56854
|
+
localVarRequestOptions.data = serializeDataIfNeeded(terraformDeployRequest, localVarRequestOptions, configuration)
|
|
56855
|
+
|
|
56856
|
+
return {
|
|
56857
|
+
url: toPathString(localVarUrlObj),
|
|
56858
|
+
options: localVarRequestOptions,
|
|
56859
|
+
};
|
|
56860
|
+
},
|
|
56861
|
+
}
|
|
56862
|
+
};
|
|
56863
|
+
|
|
56864
|
+
/**
|
|
56865
|
+
* TerraformActionsApi - functional programming interface
|
|
56866
|
+
* @export
|
|
56867
|
+
*/
|
|
56868
|
+
export const TerraformActionsApiFp = function(configuration?: Configuration) {
|
|
56869
|
+
const localVarAxiosParamCreator = TerraformActionsApiAxiosParamCreator(configuration)
|
|
56870
|
+
return {
|
|
56871
|
+
/**
|
|
56872
|
+
* You must provide a git commit id.
|
|
56873
|
+
* @summary Deploy terraform
|
|
56874
|
+
* @param {string} terraformId Terraform ID
|
|
56875
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
56876
|
+
* @param {*} [options] Override http request option.
|
|
56877
|
+
* @throws {RequiredError}
|
|
56878
|
+
*/
|
|
56879
|
+
async deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
|
|
56880
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deployTerraform(terraformId, terraformDeployRequest, options);
|
|
56881
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56882
|
+
const localVarOperationServerBasePath = operationServerMap['TerraformActionsApi.deployTerraform']?.[localVarOperationServerIndex]?.url;
|
|
56883
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56884
|
+
},
|
|
56885
|
+
}
|
|
56886
|
+
};
|
|
56887
|
+
|
|
56888
|
+
/**
|
|
56889
|
+
* TerraformActionsApi - factory interface
|
|
56890
|
+
* @export
|
|
56891
|
+
*/
|
|
56892
|
+
export const TerraformActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
56893
|
+
const localVarFp = TerraformActionsApiFp(configuration)
|
|
56894
|
+
return {
|
|
56895
|
+
/**
|
|
56896
|
+
* You must provide a git commit id.
|
|
56897
|
+
* @summary Deploy terraform
|
|
56898
|
+
* @param {string} terraformId Terraform ID
|
|
56899
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
56900
|
+
* @param {*} [options] Override http request option.
|
|
56901
|
+
* @throws {RequiredError}
|
|
56902
|
+
*/
|
|
56903
|
+
deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
|
|
56904
|
+
return localVarFp.deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(axios, basePath));
|
|
56905
|
+
},
|
|
56906
|
+
};
|
|
56907
|
+
};
|
|
56908
|
+
|
|
56909
|
+
/**
|
|
56910
|
+
* TerraformActionsApi - object-oriented interface
|
|
56911
|
+
* @export
|
|
56912
|
+
* @class TerraformActionsApi
|
|
56913
|
+
* @extends {BaseAPI}
|
|
56914
|
+
*/
|
|
56915
|
+
export class TerraformActionsApi extends BaseAPI {
|
|
56916
|
+
/**
|
|
56917
|
+
* You must provide a git commit id.
|
|
56918
|
+
* @summary Deploy terraform
|
|
56919
|
+
* @param {string} terraformId Terraform ID
|
|
56920
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
56921
|
+
* @param {*} [options] Override http request option.
|
|
56922
|
+
* @throws {RequiredError}
|
|
56923
|
+
* @memberof TerraformActionsApi
|
|
56924
|
+
*/
|
|
56925
|
+
public deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig) {
|
|
56926
|
+
return TerraformActionsApiFp(this.configuration).deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
56927
|
+
}
|
|
56928
|
+
}
|
|
56929
|
+
|
|
56930
|
+
|
|
56931
|
+
|
|
56788
56932
|
/**
|
|
56789
56933
|
* TerraformConfigurationApi - axios parameter creator
|
|
56790
56934
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -8719,6 +8719,7 @@ export declare const GitTokenAssociatedServiceType: {
|
|
|
8719
8719
|
readonly CRON: "CRON";
|
|
8720
8720
|
readonly LIFECYCLE: "LIFECYCLE";
|
|
8721
8721
|
readonly HELM: "HELM";
|
|
8722
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
8722
8723
|
};
|
|
8723
8724
|
export type GitTokenAssociatedServiceType = typeof GitTokenAssociatedServiceType[keyof typeof GitTokenAssociatedServiceType];
|
|
8724
8725
|
/**
|
|
@@ -12012,6 +12013,7 @@ export declare const LinkedServiceTypeEnum: {
|
|
|
12012
12013
|
readonly DATABASE: "DATABASE";
|
|
12013
12014
|
readonly JOB: "JOB";
|
|
12014
12015
|
readonly HELM: "HELM";
|
|
12016
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
12015
12017
|
};
|
|
12016
12018
|
export type LinkedServiceTypeEnum = typeof LinkedServiceTypeEnum[keyof typeof LinkedServiceTypeEnum];
|
|
12017
12019
|
/**
|
|
@@ -16002,6 +16004,7 @@ export declare const ServiceTypeForVariableEnum: {
|
|
|
16002
16004
|
readonly CONTAINER: "CONTAINER";
|
|
16003
16005
|
readonly JOB: "JOB";
|
|
16004
16006
|
readonly HELM: "HELM";
|
|
16007
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
16005
16008
|
};
|
|
16006
16009
|
export type ServiceTypeForVariableEnum = typeof ServiceTypeForVariableEnum[keyof typeof ServiceTypeForVariableEnum];
|
|
16007
16010
|
/**
|
|
@@ -16517,6 +16520,25 @@ export interface TerraformAdvancedSettings {
|
|
|
16517
16520
|
*/
|
|
16518
16521
|
'security.read_only_root_filesystem'?: boolean;
|
|
16519
16522
|
}
|
|
16523
|
+
/**
|
|
16524
|
+
*
|
|
16525
|
+
* @export
|
|
16526
|
+
* @interface TerraformDeployRequest
|
|
16527
|
+
*/
|
|
16528
|
+
export interface TerraformDeployRequest {
|
|
16529
|
+
/**
|
|
16530
|
+
* Commit to deploy for chart source.
|
|
16531
|
+
* @type {string}
|
|
16532
|
+
* @memberof TerraformDeployRequest
|
|
16533
|
+
*/
|
|
16534
|
+
'git_commit_id'?: string;
|
|
16535
|
+
/**
|
|
16536
|
+
*
|
|
16537
|
+
* @type {boolean}
|
|
16538
|
+
* @memberof TerraformDeployRequest
|
|
16539
|
+
*/
|
|
16540
|
+
'dry_run'?: boolean;
|
|
16541
|
+
}
|
|
16520
16542
|
/**
|
|
16521
16543
|
*
|
|
16522
16544
|
* @export
|
|
@@ -35371,6 +35393,69 @@ export declare const GetIngressDeploymentStatusServiceTypeEnum: {
|
|
|
35371
35393
|
readonly HELM: "HELM";
|
|
35372
35394
|
};
|
|
35373
35395
|
export type GetIngressDeploymentStatusServiceTypeEnum = typeof GetIngressDeploymentStatusServiceTypeEnum[keyof typeof GetIngressDeploymentStatusServiceTypeEnum];
|
|
35396
|
+
/**
|
|
35397
|
+
* TerraformActionsApi - axios parameter creator
|
|
35398
|
+
* @export
|
|
35399
|
+
*/
|
|
35400
|
+
export declare const TerraformActionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
35401
|
+
/**
|
|
35402
|
+
* You must provide a git commit id.
|
|
35403
|
+
* @summary Deploy terraform
|
|
35404
|
+
* @param {string} terraformId Terraform ID
|
|
35405
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35406
|
+
* @param {*} [options] Override http request option.
|
|
35407
|
+
* @throws {RequiredError}
|
|
35408
|
+
*/
|
|
35409
|
+
deployTerraform: (terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35410
|
+
};
|
|
35411
|
+
/**
|
|
35412
|
+
* TerraformActionsApi - functional programming interface
|
|
35413
|
+
* @export
|
|
35414
|
+
*/
|
|
35415
|
+
export declare const TerraformActionsApiFp: (configuration?: Configuration) => {
|
|
35416
|
+
/**
|
|
35417
|
+
* You must provide a git commit id.
|
|
35418
|
+
* @summary Deploy terraform
|
|
35419
|
+
* @param {string} terraformId Terraform ID
|
|
35420
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35421
|
+
* @param {*} [options] Override http request option.
|
|
35422
|
+
* @throws {RequiredError}
|
|
35423
|
+
*/
|
|
35424
|
+
deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>>;
|
|
35425
|
+
};
|
|
35426
|
+
/**
|
|
35427
|
+
* TerraformActionsApi - factory interface
|
|
35428
|
+
* @export
|
|
35429
|
+
*/
|
|
35430
|
+
export declare const TerraformActionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
35431
|
+
/**
|
|
35432
|
+
* You must provide a git commit id.
|
|
35433
|
+
* @summary Deploy terraform
|
|
35434
|
+
* @param {string} terraformId Terraform ID
|
|
35435
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35436
|
+
* @param {*} [options] Override http request option.
|
|
35437
|
+
* @throws {RequiredError}
|
|
35438
|
+
*/
|
|
35439
|
+
deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Status>;
|
|
35440
|
+
};
|
|
35441
|
+
/**
|
|
35442
|
+
* TerraformActionsApi - object-oriented interface
|
|
35443
|
+
* @export
|
|
35444
|
+
* @class TerraformActionsApi
|
|
35445
|
+
* @extends {BaseAPI}
|
|
35446
|
+
*/
|
|
35447
|
+
export declare class TerraformActionsApi extends BaseAPI {
|
|
35448
|
+
/**
|
|
35449
|
+
* You must provide a git commit id.
|
|
35450
|
+
* @summary Deploy terraform
|
|
35451
|
+
* @param {string} terraformId Terraform ID
|
|
35452
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35453
|
+
* @param {*} [options] Override http request option.
|
|
35454
|
+
* @throws {RequiredError}
|
|
35455
|
+
* @memberof TerraformActionsApi
|
|
35456
|
+
*/
|
|
35457
|
+
deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Status, any>>;
|
|
35458
|
+
}
|
|
35374
35459
|
/**
|
|
35375
35460
|
* TerraformConfigurationApi - axios parameter creator
|
|
35376
35461
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -30,7 +30,8 @@ exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFacto
|
|
|
30
30
|
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 = exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.EnvironmentExportApiFp = exports.EnvironmentExportApiAxiosParamCreator = void 0;
|
|
31
31
|
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 = exports.HelmMainCallsApiFp = exports.HelmMainCallsApiAxiosParamCreator = exports.HelmDeploymentRestrictionApi = exports.HelmDeploymentRestrictionApiFactory = void 0;
|
|
32
32
|
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 = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = void 0;
|
|
33
|
-
exports.
|
|
33
|
+
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.TerraformActionsApi = exports.TerraformActionsApiFactory = exports.TerraformActionsApiFp = exports.TerraformActionsApiAxiosParamCreator = 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 = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = void 0;
|
|
34
|
+
exports.VariableMainCallsApi = void 0;
|
|
34
35
|
const axios_1 = require("axios");
|
|
35
36
|
// Some imports not used depending on template conditions
|
|
36
37
|
// @ts-ignore
|
|
@@ -466,7 +467,8 @@ exports.GitTokenAssociatedServiceType = {
|
|
|
466
467
|
APPLICATION: 'APPLICATION',
|
|
467
468
|
CRON: 'CRON',
|
|
468
469
|
LIFECYCLE: 'LIFECYCLE',
|
|
469
|
-
HELM: 'HELM'
|
|
470
|
+
HELM: 'HELM',
|
|
471
|
+
TERRAFORM: 'TERRAFORM'
|
|
470
472
|
};
|
|
471
473
|
exports.GkeInfrastructureOutputsKindEnum = {
|
|
472
474
|
GKE: 'GKE'
|
|
@@ -636,7 +638,8 @@ exports.LinkedServiceTypeEnum = {
|
|
|
636
638
|
CONTAINER: 'CONTAINER',
|
|
637
639
|
DATABASE: 'DATABASE',
|
|
638
640
|
JOB: 'JOB',
|
|
639
|
-
HELM: 'HELM'
|
|
641
|
+
HELM: 'HELM',
|
|
642
|
+
TERRAFORM: 'TERRAFORM'
|
|
640
643
|
};
|
|
641
644
|
exports.MetricsConfigurationManagedByQoveryKindEnum = {
|
|
642
645
|
MANAGED_BY_QOVERY: 'MANAGED_BY_QOVERY'
|
|
@@ -920,7 +923,8 @@ exports.ServiceTypeForVariableEnum = {
|
|
|
920
923
|
APPLICATION: 'APPLICATION',
|
|
921
924
|
CONTAINER: 'CONTAINER',
|
|
922
925
|
JOB: 'JOB',
|
|
923
|
-
HELM: 'HELM'
|
|
926
|
+
HELM: 'HELM',
|
|
927
|
+
TERRAFORM: 'TERRAFORM'
|
|
924
928
|
};
|
|
925
929
|
/**
|
|
926
930
|
*
|
|
@@ -37171,6 +37175,121 @@ exports.GetIngressDeploymentStatusServiceTypeEnum = {
|
|
|
37171
37175
|
APPLICATION: 'APPLICATION',
|
|
37172
37176
|
HELM: 'HELM'
|
|
37173
37177
|
};
|
|
37178
|
+
/**
|
|
37179
|
+
* TerraformActionsApi - axios parameter creator
|
|
37180
|
+
* @export
|
|
37181
|
+
*/
|
|
37182
|
+
const TerraformActionsApiAxiosParamCreator = function (configuration) {
|
|
37183
|
+
return {
|
|
37184
|
+
/**
|
|
37185
|
+
* You must provide a git commit id.
|
|
37186
|
+
* @summary Deploy terraform
|
|
37187
|
+
* @param {string} terraformId Terraform ID
|
|
37188
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
37189
|
+
* @param {*} [options] Override http request option.
|
|
37190
|
+
* @throws {RequiredError}
|
|
37191
|
+
*/
|
|
37192
|
+
deployTerraform: (terraformId_1, terraformDeployRequest_1, ...args_1) => __awaiter(this, [terraformId_1, terraformDeployRequest_1, ...args_1], void 0, function* (terraformId, terraformDeployRequest, options = {}) {
|
|
37193
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
37194
|
+
(0, common_1.assertParamExists)('deployTerraform', 'terraformId', terraformId);
|
|
37195
|
+
const localVarPath = `/terraform/{terraformId}/deploy`
|
|
37196
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
37197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37198
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
37199
|
+
let baseOptions;
|
|
37200
|
+
if (configuration) {
|
|
37201
|
+
baseOptions = configuration.baseOptions;
|
|
37202
|
+
}
|
|
37203
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
37204
|
+
const localVarHeaderParameter = {};
|
|
37205
|
+
const localVarQueryParameter = {};
|
|
37206
|
+
// authentication ApiKeyAuth required
|
|
37207
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
37208
|
+
// authentication bearerAuth required
|
|
37209
|
+
// http bearer authentication required
|
|
37210
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
37211
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37212
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
37213
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37214
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37215
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(terraformDeployRequest, localVarRequestOptions, configuration);
|
|
37216
|
+
return {
|
|
37217
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
37218
|
+
options: localVarRequestOptions,
|
|
37219
|
+
};
|
|
37220
|
+
}),
|
|
37221
|
+
};
|
|
37222
|
+
};
|
|
37223
|
+
exports.TerraformActionsApiAxiosParamCreator = TerraformActionsApiAxiosParamCreator;
|
|
37224
|
+
/**
|
|
37225
|
+
* TerraformActionsApi - functional programming interface
|
|
37226
|
+
* @export
|
|
37227
|
+
*/
|
|
37228
|
+
const TerraformActionsApiFp = function (configuration) {
|
|
37229
|
+
const localVarAxiosParamCreator = (0, exports.TerraformActionsApiAxiosParamCreator)(configuration);
|
|
37230
|
+
return {
|
|
37231
|
+
/**
|
|
37232
|
+
* You must provide a git commit id.
|
|
37233
|
+
* @summary Deploy terraform
|
|
37234
|
+
* @param {string} terraformId Terraform ID
|
|
37235
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
37236
|
+
* @param {*} [options] Override http request option.
|
|
37237
|
+
* @throws {RequiredError}
|
|
37238
|
+
*/
|
|
37239
|
+
deployTerraform(terraformId, terraformDeployRequest, options) {
|
|
37240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37241
|
+
var _a, _b, _c;
|
|
37242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployTerraform(terraformId, terraformDeployRequest, options);
|
|
37243
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37244
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TerraformActionsApi.deployTerraform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37245
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37246
|
+
});
|
|
37247
|
+
},
|
|
37248
|
+
};
|
|
37249
|
+
};
|
|
37250
|
+
exports.TerraformActionsApiFp = TerraformActionsApiFp;
|
|
37251
|
+
/**
|
|
37252
|
+
* TerraformActionsApi - factory interface
|
|
37253
|
+
* @export
|
|
37254
|
+
*/
|
|
37255
|
+
const TerraformActionsApiFactory = function (configuration, basePath, axios) {
|
|
37256
|
+
const localVarFp = (0, exports.TerraformActionsApiFp)(configuration);
|
|
37257
|
+
return {
|
|
37258
|
+
/**
|
|
37259
|
+
* You must provide a git commit id.
|
|
37260
|
+
* @summary Deploy terraform
|
|
37261
|
+
* @param {string} terraformId Terraform ID
|
|
37262
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
37263
|
+
* @param {*} [options] Override http request option.
|
|
37264
|
+
* @throws {RequiredError}
|
|
37265
|
+
*/
|
|
37266
|
+
deployTerraform(terraformId, terraformDeployRequest, options) {
|
|
37267
|
+
return localVarFp.deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(axios, basePath));
|
|
37268
|
+
},
|
|
37269
|
+
};
|
|
37270
|
+
};
|
|
37271
|
+
exports.TerraformActionsApiFactory = TerraformActionsApiFactory;
|
|
37272
|
+
/**
|
|
37273
|
+
* TerraformActionsApi - object-oriented interface
|
|
37274
|
+
* @export
|
|
37275
|
+
* @class TerraformActionsApi
|
|
37276
|
+
* @extends {BaseAPI}
|
|
37277
|
+
*/
|
|
37278
|
+
class TerraformActionsApi extends base_1.BaseAPI {
|
|
37279
|
+
/**
|
|
37280
|
+
* You must provide a git commit id.
|
|
37281
|
+
* @summary Deploy terraform
|
|
37282
|
+
* @param {string} terraformId Terraform ID
|
|
37283
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
37284
|
+
* @param {*} [options] Override http request option.
|
|
37285
|
+
* @throws {RequiredError}
|
|
37286
|
+
* @memberof TerraformActionsApi
|
|
37287
|
+
*/
|
|
37288
|
+
deployTerraform(terraformId, terraformDeployRequest, options) {
|
|
37289
|
+
return (0, exports.TerraformActionsApiFp)(this.configuration).deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37290
|
+
}
|
|
37291
|
+
}
|
|
37292
|
+
exports.TerraformActionsApi = TerraformActionsApi;
|
|
37174
37293
|
/**
|
|
37175
37294
|
* TerraformConfigurationApi - axios parameter creator
|
|
37176
37295
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -8719,6 +8719,7 @@ export declare const GitTokenAssociatedServiceType: {
|
|
|
8719
8719
|
readonly CRON: "CRON";
|
|
8720
8720
|
readonly LIFECYCLE: "LIFECYCLE";
|
|
8721
8721
|
readonly HELM: "HELM";
|
|
8722
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
8722
8723
|
};
|
|
8723
8724
|
export type GitTokenAssociatedServiceType = typeof GitTokenAssociatedServiceType[keyof typeof GitTokenAssociatedServiceType];
|
|
8724
8725
|
/**
|
|
@@ -12012,6 +12013,7 @@ export declare const LinkedServiceTypeEnum: {
|
|
|
12012
12013
|
readonly DATABASE: "DATABASE";
|
|
12013
12014
|
readonly JOB: "JOB";
|
|
12014
12015
|
readonly HELM: "HELM";
|
|
12016
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
12015
12017
|
};
|
|
12016
12018
|
export type LinkedServiceTypeEnum = typeof LinkedServiceTypeEnum[keyof typeof LinkedServiceTypeEnum];
|
|
12017
12019
|
/**
|
|
@@ -16002,6 +16004,7 @@ export declare const ServiceTypeForVariableEnum: {
|
|
|
16002
16004
|
readonly CONTAINER: "CONTAINER";
|
|
16003
16005
|
readonly JOB: "JOB";
|
|
16004
16006
|
readonly HELM: "HELM";
|
|
16007
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
16005
16008
|
};
|
|
16006
16009
|
export type ServiceTypeForVariableEnum = typeof ServiceTypeForVariableEnum[keyof typeof ServiceTypeForVariableEnum];
|
|
16007
16010
|
/**
|
|
@@ -16517,6 +16520,25 @@ export interface TerraformAdvancedSettings {
|
|
|
16517
16520
|
*/
|
|
16518
16521
|
'security.read_only_root_filesystem'?: boolean;
|
|
16519
16522
|
}
|
|
16523
|
+
/**
|
|
16524
|
+
*
|
|
16525
|
+
* @export
|
|
16526
|
+
* @interface TerraformDeployRequest
|
|
16527
|
+
*/
|
|
16528
|
+
export interface TerraformDeployRequest {
|
|
16529
|
+
/**
|
|
16530
|
+
* Commit to deploy for chart source.
|
|
16531
|
+
* @type {string}
|
|
16532
|
+
* @memberof TerraformDeployRequest
|
|
16533
|
+
*/
|
|
16534
|
+
'git_commit_id'?: string;
|
|
16535
|
+
/**
|
|
16536
|
+
*
|
|
16537
|
+
* @type {boolean}
|
|
16538
|
+
* @memberof TerraformDeployRequest
|
|
16539
|
+
*/
|
|
16540
|
+
'dry_run'?: boolean;
|
|
16541
|
+
}
|
|
16520
16542
|
/**
|
|
16521
16543
|
*
|
|
16522
16544
|
* @export
|
|
@@ -35371,6 +35393,69 @@ export declare const GetIngressDeploymentStatusServiceTypeEnum: {
|
|
|
35371
35393
|
readonly HELM: "HELM";
|
|
35372
35394
|
};
|
|
35373
35395
|
export type GetIngressDeploymentStatusServiceTypeEnum = typeof GetIngressDeploymentStatusServiceTypeEnum[keyof typeof GetIngressDeploymentStatusServiceTypeEnum];
|
|
35396
|
+
/**
|
|
35397
|
+
* TerraformActionsApi - axios parameter creator
|
|
35398
|
+
* @export
|
|
35399
|
+
*/
|
|
35400
|
+
export declare const TerraformActionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
35401
|
+
/**
|
|
35402
|
+
* You must provide a git commit id.
|
|
35403
|
+
* @summary Deploy terraform
|
|
35404
|
+
* @param {string} terraformId Terraform ID
|
|
35405
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35406
|
+
* @param {*} [options] Override http request option.
|
|
35407
|
+
* @throws {RequiredError}
|
|
35408
|
+
*/
|
|
35409
|
+
deployTerraform: (terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35410
|
+
};
|
|
35411
|
+
/**
|
|
35412
|
+
* TerraformActionsApi - functional programming interface
|
|
35413
|
+
* @export
|
|
35414
|
+
*/
|
|
35415
|
+
export declare const TerraformActionsApiFp: (configuration?: Configuration) => {
|
|
35416
|
+
/**
|
|
35417
|
+
* You must provide a git commit id.
|
|
35418
|
+
* @summary Deploy terraform
|
|
35419
|
+
* @param {string} terraformId Terraform ID
|
|
35420
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35421
|
+
* @param {*} [options] Override http request option.
|
|
35422
|
+
* @throws {RequiredError}
|
|
35423
|
+
*/
|
|
35424
|
+
deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>>;
|
|
35425
|
+
};
|
|
35426
|
+
/**
|
|
35427
|
+
* TerraformActionsApi - factory interface
|
|
35428
|
+
* @export
|
|
35429
|
+
*/
|
|
35430
|
+
export declare const TerraformActionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
35431
|
+
/**
|
|
35432
|
+
* You must provide a git commit id.
|
|
35433
|
+
* @summary Deploy terraform
|
|
35434
|
+
* @param {string} terraformId Terraform ID
|
|
35435
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35436
|
+
* @param {*} [options] Override http request option.
|
|
35437
|
+
* @throws {RequiredError}
|
|
35438
|
+
*/
|
|
35439
|
+
deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Status>;
|
|
35440
|
+
};
|
|
35441
|
+
/**
|
|
35442
|
+
* TerraformActionsApi - object-oriented interface
|
|
35443
|
+
* @export
|
|
35444
|
+
* @class TerraformActionsApi
|
|
35445
|
+
* @extends {BaseAPI}
|
|
35446
|
+
*/
|
|
35447
|
+
export declare class TerraformActionsApi extends BaseAPI {
|
|
35448
|
+
/**
|
|
35449
|
+
* You must provide a git commit id.
|
|
35450
|
+
* @summary Deploy terraform
|
|
35451
|
+
* @param {string} terraformId Terraform ID
|
|
35452
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
35453
|
+
* @param {*} [options] Override http request option.
|
|
35454
|
+
* @throws {RequiredError}
|
|
35455
|
+
* @memberof TerraformActionsApi
|
|
35456
|
+
*/
|
|
35457
|
+
deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Status, any>>;
|
|
35458
|
+
}
|
|
35374
35459
|
/**
|
|
35375
35460
|
* TerraformConfigurationApi - axios parameter creator
|
|
35376
35461
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -455,7 +455,8 @@ export const GitTokenAssociatedServiceType = {
|
|
|
455
455
|
APPLICATION: 'APPLICATION',
|
|
456
456
|
CRON: 'CRON',
|
|
457
457
|
LIFECYCLE: 'LIFECYCLE',
|
|
458
|
-
HELM: 'HELM'
|
|
458
|
+
HELM: 'HELM',
|
|
459
|
+
TERRAFORM: 'TERRAFORM'
|
|
459
460
|
};
|
|
460
461
|
export const GkeInfrastructureOutputsKindEnum = {
|
|
461
462
|
GKE: 'GKE'
|
|
@@ -625,7 +626,8 @@ export const LinkedServiceTypeEnum = {
|
|
|
625
626
|
CONTAINER: 'CONTAINER',
|
|
626
627
|
DATABASE: 'DATABASE',
|
|
627
628
|
JOB: 'JOB',
|
|
628
|
-
HELM: 'HELM'
|
|
629
|
+
HELM: 'HELM',
|
|
630
|
+
TERRAFORM: 'TERRAFORM'
|
|
629
631
|
};
|
|
630
632
|
export const MetricsConfigurationManagedByQoveryKindEnum = {
|
|
631
633
|
MANAGED_BY_QOVERY: 'MANAGED_BY_QOVERY'
|
|
@@ -909,7 +911,8 @@ export const ServiceTypeForVariableEnum = {
|
|
|
909
911
|
APPLICATION: 'APPLICATION',
|
|
910
912
|
CONTAINER: 'CONTAINER',
|
|
911
913
|
JOB: 'JOB',
|
|
912
|
-
HELM: 'HELM'
|
|
914
|
+
HELM: 'HELM',
|
|
915
|
+
TERRAFORM: 'TERRAFORM'
|
|
913
916
|
};
|
|
914
917
|
/**
|
|
915
918
|
*
|
|
@@ -36840,6 +36843,117 @@ export const GetIngressDeploymentStatusServiceTypeEnum = {
|
|
|
36840
36843
|
APPLICATION: 'APPLICATION',
|
|
36841
36844
|
HELM: 'HELM'
|
|
36842
36845
|
};
|
|
36846
|
+
/**
|
|
36847
|
+
* TerraformActionsApi - axios parameter creator
|
|
36848
|
+
* @export
|
|
36849
|
+
*/
|
|
36850
|
+
export const TerraformActionsApiAxiosParamCreator = function (configuration) {
|
|
36851
|
+
return {
|
|
36852
|
+
/**
|
|
36853
|
+
* You must provide a git commit id.
|
|
36854
|
+
* @summary Deploy terraform
|
|
36855
|
+
* @param {string} terraformId Terraform ID
|
|
36856
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
36857
|
+
* @param {*} [options] Override http request option.
|
|
36858
|
+
* @throws {RequiredError}
|
|
36859
|
+
*/
|
|
36860
|
+
deployTerraform: (terraformId_1, terraformDeployRequest_1, ...args_1) => __awaiter(this, [terraformId_1, terraformDeployRequest_1, ...args_1], void 0, function* (terraformId, terraformDeployRequest, options = {}) {
|
|
36861
|
+
// verify required parameter 'terraformId' is not null or undefined
|
|
36862
|
+
assertParamExists('deployTerraform', 'terraformId', terraformId);
|
|
36863
|
+
const localVarPath = `/terraform/{terraformId}/deploy`
|
|
36864
|
+
.replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
|
|
36865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
36866
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
36867
|
+
let baseOptions;
|
|
36868
|
+
if (configuration) {
|
|
36869
|
+
baseOptions = configuration.baseOptions;
|
|
36870
|
+
}
|
|
36871
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
36872
|
+
const localVarHeaderParameter = {};
|
|
36873
|
+
const localVarQueryParameter = {};
|
|
36874
|
+
// authentication ApiKeyAuth required
|
|
36875
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
36876
|
+
// authentication bearerAuth required
|
|
36877
|
+
// http bearer authentication required
|
|
36878
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
36879
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
36880
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36881
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36882
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
36883
|
+
localVarRequestOptions.data = serializeDataIfNeeded(terraformDeployRequest, localVarRequestOptions, configuration);
|
|
36884
|
+
return {
|
|
36885
|
+
url: toPathString(localVarUrlObj),
|
|
36886
|
+
options: localVarRequestOptions,
|
|
36887
|
+
};
|
|
36888
|
+
}),
|
|
36889
|
+
};
|
|
36890
|
+
};
|
|
36891
|
+
/**
|
|
36892
|
+
* TerraformActionsApi - functional programming interface
|
|
36893
|
+
* @export
|
|
36894
|
+
*/
|
|
36895
|
+
export const TerraformActionsApiFp = function (configuration) {
|
|
36896
|
+
const localVarAxiosParamCreator = TerraformActionsApiAxiosParamCreator(configuration);
|
|
36897
|
+
return {
|
|
36898
|
+
/**
|
|
36899
|
+
* You must provide a git commit id.
|
|
36900
|
+
* @summary Deploy terraform
|
|
36901
|
+
* @param {string} terraformId Terraform ID
|
|
36902
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
36903
|
+
* @param {*} [options] Override http request option.
|
|
36904
|
+
* @throws {RequiredError}
|
|
36905
|
+
*/
|
|
36906
|
+
deployTerraform(terraformId, terraformDeployRequest, options) {
|
|
36907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36908
|
+
var _a, _b, _c;
|
|
36909
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployTerraform(terraformId, terraformDeployRequest, options);
|
|
36910
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36911
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TerraformActionsApi.deployTerraform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36912
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36913
|
+
});
|
|
36914
|
+
},
|
|
36915
|
+
};
|
|
36916
|
+
};
|
|
36917
|
+
/**
|
|
36918
|
+
* TerraformActionsApi - factory interface
|
|
36919
|
+
* @export
|
|
36920
|
+
*/
|
|
36921
|
+
export const TerraformActionsApiFactory = function (configuration, basePath, axios) {
|
|
36922
|
+
const localVarFp = TerraformActionsApiFp(configuration);
|
|
36923
|
+
return {
|
|
36924
|
+
/**
|
|
36925
|
+
* You must provide a git commit id.
|
|
36926
|
+
* @summary Deploy terraform
|
|
36927
|
+
* @param {string} terraformId Terraform ID
|
|
36928
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
36929
|
+
* @param {*} [options] Override http request option.
|
|
36930
|
+
* @throws {RequiredError}
|
|
36931
|
+
*/
|
|
36932
|
+
deployTerraform(terraformId, terraformDeployRequest, options) {
|
|
36933
|
+
return localVarFp.deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(axios, basePath));
|
|
36934
|
+
},
|
|
36935
|
+
};
|
|
36936
|
+
};
|
|
36937
|
+
/**
|
|
36938
|
+
* TerraformActionsApi - object-oriented interface
|
|
36939
|
+
* @export
|
|
36940
|
+
* @class TerraformActionsApi
|
|
36941
|
+
* @extends {BaseAPI}
|
|
36942
|
+
*/
|
|
36943
|
+
export class TerraformActionsApi extends BaseAPI {
|
|
36944
|
+
/**
|
|
36945
|
+
* You must provide a git commit id.
|
|
36946
|
+
* @summary Deploy terraform
|
|
36947
|
+
* @param {string} terraformId Terraform ID
|
|
36948
|
+
* @param {TerraformDeployRequest} [terraformDeployRequest]
|
|
36949
|
+
* @param {*} [options] Override http request option.
|
|
36950
|
+
* @throws {RequiredError}
|
|
36951
|
+
* @memberof TerraformActionsApi
|
|
36952
|
+
*/
|
|
36953
|
+
deployTerraform(terraformId, terraformDeployRequest, options) {
|
|
36954
|
+
return TerraformActionsApiFp(this.configuration).deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
36955
|
+
}
|
|
36956
|
+
}
|
|
36843
36957
|
/**
|
|
36844
36958
|
* TerraformConfigurationApi - axios parameter creator
|
|
36845
36959
|
* @export
|