qovery-typescript-axios 1.1.439 → 1.1.441
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 +583 -0
- package/dist/api.d.ts +398 -0
- package/dist/api.js +328 -5
- package/dist/esm/api.d.ts +398 -0
- package/dist/esm/api.js +319 -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
|
|
@@ -9760,6 +9805,195 @@ export interface LifecycleJobResponseAllOfSchedule {
|
|
|
9760
9805
|
}
|
|
9761
9806
|
|
|
9762
9807
|
|
|
9808
|
+
/**
|
|
9809
|
+
*
|
|
9810
|
+
* @export
|
|
9811
|
+
* @interface LifecycleTemplateListResponse
|
|
9812
|
+
*/
|
|
9813
|
+
export interface LifecycleTemplateListResponse {
|
|
9814
|
+
/**
|
|
9815
|
+
*
|
|
9816
|
+
* @type {Array<LifecycleTemplateListResponseResultsInner>}
|
|
9817
|
+
* @memberof LifecycleTemplateListResponse
|
|
9818
|
+
*/
|
|
9819
|
+
'results': Array<LifecycleTemplateListResponseResultsInner>;
|
|
9820
|
+
}
|
|
9821
|
+
/**
|
|
9822
|
+
*
|
|
9823
|
+
* @export
|
|
9824
|
+
* @interface LifecycleTemplateListResponseResultsInner
|
|
9825
|
+
*/
|
|
9826
|
+
export interface LifecycleTemplateListResponseResultsInner {
|
|
9827
|
+
/**
|
|
9828
|
+
*
|
|
9829
|
+
* @type {string}
|
|
9830
|
+
* @memberof LifecycleTemplateListResponseResultsInner
|
|
9831
|
+
*/
|
|
9832
|
+
'id': string;
|
|
9833
|
+
/**
|
|
9834
|
+
*
|
|
9835
|
+
* @type {string}
|
|
9836
|
+
* @memberof LifecycleTemplateListResponseResultsInner
|
|
9837
|
+
*/
|
|
9838
|
+
'name': string;
|
|
9839
|
+
/**
|
|
9840
|
+
*
|
|
9841
|
+
* @type {string}
|
|
9842
|
+
* @memberof LifecycleTemplateListResponseResultsInner
|
|
9843
|
+
*/
|
|
9844
|
+
'description': string;
|
|
9845
|
+
}
|
|
9846
|
+
/**
|
|
9847
|
+
*
|
|
9848
|
+
* @export
|
|
9849
|
+
* @interface LifecycleTemplateResponse
|
|
9850
|
+
*/
|
|
9851
|
+
export interface LifecycleTemplateResponse {
|
|
9852
|
+
/**
|
|
9853
|
+
*
|
|
9854
|
+
* @type {string}
|
|
9855
|
+
* @memberof LifecycleTemplateResponse
|
|
9856
|
+
*/
|
|
9857
|
+
'id': string;
|
|
9858
|
+
/**
|
|
9859
|
+
*
|
|
9860
|
+
* @type {string}
|
|
9861
|
+
* @memberof LifecycleTemplateResponse
|
|
9862
|
+
*/
|
|
9863
|
+
'name': string;
|
|
9864
|
+
/**
|
|
9865
|
+
*
|
|
9866
|
+
* @type {string}
|
|
9867
|
+
* @memberof LifecycleTemplateResponse
|
|
9868
|
+
*/
|
|
9869
|
+
'description': string;
|
|
9870
|
+
/**
|
|
9871
|
+
* location of the template
|
|
9872
|
+
* @type {string}
|
|
9873
|
+
* @memberof LifecycleTemplateResponse
|
|
9874
|
+
*/
|
|
9875
|
+
'sourceUrl': string;
|
|
9876
|
+
/**
|
|
9877
|
+
*
|
|
9878
|
+
* @type {CloudProviderEnum}
|
|
9879
|
+
* @memberof LifecycleTemplateResponse
|
|
9880
|
+
*/
|
|
9881
|
+
'cloud_provider': CloudProviderEnum;
|
|
9882
|
+
/**
|
|
9883
|
+
* lis of pre-defined command for each event
|
|
9884
|
+
* @type {Array<LifecycleTemplateResponseEventsInner>}
|
|
9885
|
+
* @memberof LifecycleTemplateResponse
|
|
9886
|
+
*/
|
|
9887
|
+
'events': Array<LifecycleTemplateResponseEventsInner>;
|
|
9888
|
+
/**
|
|
9889
|
+
*
|
|
9890
|
+
* @type {LifecycleTemplateResponseResources}
|
|
9891
|
+
* @memberof LifecycleTemplateResponse
|
|
9892
|
+
*/
|
|
9893
|
+
'resources': LifecycleTemplateResponseResources;
|
|
9894
|
+
/**
|
|
9895
|
+
*
|
|
9896
|
+
* @type {LifecycleTemplateResponseVariables}
|
|
9897
|
+
* @memberof LifecycleTemplateResponse
|
|
9898
|
+
*/
|
|
9899
|
+
'variables': LifecycleTemplateResponseVariables;
|
|
9900
|
+
}
|
|
9901
|
+
|
|
9902
|
+
|
|
9903
|
+
/**
|
|
9904
|
+
*
|
|
9905
|
+
* @export
|
|
9906
|
+
* @interface LifecycleTemplateResponseEventsInner
|
|
9907
|
+
*/
|
|
9908
|
+
export interface LifecycleTemplateResponseEventsInner {
|
|
9909
|
+
/**
|
|
9910
|
+
*
|
|
9911
|
+
* @type {string}
|
|
9912
|
+
* @memberof LifecycleTemplateResponseEventsInner
|
|
9913
|
+
*/
|
|
9914
|
+
'name': string;
|
|
9915
|
+
/**
|
|
9916
|
+
*
|
|
9917
|
+
* @type {string}
|
|
9918
|
+
* @memberof LifecycleTemplateResponseEventsInner
|
|
9919
|
+
*/
|
|
9920
|
+
'entrpoint'?: string;
|
|
9921
|
+
/**
|
|
9922
|
+
*
|
|
9923
|
+
* @type {Array<string>}
|
|
9924
|
+
* @memberof LifecycleTemplateResponseEventsInner
|
|
9925
|
+
*/
|
|
9926
|
+
'command': Array<string>;
|
|
9927
|
+
}
|
|
9928
|
+
/**
|
|
9929
|
+
*
|
|
9930
|
+
* @export
|
|
9931
|
+
* @interface LifecycleTemplateResponseResources
|
|
9932
|
+
*/
|
|
9933
|
+
export interface LifecycleTemplateResponseResources {
|
|
9934
|
+
/**
|
|
9935
|
+
*
|
|
9936
|
+
* @type {number}
|
|
9937
|
+
* @memberof LifecycleTemplateResponseResources
|
|
9938
|
+
*/
|
|
9939
|
+
'cpu_milli': number;
|
|
9940
|
+
/**
|
|
9941
|
+
*
|
|
9942
|
+
* @type {number}
|
|
9943
|
+
* @memberof LifecycleTemplateResponseResources
|
|
9944
|
+
*/
|
|
9945
|
+
'ram_mib': number;
|
|
9946
|
+
}
|
|
9947
|
+
/**
|
|
9948
|
+
* Variables to inject at the creation of this lifecycle job
|
|
9949
|
+
* @export
|
|
9950
|
+
* @interface LifecycleTemplateResponseVariables
|
|
9951
|
+
*/
|
|
9952
|
+
export interface LifecycleTemplateResponseVariables {
|
|
9953
|
+
/**
|
|
9954
|
+
*
|
|
9955
|
+
* @type {string}
|
|
9956
|
+
* @memberof LifecycleTemplateResponseVariables
|
|
9957
|
+
*/
|
|
9958
|
+
'name': string;
|
|
9959
|
+
/**
|
|
9960
|
+
* Short description to explain the purpose of the variable
|
|
9961
|
+
* @type {string}
|
|
9962
|
+
* @memberof LifecycleTemplateResponseVariables
|
|
9963
|
+
*/
|
|
9964
|
+
'description': string;
|
|
9965
|
+
/**
|
|
9966
|
+
* Default value for the variable
|
|
9967
|
+
* @type {string}
|
|
9968
|
+
* @memberof LifecycleTemplateResponseVariables
|
|
9969
|
+
*/
|
|
9970
|
+
'default': string;
|
|
9971
|
+
/**
|
|
9972
|
+
* If the variable should be injected as a secret
|
|
9973
|
+
* @type {boolean}
|
|
9974
|
+
* @memberof LifecycleTemplateResponseVariables
|
|
9975
|
+
*/
|
|
9976
|
+
'is_secret': boolean;
|
|
9977
|
+
/**
|
|
9978
|
+
*
|
|
9979
|
+
* @type {LifecycleTemplateResponseVariablesFile}
|
|
9980
|
+
* @memberof LifecycleTemplateResponseVariables
|
|
9981
|
+
*/
|
|
9982
|
+
'file'?: LifecycleTemplateResponseVariablesFile;
|
|
9983
|
+
}
|
|
9984
|
+
/**
|
|
9985
|
+
* If present, the variable should be a file instead of a raw value
|
|
9986
|
+
* @export
|
|
9987
|
+
* @interface LifecycleTemplateResponseVariablesFile
|
|
9988
|
+
*/
|
|
9989
|
+
export interface LifecycleTemplateResponseVariablesFile {
|
|
9990
|
+
/**
|
|
9991
|
+
*
|
|
9992
|
+
* @type {string}
|
|
9993
|
+
* @memberof LifecycleTemplateResponseVariablesFile
|
|
9994
|
+
*/
|
|
9995
|
+
'path': string;
|
|
9996
|
+
}
|
|
9763
9997
|
/**
|
|
9764
9998
|
*
|
|
9765
9999
|
* @export
|
|
@@ -30423,6 +30657,200 @@ export class DatabasesApi extends BaseAPI {
|
|
|
30423
30657
|
|
|
30424
30658
|
|
|
30425
30659
|
|
|
30660
|
+
/**
|
|
30661
|
+
* DefaultApi - axios parameter creator
|
|
30662
|
+
* @export
|
|
30663
|
+
*/
|
|
30664
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30665
|
+
return {
|
|
30666
|
+
/**
|
|
30667
|
+
*
|
|
30668
|
+
* @summary Get specific lifecycle tempalte
|
|
30669
|
+
* @param {string} environmentId
|
|
30670
|
+
* @param {string} lifecycleTemplateId
|
|
30671
|
+
* @param {*} [options] Override http request option.
|
|
30672
|
+
* @throws {RequiredError}
|
|
30673
|
+
*/
|
|
30674
|
+
getEnvironmentLifecycleTemplate: async (environmentId: string, lifecycleTemplateId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30675
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
30676
|
+
assertParamExists('getEnvironmentLifecycleTemplate', 'environmentId', environmentId)
|
|
30677
|
+
// verify required parameter 'lifecycleTemplateId' is not null or undefined
|
|
30678
|
+
assertParamExists('getEnvironmentLifecycleTemplate', 'lifecycleTemplateId', lifecycleTemplateId)
|
|
30679
|
+
const localVarPath = `/environment/{environmentId}/lifecycleTemplate/{lifecycleTemplateId}`
|
|
30680
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)))
|
|
30681
|
+
.replace(`{${"lifecycleTemplateId"}}`, encodeURIComponent(String(lifecycleTemplateId)));
|
|
30682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30683
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30684
|
+
let baseOptions;
|
|
30685
|
+
if (configuration) {
|
|
30686
|
+
baseOptions = configuration.baseOptions;
|
|
30687
|
+
}
|
|
30688
|
+
|
|
30689
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
30690
|
+
const localVarHeaderParameter = {} as any;
|
|
30691
|
+
const localVarQueryParameter = {} as any;
|
|
30692
|
+
|
|
30693
|
+
// authentication ApiKeyAuth required
|
|
30694
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
30695
|
+
|
|
30696
|
+
// authentication bearerAuth required
|
|
30697
|
+
// http bearer authentication required
|
|
30698
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30699
|
+
|
|
30700
|
+
|
|
30701
|
+
|
|
30702
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30703
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30704
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30705
|
+
|
|
30706
|
+
return {
|
|
30707
|
+
url: toPathString(localVarUrlObj),
|
|
30708
|
+
options: localVarRequestOptions,
|
|
30709
|
+
};
|
|
30710
|
+
},
|
|
30711
|
+
/**
|
|
30712
|
+
*
|
|
30713
|
+
* @summary Your GET endpoint
|
|
30714
|
+
* @param {string} environmentId
|
|
30715
|
+
* @param {*} [options] Override http request option.
|
|
30716
|
+
* @throws {RequiredError}
|
|
30717
|
+
*/
|
|
30718
|
+
getEnvironmentLifecycleTemplates: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30719
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
30720
|
+
assertParamExists('getEnvironmentLifecycleTemplates', 'environmentId', environmentId)
|
|
30721
|
+
const localVarPath = `/environment/{environmentId}/lifecycleTemplate`
|
|
30722
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
30723
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30724
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30725
|
+
let baseOptions;
|
|
30726
|
+
if (configuration) {
|
|
30727
|
+
baseOptions = configuration.baseOptions;
|
|
30728
|
+
}
|
|
30729
|
+
|
|
30730
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
30731
|
+
const localVarHeaderParameter = {} as any;
|
|
30732
|
+
const localVarQueryParameter = {} as any;
|
|
30733
|
+
|
|
30734
|
+
// authentication ApiKeyAuth required
|
|
30735
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
30736
|
+
|
|
30737
|
+
// authentication bearerAuth required
|
|
30738
|
+
// http bearer authentication required
|
|
30739
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30740
|
+
|
|
30741
|
+
|
|
30742
|
+
|
|
30743
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30744
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30745
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30746
|
+
|
|
30747
|
+
return {
|
|
30748
|
+
url: toPathString(localVarUrlObj),
|
|
30749
|
+
options: localVarRequestOptions,
|
|
30750
|
+
};
|
|
30751
|
+
},
|
|
30752
|
+
}
|
|
30753
|
+
};
|
|
30754
|
+
|
|
30755
|
+
/**
|
|
30756
|
+
* DefaultApi - functional programming interface
|
|
30757
|
+
* @export
|
|
30758
|
+
*/
|
|
30759
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
30760
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
30761
|
+
return {
|
|
30762
|
+
/**
|
|
30763
|
+
*
|
|
30764
|
+
* @summary Get specific lifecycle tempalte
|
|
30765
|
+
* @param {string} environmentId
|
|
30766
|
+
* @param {string} lifecycleTemplateId
|
|
30767
|
+
* @param {*} [options] Override http request option.
|
|
30768
|
+
* @throws {RequiredError}
|
|
30769
|
+
*/
|
|
30770
|
+
async getEnvironmentLifecycleTemplate(environmentId: string, lifecycleTemplateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LifecycleTemplateResponse>> {
|
|
30771
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentLifecycleTemplate(environmentId, lifecycleTemplateId, options);
|
|
30772
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30773
|
+
},
|
|
30774
|
+
/**
|
|
30775
|
+
*
|
|
30776
|
+
* @summary Your GET endpoint
|
|
30777
|
+
* @param {string} environmentId
|
|
30778
|
+
* @param {*} [options] Override http request option.
|
|
30779
|
+
* @throws {RequiredError}
|
|
30780
|
+
*/
|
|
30781
|
+
async getEnvironmentLifecycleTemplates(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LifecycleTemplateListResponse>> {
|
|
30782
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentLifecycleTemplates(environmentId, options);
|
|
30783
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30784
|
+
},
|
|
30785
|
+
}
|
|
30786
|
+
};
|
|
30787
|
+
|
|
30788
|
+
/**
|
|
30789
|
+
* DefaultApi - factory interface
|
|
30790
|
+
* @export
|
|
30791
|
+
*/
|
|
30792
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30793
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
30794
|
+
return {
|
|
30795
|
+
/**
|
|
30796
|
+
*
|
|
30797
|
+
* @summary Get specific lifecycle tempalte
|
|
30798
|
+
* @param {string} environmentId
|
|
30799
|
+
* @param {string} lifecycleTemplateId
|
|
30800
|
+
* @param {*} [options] Override http request option.
|
|
30801
|
+
* @throws {RequiredError}
|
|
30802
|
+
*/
|
|
30803
|
+
getEnvironmentLifecycleTemplate(environmentId: string, lifecycleTemplateId: string, options?: any): AxiosPromise<LifecycleTemplateResponse> {
|
|
30804
|
+
return localVarFp.getEnvironmentLifecycleTemplate(environmentId, lifecycleTemplateId, options).then((request) => request(axios, basePath));
|
|
30805
|
+
},
|
|
30806
|
+
/**
|
|
30807
|
+
*
|
|
30808
|
+
* @summary Your GET endpoint
|
|
30809
|
+
* @param {string} environmentId
|
|
30810
|
+
* @param {*} [options] Override http request option.
|
|
30811
|
+
* @throws {RequiredError}
|
|
30812
|
+
*/
|
|
30813
|
+
getEnvironmentLifecycleTemplates(environmentId: string, options?: any): AxiosPromise<LifecycleTemplateListResponse> {
|
|
30814
|
+
return localVarFp.getEnvironmentLifecycleTemplates(environmentId, options).then((request) => request(axios, basePath));
|
|
30815
|
+
},
|
|
30816
|
+
};
|
|
30817
|
+
};
|
|
30818
|
+
|
|
30819
|
+
/**
|
|
30820
|
+
* DefaultApi - object-oriented interface
|
|
30821
|
+
* @export
|
|
30822
|
+
* @class DefaultApi
|
|
30823
|
+
* @extends {BaseAPI}
|
|
30824
|
+
*/
|
|
30825
|
+
export class DefaultApi extends BaseAPI {
|
|
30826
|
+
/**
|
|
30827
|
+
*
|
|
30828
|
+
* @summary Get specific lifecycle tempalte
|
|
30829
|
+
* @param {string} environmentId
|
|
30830
|
+
* @param {string} lifecycleTemplateId
|
|
30831
|
+
* @param {*} [options] Override http request option.
|
|
30832
|
+
* @throws {RequiredError}
|
|
30833
|
+
* @memberof DefaultApi
|
|
30834
|
+
*/
|
|
30835
|
+
public getEnvironmentLifecycleTemplate(environmentId: string, lifecycleTemplateId: string, options?: AxiosRequestConfig) {
|
|
30836
|
+
return DefaultApiFp(this.configuration).getEnvironmentLifecycleTemplate(environmentId, lifecycleTemplateId, options).then((request) => request(this.axios, this.basePath));
|
|
30837
|
+
}
|
|
30838
|
+
|
|
30839
|
+
/**
|
|
30840
|
+
*
|
|
30841
|
+
* @summary Your GET endpoint
|
|
30842
|
+
* @param {string} environmentId
|
|
30843
|
+
* @param {*} [options] Override http request option.
|
|
30844
|
+
* @throws {RequiredError}
|
|
30845
|
+
* @memberof DefaultApi
|
|
30846
|
+
*/
|
|
30847
|
+
public getEnvironmentLifecycleTemplates(environmentId: string, options?: AxiosRequestConfig) {
|
|
30848
|
+
return DefaultApiFp(this.configuration).getEnvironmentLifecycleTemplates(environmentId, options).then((request) => request(this.axios, this.basePath));
|
|
30849
|
+
}
|
|
30850
|
+
}
|
|
30851
|
+
|
|
30852
|
+
|
|
30853
|
+
|
|
30426
30854
|
/**
|
|
30427
30855
|
* DeploymentStageMainCallsApi - axios parameter creator
|
|
30428
30856
|
* @export
|
|
@@ -31658,6 +32086,51 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
|
|
|
31658
32086
|
options: localVarRequestOptions,
|
|
31659
32087
|
};
|
|
31660
32088
|
},
|
|
32089
|
+
/**
|
|
32090
|
+
*
|
|
32091
|
+
* @summary Clean failed jobs within an environment
|
|
32092
|
+
* @param {string} environmentId
|
|
32093
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
32094
|
+
* @param {*} [options] Override http request option.
|
|
32095
|
+
* @throws {RequiredError}
|
|
32096
|
+
*/
|
|
32097
|
+
cleanFailedJobs: async (environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32098
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
32099
|
+
assertParamExists('cleanFailedJobs', 'environmentId', environmentId)
|
|
32100
|
+
const localVarPath = `/environment/{environmentId}/cleanFailedJobs`
|
|
32101
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
32102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32104
|
+
let baseOptions;
|
|
32105
|
+
if (configuration) {
|
|
32106
|
+
baseOptions = configuration.baseOptions;
|
|
32107
|
+
}
|
|
32108
|
+
|
|
32109
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32110
|
+
const localVarHeaderParameter = {} as any;
|
|
32111
|
+
const localVarQueryParameter = {} as any;
|
|
32112
|
+
|
|
32113
|
+
// authentication ApiKeyAuth required
|
|
32114
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
32115
|
+
|
|
32116
|
+
// authentication bearerAuth required
|
|
32117
|
+
// http bearer authentication required
|
|
32118
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32119
|
+
|
|
32120
|
+
|
|
32121
|
+
|
|
32122
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32123
|
+
|
|
32124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32127
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cleanFailedJobsRequest, localVarRequestOptions, configuration)
|
|
32128
|
+
|
|
32129
|
+
return {
|
|
32130
|
+
url: toPathString(localVarUrlObj),
|
|
32131
|
+
options: localVarRequestOptions,
|
|
32132
|
+
};
|
|
32133
|
+
},
|
|
31661
32134
|
/**
|
|
31662
32135
|
* 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
32136
|
* @summary Clone environment
|
|
@@ -32028,6 +32501,18 @@ export const EnvironmentActionsApiFp = function(configuration?: Configuration) {
|
|
|
32028
32501
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options);
|
|
32029
32502
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32030
32503
|
},
|
|
32504
|
+
/**
|
|
32505
|
+
*
|
|
32506
|
+
* @summary Clean failed jobs within an environment
|
|
32507
|
+
* @param {string} environmentId
|
|
32508
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
32509
|
+
* @param {*} [options] Override http request option.
|
|
32510
|
+
* @throws {RequiredError}
|
|
32511
|
+
*/
|
|
32512
|
+
async cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJobs200Response>> {
|
|
32513
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options);
|
|
32514
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32515
|
+
},
|
|
32031
32516
|
/**
|
|
32032
32517
|
* 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
32518
|
* @summary Clone environment
|
|
@@ -32142,6 +32627,17 @@ export const EnvironmentActionsApiFactory = function (configuration?: Configurat
|
|
|
32142
32627
|
cancelEnvironmentDeployment(environmentId: string, cancelEnvironmentDeploymentRequest?: CancelEnvironmentDeploymentRequest, options?: any): AxiosPromise<EnvironmentStatus> {
|
|
32143
32628
|
return localVarFp.cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
32144
32629
|
},
|
|
32630
|
+
/**
|
|
32631
|
+
*
|
|
32632
|
+
* @summary Clean failed jobs within an environment
|
|
32633
|
+
* @param {string} environmentId
|
|
32634
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
32635
|
+
* @param {*} [options] Override http request option.
|
|
32636
|
+
* @throws {RequiredError}
|
|
32637
|
+
*/
|
|
32638
|
+
cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: any): AxiosPromise<CleanFailedJobs200Response> {
|
|
32639
|
+
return localVarFp.cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(axios, basePath));
|
|
32640
|
+
},
|
|
32145
32641
|
/**
|
|
32146
32642
|
* 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
32643
|
* @summary Clone environment
|
|
@@ -32250,6 +32746,19 @@ export class EnvironmentActionsApi extends BaseAPI {
|
|
|
32250
32746
|
return EnvironmentActionsApiFp(this.configuration).cancelEnvironmentDeployment(environmentId, cancelEnvironmentDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32251
32747
|
}
|
|
32252
32748
|
|
|
32749
|
+
/**
|
|
32750
|
+
*
|
|
32751
|
+
* @summary Clean failed jobs within an environment
|
|
32752
|
+
* @param {string} environmentId
|
|
32753
|
+
* @param {CleanFailedJobsRequest} [cleanFailedJobsRequest]
|
|
32754
|
+
* @param {*} [options] Override http request option.
|
|
32755
|
+
* @throws {RequiredError}
|
|
32756
|
+
* @memberof EnvironmentActionsApi
|
|
32757
|
+
*/
|
|
32758
|
+
public cleanFailedJobs(environmentId: string, cleanFailedJobsRequest?: CleanFailedJobsRequest, options?: AxiosRequestConfig) {
|
|
32759
|
+
return EnvironmentActionsApiFp(this.configuration).cleanFailedJobs(environmentId, cleanFailedJobsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32760
|
+
}
|
|
32761
|
+
|
|
32253
32762
|
/**
|
|
32254
32763
|
* 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
32764
|
* @summary Clone environment
|
|
@@ -38667,6 +39176,47 @@ export class HelmsApi extends BaseAPI {
|
|
|
38667
39176
|
*/
|
|
38668
39177
|
export const JobActionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38669
39178
|
return {
|
|
39179
|
+
/**
|
|
39180
|
+
*
|
|
39181
|
+
* @summary Clean a failed job
|
|
39182
|
+
* @param {string} jobId
|
|
39183
|
+
* @param {*} [options] Override http request option.
|
|
39184
|
+
* @throws {RequiredError}
|
|
39185
|
+
*/
|
|
39186
|
+
cleanFailedJob: async (jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39187
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
39188
|
+
assertParamExists('cleanFailedJob', 'jobId', jobId)
|
|
39189
|
+
const localVarPath = `/job/{jobId}/cleanFailedJob`
|
|
39190
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
39191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39193
|
+
let baseOptions;
|
|
39194
|
+
if (configuration) {
|
|
39195
|
+
baseOptions = configuration.baseOptions;
|
|
39196
|
+
}
|
|
39197
|
+
|
|
39198
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
39199
|
+
const localVarHeaderParameter = {} as any;
|
|
39200
|
+
const localVarQueryParameter = {} as any;
|
|
39201
|
+
|
|
39202
|
+
// authentication ApiKeyAuth required
|
|
39203
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
39204
|
+
|
|
39205
|
+
// authentication bearerAuth required
|
|
39206
|
+
// http bearer authentication required
|
|
39207
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
39208
|
+
|
|
39209
|
+
|
|
39210
|
+
|
|
39211
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39213
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39214
|
+
|
|
39215
|
+
return {
|
|
39216
|
+
url: toPathString(localVarUrlObj),
|
|
39217
|
+
options: localVarRequestOptions,
|
|
39218
|
+
};
|
|
39219
|
+
},
|
|
38670
39220
|
/**
|
|
38671
39221
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38672
39222
|
* @summary Deploy job
|
|
@@ -38814,6 +39364,17 @@ export const JobActionsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
38814
39364
|
export const JobActionsApiFp = function(configuration?: Configuration) {
|
|
38815
39365
|
const localVarAxiosParamCreator = JobActionsApiAxiosParamCreator(configuration)
|
|
38816
39366
|
return {
|
|
39367
|
+
/**
|
|
39368
|
+
*
|
|
39369
|
+
* @summary Clean a failed job
|
|
39370
|
+
* @param {string} jobId
|
|
39371
|
+
* @param {*} [options] Override http request option.
|
|
39372
|
+
* @throws {RequiredError}
|
|
39373
|
+
*/
|
|
39374
|
+
async cleanFailedJob(jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanFailedJob200Response>> {
|
|
39375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cleanFailedJob(jobId, options);
|
|
39376
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39377
|
+
},
|
|
38817
39378
|
/**
|
|
38818
39379
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38819
39380
|
* @summary Deploy job
|
|
@@ -38860,6 +39421,16 @@ export const JobActionsApiFp = function(configuration?: Configuration) {
|
|
|
38860
39421
|
export const JobActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
38861
39422
|
const localVarFp = JobActionsApiFp(configuration)
|
|
38862
39423
|
return {
|
|
39424
|
+
/**
|
|
39425
|
+
*
|
|
39426
|
+
* @summary Clean a failed job
|
|
39427
|
+
* @param {string} jobId
|
|
39428
|
+
* @param {*} [options] Override http request option.
|
|
39429
|
+
* @throws {RequiredError}
|
|
39430
|
+
*/
|
|
39431
|
+
cleanFailedJob(jobId: string, options?: any): AxiosPromise<CleanFailedJob200Response> {
|
|
39432
|
+
return localVarFp.cleanFailedJob(jobId, options).then((request) => request(axios, basePath));
|
|
39433
|
+
},
|
|
38863
39434
|
/**
|
|
38864
39435
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38865
39436
|
* @summary Deploy job
|
|
@@ -38903,6 +39474,18 @@ export const JobActionsApiFactory = function (configuration?: Configuration, bas
|
|
|
38903
39474
|
* @extends {BaseAPI}
|
|
38904
39475
|
*/
|
|
38905
39476
|
export class JobActionsApi extends BaseAPI {
|
|
39477
|
+
/**
|
|
39478
|
+
*
|
|
39479
|
+
* @summary Clean a failed job
|
|
39480
|
+
* @param {string} jobId
|
|
39481
|
+
* @param {*} [options] Override http request option.
|
|
39482
|
+
* @throws {RequiredError}
|
|
39483
|
+
* @memberof JobActionsApi
|
|
39484
|
+
*/
|
|
39485
|
+
public cleanFailedJob(jobId: string, options?: AxiosRequestConfig) {
|
|
39486
|
+
return JobActionsApiFp(this.configuration).cleanFailedJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
39487
|
+
}
|
|
39488
|
+
|
|
38906
39489
|
/**
|
|
38907
39490
|
* You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository).
|
|
38908
39491
|
* @summary Deploy job
|