qovery-typescript-axios 1.1.1033 → 1.1.1035

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -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
@@ -56403,14 +56761,13 @@ export class EnvironmentDeploymentRuleApi extends BaseAPI {
56403
56761
  export const EnvironmentExportApiAxiosParamCreator = function (configuration?: Configuration) {
56404
56762
  return {
56405
56763
  /**
56406
- *
56764
+ * Secret values are never included in the export. Service secrets are preserved as empty input variables marked Redacted. Cloud, Git, registry and cluster credentials must be supplied through input variables without defaults.
56407
56765
  * @summary Export full environment and its resources into Terraform manifests
56408
56766
  * @param {string} environmentId Environment ID
56409
- * @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
56410
56767
  * @param {*} [options] Override http request option.
56411
56768
  * @throws {RequiredError}
56412
56769
  */
56413
- exportEnvironmentConfigurationIntoTerraform: async (environmentId: string, exportSecrets?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
56770
+ exportEnvironmentConfigurationIntoTerraform: async (environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
56414
56771
  // verify required parameter 'environmentId' is not null or undefined
56415
56772
  assertParamExists('exportEnvironmentConfigurationIntoTerraform', 'environmentId', environmentId)
56416
56773
  const localVarPath = `/environment/{environmentId}/terraformExport`
@@ -56433,10 +56790,6 @@ export const EnvironmentExportApiAxiosParamCreator = function (configuration?: C
56433
56790
  // http bearer authentication required
56434
56791
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
56435
56792
 
56436
- if (exportSecrets !== undefined) {
56437
- localVarQueryParameter['exportSecrets'] = exportSecrets;
56438
- }
56439
-
56440
56793
 
56441
56794
 
56442
56795
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -56459,15 +56812,14 @@ export const EnvironmentExportApiFp = function(configuration?: Configuration) {
56459
56812
  const localVarAxiosParamCreator = EnvironmentExportApiAxiosParamCreator(configuration)
56460
56813
  return {
56461
56814
  /**
56462
- *
56815
+ * Secret values are never included in the export. Service secrets are preserved as empty input variables marked Redacted. Cloud, Git, registry and cluster credentials must be supplied through input variables without defaults.
56463
56816
  * @summary Export full environment and its resources into Terraform manifests
56464
56817
  * @param {string} environmentId Environment ID
56465
- * @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
56466
56818
  * @param {*} [options] Override http request option.
56467
56819
  * @throws {RequiredError}
56468
56820
  */
56469
- async exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
56470
- const localVarAxiosArgs = await localVarAxiosParamCreator.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options);
56821
+ async exportEnvironmentConfigurationIntoTerraform(environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
56822
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportEnvironmentConfigurationIntoTerraform(environmentId, options);
56471
56823
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
56472
56824
  const localVarOperationServerBasePath = operationServerMap['EnvironmentExportApi.exportEnvironmentConfigurationIntoTerraform']?.[localVarOperationServerIndex]?.url;
56473
56825
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -56483,15 +56835,14 @@ export const EnvironmentExportApiFactory = function (configuration?: Configurati
56483
56835
  const localVarFp = EnvironmentExportApiFp(configuration)
56484
56836
  return {
56485
56837
  /**
56486
- *
56838
+ * Secret values are never included in the export. Service secrets are preserved as empty input variables marked Redacted. Cloud, Git, registry and cluster credentials must be supplied through input variables without defaults.
56487
56839
  * @summary Export full environment and its resources into Terraform manifests
56488
56840
  * @param {string} environmentId Environment ID
56489
- * @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
56490
56841
  * @param {*} [options] Override http request option.
56491
56842
  * @throws {RequiredError}
56492
56843
  */
56493
- exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<File> {
56494
- return localVarFp.exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(axios, basePath));
56844
+ exportEnvironmentConfigurationIntoTerraform(environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
56845
+ return localVarFp.exportEnvironmentConfigurationIntoTerraform(environmentId, options).then((request) => request(axios, basePath));
56495
56846
  },
56496
56847
  };
56497
56848
  };
@@ -56504,16 +56855,15 @@ export const EnvironmentExportApiFactory = function (configuration?: Configurati
56504
56855
  */
56505
56856
  export class EnvironmentExportApi extends BaseAPI {
56506
56857
  /**
56507
- *
56858
+ * Secret values are never included in the export. Service secrets are preserved as empty input variables marked Redacted. Cloud, Git, registry and cluster credentials must be supplied through input variables without defaults.
56508
56859
  * @summary Export full environment and its resources into Terraform manifests
56509
56860
  * @param {string} environmentId Environment ID
56510
- * @param {boolean} [exportSecrets] export Secrets from configuration and include them into Terraform export
56511
56861
  * @param {*} [options] Override http request option.
56512
56862
  * @throws {RequiredError}
56513
56863
  * @memberof EnvironmentExportApi
56514
56864
  */
56515
- public exportEnvironmentConfigurationIntoTerraform(environmentId: string, exportSecrets?: boolean, options?: RawAxiosRequestConfig) {
56516
- return EnvironmentExportApiFp(this.configuration).exportEnvironmentConfigurationIntoTerraform(environmentId, exportSecrets, options).then((request) => request(this.axios, this.basePath));
56865
+ public exportEnvironmentConfigurationIntoTerraform(environmentId: string, options?: RawAxiosRequestConfig) {
56866
+ return EnvironmentExportApiFp(this.configuration).exportEnvironmentConfigurationIntoTerraform(environmentId, options).then((request) => request(this.axios, this.basePath));
56517
56867
  }
56518
56868
  }
56519
56869
 
@@ -63254,6 +63604,121 @@ export class JobActionsApi extends BaseAPI {
63254
63604
 
63255
63605
 
63256
63606
 
63607
+ /**
63608
+ * JobBuildAnalysisApi - axios parameter creator
63609
+ * @export
63610
+ */
63611
+ export const JobBuildAnalysisApiAxiosParamCreator = function (configuration?: Configuration) {
63612
+ return {
63613
+ /**
63614
+ * Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
63615
+ * @summary Get the build analysis of a job
63616
+ * @param {string} jobId Job ID
63617
+ * @param {*} [options] Override http request option.
63618
+ * @throws {RequiredError}
63619
+ */
63620
+ getJobBuildAnalysis: async (jobId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63621
+ // verify required parameter 'jobId' is not null or undefined
63622
+ assertParamExists('getJobBuildAnalysis', 'jobId', jobId)
63623
+ const localVarPath = `/job/{jobId}/buildAnalysis`
63624
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
63625
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63626
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63627
+ let baseOptions;
63628
+ if (configuration) {
63629
+ baseOptions = configuration.baseOptions;
63630
+ }
63631
+
63632
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
63633
+ const localVarHeaderParameter = {} as any;
63634
+ const localVarQueryParameter = {} as any;
63635
+
63636
+ // authentication ApiKeyAuth required
63637
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63638
+
63639
+ // authentication bearerAuth required
63640
+ // http bearer authentication required
63641
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
63642
+
63643
+
63644
+
63645
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63647
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63648
+
63649
+ return {
63650
+ url: toPathString(localVarUrlObj),
63651
+ options: localVarRequestOptions,
63652
+ };
63653
+ },
63654
+ }
63655
+ };
63656
+
63657
+ /**
63658
+ * JobBuildAnalysisApi - functional programming interface
63659
+ * @export
63660
+ */
63661
+ export const JobBuildAnalysisApiFp = function(configuration?: Configuration) {
63662
+ const localVarAxiosParamCreator = JobBuildAnalysisApiAxiosParamCreator(configuration)
63663
+ return {
63664
+ /**
63665
+ * Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
63666
+ * @summary Get the build analysis of a job
63667
+ * @param {string} jobId Job ID
63668
+ * @param {*} [options] Override http request option.
63669
+ * @throws {RequiredError}
63670
+ */
63671
+ async getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>> {
63672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getJobBuildAnalysis(jobId, options);
63673
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63674
+ const localVarOperationServerBasePath = operationServerMap['JobBuildAnalysisApi.getJobBuildAnalysis']?.[localVarOperationServerIndex]?.url;
63675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63676
+ },
63677
+ }
63678
+ };
63679
+
63680
+ /**
63681
+ * JobBuildAnalysisApi - factory interface
63682
+ * @export
63683
+ */
63684
+ export const JobBuildAnalysisApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
63685
+ const localVarFp = JobBuildAnalysisApiFp(configuration)
63686
+ return {
63687
+ /**
63688
+ * Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
63689
+ * @summary Get the build analysis of a job
63690
+ * @param {string} jobId Job ID
63691
+ * @param {*} [options] Override http request option.
63692
+ * @throws {RequiredError}
63693
+ */
63694
+ getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState> {
63695
+ return localVarFp.getJobBuildAnalysis(jobId, options).then((request) => request(axios, basePath));
63696
+ },
63697
+ };
63698
+ };
63699
+
63700
+ /**
63701
+ * JobBuildAnalysisApi - object-oriented interface
63702
+ * @export
63703
+ * @class JobBuildAnalysisApi
63704
+ * @extends {BaseAPI}
63705
+ */
63706
+ export class JobBuildAnalysisApi extends BaseAPI {
63707
+ /**
63708
+ * Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
63709
+ * @summary Get the build analysis of a job
63710
+ * @param {string} jobId Job ID
63711
+ * @param {*} [options] Override http request option.
63712
+ * @throws {RequiredError}
63713
+ * @memberof JobBuildAnalysisApi
63714
+ */
63715
+ public getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig) {
63716
+ return JobBuildAnalysisApiFp(this.configuration).getJobBuildAnalysis(jobId, options).then((request) => request(this.axios, this.basePath));
63717
+ }
63718
+ }
63719
+
63720
+
63721
+
63257
63722
  /**
63258
63723
  * JobConfigurationApi - axios parameter creator
63259
63724
  * @export