qovery-typescript-axios 1.1.439 → 1.1.440
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 +200 -0
- package/dist/api.d.ts +115 -0
- package/dist/api.js +142 -0
- package/dist/esm/api.d.ts +115 -0
- package/dist/esm/api.js +142 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1655,6 +1655,51 @@ export interface CancelEnvironmentDeploymentRequest {
|
|
|
1655
1655
|
*/
|
|
1656
1656
|
'force_cancel'?: boolean;
|
|
1657
1657
|
}
|
|
1658
|
+
/**
|
|
1659
|
+
*
|
|
1660
|
+
* @export
|
|
1661
|
+
* @interface CleanFailedJob200Response
|
|
1662
|
+
*/
|
|
1663
|
+
export interface CleanFailedJob200Response {
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @type {Array<string>}
|
|
1667
|
+
* @memberof CleanFailedJob200Response
|
|
1668
|
+
*/
|
|
1669
|
+
'clean_kubernetes_jobs'?: Array<string>;
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @export
|
|
1674
|
+
* @interface CleanFailedJobs200Response
|
|
1675
|
+
*/
|
|
1676
|
+
export interface CleanFailedJobs200Response {
|
|
1677
|
+
/**
|
|
1678
|
+
*
|
|
1679
|
+
* @type {Array<string>}
|
|
1680
|
+
* @memberof CleanFailedJobs200Response
|
|
1681
|
+
*/
|
|
1682
|
+
'clean_job_ids'?: Array<string>;
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @type {Array<string>}
|
|
1686
|
+
* @memberof CleanFailedJobs200Response
|
|
1687
|
+
*/
|
|
1688
|
+
'clean_kubernetes_jobs'?: Array<string>;
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
*
|
|
1692
|
+
* @export
|
|
1693
|
+
* @interface CleanFailedJobsRequest
|
|
1694
|
+
*/
|
|
1695
|
+
export interface CleanFailedJobsRequest {
|
|
1696
|
+
/**
|
|
1697
|
+
*
|
|
1698
|
+
* @type {Array<string>}
|
|
1699
|
+
* @memberof CleanFailedJobsRequest
|
|
1700
|
+
*/
|
|
1701
|
+
'job_ids'?: Array<string>;
|
|
1702
|
+
}
|
|
1658
1703
|
/**
|
|
1659
1704
|
*
|
|
1660
1705
|
* @export
|
|
@@ -31658,6 +31703,51 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
|
|
|
31658
31703
|
options: localVarRequestOptions,
|
|
31659
31704
|
};
|
|
31660
31705
|
},
|
|
31706
|
+
/**
|
|
31707
|
+
*
|
|
31708
|
+
* @summary Clean failed jobs within an environment
|
|
31709
|
+
* @param {string} environmentId
|
|
31710
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
31711
|
+
* @param {*} [options] Override http request option.
|
|
31712
|
+
* @throws {RequiredError}
|
|
31713
|
+
*/
|
|
31714
|
+
cleanFailedJobs: async (environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31715
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
31716
|
+
assertParamExists('cleanFailedJobs', 'environmentId', environmentId)
|
|
31717
|
+
const localVarPath = `/environment/{environmentId}/cleanFailedJobs`
|
|
31718
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
31719
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31720
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31721
|
+
let baseOptions;
|
|
31722
|
+
if (configuration) {
|
|
31723
|
+
baseOptions = configuration.baseOptions;
|
|
31724
|
+
}
|
|
31725
|
+
|
|
31726
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
31727
|
+
const localVarHeaderParameter = {} as any;
|
|
31728
|
+
const localVarQueryParameter = {} as any;
|
|
31729
|
+
|
|
31730
|
+
// authentication ApiKeyAuth required
|
|
31731
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
31732
|
+
|
|
31733
|
+
// authentication bearerAuth required
|
|
31734
|
+
// http bearer authentication required
|
|
31735
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31736
|
+
|
|
31737
|
+
|
|
31738
|
+
|
|
31739
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
31740
|
+
|
|
31741
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31742
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31743
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31744
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cleanFailedJobsRequest, localVarRequestOptions, configuration)
|
|
31745
|
+
|
|
31746
|
+
return {
|
|
31747
|
+
url: toPathString(localVarUrlObj),
|
|
31748
|
+
options: localVarRequestOptions,
|
|
31749
|
+
};
|
|
31750
|
+
},
|
|
31661
31751
|
/**
|
|
31662
31752
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
31663
31753
|
* @summary Clone environment
|
|
@@ -32028,6 +32118,18 @@ export const EnvironmentActionsApiFp = function(configuration?: Configuration) {
|
|
|
32028
32118
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options);
|
|
32029
32119
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32030
32120
|
},
|
|
32121
|
+
/**
|
|
32122
|
+
*
|
|
32123
|
+
* @summary Clean failed jobs within an environment
|
|
32124
|
+
* @param {string} environmentId
|
|
32125
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
32126
|
+
* @param {*} [options] Override http request option.
|
|
32127
|
+
* @throws {RequiredError}
|
|
32128
|
+
*/
|
|
32129
|
+
async cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJobs200Response>> {
|
|
32130
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options);
|
|
32131
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32132
|
+
},
|
|
32031
32133
|
/**
|
|
32032
32134
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
32033
32135
|
* @summary Clone environment
|
|
@@ -32142,6 +32244,17 @@ export const EnvironmentActionsApiFactory = function (configuration?: Configurat
|
|
|
32142
32244
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: any): AxiosPromise<EnvironmentStatus> {
|
|
32143
32245
|
return localVarFp.cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
32144
32246
|
},
|
|
32247
|
+
/**
|
|
32248
|
+
*
|
|
32249
|
+
* @summary Clean failed jobs within an environment
|
|
32250
|
+
* @param {string} environmentId
|
|
32251
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
32252
|
+
* @param {*} [options] Override http request option.
|
|
32253
|
+
* @throws {RequiredError}
|
|
32254
|
+
*/
|
|
32255
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: any): AxiosPromise<CleanFailedJobs200Response> {
|
|
32256
|
+
return localVarFp.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(axios, basePath));
|
|
32257
|
+
},
|
|
32145
32258
|
/**
|
|
32146
32259
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
32147
32260
|
* @summary Clone environment
|
|
@@ -32250,6 +32363,19 @@ export class EnvironmentActionsApi extends BaseAPI {
|
|
|
32250
32363
|
return EnvironmentActionsApiFp(this.configuration).cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32251
32364
|
}
|
|
32252
32365
|
|
|
32366
|
+
/**
|
|
32367
|
+
*
|
|
32368
|
+
* @summary Clean failed jobs within an environment
|
|
32369
|
+
* @param {string} environmentId
|
|
32370
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
32371
|
+
* @param {*} [options] Override http request option.
|
|
32372
|
+
* @throws {RequiredError}
|
|
32373
|
+
* @memberof EnvironmentActionsApi
|
|
32374
|
+
*/
|
|
32375
|
+
public cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig) {
|
|
32376
|
+
return EnvironmentActionsApiFp(this.configuration).cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32377
|
+
}
|
|
32378
|
+
|
|
32253
32379
|
/**
|
|
32254
32380
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
32255
32381
|
* @summary Clone environment
|
|
@@ -38667,6 +38793,47 @@ export class HelmsApi extends BaseAPI {
|
|
|
38667
38793
|
*/
|
|
38668
38794
|
export const JobActionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38669
38795
|
return {
|
|
38796
|
+
/**
|
|
38797
|
+
*
|
|
38798
|
+
* @summary Clean a failed job
|
|
38799
|
+
* @param {string} jobId
|
|
38800
|
+
* @param {*} [options] Override http request option.
|
|
38801
|
+
* @throws {RequiredError}
|
|
38802
|
+
*/
|
|
38803
|
+
cleanFailedJob: async (jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38804
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
38805
|
+
assertParamExists('cleanFailedJob', 'jobId', jobId)
|
|
38806
|
+
const localVarPath = `/job/{jobId}/cleanFailedJob`
|
|
38807
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
38808
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38809
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38810
|
+
let baseOptions;
|
|
38811
|
+
if (configuration) {
|
|
38812
|
+
baseOptions = configuration.baseOptions;
|
|
38813
|
+
}
|
|
38814
|
+
|
|
38815
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
38816
|
+
const localVarHeaderParameter = {} as any;
|
|
38817
|
+
const localVarQueryParameter = {} as any;
|
|
38818
|
+
|
|
38819
|
+
// authentication ApiKeyAuth required
|
|
38820
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
38821
|
+
|
|
38822
|
+
// authentication bearerAuth required
|
|
38823
|
+
// http bearer authentication required
|
|
38824
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
38825
|
+
|
|
38826
|
+
|
|
38827
|
+
|
|
38828
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38829
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38830
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38831
|
+
|
|
38832
|
+
return {
|
|
38833
|
+
url: toPathString(localVarUrlObj),
|
|
38834
|
+
options: localVarRequestOptions,
|
|
38835
|
+
};
|
|
38836
|
+
},
|
|
38670
38837
|
/**
|
|
38671
38838
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38672
38839
|
* @summary Deploy job
|
|
@@ -38814,6 +38981,17 @@ export const JobActionsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
38814
38981
|
export const JobActionsApiFp = function(configuration?: Configuration) {
|
|
38815
38982
|
const localVarAxiosParamCreator = JobActionsApiAxiosParamCreator(configuration)
|
|
38816
38983
|
return {
|
|
38984
|
+
/**
|
|
38985
|
+
*
|
|
38986
|
+
* @summary Clean a failed job
|
|
38987
|
+
* @param {string} jobId
|
|
38988
|
+
* @param {*} [options] Override http request option.
|
|
38989
|
+
* @throws {RequiredError}
|
|
38990
|
+
*/
|
|
38991
|
+
async cleanFailedJob(jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJob200Response>> {
|
|
38992
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cleanFailedJob(jobId, options);
|
|
38993
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38994
|
+
},
|
|
38817
38995
|
/**
|
|
38818
38996
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38819
38997
|
* @summary Deploy job
|
|
@@ -38860,6 +39038,16 @@ export const JobActionsApiFp = function(configuration?: Configuration) {
|
|
|
38860
39038
|
export const JobActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
38861
39039
|
const localVarFp = JobActionsApiFp(configuration)
|
|
38862
39040
|
return {
|
|
39041
|
+
/**
|
|
39042
|
+
*
|
|
39043
|
+
* @summary Clean a failed job
|
|
39044
|
+
* @param {string} jobId
|
|
39045
|
+
* @param {*} [options] Override http request option.
|
|
39046
|
+
* @throws {RequiredError}
|
|
39047
|
+
*/
|
|
39048
|
+
cleanFailedJob(jobId: string, options?: any): AxiosPromise<CleanFailedJob200Response> {
|
|
39049
|
+
return localVarFp.cleanFailedJob(jobId, options).then((request) => request(axios, basePath));
|
|
39050
|
+
},
|
|
38863
39051
|
/**
|
|
38864
39052
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38865
39053
|
* @summary Deploy job
|
|
@@ -38903,6 +39091,18 @@ export const JobActionsApiFactory = function (configuration?: Configuration, bas
|
|
|
38903
39091
|
* @extends {BaseAPI}
|
|
38904
39092
|
*/
|
|
38905
39093
|
export class JobActionsApi extends BaseAPI {
|
|
39094
|
+
/**
|
|
39095
|
+
*
|
|
39096
|
+
* @summary Clean a failed job
|
|
39097
|
+
* @param {string} jobId
|
|
39098
|
+
* @param {*} [options] Override http request option.
|
|
39099
|
+
* @throws {RequiredError}
|
|
39100
|
+
* @memberof JobActionsApi
|
|
39101
|
+
*/
|
|
39102
|
+
public cleanFailedJob(jobId: string, options?: AxiosRequestConfig) {
|
|
39103
|
+
return JobActionsApiFp(this.configuration).cleanFailedJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
39104
|
+
}
|
|
39105
|
+
|
|
38906
39106
|
/**
|
|
38907
39107
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38908
39108
|
* @summary Deploy job
|
package/dist/api.d.ts
CHANGED
|
@@ -1610,6 +1610,51 @@ export interface CancelEnvironmentDeploymentRequest {
|
|
|
1610
1610
|
*/
|
|
1611
1611
|
'force_cancel'?: boolean;
|
|
1612
1612
|
}
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @export
|
|
1616
|
+
* @interface CleanFailedJob200Response
|
|
1617
|
+
*/
|
|
1618
|
+
export interface CleanFailedJob200Response {
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @type {Array<string>}
|
|
1622
|
+
* @memberof CleanFailedJob200Response
|
|
1623
|
+
*/
|
|
1624
|
+
'clean_kubernetes_jobs'?: Array<string>;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @export
|
|
1629
|
+
* @interface CleanFailedJobs200Response
|
|
1630
|
+
*/
|
|
1631
|
+
export interface CleanFailedJobs200Response {
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @type {Array<string>}
|
|
1635
|
+
* @memberof CleanFailedJobs200Response
|
|
1636
|
+
*/
|
|
1637
|
+
'clean_job_ids'?: Array<string>;
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @type {Array<string>}
|
|
1641
|
+
* @memberof CleanFailedJobs200Response
|
|
1642
|
+
*/
|
|
1643
|
+
'clean_kubernetes_jobs'?: Array<string>;
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @export
|
|
1648
|
+
* @interface CleanFailedJobsRequest
|
|
1649
|
+
*/
|
|
1650
|
+
export interface CleanFailedJobsRequest {
|
|
1651
|
+
/**
|
|
1652
|
+
*
|
|
1653
|
+
* @type {Array<string>}
|
|
1654
|
+
* @memberof CleanFailedJobsRequest
|
|
1655
|
+
*/
|
|
1656
|
+
'job_ids'?: Array<string>;
|
|
1657
|
+
}
|
|
1613
1658
|
/**
|
|
1614
1659
|
*
|
|
1615
1660
|
* @export
|
|
@@ -21952,6 +21997,15 @@ export declare const EnvironmentActionsApiAxiosParamCreator: (configuration?: Co
|
|
|
21952
21997
|
* @throws {RequiredError}
|
|
21953
21998
|
*/
|
|
21954
21999
|
cancelEnvironmentDeployment: (environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22000
|
+
/**
|
|
22001
|
+
*
|
|
22002
|
+
* @summary Clean failed jobs within an environment
|
|
22003
|
+
* @param {string} environmentId
|
|
22004
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22005
|
+
* @param {*} [options] Override http request option.
|
|
22006
|
+
* @throws {RequiredError}
|
|
22007
|
+
*/
|
|
22008
|
+
cleanFailedJobs: (environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
21955
22009
|
/**
|
|
21956
22010
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
21957
22011
|
* @summary Clone environment
|
|
@@ -22036,6 +22090,15 @@ export declare const EnvironmentActionsApiFp: (configuration?: Configuration) =>
|
|
|
22036
22090
|
* @throws {RequiredError}
|
|
22037
22091
|
*/
|
|
22038
22092
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentStatus>>;
|
|
22093
|
+
/**
|
|
22094
|
+
*
|
|
22095
|
+
* @summary Clean failed jobs within an environment
|
|
22096
|
+
* @param {string} environmentId
|
|
22097
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22098
|
+
* @param {*} [options] Override http request option.
|
|
22099
|
+
* @throws {RequiredError}
|
|
22100
|
+
*/
|
|
22101
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJobs200Response>>;
|
|
22039
22102
|
/**
|
|
22040
22103
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
22041
22104
|
* @summary Clone environment
|
|
@@ -22120,6 +22183,15 @@ export declare const EnvironmentActionsApiFactory: (configuration?: Configuratio
|
|
|
22120
22183
|
* @throws {RequiredError}
|
|
22121
22184
|
*/
|
|
22122
22185
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: any): AxiosPromise<EnvironmentStatus>;
|
|
22186
|
+
/**
|
|
22187
|
+
*
|
|
22188
|
+
* @summary Clean failed jobs within an environment
|
|
22189
|
+
* @param {string} environmentId
|
|
22190
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22191
|
+
* @param {*} [options] Override http request option.
|
|
22192
|
+
* @throws {RequiredError}
|
|
22193
|
+
*/
|
|
22194
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: any): AxiosPromise<CleanFailedJobs200Response>;
|
|
22123
22195
|
/**
|
|
22124
22196
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
22125
22197
|
* @summary Clone environment
|
|
@@ -22207,6 +22279,16 @@ export declare class EnvironmentActionsApi extends BaseAPI {
|
|
|
22207
22279
|
* @memberof EnvironmentActionsApi
|
|
22208
22280
|
*/
|
|
22209
22281
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EnvironmentStatus, any>>;
|
|
22282
|
+
/**
|
|
22283
|
+
*
|
|
22284
|
+
* @summary Clean failed jobs within an environment
|
|
22285
|
+
* @param {string} environmentId
|
|
22286
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22287
|
+
* @param {*} [options] Override http request option.
|
|
22288
|
+
* @throws {RequiredError}
|
|
22289
|
+
* @memberof EnvironmentActionsApi
|
|
22290
|
+
*/
|
|
22291
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CleanFailedJobs200Response, any>>;
|
|
22210
22292
|
/**
|
|
22211
22293
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
22212
22294
|
* @summary Clone environment
|
|
@@ -25305,6 +25387,14 @@ export declare class HelmsApi extends BaseAPI {
|
|
|
25305
25387
|
* @export
|
|
25306
25388
|
*/
|
|
25307
25389
|
export declare const JobActionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25390
|
+
/**
|
|
25391
|
+
*
|
|
25392
|
+
* @summary Clean a failed job
|
|
25393
|
+
* @param {string} jobId
|
|
25394
|
+
* @param {*} [options] Override http request option.
|
|
25395
|
+
* @throws {RequiredError}
|
|
25396
|
+
*/
|
|
25397
|
+
cleanFailedJob: (jobId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
25308
25398
|
/**
|
|
25309
25399
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25310
25400
|
* @summary Deploy job
|
|
@@ -25338,6 +25428,14 @@ export declare const JobActionsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
25338
25428
|
* @export
|
|
25339
25429
|
*/
|
|
25340
25430
|
export declare const JobActionsApiFp: (configuration?: Configuration) => {
|
|
25431
|
+
/**
|
|
25432
|
+
*
|
|
25433
|
+
* @summary Clean a failed job
|
|
25434
|
+
* @param {string} jobId
|
|
25435
|
+
* @param {*} [options] Override http request option.
|
|
25436
|
+
* @throws {RequiredError}
|
|
25437
|
+
*/
|
|
25438
|
+
cleanFailedJob(jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJob200Response>>;
|
|
25341
25439
|
/**
|
|
25342
25440
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25343
25441
|
* @summary Deploy job
|
|
@@ -25371,6 +25469,14 @@ export declare const JobActionsApiFp: (configuration?: Configuration) => {
|
|
|
25371
25469
|
* @export
|
|
25372
25470
|
*/
|
|
25373
25471
|
export declare const JobActionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25472
|
+
/**
|
|
25473
|
+
*
|
|
25474
|
+
* @summary Clean a failed job
|
|
25475
|
+
* @param {string} jobId
|
|
25476
|
+
* @param {*} [options] Override http request option.
|
|
25477
|
+
* @throws {RequiredError}
|
|
25478
|
+
*/
|
|
25479
|
+
cleanFailedJob(jobId: string, options?: any): AxiosPromise<CleanFailedJob200Response>;
|
|
25374
25480
|
/**
|
|
25375
25481
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25376
25482
|
* @summary Deploy job
|
|
@@ -25406,6 +25512,15 @@ export declare const JobActionsApiFactory: (configuration?: Configuration, baseP
|
|
|
25406
25512
|
* @extends {BaseAPI}
|
|
25407
25513
|
*/
|
|
25408
25514
|
export declare class JobActionsApi extends BaseAPI {
|
|
25515
|
+
/**
|
|
25516
|
+
*
|
|
25517
|
+
* @summary Clean a failed job
|
|
25518
|
+
* @param {string} jobId
|
|
25519
|
+
* @param {*} [options] Override http request option.
|
|
25520
|
+
* @throws {RequiredError}
|
|
25521
|
+
* @memberof JobActionsApi
|
|
25522
|
+
*/
|
|
25523
|
+
cleanFailedJob(jobId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CleanFailedJob200Response, any>>;
|
|
25409
25524
|
/**
|
|
25410
25525
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25411
25526
|
* @summary Deploy job
|
package/dist/api.js
CHANGED
|
@@ -16864,6 +16864,43 @@ const EnvironmentActionsApiAxiosParamCreator = function (configuration) {
|
|
|
16864
16864
|
options: localVarRequestOptions,
|
|
16865
16865
|
};
|
|
16866
16866
|
}),
|
|
16867
|
+
/**
|
|
16868
|
+
*
|
|
16869
|
+
* @summary Clean failed jobs within an environment
|
|
16870
|
+
* @param {string} environmentId
|
|
16871
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
16872
|
+
* @param {*} [options] Override http request option.
|
|
16873
|
+
* @throws {RequiredError}
|
|
16874
|
+
*/
|
|
16875
|
+
cleanFailedJobs: (environmentId, cleanFailedJobsRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
16876
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
16877
|
+
(0, common_1.assertParamExists)('cleanFailedJobs', 'environmentId', environmentId);
|
|
16878
|
+
const localVarPath = `/environment/{environmentId}/cleanFailedJobs`
|
|
16879
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
16880
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16881
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16882
|
+
let baseOptions;
|
|
16883
|
+
if (configuration) {
|
|
16884
|
+
baseOptions = configuration.baseOptions;
|
|
16885
|
+
}
|
|
16886
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16887
|
+
const localVarHeaderParameter = {};
|
|
16888
|
+
const localVarQueryParameter = {};
|
|
16889
|
+
// authentication ApiKeyAuth required
|
|
16890
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16891
|
+
// authentication bearerAuth required
|
|
16892
|
+
// http bearer authentication required
|
|
16893
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16894
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16895
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16896
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16897
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16898
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cleanFailedJobsRequest, localVarRequestOptions, configuration);
|
|
16899
|
+
return {
|
|
16900
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16901
|
+
options: localVarRequestOptions,
|
|
16902
|
+
};
|
|
16903
|
+
}),
|
|
16867
16904
|
/**
|
|
16868
16905
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
16869
16906
|
* @summary Clone environment
|
|
@@ -17175,6 +17212,20 @@ const EnvironmentActionsApiFp = function (configuration) {
|
|
|
17175
17212
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
17176
17213
|
});
|
|
17177
17214
|
},
|
|
17215
|
+
/**
|
|
17216
|
+
*
|
|
17217
|
+
* @summary Clean failed jobs within an environment
|
|
17218
|
+
* @param {string} environmentId
|
|
17219
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
17220
|
+
* @param {*} [options] Override http request option.
|
|
17221
|
+
* @throws {RequiredError}
|
|
17222
|
+
*/
|
|
17223
|
+
cleanFailedJobs(environmentId, cleanFailedJobsRequest, options) {
|
|
17224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17225
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options);
|
|
17226
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
17227
|
+
});
|
|
17228
|
+
},
|
|
17178
17229
|
/**
|
|
17179
17230
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
17180
17231
|
* @summary Clone environment
|
|
@@ -17305,6 +17356,17 @@ const EnvironmentActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
17305
17356
|
cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options) {
|
|
17306
17357
|
return localVarFp.cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
17307
17358
|
},
|
|
17359
|
+
/**
|
|
17360
|
+
*
|
|
17361
|
+
* @summary Clean failed jobs within an environment
|
|
17362
|
+
* @param {string} environmentId
|
|
17363
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
17364
|
+
* @param {*} [options] Override http request option.
|
|
17365
|
+
* @throws {RequiredError}
|
|
17366
|
+
*/
|
|
17367
|
+
cleanFailedJobs(environmentId, cleanFailedJobsRequest, options) {
|
|
17368
|
+
return localVarFp.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(axios, basePath));
|
|
17369
|
+
},
|
|
17308
17370
|
/**
|
|
17309
17371
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
17310
17372
|
* @summary Clone environment
|
|
@@ -17412,6 +17474,18 @@ class EnvironmentActionsApi extends base_1.BaseAPI {
|
|
|
17412
17474
|
cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options) {
|
|
17413
17475
|
return (0, exports.EnvironmentActionsApiFp)(this.configuration).cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17414
17476
|
}
|
|
17477
|
+
/**
|
|
17478
|
+
*
|
|
17479
|
+
* @summary Clean failed jobs within an environment
|
|
17480
|
+
* @param {string} environmentId
|
|
17481
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
17482
|
+
* @param {*} [options] Override http request option.
|
|
17483
|
+
* @throws {RequiredError}
|
|
17484
|
+
* @memberof EnvironmentActionsApi
|
|
17485
|
+
*/
|
|
17486
|
+
cleanFailedJobs(environmentId, cleanFailedJobsRequest, options) {
|
|
17487
|
+
return (0, exports.EnvironmentActionsApiFp)(this.configuration).cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17488
|
+
}
|
|
17415
17489
|
/**
|
|
17416
17490
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
17417
17491
|
* @summary Clone environment
|
|
@@ -23341,6 +23415,40 @@ exports.HelmsApi = HelmsApi;
|
|
|
23341
23415
|
*/
|
|
23342
23416
|
const JobActionsApiAxiosParamCreator = function (configuration) {
|
|
23343
23417
|
return {
|
|
23418
|
+
/**
|
|
23419
|
+
*
|
|
23420
|
+
* @summary Clean a failed job
|
|
23421
|
+
* @param {string} jobId
|
|
23422
|
+
* @param {*} [options] Override http request option.
|
|
23423
|
+
* @throws {RequiredError}
|
|
23424
|
+
*/
|
|
23425
|
+
cleanFailedJob: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
23426
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
23427
|
+
(0, common_1.assertParamExists)('cleanFailedJob', 'jobId', jobId);
|
|
23428
|
+
const localVarPath = `/job/{jobId}/cleanFailedJob`
|
|
23429
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
23430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23431
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23432
|
+
let baseOptions;
|
|
23433
|
+
if (configuration) {
|
|
23434
|
+
baseOptions = configuration.baseOptions;
|
|
23435
|
+
}
|
|
23436
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23437
|
+
const localVarHeaderParameter = {};
|
|
23438
|
+
const localVarQueryParameter = {};
|
|
23439
|
+
// authentication ApiKeyAuth required
|
|
23440
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23441
|
+
// authentication bearerAuth required
|
|
23442
|
+
// http bearer authentication required
|
|
23443
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
23444
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23445
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23446
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23447
|
+
return {
|
|
23448
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23449
|
+
options: localVarRequestOptions,
|
|
23450
|
+
};
|
|
23451
|
+
}),
|
|
23344
23452
|
/**
|
|
23345
23453
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23346
23454
|
* @summary Deploy job
|
|
@@ -23464,6 +23572,19 @@ exports.JobActionsApiAxiosParamCreator = JobActionsApiAxiosParamCreator;
|
|
|
23464
23572
|
const JobActionsApiFp = function (configuration) {
|
|
23465
23573
|
const localVarAxiosParamCreator = (0, exports.JobActionsApiAxiosParamCreator)(configuration);
|
|
23466
23574
|
return {
|
|
23575
|
+
/**
|
|
23576
|
+
*
|
|
23577
|
+
* @summary Clean a failed job
|
|
23578
|
+
* @param {string} jobId
|
|
23579
|
+
* @param {*} [options] Override http request option.
|
|
23580
|
+
* @throws {RequiredError}
|
|
23581
|
+
*/
|
|
23582
|
+
cleanFailedJob(jobId, options) {
|
|
23583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23584
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanFailedJob(jobId, options);
|
|
23585
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
23586
|
+
});
|
|
23587
|
+
},
|
|
23467
23588
|
/**
|
|
23468
23589
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23469
23590
|
* @summary Deploy job
|
|
@@ -23516,6 +23637,16 @@ exports.JobActionsApiFp = JobActionsApiFp;
|
|
|
23516
23637
|
const JobActionsApiFactory = function (configuration, basePath, axios) {
|
|
23517
23638
|
const localVarFp = (0, exports.JobActionsApiFp)(configuration);
|
|
23518
23639
|
return {
|
|
23640
|
+
/**
|
|
23641
|
+
*
|
|
23642
|
+
* @summary Clean a failed job
|
|
23643
|
+
* @param {string} jobId
|
|
23644
|
+
* @param {*} [options] Override http request option.
|
|
23645
|
+
* @throws {RequiredError}
|
|
23646
|
+
*/
|
|
23647
|
+
cleanFailedJob(jobId, options) {
|
|
23648
|
+
return localVarFp.cleanFailedJob(jobId, options).then((request) => request(axios, basePath));
|
|
23649
|
+
},
|
|
23519
23650
|
/**
|
|
23520
23651
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23521
23652
|
* @summary Deploy job
|
|
@@ -23559,6 +23690,17 @@ exports.JobActionsApiFactory = JobActionsApiFactory;
|
|
|
23559
23690
|
* @extends {BaseAPI}
|
|
23560
23691
|
*/
|
|
23561
23692
|
class JobActionsApi extends base_1.BaseAPI {
|
|
23693
|
+
/**
|
|
23694
|
+
*
|
|
23695
|
+
* @summary Clean a failed job
|
|
23696
|
+
* @param {string} jobId
|
|
23697
|
+
* @param {*} [options] Override http request option.
|
|
23698
|
+
* @throws {RequiredError}
|
|
23699
|
+
* @memberof JobActionsApi
|
|
23700
|
+
*/
|
|
23701
|
+
cleanFailedJob(jobId, options) {
|
|
23702
|
+
return (0, exports.JobActionsApiFp)(this.configuration).cleanFailedJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
23703
|
+
}
|
|
23562
23704
|
/**
|
|
23563
23705
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23564
23706
|
* @summary Deploy job
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1610,6 +1610,51 @@ export interface CancelEnvironmentDeploymentRequest {
|
|
|
1610
1610
|
*/
|
|
1611
1611
|
'force_cancel'?: boolean;
|
|
1612
1612
|
}
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @export
|
|
1616
|
+
* @interface CleanFailedJob200Response
|
|
1617
|
+
*/
|
|
1618
|
+
export interface CleanFailedJob200Response {
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @type {Array<string>}
|
|
1622
|
+
* @memberof CleanFailedJob200Response
|
|
1623
|
+
*/
|
|
1624
|
+
'clean_kubernetes_jobs'?: Array<string>;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @export
|
|
1629
|
+
* @interface CleanFailedJobs200Response
|
|
1630
|
+
*/
|
|
1631
|
+
export interface CleanFailedJobs200Response {
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @type {Array<string>}
|
|
1635
|
+
* @memberof CleanFailedJobs200Response
|
|
1636
|
+
*/
|
|
1637
|
+
'clean_job_ids'?: Array<string>;
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @type {Array<string>}
|
|
1641
|
+
* @memberof CleanFailedJobs200Response
|
|
1642
|
+
*/
|
|
1643
|
+
'clean_kubernetes_jobs'?: Array<string>;
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @export
|
|
1648
|
+
* @interface CleanFailedJobsRequest
|
|
1649
|
+
*/
|
|
1650
|
+
export interface CleanFailedJobsRequest {
|
|
1651
|
+
/**
|
|
1652
|
+
*
|
|
1653
|
+
* @type {Array<string>}
|
|
1654
|
+
* @memberof CleanFailedJobsRequest
|
|
1655
|
+
*/
|
|
1656
|
+
'job_ids'?: Array<string>;
|
|
1657
|
+
}
|
|
1613
1658
|
/**
|
|
1614
1659
|
*
|
|
1615
1660
|
* @export
|
|
@@ -21952,6 +21997,15 @@ export declare const EnvironmentActionsApiAxiosParamCreator: (configuration?: Co
|
|
|
21952
21997
|
* @throws {RequiredError}
|
|
21953
21998
|
*/
|
|
21954
21999
|
cancelEnvironmentDeployment: (environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22000
|
+
/**
|
|
22001
|
+
*
|
|
22002
|
+
* @summary Clean failed jobs within an environment
|
|
22003
|
+
* @param {string} environmentId
|
|
22004
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22005
|
+
* @param {*} [options] Override http request option.
|
|
22006
|
+
* @throws {RequiredError}
|
|
22007
|
+
*/
|
|
22008
|
+
cleanFailedJobs: (environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
21955
22009
|
/**
|
|
21956
22010
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
21957
22011
|
* @summary Clone environment
|
|
@@ -22036,6 +22090,15 @@ export declare const EnvironmentActionsApiFp: (configuration?: Configuration) =>
|
|
|
22036
22090
|
* @throws {RequiredError}
|
|
22037
22091
|
*/
|
|
22038
22092
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentStatus>>;
|
|
22093
|
+
/**
|
|
22094
|
+
*
|
|
22095
|
+
* @summary Clean failed jobs within an environment
|
|
22096
|
+
* @param {string} environmentId
|
|
22097
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22098
|
+
* @param {*} [options] Override http request option.
|
|
22099
|
+
* @throws {RequiredError}
|
|
22100
|
+
*/
|
|
22101
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJobs200Response>>;
|
|
22039
22102
|
/**
|
|
22040
22103
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
22041
22104
|
* @summary Clone environment
|
|
@@ -22120,6 +22183,15 @@ export declare const EnvironmentActionsApiFactory: (configuration?: Configuratio
|
|
|
22120
22183
|
* @throws {RequiredError}
|
|
22121
22184
|
*/
|
|
22122
22185
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: any): AxiosPromise<EnvironmentStatus>;
|
|
22186
|
+
/**
|
|
22187
|
+
*
|
|
22188
|
+
* @summary Clean failed jobs within an environment
|
|
22189
|
+
* @param {string} environmentId
|
|
22190
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22191
|
+
* @param {*} [options] Override http request option.
|
|
22192
|
+
* @throws {RequiredError}
|
|
22193
|
+
*/
|
|
22194
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: any): AxiosPromise<CleanFailedJobs200Response>;
|
|
22123
22195
|
/**
|
|
22124
22196
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
22125
22197
|
* @summary Clone environment
|
|
@@ -22207,6 +22279,16 @@ export declare class EnvironmentActionsApi extends BaseAPI {
|
|
|
22207
22279
|
* @memberof EnvironmentActionsApi
|
|
22208
22280
|
*/
|
|
22209
22281
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EnvironmentStatus, any>>;
|
|
22282
|
+
/**
|
|
22283
|
+
*
|
|
22284
|
+
* @summary Clean failed jobs within an environment
|
|
22285
|
+
* @param {string} environmentId
|
|
22286
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
22287
|
+
* @param {*} [options] Override http request option.
|
|
22288
|
+
* @throws {RequiredError}
|
|
22289
|
+
* @memberof EnvironmentActionsApi
|
|
22290
|
+
*/
|
|
22291
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CleanFailedJobs200Response, any>>;
|
|
22210
22292
|
/**
|
|
22211
22293
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
22212
22294
|
* @summary Clone environment
|
|
@@ -25305,6 +25387,14 @@ export declare class HelmsApi extends BaseAPI {
|
|
|
25305
25387
|
* @export
|
|
25306
25388
|
*/
|
|
25307
25389
|
export declare const JobActionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25390
|
+
/**
|
|
25391
|
+
*
|
|
25392
|
+
* @summary Clean a failed job
|
|
25393
|
+
* @param {string} jobId
|
|
25394
|
+
* @param {*} [options] Override http request option.
|
|
25395
|
+
* @throws {RequiredError}
|
|
25396
|
+
*/
|
|
25397
|
+
cleanFailedJob: (jobId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
25308
25398
|
/**
|
|
25309
25399
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25310
25400
|
* @summary Deploy job
|
|
@@ -25338,6 +25428,14 @@ export declare const JobActionsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
25338
25428
|
* @export
|
|
25339
25429
|
*/
|
|
25340
25430
|
export declare const JobActionsApiFp: (configuration?: Configuration) => {
|
|
25431
|
+
/**
|
|
25432
|
+
*
|
|
25433
|
+
* @summary Clean a failed job
|
|
25434
|
+
* @param {string} jobId
|
|
25435
|
+
* @param {*} [options] Override http request option.
|
|
25436
|
+
* @throws {RequiredError}
|
|
25437
|
+
*/
|
|
25438
|
+
cleanFailedJob(jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJob200Response>>;
|
|
25341
25439
|
/**
|
|
25342
25440
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25343
25441
|
* @summary Deploy job
|
|
@@ -25371,6 +25469,14 @@ export declare const JobActionsApiFp: (configuration?: Configuration) => {
|
|
|
25371
25469
|
* @export
|
|
25372
25470
|
*/
|
|
25373
25471
|
export declare const JobActionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25472
|
+
/**
|
|
25473
|
+
*
|
|
25474
|
+
* @summary Clean a failed job
|
|
25475
|
+
* @param {string} jobId
|
|
25476
|
+
* @param {*} [options] Override http request option.
|
|
25477
|
+
* @throws {RequiredError}
|
|
25478
|
+
*/
|
|
25479
|
+
cleanFailedJob(jobId: string, options?: any): AxiosPromise<CleanFailedJob200Response>;
|
|
25374
25480
|
/**
|
|
25375
25481
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25376
25482
|
* @summary Deploy job
|
|
@@ -25406,6 +25512,15 @@ export declare const JobActionsApiFactory: (configuration?: Configuration, baseP
|
|
|
25406
25512
|
* @extends {BaseAPI}
|
|
25407
25513
|
*/
|
|
25408
25514
|
export declare class JobActionsApi extends BaseAPI {
|
|
25515
|
+
/**
|
|
25516
|
+
*
|
|
25517
|
+
* @summary Clean a failed job
|
|
25518
|
+
* @param {string} jobId
|
|
25519
|
+
* @param {*} [options] Override http request option.
|
|
25520
|
+
* @throws {RequiredError}
|
|
25521
|
+
* @memberof JobActionsApi
|
|
25522
|
+
*/
|
|
25523
|
+
cleanFailedJob(jobId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CleanFailedJob200Response, any>>;
|
|
25409
25524
|
/**
|
|
25410
25525
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
25411
25526
|
* @summary Deploy job
|
package/dist/esm/api.js
CHANGED
|
@@ -16722,6 +16722,43 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration) {
|
|
|
16722
16722
|
options: localVarRequestOptions,
|
|
16723
16723
|
};
|
|
16724
16724
|
}),
|
|
16725
|
+
/**
|
|
16726
|
+
*
|
|
16727
|
+
* @summary Clean failed jobs within an environment
|
|
16728
|
+
* @param {string} environmentId
|
|
16729
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
16730
|
+
* @param {*} [options] Override http request option.
|
|
16731
|
+
* @throws {RequiredError}
|
|
16732
|
+
*/
|
|
16733
|
+
cleanFailedJobs: (environmentId, cleanFailedJobsRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
16734
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
16735
|
+
assertParamExists('cleanFailedJobs', 'environmentId', environmentId);
|
|
16736
|
+
const localVarPath = `/environment/{environmentId}/cleanFailedJobs`
|
|
16737
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
16738
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16739
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16740
|
+
let baseOptions;
|
|
16741
|
+
if (configuration) {
|
|
16742
|
+
baseOptions = configuration.baseOptions;
|
|
16743
|
+
}
|
|
16744
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16745
|
+
const localVarHeaderParameter = {};
|
|
16746
|
+
const localVarQueryParameter = {};
|
|
16747
|
+
// authentication ApiKeyAuth required
|
|
16748
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
16749
|
+
// authentication bearerAuth required
|
|
16750
|
+
// http bearer authentication required
|
|
16751
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16752
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16753
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16754
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16755
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16756
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cleanFailedJobsRequest, localVarRequestOptions, configuration);
|
|
16757
|
+
return {
|
|
16758
|
+
url: toPathString(localVarUrlObj),
|
|
16759
|
+
options: localVarRequestOptions,
|
|
16760
|
+
};
|
|
16761
|
+
}),
|
|
16725
16762
|
/**
|
|
16726
16763
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
16727
16764
|
* @summary Clone environment
|
|
@@ -17032,6 +17069,20 @@ export const EnvironmentActionsApiFp = function (configuration) {
|
|
|
17032
17069
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17033
17070
|
});
|
|
17034
17071
|
},
|
|
17072
|
+
/**
|
|
17073
|
+
*
|
|
17074
|
+
* @summary Clean failed jobs within an environment
|
|
17075
|
+
* @param {string} environmentId
|
|
17076
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
17077
|
+
* @param {*} [options] Override http request option.
|
|
17078
|
+
* @throws {RequiredError}
|
|
17079
|
+
*/
|
|
17080
|
+
cleanFailedJobs(environmentId, cleanFailedJobsRequest, options) {
|
|
17081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17082
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options);
|
|
17083
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17084
|
+
});
|
|
17085
|
+
},
|
|
17035
17086
|
/**
|
|
17036
17087
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
17037
17088
|
* @summary Clone environment
|
|
@@ -17161,6 +17212,17 @@ export const EnvironmentActionsApiFactory = function (configuration, basePath, a
|
|
|
17161
17212
|
cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options) {
|
|
17162
17213
|
return localVarFp.cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
17163
17214
|
},
|
|
17215
|
+
/**
|
|
17216
|
+
*
|
|
17217
|
+
* @summary Clean failed jobs within an environment
|
|
17218
|
+
* @param {string} environmentId
|
|
17219
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
17220
|
+
* @param {*} [options] Override http request option.
|
|
17221
|
+
* @throws {RequiredError}
|
|
17222
|
+
*/
|
|
17223
|
+
cleanFailedJobs(environmentId, cleanFailedJobsRequest, options) {
|
|
17224
|
+
return localVarFp.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(axios, basePath));
|
|
17225
|
+
},
|
|
17164
17226
|
/**
|
|
17165
17227
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
17166
17228
|
* @summary Clone environment
|
|
@@ -17267,6 +17329,18 @@ export class EnvironmentActionsApi extends BaseAPI {
|
|
|
17267
17329
|
cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options) {
|
|
17268
17330
|
return EnvironmentActionsApiFp(this.configuration).cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17269
17331
|
}
|
|
17332
|
+
/**
|
|
17333
|
+
*
|
|
17334
|
+
* @summary Clean failed jobs within an environment
|
|
17335
|
+
* @param {string} environmentId
|
|
17336
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
17337
|
+
* @param {*} [options] Override http request option.
|
|
17338
|
+
* @throws {RequiredError}
|
|
17339
|
+
* @memberof EnvironmentActionsApi
|
|
17340
|
+
*/
|
|
17341
|
+
cleanFailedJobs(environmentId, cleanFailedJobsRequest, options) {
|
|
17342
|
+
return EnvironmentActionsApiFp(this.configuration).cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17343
|
+
}
|
|
17270
17344
|
/**
|
|
17271
17345
|
* You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
|
|
17272
17346
|
* @summary Clone environment
|
|
@@ -23123,6 +23197,40 @@ export class HelmsApi extends BaseAPI {
|
|
|
23123
23197
|
*/
|
|
23124
23198
|
export const JobActionsApiAxiosParamCreator = function (configuration) {
|
|
23125
23199
|
return {
|
|
23200
|
+
/**
|
|
23201
|
+
*
|
|
23202
|
+
* @summary Clean a failed job
|
|
23203
|
+
* @param {string} jobId
|
|
23204
|
+
* @param {*} [options] Override http request option.
|
|
23205
|
+
* @throws {RequiredError}
|
|
23206
|
+
*/
|
|
23207
|
+
cleanFailedJob: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
23208
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
23209
|
+
assertParamExists('cleanFailedJob', 'jobId', jobId);
|
|
23210
|
+
const localVarPath = `/job/{jobId}/cleanFailedJob`
|
|
23211
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
23212
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23214
|
+
let baseOptions;
|
|
23215
|
+
if (configuration) {
|
|
23216
|
+
baseOptions = configuration.baseOptions;
|
|
23217
|
+
}
|
|
23218
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23219
|
+
const localVarHeaderParameter = {};
|
|
23220
|
+
const localVarQueryParameter = {};
|
|
23221
|
+
// authentication ApiKeyAuth required
|
|
23222
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
23223
|
+
// authentication bearerAuth required
|
|
23224
|
+
// http bearer authentication required
|
|
23225
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
23226
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23227
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23228
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23229
|
+
return {
|
|
23230
|
+
url: toPathString(localVarUrlObj),
|
|
23231
|
+
options: localVarRequestOptions,
|
|
23232
|
+
};
|
|
23233
|
+
}),
|
|
23126
23234
|
/**
|
|
23127
23235
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23128
23236
|
* @summary Deploy job
|
|
@@ -23245,6 +23353,19 @@ export const JobActionsApiAxiosParamCreator = function (configuration) {
|
|
|
23245
23353
|
export const JobActionsApiFp = function (configuration) {
|
|
23246
23354
|
const localVarAxiosParamCreator = JobActionsApiAxiosParamCreator(configuration);
|
|
23247
23355
|
return {
|
|
23356
|
+
/**
|
|
23357
|
+
*
|
|
23358
|
+
* @summary Clean a failed job
|
|
23359
|
+
* @param {string} jobId
|
|
23360
|
+
* @param {*} [options] Override http request option.
|
|
23361
|
+
* @throws {RequiredError}
|
|
23362
|
+
*/
|
|
23363
|
+
cleanFailedJob(jobId, options) {
|
|
23364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanFailedJob(jobId, options);
|
|
23366
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
23367
|
+
});
|
|
23368
|
+
},
|
|
23248
23369
|
/**
|
|
23249
23370
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23250
23371
|
* @summary Deploy job
|
|
@@ -23296,6 +23417,16 @@ export const JobActionsApiFp = function (configuration) {
|
|
|
23296
23417
|
export const JobActionsApiFactory = function (configuration, basePath, axios) {
|
|
23297
23418
|
const localVarFp = JobActionsApiFp(configuration);
|
|
23298
23419
|
return {
|
|
23420
|
+
/**
|
|
23421
|
+
*
|
|
23422
|
+
* @summary Clean a failed job
|
|
23423
|
+
* @param {string} jobId
|
|
23424
|
+
* @param {*} [options] Override http request option.
|
|
23425
|
+
* @throws {RequiredError}
|
|
23426
|
+
*/
|
|
23427
|
+
cleanFailedJob(jobId, options) {
|
|
23428
|
+
return localVarFp.cleanFailedJob(jobId, options).then((request) => request(axios, basePath));
|
|
23429
|
+
},
|
|
23299
23430
|
/**
|
|
23300
23431
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23301
23432
|
* @summary Deploy job
|
|
@@ -23338,6 +23469,17 @@ export const JobActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
23338
23469
|
* @extends {BaseAPI}
|
|
23339
23470
|
*/
|
|
23340
23471
|
export class JobActionsApi extends BaseAPI {
|
|
23472
|
+
/**
|
|
23473
|
+
*
|
|
23474
|
+
* @summary Clean a failed job
|
|
23475
|
+
* @param {string} jobId
|
|
23476
|
+
* @param {*} [options] Override http request option.
|
|
23477
|
+
* @throws {RequiredError}
|
|
23478
|
+
* @memberof JobActionsApi
|
|
23479
|
+
*/
|
|
23480
|
+
cleanFailedJob(jobId, options) {
|
|
23481
|
+
return JobActionsApiFp(this.configuration).cleanFailedJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
23482
|
+
}
|
|
23341
23483
|
/**
|
|
23342
23484
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
23343
23485
|
* @summary Deploy job
|