qovery-typescript-axios 1.1.848 → 1.1.849

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
@@ -7616,6 +7616,44 @@ export interface DeployRequest {
7616
7616
  */
7617
7617
  'git_commit_id': string;
7618
7618
  }
7619
+ /**
7620
+ *
7621
+ * @export
7622
+ * @interface DeploymentBuildUsageReportRequest
7623
+ */
7624
+ export interface DeploymentBuildUsageReportRequest {
7625
+ /**
7626
+ * The deployment execution ID (format environment_id-version)
7627
+ * @type {string}
7628
+ * @memberof DeploymentBuildUsageReportRequest
7629
+ */
7630
+ 'execution_id': string;
7631
+ /**
7632
+ * The number of seconds the report will be publicly available
7633
+ * @type {number}
7634
+ * @memberof DeploymentBuildUsageReportRequest
7635
+ */
7636
+ 'report_expiration_in_seconds': number;
7637
+ }
7638
+ /**
7639
+ *
7640
+ * @export
7641
+ * @interface DeploymentBuildUsageReportResponse
7642
+ */
7643
+ export interface DeploymentBuildUsageReportResponse {
7644
+ /**
7645
+ * The publicly accessible URL of the Grafana snapshot report showing build pod resource usage
7646
+ * @type {string}
7647
+ * @memberof DeploymentBuildUsageReportResponse
7648
+ */
7649
+ 'report_url'?: string;
7650
+ /**
7651
+ * The URL to pro-actively delete the report before it expires
7652
+ * @type {string}
7653
+ * @memberof DeploymentBuildUsageReportResponse
7654
+ */
7655
+ 'delete_report_url'?: string;
7656
+ }
7619
7657
  /**
7620
7658
  *
7621
7659
  * @export
@@ -8315,6 +8353,12 @@ export interface DeploymentHistoryServiceDetailsOneOf {
8315
8353
  * @memberof DeploymentHistoryServiceDetailsOneOf
8316
8354
  */
8317
8355
  'commit': Commit | null;
8356
+ /**
8357
+ * The build pod name prefix for monitoring build runner usage. Format build-{execution_id}-0
8358
+ * @type {string}
8359
+ * @memberof DeploymentHistoryServiceDetailsOneOf
8360
+ */
8361
+ 'build_pod_name': string;
8318
8362
  }
8319
8363
  /**
8320
8364
  * ContainerDeploymentHistoryData
@@ -8383,6 +8427,12 @@ export interface DeploymentHistoryServiceDetailsOneOf2 {
8383
8427
  * @memberof DeploymentHistoryServiceDetailsOneOf2
8384
8428
  */
8385
8429
  'job_type': DeploymentHistoryServiceDetailsOneOf2JobTypeEnum;
8430
+ /**
8431
+ * The build pod name prefix. Only set for jobs with a git source (Docker build). Null for container-source jobs.
8432
+ * @type {string}
8433
+ * @memberof DeploymentHistoryServiceDetailsOneOf2
8434
+ */
8435
+ 'build_pod_name'?: string | null;
8386
8436
  }
8387
8437
 
8388
8438
  export const DeploymentHistoryServiceDetailsOneOf2JobTypeEnum = {
@@ -44186,6 +44236,51 @@ export class EnvironmentActionsApi extends BaseAPI {
44186
44236
  */
44187
44237
  export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (configuration?: Configuration) {
44188
44238
  return {
44239
+ /**
44240
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
44241
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
44242
+ * @param {string} environmentId Environment ID
44243
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
44244
+ * @param {*} [options] Override http request option.
44245
+ * @throws {RequiredError}
44246
+ */
44247
+ generateDeploymentBuildUsageReport: async (environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44248
+ // verify required parameter 'environmentId' is not null or undefined
44249
+ assertParamExists('generateDeploymentBuildUsageReport', 'environmentId', environmentId)
44250
+ const localVarPath = `/environment/{environmentId}/deploymentBuildUsageReport`
44251
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
44252
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44253
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44254
+ let baseOptions;
44255
+ if (configuration) {
44256
+ baseOptions = configuration.baseOptions;
44257
+ }
44258
+
44259
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
44260
+ const localVarHeaderParameter = {} as any;
44261
+ const localVarQueryParameter = {} as any;
44262
+
44263
+ // authentication ApiKeyAuth required
44264
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
44265
+
44266
+ // authentication bearerAuth required
44267
+ // http bearer authentication required
44268
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
44269
+
44270
+
44271
+
44272
+ localVarHeaderParameter['Content-Type'] = 'application/json';
44273
+
44274
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44275
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44276
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44277
+ localVarRequestOptions.data = serializeDataIfNeeded(deploymentBuildUsageReportRequest, localVarRequestOptions, configuration)
44278
+
44279
+ return {
44280
+ url: toPathString(localVarUrlObj),
44281
+ options: localVarRequestOptions,
44282
+ };
44283
+ },
44189
44284
  /**
44190
44285
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
44191
44286
  * @summary List environment deployments
@@ -44288,6 +44383,20 @@ export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (config
44288
44383
  export const EnvironmentDeploymentHistoryApiFp = function(configuration?: Configuration) {
44289
44384
  const localVarAxiosParamCreator = EnvironmentDeploymentHistoryApiAxiosParamCreator(configuration)
44290
44385
  return {
44386
+ /**
44387
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
44388
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
44389
+ * @param {string} environmentId Environment ID
44390
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
44391
+ * @param {*} [options] Override http request option.
44392
+ * @throws {RequiredError}
44393
+ */
44394
+ async generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentBuildUsageReportResponse>> {
44395
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options);
44396
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
44397
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentDeploymentHistoryApi.generateDeploymentBuildUsageReport']?.[localVarOperationServerIndex]?.url;
44398
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
44399
+ },
44291
44400
  /**
44292
44401
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
44293
44402
  * @summary List environment deployments
@@ -44326,6 +44435,17 @@ export const EnvironmentDeploymentHistoryApiFp = function(configuration?: Config
44326
44435
  export const EnvironmentDeploymentHistoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
44327
44436
  const localVarFp = EnvironmentDeploymentHistoryApiFp(configuration)
44328
44437
  return {
44438
+ /**
44439
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
44440
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
44441
+ * @param {string} environmentId Environment ID
44442
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
44443
+ * @param {*} [options] Override http request option.
44444
+ * @throws {RequiredError}
44445
+ */
44446
+ generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentBuildUsageReportResponse> {
44447
+ return localVarFp.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(axios, basePath));
44448
+ },
44329
44449
  /**
44330
44450
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
44331
44451
  * @summary List environment deployments
@@ -44358,6 +44478,19 @@ export const EnvironmentDeploymentHistoryApiFactory = function (configuration?:
44358
44478
  * @extends {BaseAPI}
44359
44479
  */
44360
44480
  export class EnvironmentDeploymentHistoryApi extends BaseAPI {
44481
+ /**
44482
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
44483
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
44484
+ * @param {string} environmentId Environment ID
44485
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
44486
+ * @param {*} [options] Override http request option.
44487
+ * @throws {RequiredError}
44488
+ * @memberof EnvironmentDeploymentHistoryApi
44489
+ */
44490
+ public generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig) {
44491
+ return EnvironmentDeploymentHistoryApiFp(this.configuration).generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
44492
+ }
44493
+
44361
44494
  /**
44362
44495
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
44363
44496
  * @summary List environment deployments
package/dist/api.d.ts CHANGED
@@ -7397,6 +7397,44 @@ export interface DeployRequest {
7397
7397
  */
7398
7398
  'git_commit_id': string;
7399
7399
  }
7400
+ /**
7401
+ *
7402
+ * @export
7403
+ * @interface DeploymentBuildUsageReportRequest
7404
+ */
7405
+ export interface DeploymentBuildUsageReportRequest {
7406
+ /**
7407
+ * The deployment execution ID (format environment_id-version)
7408
+ * @type {string}
7409
+ * @memberof DeploymentBuildUsageReportRequest
7410
+ */
7411
+ 'execution_id': string;
7412
+ /**
7413
+ * The number of seconds the report will be publicly available
7414
+ * @type {number}
7415
+ * @memberof DeploymentBuildUsageReportRequest
7416
+ */
7417
+ 'report_expiration_in_seconds': number;
7418
+ }
7419
+ /**
7420
+ *
7421
+ * @export
7422
+ * @interface DeploymentBuildUsageReportResponse
7423
+ */
7424
+ export interface DeploymentBuildUsageReportResponse {
7425
+ /**
7426
+ * The publicly accessible URL of the Grafana snapshot report showing build pod resource usage
7427
+ * @type {string}
7428
+ * @memberof DeploymentBuildUsageReportResponse
7429
+ */
7430
+ 'report_url'?: string;
7431
+ /**
7432
+ * The URL to pro-actively delete the report before it expires
7433
+ * @type {string}
7434
+ * @memberof DeploymentBuildUsageReportResponse
7435
+ */
7436
+ 'delete_report_url'?: string;
7437
+ }
7400
7438
  /**
7401
7439
  *
7402
7440
  * @export
@@ -8069,6 +8107,12 @@ export interface DeploymentHistoryServiceDetailsOneOf {
8069
8107
  * @memberof DeploymentHistoryServiceDetailsOneOf
8070
8108
  */
8071
8109
  'commit': Commit | null;
8110
+ /**
8111
+ * The build pod name prefix for monitoring build runner usage. Format build-{execution_id}-0
8112
+ * @type {string}
8113
+ * @memberof DeploymentHistoryServiceDetailsOneOf
8114
+ */
8115
+ 'build_pod_name': string;
8072
8116
  }
8073
8117
  /**
8074
8118
  * ContainerDeploymentHistoryData
@@ -8137,6 +8181,12 @@ export interface DeploymentHistoryServiceDetailsOneOf2 {
8137
8181
  * @memberof DeploymentHistoryServiceDetailsOneOf2
8138
8182
  */
8139
8183
  'job_type': DeploymentHistoryServiceDetailsOneOf2JobTypeEnum;
8184
+ /**
8185
+ * The build pod name prefix. Only set for jobs with a git source (Docker build). Null for container-source jobs.
8186
+ * @type {string}
8187
+ * @memberof DeploymentHistoryServiceDetailsOneOf2
8188
+ */
8189
+ 'build_pod_name'?: string | null;
8140
8190
  }
8141
8191
  export declare const DeploymentHistoryServiceDetailsOneOf2JobTypeEnum: {
8142
8192
  readonly CRON: "CRON";
@@ -31337,6 +31387,15 @@ export declare class EnvironmentActionsApi extends BaseAPI {
31337
31387
  * @export
31338
31388
  */
31339
31389
  export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configuration?: Configuration) => {
31390
+ /**
31391
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31392
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31393
+ * @param {string} environmentId Environment ID
31394
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31395
+ * @param {*} [options] Override http request option.
31396
+ * @throws {RequiredError}
31397
+ */
31398
+ generateDeploymentBuildUsageReport: (environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31340
31399
  /**
31341
31400
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31342
31401
  * @summary List environment deployments
@@ -31361,6 +31420,15 @@ export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configur
31361
31420
  * @export
31362
31421
  */
31363
31422
  export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configuration) => {
31423
+ /**
31424
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31425
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31426
+ * @param {string} environmentId Environment ID
31427
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31428
+ * @param {*} [options] Override http request option.
31429
+ * @throws {RequiredError}
31430
+ */
31431
+ generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentBuildUsageReportResponse>>;
31364
31432
  /**
31365
31433
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31366
31434
  * @summary List environment deployments
@@ -31385,6 +31453,15 @@ export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configu
31385
31453
  * @export
31386
31454
  */
31387
31455
  export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
31456
+ /**
31457
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31458
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31459
+ * @param {string} environmentId Environment ID
31460
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31461
+ * @param {*} [options] Override http request option.
31462
+ * @throws {RequiredError}
31463
+ */
31464
+ generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentBuildUsageReportResponse>;
31388
31465
  /**
31389
31466
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31390
31467
  * @summary List environment deployments
@@ -31411,6 +31488,16 @@ export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Co
31411
31488
  * @extends {BaseAPI}
31412
31489
  */
31413
31490
  export declare class EnvironmentDeploymentHistoryApi extends BaseAPI {
31491
+ /**
31492
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31493
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31494
+ * @param {string} environmentId Environment ID
31495
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31496
+ * @param {*} [options] Override http request option.
31497
+ * @throws {RequiredError}
31498
+ * @memberof EnvironmentDeploymentHistoryApi
31499
+ */
31500
+ generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentBuildUsageReportResponse, any, {}>>;
31414
31501
  /**
31415
31502
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31416
31503
  * @summary List environment deployments
package/dist/api.js CHANGED
@@ -22240,6 +22240,43 @@ exports.EnvironmentActionsApi = EnvironmentActionsApi;
22240
22240
  */
22241
22241
  const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (configuration) {
22242
22242
  return {
22243
+ /**
22244
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22245
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22246
+ * @param {string} environmentId Environment ID
22247
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22248
+ * @param {*} [options] Override http request option.
22249
+ * @throws {RequiredError}
22250
+ */
22251
+ generateDeploymentBuildUsageReport: (environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1) => __awaiter(this, [environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1], void 0, function* (environmentId, deploymentBuildUsageReportRequest, options = {}) {
22252
+ // verify required parameter 'environmentId' is not null or undefined
22253
+ (0, common_1.assertParamExists)('generateDeploymentBuildUsageReport', 'environmentId', environmentId);
22254
+ const localVarPath = `/environment/{environmentId}/deploymentBuildUsageReport`
22255
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
22256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22257
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22258
+ let baseOptions;
22259
+ if (configuration) {
22260
+ baseOptions = configuration.baseOptions;
22261
+ }
22262
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22263
+ const localVarHeaderParameter = {};
22264
+ const localVarQueryParameter = {};
22265
+ // authentication ApiKeyAuth required
22266
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
22267
+ // authentication bearerAuth required
22268
+ // http bearer authentication required
22269
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
22270
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22271
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
22272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22273
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22274
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deploymentBuildUsageReportRequest, localVarRequestOptions, configuration);
22275
+ return {
22276
+ url: (0, common_1.toPathString)(localVarUrlObj),
22277
+ options: localVarRequestOptions,
22278
+ };
22279
+ }),
22243
22280
  /**
22244
22281
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22245
22282
  * @summary List environment deployments
@@ -22326,6 +22363,23 @@ exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = EnvironmentDeployment
22326
22363
  const EnvironmentDeploymentHistoryApiFp = function (configuration) {
22327
22364
  const localVarAxiosParamCreator = (0, exports.EnvironmentDeploymentHistoryApiAxiosParamCreator)(configuration);
22328
22365
  return {
22366
+ /**
22367
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22368
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22369
+ * @param {string} environmentId Environment ID
22370
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22371
+ * @param {*} [options] Override http request option.
22372
+ * @throws {RequiredError}
22373
+ */
22374
+ generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
22375
+ return __awaiter(this, void 0, void 0, function* () {
22376
+ var _a, _b, _c;
22377
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options);
22378
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
22379
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvironmentDeploymentHistoryApi.generateDeploymentBuildUsageReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
22380
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22381
+ });
22382
+ },
22329
22383
  /**
22330
22384
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22331
22385
  * @summary List environment deployments
@@ -22370,6 +22424,17 @@ exports.EnvironmentDeploymentHistoryApiFp = EnvironmentDeploymentHistoryApiFp;
22370
22424
  const EnvironmentDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
22371
22425
  const localVarFp = (0, exports.EnvironmentDeploymentHistoryApiFp)(configuration);
22372
22426
  return {
22427
+ /**
22428
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22429
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22430
+ * @param {string} environmentId Environment ID
22431
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22432
+ * @param {*} [options] Override http request option.
22433
+ * @throws {RequiredError}
22434
+ */
22435
+ generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
22436
+ return localVarFp.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(axios, basePath));
22437
+ },
22373
22438
  /**
22374
22439
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22375
22440
  * @summary List environment deployments
@@ -22402,6 +22467,18 @@ exports.EnvironmentDeploymentHistoryApiFactory = EnvironmentDeploymentHistoryApi
22402
22467
  * @extends {BaseAPI}
22403
22468
  */
22404
22469
  class EnvironmentDeploymentHistoryApi extends base_1.BaseAPI {
22470
+ /**
22471
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22472
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22473
+ * @param {string} environmentId Environment ID
22474
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22475
+ * @param {*} [options] Override http request option.
22476
+ * @throws {RequiredError}
22477
+ * @memberof EnvironmentDeploymentHistoryApi
22478
+ */
22479
+ generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
22480
+ return (0, exports.EnvironmentDeploymentHistoryApiFp)(this.configuration).generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
22481
+ }
22405
22482
  /**
22406
22483
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22407
22484
  * @summary List environment deployments
package/dist/esm/api.d.ts CHANGED
@@ -7397,6 +7397,44 @@ export interface DeployRequest {
7397
7397
  */
7398
7398
  'git_commit_id': string;
7399
7399
  }
7400
+ /**
7401
+ *
7402
+ * @export
7403
+ * @interface DeploymentBuildUsageReportRequest
7404
+ */
7405
+ export interface DeploymentBuildUsageReportRequest {
7406
+ /**
7407
+ * The deployment execution ID (format environment_id-version)
7408
+ * @type {string}
7409
+ * @memberof DeploymentBuildUsageReportRequest
7410
+ */
7411
+ 'execution_id': string;
7412
+ /**
7413
+ * The number of seconds the report will be publicly available
7414
+ * @type {number}
7415
+ * @memberof DeploymentBuildUsageReportRequest
7416
+ */
7417
+ 'report_expiration_in_seconds': number;
7418
+ }
7419
+ /**
7420
+ *
7421
+ * @export
7422
+ * @interface DeploymentBuildUsageReportResponse
7423
+ */
7424
+ export interface DeploymentBuildUsageReportResponse {
7425
+ /**
7426
+ * The publicly accessible URL of the Grafana snapshot report showing build pod resource usage
7427
+ * @type {string}
7428
+ * @memberof DeploymentBuildUsageReportResponse
7429
+ */
7430
+ 'report_url'?: string;
7431
+ /**
7432
+ * The URL to pro-actively delete the report before it expires
7433
+ * @type {string}
7434
+ * @memberof DeploymentBuildUsageReportResponse
7435
+ */
7436
+ 'delete_report_url'?: string;
7437
+ }
7400
7438
  /**
7401
7439
  *
7402
7440
  * @export
@@ -8069,6 +8107,12 @@ export interface DeploymentHistoryServiceDetailsOneOf {
8069
8107
  * @memberof DeploymentHistoryServiceDetailsOneOf
8070
8108
  */
8071
8109
  'commit': Commit | null;
8110
+ /**
8111
+ * The build pod name prefix for monitoring build runner usage. Format build-{execution_id}-0
8112
+ * @type {string}
8113
+ * @memberof DeploymentHistoryServiceDetailsOneOf
8114
+ */
8115
+ 'build_pod_name': string;
8072
8116
  }
8073
8117
  /**
8074
8118
  * ContainerDeploymentHistoryData
@@ -8137,6 +8181,12 @@ export interface DeploymentHistoryServiceDetailsOneOf2 {
8137
8181
  * @memberof DeploymentHistoryServiceDetailsOneOf2
8138
8182
  */
8139
8183
  'job_type': DeploymentHistoryServiceDetailsOneOf2JobTypeEnum;
8184
+ /**
8185
+ * The build pod name prefix. Only set for jobs with a git source (Docker build). Null for container-source jobs.
8186
+ * @type {string}
8187
+ * @memberof DeploymentHistoryServiceDetailsOneOf2
8188
+ */
8189
+ 'build_pod_name'?: string | null;
8140
8190
  }
8141
8191
  export declare const DeploymentHistoryServiceDetailsOneOf2JobTypeEnum: {
8142
8192
  readonly CRON: "CRON";
@@ -31337,6 +31387,15 @@ export declare class EnvironmentActionsApi extends BaseAPI {
31337
31387
  * @export
31338
31388
  */
31339
31389
  export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configuration?: Configuration) => {
31390
+ /**
31391
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31392
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31393
+ * @param {string} environmentId Environment ID
31394
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31395
+ * @param {*} [options] Override http request option.
31396
+ * @throws {RequiredError}
31397
+ */
31398
+ generateDeploymentBuildUsageReport: (environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31340
31399
  /**
31341
31400
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31342
31401
  * @summary List environment deployments
@@ -31361,6 +31420,15 @@ export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configur
31361
31420
  * @export
31362
31421
  */
31363
31422
  export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configuration) => {
31423
+ /**
31424
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31425
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31426
+ * @param {string} environmentId Environment ID
31427
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31428
+ * @param {*} [options] Override http request option.
31429
+ * @throws {RequiredError}
31430
+ */
31431
+ generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentBuildUsageReportResponse>>;
31364
31432
  /**
31365
31433
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31366
31434
  * @summary List environment deployments
@@ -31385,6 +31453,15 @@ export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configu
31385
31453
  * @export
31386
31454
  */
31387
31455
  export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
31456
+ /**
31457
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31458
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31459
+ * @param {string} environmentId Environment ID
31460
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31461
+ * @param {*} [options] Override http request option.
31462
+ * @throws {RequiredError}
31463
+ */
31464
+ generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentBuildUsageReportResponse>;
31388
31465
  /**
31389
31466
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31390
31467
  * @summary List environment deployments
@@ -31411,6 +31488,16 @@ export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Co
31411
31488
  * @extends {BaseAPI}
31412
31489
  */
31413
31490
  export declare class EnvironmentDeploymentHistoryApi extends BaseAPI {
31491
+ /**
31492
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
31493
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
31494
+ * @param {string} environmentId Environment ID
31495
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
31496
+ * @param {*} [options] Override http request option.
31497
+ * @throws {RequiredError}
31498
+ * @memberof EnvironmentDeploymentHistoryApi
31499
+ */
31500
+ generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentBuildUsageReportResponse, any, {}>>;
31414
31501
  /**
31415
31502
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
31416
31503
  * @summary List environment deployments
package/dist/esm/api.js CHANGED
@@ -22071,6 +22071,43 @@ export class EnvironmentActionsApi extends BaseAPI {
22071
22071
  */
22072
22072
  export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (configuration) {
22073
22073
  return {
22074
+ /**
22075
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22076
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22077
+ * @param {string} environmentId Environment ID
22078
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22079
+ * @param {*} [options] Override http request option.
22080
+ * @throws {RequiredError}
22081
+ */
22082
+ generateDeploymentBuildUsageReport: (environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1) => __awaiter(this, [environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1], void 0, function* (environmentId, deploymentBuildUsageReportRequest, options = {}) {
22083
+ // verify required parameter 'environmentId' is not null or undefined
22084
+ assertParamExists('generateDeploymentBuildUsageReport', 'environmentId', environmentId);
22085
+ const localVarPath = `/environment/{environmentId}/deploymentBuildUsageReport`
22086
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
22087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22089
+ let baseOptions;
22090
+ if (configuration) {
22091
+ baseOptions = configuration.baseOptions;
22092
+ }
22093
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22094
+ const localVarHeaderParameter = {};
22095
+ const localVarQueryParameter = {};
22096
+ // authentication ApiKeyAuth required
22097
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
22098
+ // authentication bearerAuth required
22099
+ // http bearer authentication required
22100
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
22101
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22105
+ localVarRequestOptions.data = serializeDataIfNeeded(deploymentBuildUsageReportRequest, localVarRequestOptions, configuration);
22106
+ return {
22107
+ url: toPathString(localVarUrlObj),
22108
+ options: localVarRequestOptions,
22109
+ };
22110
+ }),
22074
22111
  /**
22075
22112
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22076
22113
  * @summary List environment deployments
@@ -22156,6 +22193,23 @@ export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (config
22156
22193
  export const EnvironmentDeploymentHistoryApiFp = function (configuration) {
22157
22194
  const localVarAxiosParamCreator = EnvironmentDeploymentHistoryApiAxiosParamCreator(configuration);
22158
22195
  return {
22196
+ /**
22197
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22198
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22199
+ * @param {string} environmentId Environment ID
22200
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22201
+ * @param {*} [options] Override http request option.
22202
+ * @throws {RequiredError}
22203
+ */
22204
+ generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
22205
+ return __awaiter(this, void 0, void 0, function* () {
22206
+ var _a, _b, _c;
22207
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options);
22208
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
22209
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnvironmentDeploymentHistoryApi.generateDeploymentBuildUsageReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
22210
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22211
+ });
22212
+ },
22159
22213
  /**
22160
22214
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22161
22215
  * @summary List environment deployments
@@ -22199,6 +22253,17 @@ export const EnvironmentDeploymentHistoryApiFp = function (configuration) {
22199
22253
  export const EnvironmentDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
22200
22254
  const localVarFp = EnvironmentDeploymentHistoryApiFp(configuration);
22201
22255
  return {
22256
+ /**
22257
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22258
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22259
+ * @param {string} environmentId Environment ID
22260
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22261
+ * @param {*} [options] Override http request option.
22262
+ * @throws {RequiredError}
22263
+ */
22264
+ generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
22265
+ return localVarFp.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(axios, basePath));
22266
+ },
22202
22267
  /**
22203
22268
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22204
22269
  * @summary List environment deployments
@@ -22230,6 +22295,18 @@ export const EnvironmentDeploymentHistoryApiFactory = function (configuration, b
22230
22295
  * @extends {BaseAPI}
22231
22296
  */
22232
22297
  export class EnvironmentDeploymentHistoryApi extends BaseAPI {
22298
+ /**
22299
+ * Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
22300
+ * @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
22301
+ * @param {string} environmentId Environment ID
22302
+ * @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
22303
+ * @param {*} [options] Override http request option.
22304
+ * @throws {RequiredError}
22305
+ * @memberof EnvironmentDeploymentHistoryApi
22306
+ */
22307
+ generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
22308
+ return EnvironmentDeploymentHistoryApiFp(this.configuration).generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
22309
+ }
22233
22310
  /**
22234
22311
  * List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
22235
22312
  * @summary List environment deployments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.848",
3
+ "version": "v1.1.849",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {