qovery-typescript-axios 1.1.1033 → 1.1.1034
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 +473 -0
- package/dist/api.d.ts +337 -0
- package/dist/api.js +285 -13
- package/dist/esm/api.d.ts +337 -0
- package/dist/esm/api.js +264 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -5759,6 +5759,249 @@ export interface Budget {
|
|
|
5759
5759
|
*/
|
|
5760
5760
|
'currency_code'?: string;
|
|
5761
5761
|
}
|
|
5762
|
+
/**
|
|
5763
|
+
* What the analysis read. DOCKERFILE and BUILD_SETTINGS (build configuration and build argument names) are always read, DOCKERIGNORE when Qovery could check the repository for it, BUILD_LOGS when the build or earlier builds sharing its cache have logs.
|
|
5764
|
+
* @export
|
|
5765
|
+
* @enum {string}
|
|
5766
|
+
*/
|
|
5767
|
+
|
|
5768
|
+
export const BuildAnalysisAsset = {
|
|
5769
|
+
DOCKERFILE: 'DOCKERFILE',
|
|
5770
|
+
DOCKERIGNORE: 'DOCKERIGNORE',
|
|
5771
|
+
BUILD_LOGS: 'BUILD_LOGS',
|
|
5772
|
+
BUILD_SETTINGS: 'BUILD_SETTINGS'
|
|
5773
|
+
} as const;
|
|
5774
|
+
|
|
5775
|
+
export type BuildAnalysisAsset = typeof BuildAnalysisAsset[keyof typeof BuildAnalysisAsset];
|
|
5776
|
+
|
|
5777
|
+
|
|
5778
|
+
/**
|
|
5779
|
+
* How sure the analysis is that applying the improvements saves `estimated_time_saved`. HIGH when the build logs, the cache history or the build metrics show both the cause and the time it costs, MEDIUM when one of the two is inferred, LOW when only the Dockerfile suggests it or there is no time estimate. With no improvement, how sure the analysis is that the build has nothing left to gain.
|
|
5780
|
+
* @export
|
|
5781
|
+
* @enum {string}
|
|
5782
|
+
*/
|
|
5783
|
+
|
|
5784
|
+
export const BuildAnalysisConfidence = {
|
|
5785
|
+
HIGH: 'HIGH',
|
|
5786
|
+
MEDIUM: 'MEDIUM',
|
|
5787
|
+
LOW: 'LOW'
|
|
5788
|
+
} as const;
|
|
5789
|
+
|
|
5790
|
+
export type BuildAnalysisConfidence = typeof BuildAnalysisConfidence[keyof typeof BuildAnalysisConfidence];
|
|
5791
|
+
|
|
5792
|
+
|
|
5793
|
+
/**
|
|
5794
|
+
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job, PASTE a Dockerfile pasted by the user.
|
|
5795
|
+
* @export
|
|
5796
|
+
* @enum {string}
|
|
5797
|
+
*/
|
|
5798
|
+
|
|
5799
|
+
export const BuildAnalysisDockerfileSource = {
|
|
5800
|
+
GIT: 'GIT',
|
|
5801
|
+
INLINE: 'INLINE',
|
|
5802
|
+
PASTE: 'PASTE'
|
|
5803
|
+
} as const;
|
|
5804
|
+
|
|
5805
|
+
export type BuildAnalysisDockerfileSource = typeof BuildAnalysisDockerfileSource[keyof typeof BuildAnalysisDockerfileSource];
|
|
5806
|
+
|
|
5807
|
+
|
|
5808
|
+
/**
|
|
5809
|
+
* COPILOT_DISABLED when the organization opted out of AI features, MODEL_ERROR when the model call failed or returned an invalid result, TIMEOUT when the analysis took too long, INTERNAL_ERROR otherwise.
|
|
5810
|
+
* @export
|
|
5811
|
+
* @enum {string}
|
|
5812
|
+
*/
|
|
5813
|
+
|
|
5814
|
+
export const BuildAnalysisFailureCode = {
|
|
5815
|
+
COPILOT_DISABLED: 'COPILOT_DISABLED',
|
|
5816
|
+
MODEL_ERROR: 'MODEL_ERROR',
|
|
5817
|
+
TIMEOUT: 'TIMEOUT',
|
|
5818
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR'
|
|
5819
|
+
} as const;
|
|
5820
|
+
|
|
5821
|
+
export type BuildAnalysisFailureCode = typeof BuildAnalysisFailureCode[keyof typeof BuildAnalysisFailureCode];
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
*
|
|
5826
|
+
* @export
|
|
5827
|
+
* @interface BuildAnalysisResponse
|
|
5828
|
+
*/
|
|
5829
|
+
export interface BuildAnalysisResponse {
|
|
5830
|
+
/**
|
|
5831
|
+
*
|
|
5832
|
+
* @type {string}
|
|
5833
|
+
* @memberof BuildAnalysisResponse
|
|
5834
|
+
*/
|
|
5835
|
+
'service_id': string;
|
|
5836
|
+
/**
|
|
5837
|
+
* Execution id of the analysed build.
|
|
5838
|
+
* @type {string}
|
|
5839
|
+
* @memberof BuildAnalysisResponse
|
|
5840
|
+
*/
|
|
5841
|
+
'execution_id': string;
|
|
5842
|
+
/**
|
|
5843
|
+
*
|
|
5844
|
+
* @type {BuildAnalysisStatus}
|
|
5845
|
+
* @memberof BuildAnalysisResponse
|
|
5846
|
+
*/
|
|
5847
|
+
'status': BuildAnalysisStatus;
|
|
5848
|
+
/**
|
|
5849
|
+
* True when the latest build of the service is not the analysed one. The analysis stays readable, but only the latest build can be analysed.
|
|
5850
|
+
* @type {boolean}
|
|
5851
|
+
* @memberof BuildAnalysisResponse
|
|
5852
|
+
*/
|
|
5853
|
+
'stale': boolean;
|
|
5854
|
+
/**
|
|
5855
|
+
*
|
|
5856
|
+
* @type {BuildAnalysisDockerfileSource}
|
|
5857
|
+
* @memberof BuildAnalysisResponse
|
|
5858
|
+
*/
|
|
5859
|
+
'dockerfile_source': BuildAnalysisDockerfileSource;
|
|
5860
|
+
/**
|
|
5861
|
+
* Why the analysis failed, when `status` is FAILED.
|
|
5862
|
+
* @type {BuildAnalysisFailureCode}
|
|
5863
|
+
* @memberof BuildAnalysisResponse
|
|
5864
|
+
*/
|
|
5865
|
+
'failure_code': BuildAnalysisFailureCode | null;
|
|
5866
|
+
/**
|
|
5867
|
+
* Human-readable detail of the failure, when `status` is FAILED.
|
|
5868
|
+
* @type {string}
|
|
5869
|
+
* @memberof BuildAnalysisResponse
|
|
5870
|
+
*/
|
|
5871
|
+
'failure_reason': string | null;
|
|
5872
|
+
/**
|
|
5873
|
+
* Set when `status` is DONE.
|
|
5874
|
+
* @type {BuildAnalysisResult}
|
|
5875
|
+
* @memberof BuildAnalysisResponse
|
|
5876
|
+
*/
|
|
5877
|
+
'result': BuildAnalysisResult | null;
|
|
5878
|
+
/**
|
|
5879
|
+
*
|
|
5880
|
+
* @type {string}
|
|
5881
|
+
* @memberof BuildAnalysisResponse
|
|
5882
|
+
*/
|
|
5883
|
+
'created_at': string;
|
|
5884
|
+
/**
|
|
5885
|
+
*
|
|
5886
|
+
* @type {string}
|
|
5887
|
+
* @memberof BuildAnalysisResponse
|
|
5888
|
+
*/
|
|
5889
|
+
'updated_at': string;
|
|
5890
|
+
}
|
|
5891
|
+
|
|
5892
|
+
|
|
5893
|
+
/**
|
|
5894
|
+
*
|
|
5895
|
+
* @export
|
|
5896
|
+
* @interface BuildAnalysisResult
|
|
5897
|
+
*/
|
|
5898
|
+
export interface BuildAnalysisResult {
|
|
5899
|
+
/**
|
|
5900
|
+
*
|
|
5901
|
+
* @type {BuildAnalysisConfidence}
|
|
5902
|
+
* @memberof BuildAnalysisResult
|
|
5903
|
+
*/
|
|
5904
|
+
'confidence': BuildAnalysisConfidence;
|
|
5905
|
+
/**
|
|
5906
|
+
* Build time saved on each build once every improvement is applied. Null when there is nothing to save or no timing to base it on. `confidence` applies to this range.
|
|
5907
|
+
* @type {BuildAnalysisTimeSaved}
|
|
5908
|
+
* @memberof BuildAnalysisResult
|
|
5909
|
+
*/
|
|
5910
|
+
'estimated_time_saved': BuildAnalysisTimeSaved | null;
|
|
5911
|
+
/**
|
|
5912
|
+
*
|
|
5913
|
+
* @type {Array<BuildAnalysisAsset>}
|
|
5914
|
+
* @memberof BuildAnalysisResult
|
|
5915
|
+
*/
|
|
5916
|
+
'assets_reviewed': Array<BuildAnalysisAsset>;
|
|
5917
|
+
/**
|
|
5918
|
+
* What slows the build and why, with the evidence from the build.
|
|
5919
|
+
* @type {string}
|
|
5920
|
+
* @memberof BuildAnalysisResult
|
|
5921
|
+
*/
|
|
5922
|
+
'summary': string;
|
|
5923
|
+
/**
|
|
5924
|
+
* Changes to make, one sentence each, ordered by impact on build time, highest first. Empty when the build is already efficient.
|
|
5925
|
+
* @type {Array<string>}
|
|
5926
|
+
* @memberof BuildAnalysisResult
|
|
5927
|
+
*/
|
|
5928
|
+
'improvements': Array<string>;
|
|
5929
|
+
/**
|
|
5930
|
+
* Reworked Dockerfile to copy. Null when no improvement is a Dockerfile change, for example a variable value. Values hidden from the analysis appear as `<redacted>` and must be put back before use.
|
|
5931
|
+
* @type {string}
|
|
5932
|
+
* @memberof BuildAnalysisResult
|
|
5933
|
+
*/
|
|
5934
|
+
'dockerfile': string | null;
|
|
5935
|
+
/**
|
|
5936
|
+
* Why the reworked Dockerfile is faster.
|
|
5937
|
+
* @type {string}
|
|
5938
|
+
* @memberof BuildAnalysisResult
|
|
5939
|
+
*/
|
|
5940
|
+
'dockerfile_rationale': string | null;
|
|
5941
|
+
/**
|
|
5942
|
+
* Prompt the customer pastes into their own AI agent to apply the improvements in their repository.
|
|
5943
|
+
* @type {string}
|
|
5944
|
+
* @memberof BuildAnalysisResult
|
|
5945
|
+
*/
|
|
5946
|
+
'agent_prompt': string;
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
|
|
5950
|
+
/**
|
|
5951
|
+
*
|
|
5952
|
+
* @export
|
|
5953
|
+
* @interface BuildAnalysisState
|
|
5954
|
+
*/
|
|
5955
|
+
export interface BuildAnalysisState {
|
|
5956
|
+
/**
|
|
5957
|
+
* Execution id of the latest build of the service, the only build that can be analysed. Null when no deployment in the kept history ran a build.
|
|
5958
|
+
* @type {string}
|
|
5959
|
+
* @memberof BuildAnalysisState
|
|
5960
|
+
*/
|
|
5961
|
+
'latest_build_execution_id': string | null;
|
|
5962
|
+
/**
|
|
5963
|
+
* The latest analysis of the service. Null when none was run.
|
|
5964
|
+
* @type {BuildAnalysisResponse}
|
|
5965
|
+
* @memberof BuildAnalysisState
|
|
5966
|
+
*/
|
|
5967
|
+
'analysis': BuildAnalysisResponse | null;
|
|
5968
|
+
}
|
|
5969
|
+
/**
|
|
5970
|
+
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED.
|
|
5971
|
+
* @export
|
|
5972
|
+
* @enum {string}
|
|
5973
|
+
*/
|
|
5974
|
+
|
|
5975
|
+
export const BuildAnalysisStatus = {
|
|
5976
|
+
PENDING: 'PENDING',
|
|
5977
|
+
COLLECTING: 'COLLECTING',
|
|
5978
|
+
ANALYSING: 'ANALYSING',
|
|
5979
|
+
DONE: 'DONE',
|
|
5980
|
+
FAILED: 'FAILED'
|
|
5981
|
+
} as const;
|
|
5982
|
+
|
|
5983
|
+
export type BuildAnalysisStatus = typeof BuildAnalysisStatus[keyof typeof BuildAnalysisStatus];
|
|
5984
|
+
|
|
5985
|
+
|
|
5986
|
+
/**
|
|
5987
|
+
* Seconds saved on each build, as a range from min_seconds to max_seconds. When nothing is saved, the field holding it is null instead.
|
|
5988
|
+
* @export
|
|
5989
|
+
* @interface BuildAnalysisTimeSaved
|
|
5990
|
+
*/
|
|
5991
|
+
export interface BuildAnalysisTimeSaved {
|
|
5992
|
+
/**
|
|
5993
|
+
*
|
|
5994
|
+
* @type {number}
|
|
5995
|
+
* @memberof BuildAnalysisTimeSaved
|
|
5996
|
+
*/
|
|
5997
|
+
'min_seconds': number;
|
|
5998
|
+
/**
|
|
5999
|
+
*
|
|
6000
|
+
* @type {number}
|
|
6001
|
+
* @memberof BuildAnalysisTimeSaved
|
|
6002
|
+
*/
|
|
6003
|
+
'max_seconds': number;
|
|
6004
|
+
}
|
|
5762
6005
|
/**
|
|
5763
6006
|
* `DOCKER` requires `dockerfile_path`
|
|
5764
6007
|
* @export
|
|
@@ -32874,6 +33117,121 @@ export class ApplicationActionsApi extends BaseAPI {
|
|
|
32874
33117
|
|
|
32875
33118
|
|
|
32876
33119
|
|
|
33120
|
+
/**
|
|
33121
|
+
* ApplicationBuildAnalysisApi - axios parameter creator
|
|
33122
|
+
* @export
|
|
33123
|
+
*/
|
|
33124
|
+
export const ApplicationBuildAnalysisApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33125
|
+
return {
|
|
33126
|
+
/**
|
|
33127
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33128
|
+
* @summary Get the build analysis of an application
|
|
33129
|
+
* @param {string} applicationId Application ID
|
|
33130
|
+
* @param {*} [options] Override http request option.
|
|
33131
|
+
* @throws {RequiredError}
|
|
33132
|
+
*/
|
|
33133
|
+
getApplicationBuildAnalysis: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33134
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
33135
|
+
assertParamExists('getApplicationBuildAnalysis', 'applicationId', applicationId)
|
|
33136
|
+
const localVarPath = `/application/{applicationId}/buildAnalysis`
|
|
33137
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
33138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33139
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33140
|
+
let baseOptions;
|
|
33141
|
+
if (configuration) {
|
|
33142
|
+
baseOptions = configuration.baseOptions;
|
|
33143
|
+
}
|
|
33144
|
+
|
|
33145
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33146
|
+
const localVarHeaderParameter = {} as any;
|
|
33147
|
+
const localVarQueryParameter = {} as any;
|
|
33148
|
+
|
|
33149
|
+
// authentication ApiKeyAuth required
|
|
33150
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
33151
|
+
|
|
33152
|
+
// authentication bearerAuth required
|
|
33153
|
+
// http bearer authentication required
|
|
33154
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33155
|
+
|
|
33156
|
+
|
|
33157
|
+
|
|
33158
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33160
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33161
|
+
|
|
33162
|
+
return {
|
|
33163
|
+
url: toPathString(localVarUrlObj),
|
|
33164
|
+
options: localVarRequestOptions,
|
|
33165
|
+
};
|
|
33166
|
+
},
|
|
33167
|
+
}
|
|
33168
|
+
};
|
|
33169
|
+
|
|
33170
|
+
/**
|
|
33171
|
+
* ApplicationBuildAnalysisApi - functional programming interface
|
|
33172
|
+
* @export
|
|
33173
|
+
*/
|
|
33174
|
+
export const ApplicationBuildAnalysisApiFp = function(configuration?: Configuration) {
|
|
33175
|
+
const localVarAxiosParamCreator = ApplicationBuildAnalysisApiAxiosParamCreator(configuration)
|
|
33176
|
+
return {
|
|
33177
|
+
/**
|
|
33178
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33179
|
+
* @summary Get the build analysis of an application
|
|
33180
|
+
* @param {string} applicationId Application ID
|
|
33181
|
+
* @param {*} [options] Override http request option.
|
|
33182
|
+
* @throws {RequiredError}
|
|
33183
|
+
*/
|
|
33184
|
+
async getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>> {
|
|
33185
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationBuildAnalysis(applicationId, options);
|
|
33186
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33187
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationBuildAnalysisApi.getApplicationBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
33188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33189
|
+
},
|
|
33190
|
+
}
|
|
33191
|
+
};
|
|
33192
|
+
|
|
33193
|
+
/**
|
|
33194
|
+
* ApplicationBuildAnalysisApi - factory interface
|
|
33195
|
+
* @export
|
|
33196
|
+
*/
|
|
33197
|
+
export const ApplicationBuildAnalysisApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
33198
|
+
const localVarFp = ApplicationBuildAnalysisApiFp(configuration)
|
|
33199
|
+
return {
|
|
33200
|
+
/**
|
|
33201
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33202
|
+
* @summary Get the build analysis of an application
|
|
33203
|
+
* @param {string} applicationId Application ID
|
|
33204
|
+
* @param {*} [options] Override http request option.
|
|
33205
|
+
* @throws {RequiredError}
|
|
33206
|
+
*/
|
|
33207
|
+
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState> {
|
|
33208
|
+
return localVarFp.getApplicationBuildAnalysis(applicationId, options).then((request) => request(axios, basePath));
|
|
33209
|
+
},
|
|
33210
|
+
};
|
|
33211
|
+
};
|
|
33212
|
+
|
|
33213
|
+
/**
|
|
33214
|
+
* ApplicationBuildAnalysisApi - object-oriented interface
|
|
33215
|
+
* @export
|
|
33216
|
+
* @class ApplicationBuildAnalysisApi
|
|
33217
|
+
* @extends {BaseAPI}
|
|
33218
|
+
*/
|
|
33219
|
+
export class ApplicationBuildAnalysisApi extends BaseAPI {
|
|
33220
|
+
/**
|
|
33221
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33222
|
+
* @summary Get the build analysis of an application
|
|
33223
|
+
* @param {string} applicationId Application ID
|
|
33224
|
+
* @param {*} [options] Override http request option.
|
|
33225
|
+
* @throws {RequiredError}
|
|
33226
|
+
* @memberof ApplicationBuildAnalysisApi
|
|
33227
|
+
*/
|
|
33228
|
+
public getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig) {
|
|
33229
|
+
return ApplicationBuildAnalysisApiFp(this.configuration).getApplicationBuildAnalysis(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
33230
|
+
}
|
|
33231
|
+
}
|
|
33232
|
+
|
|
33233
|
+
|
|
33234
|
+
|
|
32877
33235
|
/**
|
|
32878
33236
|
* ApplicationConfigurationApi - axios parameter creator
|
|
32879
33237
|
* @export
|
|
@@ -63254,6 +63612,121 @@ export class JobActionsApi extends BaseAPI {
|
|
|
63254
63612
|
|
|
63255
63613
|
|
|
63256
63614
|
|
|
63615
|
+
/**
|
|
63616
|
+
* JobBuildAnalysisApi - axios parameter creator
|
|
63617
|
+
* @export
|
|
63618
|
+
*/
|
|
63619
|
+
export const JobBuildAnalysisApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
63620
|
+
return {
|
|
63621
|
+
/**
|
|
63622
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63623
|
+
* @summary Get the build analysis of a job
|
|
63624
|
+
* @param {string} jobId Job ID
|
|
63625
|
+
* @param {*} [options] Override http request option.
|
|
63626
|
+
* @throws {RequiredError}
|
|
63627
|
+
*/
|
|
63628
|
+
getJobBuildAnalysis: async (jobId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
63629
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
63630
|
+
assertParamExists('getJobBuildAnalysis', 'jobId', jobId)
|
|
63631
|
+
const localVarPath = `/job/{jobId}/buildAnalysis`
|
|
63632
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
63633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63634
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
63635
|
+
let baseOptions;
|
|
63636
|
+
if (configuration) {
|
|
63637
|
+
baseOptions = configuration.baseOptions;
|
|
63638
|
+
}
|
|
63639
|
+
|
|
63640
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
63641
|
+
const localVarHeaderParameter = {} as any;
|
|
63642
|
+
const localVarQueryParameter = {} as any;
|
|
63643
|
+
|
|
63644
|
+
// authentication ApiKeyAuth required
|
|
63645
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
63646
|
+
|
|
63647
|
+
// authentication bearerAuth required
|
|
63648
|
+
// http bearer authentication required
|
|
63649
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63650
|
+
|
|
63651
|
+
|
|
63652
|
+
|
|
63653
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
63654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63655
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
63656
|
+
|
|
63657
|
+
return {
|
|
63658
|
+
url: toPathString(localVarUrlObj),
|
|
63659
|
+
options: localVarRequestOptions,
|
|
63660
|
+
};
|
|
63661
|
+
},
|
|
63662
|
+
}
|
|
63663
|
+
};
|
|
63664
|
+
|
|
63665
|
+
/**
|
|
63666
|
+
* JobBuildAnalysisApi - functional programming interface
|
|
63667
|
+
* @export
|
|
63668
|
+
*/
|
|
63669
|
+
export const JobBuildAnalysisApiFp = function(configuration?: Configuration) {
|
|
63670
|
+
const localVarAxiosParamCreator = JobBuildAnalysisApiAxiosParamCreator(configuration)
|
|
63671
|
+
return {
|
|
63672
|
+
/**
|
|
63673
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63674
|
+
* @summary Get the build analysis of a job
|
|
63675
|
+
* @param {string} jobId Job ID
|
|
63676
|
+
* @param {*} [options] Override http request option.
|
|
63677
|
+
* @throws {RequiredError}
|
|
63678
|
+
*/
|
|
63679
|
+
async getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>> {
|
|
63680
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getJobBuildAnalysis(jobId, options);
|
|
63681
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
63682
|
+
const localVarOperationServerBasePath = operationServerMap['JobBuildAnalysisApi.getJobBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
63683
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
63684
|
+
},
|
|
63685
|
+
}
|
|
63686
|
+
};
|
|
63687
|
+
|
|
63688
|
+
/**
|
|
63689
|
+
* JobBuildAnalysisApi - factory interface
|
|
63690
|
+
* @export
|
|
63691
|
+
*/
|
|
63692
|
+
export const JobBuildAnalysisApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
63693
|
+
const localVarFp = JobBuildAnalysisApiFp(configuration)
|
|
63694
|
+
return {
|
|
63695
|
+
/**
|
|
63696
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63697
|
+
* @summary Get the build analysis of a job
|
|
63698
|
+
* @param {string} jobId Job ID
|
|
63699
|
+
* @param {*} [options] Override http request option.
|
|
63700
|
+
* @throws {RequiredError}
|
|
63701
|
+
*/
|
|
63702
|
+
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState> {
|
|
63703
|
+
return localVarFp.getJobBuildAnalysis(jobId, options).then((request) => request(axios, basePath));
|
|
63704
|
+
},
|
|
63705
|
+
};
|
|
63706
|
+
};
|
|
63707
|
+
|
|
63708
|
+
/**
|
|
63709
|
+
* JobBuildAnalysisApi - object-oriented interface
|
|
63710
|
+
* @export
|
|
63711
|
+
* @class JobBuildAnalysisApi
|
|
63712
|
+
* @extends {BaseAPI}
|
|
63713
|
+
*/
|
|
63714
|
+
export class JobBuildAnalysisApi extends BaseAPI {
|
|
63715
|
+
/**
|
|
63716
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63717
|
+
* @summary Get the build analysis of a job
|
|
63718
|
+
* @param {string} jobId Job ID
|
|
63719
|
+
* @param {*} [options] Override http request option.
|
|
63720
|
+
* @throws {RequiredError}
|
|
63721
|
+
* @memberof JobBuildAnalysisApi
|
|
63722
|
+
*/
|
|
63723
|
+
public getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig) {
|
|
63724
|
+
return JobBuildAnalysisApiFp(this.configuration).getJobBuildAnalysis(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
63725
|
+
}
|
|
63726
|
+
}
|
|
63727
|
+
|
|
63728
|
+
|
|
63729
|
+
|
|
63257
63730
|
/**
|
|
63258
63731
|
* JobConfigurationApi - axios parameter creator
|
|
63259
63732
|
* @export
|