qovery-typescript-axios 1.1.1046 → 1.1.1047

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
@@ -10457,13 +10457,13 @@ export interface ContainerDeployRequest {
10457
10457
  'git_commit_id'?: string | null;
10458
10458
  }
10459
10459
  /**
10460
- * The Git repository and the Dockerfile that Qovery builds into the container image.
10460
+ * The Git repository and the Dockerfile that Qovery builds into the container image. `owner` and `name` are not needed: the repository is read from `url`. They are still accepted, and ignored.
10461
10461
  * @export
10462
10462
  * @interface ContainerGitRepositorySourceRequest
10463
10463
  */
10464
10464
  export interface ContainerGitRepositorySourceRequest {
10465
10465
  /**
10466
- * application git repository URL
10466
+ * Git repository URL
10467
10467
  * @type {string}
10468
10468
  * @memberof ContainerGitRepositorySourceRequest
10469
10469
  */
@@ -10475,7 +10475,7 @@ export interface ContainerGitRepositorySourceRequest {
10475
10475
  */
10476
10476
  'branch'?: string;
10477
10477
  /**
10478
- * indicates the root path of the application.
10478
+ * indicates the root path in the repository.
10479
10479
  * @type {string}
10480
10480
  * @memberof ContainerGitRepositorySourceRequest
10481
10481
  */
@@ -11267,13 +11267,13 @@ export interface ContainerRequest {
11267
11267
  */
11268
11268
  'healthchecks': Healthcheck;
11269
11269
  /**
11270
- * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment. On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a switch to `git_repository`, it is set to false.
11270
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment. On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a create from, or a switch to, `git_repository`, it is set to false.
11271
11271
  * @type {boolean}
11272
11272
  * @memberof ContainerRequest
11273
11273
  */
11274
11274
  'auto_preview'?: boolean;
11275
11275
  /**
11276
- * Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a switch to `git_repository`, it is set to false.
11276
+ * Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a create from, or a switch to, `git_repository`, it is set to false.
11277
11277
  * @type {boolean}
11278
11278
  * @memberof ContainerRequest
11279
11279
  */
@@ -11303,7 +11303,7 @@ export interface ContainerRequest {
11303
11303
  */
11304
11304
  'autoscaling'?: AutoscalingPolicyRequest;
11305
11305
  /**
11306
- * Build settings of a container with a Git repository source (`source.git_repository`). They apply only to the build of its image. - When sent, it replaces all stored values: omitted properties take their defaults, they are not merged. - On update, when not sent, the stored values are kept. - On a switch to `git_repository` without it, the defaults of a new application are used. - Sending it when the container keeps, or switches to, an image source returns 400. This includes create.
11306
+ * Build settings of a container with a Git repository source (`source.git_repository`). They apply only to the build of its image. - When sent, it replaces all stored values: omitted properties take their defaults, they are not merged. - On update, when not sent, the stored values are kept. - On a create from, or a switch to, `git_repository` without it, the defaults of a new application are used. - Sending it when the container is created with, keeps, or switches to, an image source returns 400.
11307
11307
  * @type {BuildSettings}
11308
11308
  * @memberof ContainerRequest
11309
11309
  */
@@ -11312,7 +11312,7 @@ export interface ContainerRequest {
11312
11312
 
11313
11313
 
11314
11314
  /**
11315
- * `registry`, `image_name` and `tag` always hold the image this container runs: - with an image source, the configured image; - with a Git repository source, the image last deployed. Until the first successful deployment from Git, this is the image from before the switch to Git. After it, this is the built image in the cluster\'s registry, with its build tag. `source` says where the image comes from.
11315
+ * `registry`, `image_name` and `tag` always hold the image this container runs: - with an image source, the configured image; - with a Git repository source, the image last deployed. Until the first successful deployment from Git, this is the image from before the switch to Git; a container created from Git has none yet, so it reports the cluster\'s build registry, the repository name and the tag `pending-first-build`. After it, this is the built image in the cluster\'s registry, with its build tag. `source` says where the image comes from.
11316
11316
  * @export
11317
11317
  * @interface ContainerResponse
11318
11318
  */
@@ -11558,7 +11558,7 @@ export interface ContainerSource {
11558
11558
  }
11559
11559
  /**
11560
11560
  * @type ContainerSourceRequest
11561
- * Where the container image comes from. Send exactly one of `image` or `git_repository`; both, or neither, returns 400. A `null` `image` or `git_repository` counts as not sent. - `image`: an image from a container registry, like the flat `registry_id`, `image_name` and `tag` fields. - `git_repository`: a Git repository with a Dockerfile. Qovery builds the image from the deployed commit. Accepted on update (`PUT /container/{containerId}`) only: sending it on create returns 400. Switching the source keeps the same container: its id, Kubernetes names, volumes and built-in variables. The switch does not deploy; the next deployment uses the new source. Rules: - On update (`PUT /container/{containerId}`), `source` is ignored when it repeats the stored source, and the flat `registry_id`, `image_name` and `tag` fields are ignored when every one sent equals the image the container runs (the `registry.id`, `image_name` and `tag` that GET returns). A body built from the GET response is accepted as is; only the side the client changed is applied. - On update, `source` and the flat fields both asking for a change returns 400, unless both name the same image. This includes a `source.git_repository` change sent with changed flat fields. On create, sending `source` together with the flat fields still returns 400. - On update of a container with an image source, `source.image.registry_id` may be omitted: the stored registry is kept. Switching a container with a Git repository source back to an image, and create, require it. - When `source` is not sent, the stored source is kept. Flat fields never switch the source. - On a container with a Git repository source, flat fields equal to the `registry.id`, `image_name` and `tag` that GET returns are accepted and change nothing; different values return 400 unless `source.image` asks for the same image. A deployment that finishes between the GET and the PUT changes these values: get the container again and retry. Send `source.image` to switch back to an image. - A `git_repository` source requires `auto_deploy` and `auto_preview` to be false or not specified: 400 otherwise. When not specified on a switch to `git_repository`, both are set to false.
11561
+ * Where the container image comes from. Send exactly one of `image` or `git_repository`; both, or neither, returns 400. A `null` `image` or `git_repository` counts as not sent. - `image`: an image from a container registry, like the flat `registry_id`, `image_name` and `tag` fields. - `git_repository`: a Git repository with a Dockerfile. Qovery builds the image from the deployed commit. Accepted on create (`POST /environment/{environmentId}/container`) and on update (`PUT /container/{containerId}`). Building from Git needs Qovery engine v1.417.0 or later on the cluster: on an older engine, the deployment fails. Switching the source keeps the same container: its id, Kubernetes names, volumes and built-in variables. The switch does not deploy; the next deployment uses the new source. A container with a Git repository source has three more built-in variables. `<ID>` is the identifier its other built-in variables use, as in `QOVERY_CONTAINER_<ID>_HOST_INTERNAL`: - `QOVERY_CONTAINER_<ID>_GIT_COMMIT_ID`: the deployed commit; - `QOVERY_CONTAINER_<ID>_GIT_BRANCH`: the branch configured on the source; - `QOVERY_CONTAINER_<ID>_GIT_REPOSITORY_URL`: the repository URL, without credentials, query or fragment. They are added when missing, when the container is created from, or switched to, a Git repository. A switch back to an image keeps them, with empty values. Rules: - On update (`PUT /container/{containerId}`), `source` is ignored when it repeats the stored source, and the flat `registry_id`, `image_name` and `tag` fields are ignored when every one sent equals the image the container runs (the `registry.id`, `image_name` and `tag` that GET returns). A body built from the GET response is accepted as is; only the side the client changed is applied. - On update, `source` and the flat fields both asking for a change returns 400, unless both name the same image. This includes a `source.git_repository` change sent with changed flat fields. On create, sending `source` together with the flat fields still returns 400. - On update of a container with an image source, `source.image.registry_id` may be omitted: the stored registry is kept. Switching a container with a Git repository source back to an image, and create, require it. - When `source` is not sent, the stored source is kept. Flat fields never switch the source. - On a container with a Git repository source, flat fields equal to the `registry.id`, `image_name` and `tag` that GET returns are accepted and change nothing; different values return 400 unless `source.image` asks for the same image. A deployment that finishes between the GET and the PUT changes these values: get the container again and retry. Send `source.image` to switch back to an image. - A `git_repository` source requires `auto_deploy` and `auto_preview` to be false or not specified: 400 otherwise. When not specified on a create from, or a switch to, `git_repository`, both are set to false.
11562
11562
  * @export
11563
11563
  */
11564
11564
  export type ContainerSourceRequest = ContainerSourceRequestOneOf | ContainerSourceRequestOneOf1;
@@ -13034,11 +13034,17 @@ export interface DeployAllRequestContainersInner {
13034
13034
  */
13035
13035
  'id': string;
13036
13036
  /**
13037
- * new tag for the container. Can be empty only if the service has been already deployed (in this case the service version won\'t be changed) For a container with a Git repository source: - an absent or empty `image_tag`, or one equal to the `tag` that `GET /container/{containerId}` returns, deploys the container at its stored commit; - a different `image_tag` returns 400.
13037
+ * new tag for the container. Can be empty only if the service has been already deployed (in this case the service version won\'t be changed) For a container with a Git repository source: - an absent or empty `image_tag`, or one equal to the `tag` that `GET /container/{containerId}` returns, deploys the container at `git_commit_id`, or at its stored commit when `git_commit_id` is absent or empty; - a different `image_tag` returns 400.
13038
13038
  * @type {string}
13039
13039
  * @memberof DeployAllRequestContainersInner
13040
13040
  */
13041
13041
  'image_tag'?: string;
13042
+ /**
13043
+ * Commit to deploy, for a container with a Git repository source. When absent or empty, the container\'s stored commit is deployed. On a container with a Git repository source, a value that is not a 40-character SHA-1 commit id returns 400. Ignored for a container with an image source.
13044
+ * @type {string}
13045
+ * @memberof DeployAllRequestContainersInner
13046
+ */
13047
+ 'git_commit_id'?: string;
13042
13048
  }
13043
13049
  /**
13044
13050
  *
@@ -50551,6 +50557,57 @@ export const ContainerMainCallsApiAxiosParamCreator = function (configuration?:
50551
50557
 
50552
50558
 
50553
50559
 
50560
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
50561
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50562
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
50563
+
50564
+ return {
50565
+ url: toPathString(localVarUrlObj),
50566
+ options: localVarRequestOptions,
50567
+ };
50568
+ },
50569
+ /**
50570
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
50571
+ * @summary List last container commits
50572
+ * @param {string} containerId Container ID
50573
+ * @param {string} [startId] Starting point after which to return results
50574
+ * @param {string} [gitCommitId] Git Commit ID
50575
+ * @param {*} [options] Override http request option.
50576
+ * @throws {RequiredError}
50577
+ */
50578
+ listContainerCommit: async (containerId: string, startId?: string, gitCommitId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
50579
+ // verify required parameter 'containerId' is not null or undefined
50580
+ assertParamExists('listContainerCommit', 'containerId', containerId)
50581
+ const localVarPath = `/container/{containerId}/commit`
50582
+ .replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
50583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50585
+ let baseOptions;
50586
+ if (configuration) {
50587
+ baseOptions = configuration.baseOptions;
50588
+ }
50589
+
50590
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50591
+ const localVarHeaderParameter = {} as any;
50592
+ const localVarQueryParameter = {} as any;
50593
+
50594
+ // authentication ApiKeyAuth required
50595
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
50596
+
50597
+ // authentication bearerAuth required
50598
+ // http bearer authentication required
50599
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
50600
+
50601
+ if (startId !== undefined) {
50602
+ localVarQueryParameter['startId'] = startId;
50603
+ }
50604
+
50605
+ if (gitCommitId !== undefined) {
50606
+ localVarQueryParameter['gitCommitId'] = gitCommitId;
50607
+ }
50608
+
50609
+
50610
+
50554
50611
  setSearchParams(localVarUrlObj, localVarQueryParameter);
50555
50612
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50556
50613
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -50665,6 +50722,21 @@ export const ContainerMainCallsApiFp = function(configuration?: Configuration) {
50665
50722
  const localVarOperationServerBasePath = operationServerMap['ContainerMainCallsApi.getContainerStatus']?.[localVarOperationServerIndex]?.url;
50666
50723
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50667
50724
  },
50725
+ /**
50726
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
50727
+ * @summary List last container commits
50728
+ * @param {string} containerId Container ID
50729
+ * @param {string} [startId] Starting point after which to return results
50730
+ * @param {string} [gitCommitId] Git Commit ID
50731
+ * @param {*} [options] Override http request option.
50732
+ * @throws {RequiredError}
50733
+ */
50734
+ async listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommitResponseList>> {
50735
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContainerCommit(containerId, startId, gitCommitId, options);
50736
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
50737
+ const localVarOperationServerBasePath = operationServerMap['ContainerMainCallsApi.listContainerCommit']?.[localVarOperationServerIndex]?.url;
50738
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50739
+ },
50668
50740
  /**
50669
50741
  * This will return all the custom domains and Qovery autogenerated domain for the given container
50670
50742
  * @summary List all URLs of the container
@@ -50730,6 +50802,18 @@ export const ContainerMainCallsApiFactory = function (configuration?: Configurat
50730
50802
  getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
50731
50803
  return localVarFp.getContainerStatus(containerId, options).then((request) => request(axios, basePath));
50732
50804
  },
50805
+ /**
50806
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
50807
+ * @summary List last container commits
50808
+ * @param {string} containerId Container ID
50809
+ * @param {string} [startId] Starting point after which to return results
50810
+ * @param {string} [gitCommitId] Git Commit ID
50811
+ * @param {*} [options] Override http request option.
50812
+ * @throws {RequiredError}
50813
+ */
50814
+ listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommitResponseList> {
50815
+ return localVarFp.listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(axios, basePath));
50816
+ },
50733
50817
  /**
50734
50818
  * This will return all the custom domains and Qovery autogenerated domain for the given container
50735
50819
  * @summary List all URLs of the container
@@ -50800,6 +50884,20 @@ export class ContainerMainCallsApi extends BaseAPI {
50800
50884
  return ContainerMainCallsApiFp(this.configuration).getContainerStatus(containerId, options).then((request) => request(this.axios, this.basePath));
50801
50885
  }
50802
50886
 
50887
+ /**
50888
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
50889
+ * @summary List last container commits
50890
+ * @param {string} containerId Container ID
50891
+ * @param {string} [startId] Starting point after which to return results
50892
+ * @param {string} [gitCommitId] Git Commit ID
50893
+ * @param {*} [options] Override http request option.
50894
+ * @throws {RequiredError}
50895
+ * @memberof ContainerMainCallsApi
50896
+ */
50897
+ public listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig) {
50898
+ return ContainerMainCallsApiFp(this.configuration).listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(this.axios, this.basePath));
50899
+ }
50900
+
50803
50901
  /**
50804
50902
  * This will return all the custom domains and Qovery autogenerated domain for the given container
50805
50903
  * @summary List all URLs of the container
@@ -52087,7 +52185,7 @@ export const ContainersApiAxiosParamCreator = function (configuration?: Configur
52087
52185
  };
52088
52186
  },
52089
52187
  /**
52090
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
52188
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
52091
52189
  * @summary Create a container
52092
52190
  * @param {string} environmentId Environment ID
52093
52191
  * @param {ContainerRequest} [containerRequest]
@@ -52379,7 +52477,7 @@ export const ContainersApiFp = function(configuration?: Configuration) {
52379
52477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
52380
52478
  },
52381
52479
  /**
52382
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
52480
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
52383
52481
  * @summary Create a container
52384
52482
  * @param {string} environmentId Environment ID
52385
52483
  * @param {ContainerRequest} [containerRequest]
@@ -52491,7 +52589,7 @@ export const ContainersApiFactory = function (configuration?: Configuration, bas
52491
52589
  return localVarFp.cloneContainer(containerId, cloneServiceRequest, options).then((request) => request(axios, basePath));
52492
52590
  },
52493
52591
  /**
52494
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
52592
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
52495
52593
  * @summary Create a container
52496
52594
  * @param {string} environmentId Environment ID
52497
52595
  * @param {ContainerRequest} [containerRequest]
@@ -52589,7 +52687,7 @@ export class ContainersApi extends BaseAPI {
52589
52687
  }
52590
52688
 
52591
52689
  /**
52592
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
52690
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
52593
52691
  * @summary Create a container
52594
52692
  * @param {string} environmentId Environment ID
52595
52693
  * @param {ContainerRequest} [containerRequest]
package/dist/api.d.ts CHANGED
@@ -10186,13 +10186,13 @@ export interface ContainerDeployRequest {
10186
10186
  'git_commit_id'?: string | null;
10187
10187
  }
10188
10188
  /**
10189
- * The Git repository and the Dockerfile that Qovery builds into the container image.
10189
+ * The Git repository and the Dockerfile that Qovery builds into the container image. `owner` and `name` are not needed: the repository is read from `url`. They are still accepted, and ignored.
10190
10190
  * @export
10191
10191
  * @interface ContainerGitRepositorySourceRequest
10192
10192
  */
10193
10193
  export interface ContainerGitRepositorySourceRequest {
10194
10194
  /**
10195
- * application git repository URL
10195
+ * Git repository URL
10196
10196
  * @type {string}
10197
10197
  * @memberof ContainerGitRepositorySourceRequest
10198
10198
  */
@@ -10204,7 +10204,7 @@ export interface ContainerGitRepositorySourceRequest {
10204
10204
  */
10205
10205
  'branch'?: string;
10206
10206
  /**
10207
- * indicates the root path of the application.
10207
+ * indicates the root path in the repository.
10208
10208
  * @type {string}
10209
10209
  * @memberof ContainerGitRepositorySourceRequest
10210
10210
  */
@@ -10970,13 +10970,13 @@ export interface ContainerRequest {
10970
10970
  */
10971
10971
  'healthchecks': Healthcheck;
10972
10972
  /**
10973
- * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment. On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a switch to `git_repository`, it is set to false.
10973
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment. On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a create from, or a switch to, `git_repository`, it is set to false.
10974
10974
  * @type {boolean}
10975
10975
  * @memberof ContainerRequest
10976
10976
  */
10977
10977
  'auto_preview'?: boolean;
10978
10978
  /**
10979
- * Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a switch to `git_repository`, it is set to false.
10979
+ * Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a create from, or a switch to, `git_repository`, it is set to false.
10980
10980
  * @type {boolean}
10981
10981
  * @memberof ContainerRequest
10982
10982
  */
@@ -11006,14 +11006,14 @@ export interface ContainerRequest {
11006
11006
  */
11007
11007
  'autoscaling'?: AutoscalingPolicyRequest;
11008
11008
  /**
11009
- * Build settings of a container with a Git repository source (`source.git_repository`). They apply only to the build of its image. - When sent, it replaces all stored values: omitted properties take their defaults, they are not merged. - On update, when not sent, the stored values are kept. - On a switch to `git_repository` without it, the defaults of a new application are used. - Sending it when the container keeps, or switches to, an image source returns 400. This includes create.
11009
+ * Build settings of a container with a Git repository source (`source.git_repository`). They apply only to the build of its image. - When sent, it replaces all stored values: omitted properties take their defaults, they are not merged. - On update, when not sent, the stored values are kept. - On a create from, or a switch to, `git_repository` without it, the defaults of a new application are used. - Sending it when the container is created with, keeps, or switches to, an image source returns 400.
11010
11010
  * @type {BuildSettings}
11011
11011
  * @memberof ContainerRequest
11012
11012
  */
11013
11013
  'build_settings'?: BuildSettings;
11014
11014
  }
11015
11015
  /**
11016
- * `registry`, `image_name` and `tag` always hold the image this container runs: - with an image source, the configured image; - with a Git repository source, the image last deployed. Until the first successful deployment from Git, this is the image from before the switch to Git. After it, this is the built image in the cluster\'s registry, with its build tag. `source` says where the image comes from.
11016
+ * `registry`, `image_name` and `tag` always hold the image this container runs: - with an image source, the configured image; - with a Git repository source, the image last deployed. Until the first successful deployment from Git, this is the image from before the switch to Git; a container created from Git has none yet, so it reports the cluster\'s build registry, the repository name and the tag `pending-first-build`. After it, this is the built image in the cluster\'s registry, with its build tag. `source` says where the image comes from.
11017
11017
  * @export
11018
11018
  * @interface ContainerResponse
11019
11019
  */
@@ -11257,7 +11257,7 @@ export interface ContainerSource {
11257
11257
  }
11258
11258
  /**
11259
11259
  * @type ContainerSourceRequest
11260
- * Where the container image comes from. Send exactly one of `image` or `git_repository`; both, or neither, returns 400. A `null` `image` or `git_repository` counts as not sent. - `image`: an image from a container registry, like the flat `registry_id`, `image_name` and `tag` fields. - `git_repository`: a Git repository with a Dockerfile. Qovery builds the image from the deployed commit. Accepted on update (`PUT /container/{containerId}`) only: sending it on create returns 400. Switching the source keeps the same container: its id, Kubernetes names, volumes and built-in variables. The switch does not deploy; the next deployment uses the new source. Rules: - On update (`PUT /container/{containerId}`), `source` is ignored when it repeats the stored source, and the flat `registry_id`, `image_name` and `tag` fields are ignored when every one sent equals the image the container runs (the `registry.id`, `image_name` and `tag` that GET returns). A body built from the GET response is accepted as is; only the side the client changed is applied. - On update, `source` and the flat fields both asking for a change returns 400, unless both name the same image. This includes a `source.git_repository` change sent with changed flat fields. On create, sending `source` together with the flat fields still returns 400. - On update of a container with an image source, `source.image.registry_id` may be omitted: the stored registry is kept. Switching a container with a Git repository source back to an image, and create, require it. - When `source` is not sent, the stored source is kept. Flat fields never switch the source. - On a container with a Git repository source, flat fields equal to the `registry.id`, `image_name` and `tag` that GET returns are accepted and change nothing; different values return 400 unless `source.image` asks for the same image. A deployment that finishes between the GET and the PUT changes these values: get the container again and retry. Send `source.image` to switch back to an image. - A `git_repository` source requires `auto_deploy` and `auto_preview` to be false or not specified: 400 otherwise. When not specified on a switch to `git_repository`, both are set to false.
11260
+ * Where the container image comes from. Send exactly one of `image` or `git_repository`; both, or neither, returns 400. A `null` `image` or `git_repository` counts as not sent. - `image`: an image from a container registry, like the flat `registry_id`, `image_name` and `tag` fields. - `git_repository`: a Git repository with a Dockerfile. Qovery builds the image from the deployed commit. Accepted on create (`POST /environment/{environmentId}/container`) and on update (`PUT /container/{containerId}`). Building from Git needs Qovery engine v1.417.0 or later on the cluster: on an older engine, the deployment fails. Switching the source keeps the same container: its id, Kubernetes names, volumes and built-in variables. The switch does not deploy; the next deployment uses the new source. A container with a Git repository source has three more built-in variables. `<ID>` is the identifier its other built-in variables use, as in `QOVERY_CONTAINER_<ID>_HOST_INTERNAL`: - `QOVERY_CONTAINER_<ID>_GIT_COMMIT_ID`: the deployed commit; - `QOVERY_CONTAINER_<ID>_GIT_BRANCH`: the branch configured on the source; - `QOVERY_CONTAINER_<ID>_GIT_REPOSITORY_URL`: the repository URL, without credentials, query or fragment. They are added when missing, when the container is created from, or switched to, a Git repository. A switch back to an image keeps them, with empty values. Rules: - On update (`PUT /container/{containerId}`), `source` is ignored when it repeats the stored source, and the flat `registry_id`, `image_name` and `tag` fields are ignored when every one sent equals the image the container runs (the `registry.id`, `image_name` and `tag` that GET returns). A body built from the GET response is accepted as is; only the side the client changed is applied. - On update, `source` and the flat fields both asking for a change returns 400, unless both name the same image. This includes a `source.git_repository` change sent with changed flat fields. On create, sending `source` together with the flat fields still returns 400. - On update of a container with an image source, `source.image.registry_id` may be omitted: the stored registry is kept. Switching a container with a Git repository source back to an image, and create, require it. - When `source` is not sent, the stored source is kept. Flat fields never switch the source. - On a container with a Git repository source, flat fields equal to the `registry.id`, `image_name` and `tag` that GET returns are accepted and change nothing; different values return 400 unless `source.image` asks for the same image. A deployment that finishes between the GET and the PUT changes these values: get the container again and retry. Send `source.image` to switch back to an image. - A `git_repository` source requires `auto_deploy` and `auto_preview` to be false or not specified: 400 otherwise. When not specified on a create from, or a switch to, `git_repository`, both are set to false.
11261
11261
  * @export
11262
11262
  */
11263
11263
  export type ContainerSourceRequest = ContainerSourceRequestOneOf | ContainerSourceRequestOneOf1;
@@ -12677,11 +12677,17 @@ export interface DeployAllRequestContainersInner {
12677
12677
  */
12678
12678
  'id': string;
12679
12679
  /**
12680
- * new tag for the container. Can be empty only if the service has been already deployed (in this case the service version won\'t be changed) For a container with a Git repository source: - an absent or empty `image_tag`, or one equal to the `tag` that `GET /container/{containerId}` returns, deploys the container at its stored commit; - a different `image_tag` returns 400.
12680
+ * new tag for the container. Can be empty only if the service has been already deployed (in this case the service version won\'t be changed) For a container with a Git repository source: - an absent or empty `image_tag`, or one equal to the `tag` that `GET /container/{containerId}` returns, deploys the container at `git_commit_id`, or at its stored commit when `git_commit_id` is absent or empty; - a different `image_tag` returns 400.
12681
12681
  * @type {string}
12682
12682
  * @memberof DeployAllRequestContainersInner
12683
12683
  */
12684
12684
  'image_tag'?: string;
12685
+ /**
12686
+ * Commit to deploy, for a container with a Git repository source. When absent or empty, the container\'s stored commit is deployed. On a container with a Git repository source, a value that is not a 40-character SHA-1 commit id returns 400. Ignored for a container with an image source.
12687
+ * @type {string}
12688
+ * @memberof DeployAllRequestContainersInner
12689
+ */
12690
+ 'git_commit_id'?: string;
12685
12691
  }
12686
12692
  /**
12687
12693
  *
@@ -38956,6 +38962,16 @@ export declare const ContainerMainCallsApiAxiosParamCreator: (configuration?: Co
38956
38962
  * @throws {RequiredError}
38957
38963
  */
38958
38964
  getContainerStatus: (containerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38965
+ /**
38966
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
38967
+ * @summary List last container commits
38968
+ * @param {string} containerId Container ID
38969
+ * @param {string} [startId] Starting point after which to return results
38970
+ * @param {string} [gitCommitId] Git Commit ID
38971
+ * @param {*} [options] Override http request option.
38972
+ * @throws {RequiredError}
38973
+ */
38974
+ listContainerCommit: (containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38959
38975
  /**
38960
38976
  * This will return all the custom domains and Qovery autogenerated domain for the given container
38961
38977
  * @summary List all URLs of the container
@@ -39004,6 +39020,16 @@ export declare const ContainerMainCallsApiFp: (configuration?: Configuration) =>
39004
39020
  * @throws {RequiredError}
39005
39021
  */
39006
39022
  getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>>;
39023
+ /**
39024
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
39025
+ * @summary List last container commits
39026
+ * @param {string} containerId Container ID
39027
+ * @param {string} [startId] Starting point after which to return results
39028
+ * @param {string} [gitCommitId] Git Commit ID
39029
+ * @param {*} [options] Override http request option.
39030
+ * @throws {RequiredError}
39031
+ */
39032
+ listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommitResponseList>>;
39007
39033
  /**
39008
39034
  * This will return all the custom domains and Qovery autogenerated domain for the given container
39009
39035
  * @summary List all URLs of the container
@@ -39052,6 +39078,16 @@ export declare const ContainerMainCallsApiFactory: (configuration?: Configuratio
39052
39078
  * @throws {RequiredError}
39053
39079
  */
39054
39080
  getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status>;
39081
+ /**
39082
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
39083
+ * @summary List last container commits
39084
+ * @param {string} containerId Container ID
39085
+ * @param {string} [startId] Starting point after which to return results
39086
+ * @param {string} [gitCommitId] Git Commit ID
39087
+ * @param {*} [options] Override http request option.
39088
+ * @throws {RequiredError}
39089
+ */
39090
+ listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommitResponseList>;
39055
39091
  /**
39056
39092
  * This will return all the custom domains and Qovery autogenerated domain for the given container
39057
39093
  * @summary List all URLs of the container
@@ -39106,6 +39142,17 @@ export declare class ContainerMainCallsApi extends BaseAPI {
39106
39142
  * @memberof ContainerMainCallsApi
39107
39143
  */
39108
39144
  getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Status, any, {}, any>>;
39145
+ /**
39146
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
39147
+ * @summary List last container commits
39148
+ * @param {string} containerId Container ID
39149
+ * @param {string} [startId] Starting point after which to return results
39150
+ * @param {string} [gitCommitId] Git Commit ID
39151
+ * @param {*} [options] Override http request option.
39152
+ * @throws {RequiredError}
39153
+ * @memberof ContainerMainCallsApi
39154
+ */
39155
+ listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommitResponseList, any, {}, any>>;
39109
39156
  /**
39110
39157
  * This will return all the custom domains and Qovery autogenerated domain for the given container
39111
39158
  * @summary List all URLs of the container
@@ -39681,7 +39728,7 @@ export declare const ContainersApiAxiosParamCreator: (configuration?: Configurat
39681
39728
  */
39682
39729
  cloneContainer: (containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39683
39730
  /**
39684
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39731
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39685
39732
  * @summary Create a container
39686
39733
  * @param {string} environmentId Environment ID
39687
39734
  * @param {ContainerRequest} [containerRequest]
@@ -39755,7 +39802,7 @@ export declare const ContainersApiFp: (configuration?: Configuration) => {
39755
39802
  */
39756
39803
  cloneContainer(containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContainerResponse>>;
39757
39804
  /**
39758
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39805
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39759
39806
  * @summary Create a container
39760
39807
  * @param {string} environmentId Environment ID
39761
39808
  * @param {ContainerRequest} [containerRequest]
@@ -39829,7 +39876,7 @@ export declare const ContainersApiFactory: (configuration?: Configuration, baseP
39829
39876
  */
39830
39877
  cloneContainer(containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<ContainerResponse>;
39831
39878
  /**
39832
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39879
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39833
39880
  * @summary Create a container
39834
39881
  * @param {string} environmentId Environment ID
39835
39882
  * @param {ContainerRequest} [containerRequest]
@@ -39907,7 +39954,7 @@ export declare class ContainersApi extends BaseAPI {
39907
39954
  */
39908
39955
  cloneContainer(containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ContainerResponse, any, {}, any>>;
39909
39956
  /**
39910
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39957
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39911
39958
  * @summary Create a container
39912
39959
  * @param {string} environmentId Environment ID
39913
39960
  * @param {ContainerRequest} [containerRequest]
package/dist/api.js CHANGED
@@ -20121,6 +20121,48 @@ const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
20121
20121
  options: localVarRequestOptions,
20122
20122
  };
20123
20123
  }),
20124
+ /**
20125
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
20126
+ * @summary List last container commits
20127
+ * @param {string} containerId Container ID
20128
+ * @param {string} [startId] Starting point after which to return results
20129
+ * @param {string} [gitCommitId] Git Commit ID
20130
+ * @param {*} [options] Override http request option.
20131
+ * @throws {RequiredError}
20132
+ */
20133
+ listContainerCommit: (containerId_1, startId_1, gitCommitId_1, ...args_1) => __awaiter(this, [containerId_1, startId_1, gitCommitId_1, ...args_1], void 0, function* (containerId, startId, gitCommitId, options = {}) {
20134
+ // verify required parameter 'containerId' is not null or undefined
20135
+ (0, common_1.assertParamExists)('listContainerCommit', 'containerId', containerId);
20136
+ const localVarPath = `/container/{containerId}/commit`
20137
+ .replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
20138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20139
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20140
+ let baseOptions;
20141
+ if (configuration) {
20142
+ baseOptions = configuration.baseOptions;
20143
+ }
20144
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20145
+ const localVarHeaderParameter = {};
20146
+ const localVarQueryParameter = {};
20147
+ // authentication ApiKeyAuth required
20148
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20149
+ // authentication bearerAuth required
20150
+ // http bearer authentication required
20151
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
20152
+ if (startId !== undefined) {
20153
+ localVarQueryParameter['startId'] = startId;
20154
+ }
20155
+ if (gitCommitId !== undefined) {
20156
+ localVarQueryParameter['gitCommitId'] = gitCommitId;
20157
+ }
20158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20161
+ return {
20162
+ url: (0, common_1.toPathString)(localVarUrlObj),
20163
+ options: localVarRequestOptions,
20164
+ };
20165
+ }),
20124
20166
  /**
20125
20167
  * This will return all the custom domains and Qovery autogenerated domain for the given container
20126
20168
  * @summary List all URLs of the container
@@ -20231,6 +20273,24 @@ const ContainerMainCallsApiFp = function (configuration) {
20231
20273
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20232
20274
  });
20233
20275
  },
20276
+ /**
20277
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
20278
+ * @summary List last container commits
20279
+ * @param {string} containerId Container ID
20280
+ * @param {string} [startId] Starting point after which to return results
20281
+ * @param {string} [gitCommitId] Git Commit ID
20282
+ * @param {*} [options] Override http request option.
20283
+ * @throws {RequiredError}
20284
+ */
20285
+ listContainerCommit(containerId, startId, gitCommitId, options) {
20286
+ return __awaiter(this, void 0, void 0, function* () {
20287
+ var _a, _b, _c;
20288
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerCommit(containerId, startId, gitCommitId, options);
20289
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20290
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ContainerMainCallsApi.listContainerCommit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20291
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20292
+ });
20293
+ },
20234
20294
  /**
20235
20295
  * This will return all the custom domains and Qovery autogenerated domain for the given container
20236
20296
  * @summary List all URLs of the container
@@ -20299,6 +20359,18 @@ const ContainerMainCallsApiFactory = function (configuration, basePath, axios) {
20299
20359
  getContainerStatus(containerId, options) {
20300
20360
  return localVarFp.getContainerStatus(containerId, options).then((request) => request(axios, basePath));
20301
20361
  },
20362
+ /**
20363
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
20364
+ * @summary List last container commits
20365
+ * @param {string} containerId Container ID
20366
+ * @param {string} [startId] Starting point after which to return results
20367
+ * @param {string} [gitCommitId] Git Commit ID
20368
+ * @param {*} [options] Override http request option.
20369
+ * @throws {RequiredError}
20370
+ */
20371
+ listContainerCommit(containerId, startId, gitCommitId, options) {
20372
+ return localVarFp.listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(axios, basePath));
20373
+ },
20302
20374
  /**
20303
20375
  * This will return all the custom domains and Qovery autogenerated domain for the given container
20304
20376
  * @summary List all URLs of the container
@@ -20365,6 +20437,19 @@ class ContainerMainCallsApi extends base_1.BaseAPI {
20365
20437
  getContainerStatus(containerId, options) {
20366
20438
  return (0, exports.ContainerMainCallsApiFp)(this.configuration).getContainerStatus(containerId, options).then((request) => request(this.axios, this.basePath));
20367
20439
  }
20440
+ /**
20441
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
20442
+ * @summary List last container commits
20443
+ * @param {string} containerId Container ID
20444
+ * @param {string} [startId] Starting point after which to return results
20445
+ * @param {string} [gitCommitId] Git Commit ID
20446
+ * @param {*} [options] Override http request option.
20447
+ * @throws {RequiredError}
20448
+ * @memberof ContainerMainCallsApi
20449
+ */
20450
+ listContainerCommit(containerId, startId, gitCommitId, options) {
20451
+ return (0, exports.ContainerMainCallsApiFp)(this.configuration).listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(this.axios, this.basePath));
20452
+ }
20368
20453
  /**
20369
20454
  * This will return all the custom domains and Qovery autogenerated domain for the given container
20370
20455
  * @summary List all URLs of the container
@@ -21559,7 +21644,7 @@ const ContainersApiAxiosParamCreator = function (configuration) {
21559
21644
  };
21560
21645
  }),
21561
21646
  /**
21562
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
21647
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
21563
21648
  * @summary Create a container
21564
21649
  * @param {string} environmentId Environment ID
21565
21650
  * @param {ContainerRequest} [containerRequest]
@@ -21813,7 +21898,7 @@ const ContainersApiFp = function (configuration) {
21813
21898
  });
21814
21899
  },
21815
21900
  /**
21816
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
21901
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
21817
21902
  * @summary Create a container
21818
21903
  * @param {string} environmentId Environment ID
21819
21904
  * @param {ContainerRequest} [containerRequest]
@@ -21943,7 +22028,7 @@ const ContainersApiFactory = function (configuration, basePath, axios) {
21943
22028
  return localVarFp.cloneContainer(containerId, cloneServiceRequest, options).then((request) => request(axios, basePath));
21944
22029
  },
21945
22030
  /**
21946
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
22031
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
21947
22032
  * @summary Create a container
21948
22033
  * @param {string} environmentId Environment ID
21949
22034
  * @param {ContainerRequest} [containerRequest]
@@ -22039,7 +22124,7 @@ class ContainersApi extends base_1.BaseAPI {
22039
22124
  return (0, exports.ContainersApiFp)(this.configuration).cloneContainer(containerId, cloneServiceRequest, options).then((request) => request(this.axios, this.basePath));
22040
22125
  }
22041
22126
  /**
22042
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
22127
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
22043
22128
  * @summary Create a container
22044
22129
  * @param {string} environmentId Environment ID
22045
22130
  * @param {ContainerRequest} [containerRequest]
package/dist/esm/api.d.ts CHANGED
@@ -10186,13 +10186,13 @@ export interface ContainerDeployRequest {
10186
10186
  'git_commit_id'?: string | null;
10187
10187
  }
10188
10188
  /**
10189
- * The Git repository and the Dockerfile that Qovery builds into the container image.
10189
+ * The Git repository and the Dockerfile that Qovery builds into the container image. `owner` and `name` are not needed: the repository is read from `url`. They are still accepted, and ignored.
10190
10190
  * @export
10191
10191
  * @interface ContainerGitRepositorySourceRequest
10192
10192
  */
10193
10193
  export interface ContainerGitRepositorySourceRequest {
10194
10194
  /**
10195
- * application git repository URL
10195
+ * Git repository URL
10196
10196
  * @type {string}
10197
10197
  * @memberof ContainerGitRepositorySourceRequest
10198
10198
  */
@@ -10204,7 +10204,7 @@ export interface ContainerGitRepositorySourceRequest {
10204
10204
  */
10205
10205
  'branch'?: string;
10206
10206
  /**
10207
- * indicates the root path of the application.
10207
+ * indicates the root path in the repository.
10208
10208
  * @type {string}
10209
10209
  * @memberof ContainerGitRepositorySourceRequest
10210
10210
  */
@@ -10970,13 +10970,13 @@ export interface ContainerRequest {
10970
10970
  */
10971
10971
  'healthchecks': Healthcheck;
10972
10972
  /**
10973
- * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment. On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a switch to `git_repository`, it is set to false.
10973
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment. On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a create from, or a switch to, `git_repository`, it is set to false.
10974
10974
  * @type {boolean}
10975
10975
  * @memberof ContainerRequest
10976
10976
  */
10977
10977
  'auto_preview'?: boolean;
10978
10978
  /**
10979
- * Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a switch to `git_repository`, it is set to false.
10979
+ * Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments On a container with a Git repository source, it must be false or not specified: `true` returns 400. When not specified on a create from, or a switch to, `git_repository`, it is set to false.
10980
10980
  * @type {boolean}
10981
10981
  * @memberof ContainerRequest
10982
10982
  */
@@ -11006,14 +11006,14 @@ export interface ContainerRequest {
11006
11006
  */
11007
11007
  'autoscaling'?: AutoscalingPolicyRequest;
11008
11008
  /**
11009
- * Build settings of a container with a Git repository source (`source.git_repository`). They apply only to the build of its image. - When sent, it replaces all stored values: omitted properties take their defaults, they are not merged. - On update, when not sent, the stored values are kept. - On a switch to `git_repository` without it, the defaults of a new application are used. - Sending it when the container keeps, or switches to, an image source returns 400. This includes create.
11009
+ * Build settings of a container with a Git repository source (`source.git_repository`). They apply only to the build of its image. - When sent, it replaces all stored values: omitted properties take their defaults, they are not merged. - On update, when not sent, the stored values are kept. - On a create from, or a switch to, `git_repository` without it, the defaults of a new application are used. - Sending it when the container is created with, keeps, or switches to, an image source returns 400.
11010
11010
  * @type {BuildSettings}
11011
11011
  * @memberof ContainerRequest
11012
11012
  */
11013
11013
  'build_settings'?: BuildSettings;
11014
11014
  }
11015
11015
  /**
11016
- * `registry`, `image_name` and `tag` always hold the image this container runs: - with an image source, the configured image; - with a Git repository source, the image last deployed. Until the first successful deployment from Git, this is the image from before the switch to Git. After it, this is the built image in the cluster\'s registry, with its build tag. `source` says where the image comes from.
11016
+ * `registry`, `image_name` and `tag` always hold the image this container runs: - with an image source, the configured image; - with a Git repository source, the image last deployed. Until the first successful deployment from Git, this is the image from before the switch to Git; a container created from Git has none yet, so it reports the cluster\'s build registry, the repository name and the tag `pending-first-build`. After it, this is the built image in the cluster\'s registry, with its build tag. `source` says where the image comes from.
11017
11017
  * @export
11018
11018
  * @interface ContainerResponse
11019
11019
  */
@@ -11257,7 +11257,7 @@ export interface ContainerSource {
11257
11257
  }
11258
11258
  /**
11259
11259
  * @type ContainerSourceRequest
11260
- * Where the container image comes from. Send exactly one of `image` or `git_repository`; both, or neither, returns 400. A `null` `image` or `git_repository` counts as not sent. - `image`: an image from a container registry, like the flat `registry_id`, `image_name` and `tag` fields. - `git_repository`: a Git repository with a Dockerfile. Qovery builds the image from the deployed commit. Accepted on update (`PUT /container/{containerId}`) only: sending it on create returns 400. Switching the source keeps the same container: its id, Kubernetes names, volumes and built-in variables. The switch does not deploy; the next deployment uses the new source. Rules: - On update (`PUT /container/{containerId}`), `source` is ignored when it repeats the stored source, and the flat `registry_id`, `image_name` and `tag` fields are ignored when every one sent equals the image the container runs (the `registry.id`, `image_name` and `tag` that GET returns). A body built from the GET response is accepted as is; only the side the client changed is applied. - On update, `source` and the flat fields both asking for a change returns 400, unless both name the same image. This includes a `source.git_repository` change sent with changed flat fields. On create, sending `source` together with the flat fields still returns 400. - On update of a container with an image source, `source.image.registry_id` may be omitted: the stored registry is kept. Switching a container with a Git repository source back to an image, and create, require it. - When `source` is not sent, the stored source is kept. Flat fields never switch the source. - On a container with a Git repository source, flat fields equal to the `registry.id`, `image_name` and `tag` that GET returns are accepted and change nothing; different values return 400 unless `source.image` asks for the same image. A deployment that finishes between the GET and the PUT changes these values: get the container again and retry. Send `source.image` to switch back to an image. - A `git_repository` source requires `auto_deploy` and `auto_preview` to be false or not specified: 400 otherwise. When not specified on a switch to `git_repository`, both are set to false.
11260
+ * Where the container image comes from. Send exactly one of `image` or `git_repository`; both, or neither, returns 400. A `null` `image` or `git_repository` counts as not sent. - `image`: an image from a container registry, like the flat `registry_id`, `image_name` and `tag` fields. - `git_repository`: a Git repository with a Dockerfile. Qovery builds the image from the deployed commit. Accepted on create (`POST /environment/{environmentId}/container`) and on update (`PUT /container/{containerId}`). Building from Git needs Qovery engine v1.417.0 or later on the cluster: on an older engine, the deployment fails. Switching the source keeps the same container: its id, Kubernetes names, volumes and built-in variables. The switch does not deploy; the next deployment uses the new source. A container with a Git repository source has three more built-in variables. `<ID>` is the identifier its other built-in variables use, as in `QOVERY_CONTAINER_<ID>_HOST_INTERNAL`: - `QOVERY_CONTAINER_<ID>_GIT_COMMIT_ID`: the deployed commit; - `QOVERY_CONTAINER_<ID>_GIT_BRANCH`: the branch configured on the source; - `QOVERY_CONTAINER_<ID>_GIT_REPOSITORY_URL`: the repository URL, without credentials, query or fragment. They are added when missing, when the container is created from, or switched to, a Git repository. A switch back to an image keeps them, with empty values. Rules: - On update (`PUT /container/{containerId}`), `source` is ignored when it repeats the stored source, and the flat `registry_id`, `image_name` and `tag` fields are ignored when every one sent equals the image the container runs (the `registry.id`, `image_name` and `tag` that GET returns). A body built from the GET response is accepted as is; only the side the client changed is applied. - On update, `source` and the flat fields both asking for a change returns 400, unless both name the same image. This includes a `source.git_repository` change sent with changed flat fields. On create, sending `source` together with the flat fields still returns 400. - On update of a container with an image source, `source.image.registry_id` may be omitted: the stored registry is kept. Switching a container with a Git repository source back to an image, and create, require it. - When `source` is not sent, the stored source is kept. Flat fields never switch the source. - On a container with a Git repository source, flat fields equal to the `registry.id`, `image_name` and `tag` that GET returns are accepted and change nothing; different values return 400 unless `source.image` asks for the same image. A deployment that finishes between the GET and the PUT changes these values: get the container again and retry. Send `source.image` to switch back to an image. - A `git_repository` source requires `auto_deploy` and `auto_preview` to be false or not specified: 400 otherwise. When not specified on a create from, or a switch to, `git_repository`, both are set to false.
11261
11261
  * @export
11262
11262
  */
11263
11263
  export type ContainerSourceRequest = ContainerSourceRequestOneOf | ContainerSourceRequestOneOf1;
@@ -12677,11 +12677,17 @@ export interface DeployAllRequestContainersInner {
12677
12677
  */
12678
12678
  'id': string;
12679
12679
  /**
12680
- * new tag for the container. Can be empty only if the service has been already deployed (in this case the service version won\'t be changed) For a container with a Git repository source: - an absent or empty `image_tag`, or one equal to the `tag` that `GET /container/{containerId}` returns, deploys the container at its stored commit; - a different `image_tag` returns 400.
12680
+ * new tag for the container. Can be empty only if the service has been already deployed (in this case the service version won\'t be changed) For a container with a Git repository source: - an absent or empty `image_tag`, or one equal to the `tag` that `GET /container/{containerId}` returns, deploys the container at `git_commit_id`, or at its stored commit when `git_commit_id` is absent or empty; - a different `image_tag` returns 400.
12681
12681
  * @type {string}
12682
12682
  * @memberof DeployAllRequestContainersInner
12683
12683
  */
12684
12684
  'image_tag'?: string;
12685
+ /**
12686
+ * Commit to deploy, for a container with a Git repository source. When absent or empty, the container\'s stored commit is deployed. On a container with a Git repository source, a value that is not a 40-character SHA-1 commit id returns 400. Ignored for a container with an image source.
12687
+ * @type {string}
12688
+ * @memberof DeployAllRequestContainersInner
12689
+ */
12690
+ 'git_commit_id'?: string;
12685
12691
  }
12686
12692
  /**
12687
12693
  *
@@ -38956,6 +38962,16 @@ export declare const ContainerMainCallsApiAxiosParamCreator: (configuration?: Co
38956
38962
  * @throws {RequiredError}
38957
38963
  */
38958
38964
  getContainerStatus: (containerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38965
+ /**
38966
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
38967
+ * @summary List last container commits
38968
+ * @param {string} containerId Container ID
38969
+ * @param {string} [startId] Starting point after which to return results
38970
+ * @param {string} [gitCommitId] Git Commit ID
38971
+ * @param {*} [options] Override http request option.
38972
+ * @throws {RequiredError}
38973
+ */
38974
+ listContainerCommit: (containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38959
38975
  /**
38960
38976
  * This will return all the custom domains and Qovery autogenerated domain for the given container
38961
38977
  * @summary List all URLs of the container
@@ -39004,6 +39020,16 @@ export declare const ContainerMainCallsApiFp: (configuration?: Configuration) =>
39004
39020
  * @throws {RequiredError}
39005
39021
  */
39006
39022
  getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>>;
39023
+ /**
39024
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
39025
+ * @summary List last container commits
39026
+ * @param {string} containerId Container ID
39027
+ * @param {string} [startId] Starting point after which to return results
39028
+ * @param {string} [gitCommitId] Git Commit ID
39029
+ * @param {*} [options] Override http request option.
39030
+ * @throws {RequiredError}
39031
+ */
39032
+ listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommitResponseList>>;
39007
39033
  /**
39008
39034
  * This will return all the custom domains and Qovery autogenerated domain for the given container
39009
39035
  * @summary List all URLs of the container
@@ -39052,6 +39078,16 @@ export declare const ContainerMainCallsApiFactory: (configuration?: Configuratio
39052
39078
  * @throws {RequiredError}
39053
39079
  */
39054
39080
  getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status>;
39081
+ /**
39082
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
39083
+ * @summary List last container commits
39084
+ * @param {string} containerId Container ID
39085
+ * @param {string} [startId] Starting point after which to return results
39086
+ * @param {string} [gitCommitId] Git Commit ID
39087
+ * @param {*} [options] Override http request option.
39088
+ * @throws {RequiredError}
39089
+ */
39090
+ listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommitResponseList>;
39055
39091
  /**
39056
39092
  * This will return all the custom domains and Qovery autogenerated domain for the given container
39057
39093
  * @summary List all URLs of the container
@@ -39106,6 +39142,17 @@ export declare class ContainerMainCallsApi extends BaseAPI {
39106
39142
  * @memberof ContainerMainCallsApi
39107
39143
  */
39108
39144
  getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Status, any, {}, any>>;
39145
+ /**
39146
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
39147
+ * @summary List last container commits
39148
+ * @param {string} containerId Container ID
39149
+ * @param {string} [startId] Starting point after which to return results
39150
+ * @param {string} [gitCommitId] Git Commit ID
39151
+ * @param {*} [options] Override http request option.
39152
+ * @throws {RequiredError}
39153
+ * @memberof ContainerMainCallsApi
39154
+ */
39155
+ listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommitResponseList, any, {}, any>>;
39109
39156
  /**
39110
39157
  * This will return all the custom domains and Qovery autogenerated domain for the given container
39111
39158
  * @summary List all URLs of the container
@@ -39681,7 +39728,7 @@ export declare const ContainersApiAxiosParamCreator: (configuration?: Configurat
39681
39728
  */
39682
39729
  cloneContainer: (containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39683
39730
  /**
39684
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39731
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39685
39732
  * @summary Create a container
39686
39733
  * @param {string} environmentId Environment ID
39687
39734
  * @param {ContainerRequest} [containerRequest]
@@ -39755,7 +39802,7 @@ export declare const ContainersApiFp: (configuration?: Configuration) => {
39755
39802
  */
39756
39803
  cloneContainer(containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContainerResponse>>;
39757
39804
  /**
39758
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39805
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39759
39806
  * @summary Create a container
39760
39807
  * @param {string} environmentId Environment ID
39761
39808
  * @param {ContainerRequest} [containerRequest]
@@ -39829,7 +39876,7 @@ export declare const ContainersApiFactory: (configuration?: Configuration, baseP
39829
39876
  */
39830
39877
  cloneContainer(containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<ContainerResponse>;
39831
39878
  /**
39832
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39879
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39833
39880
  * @summary Create a container
39834
39881
  * @param {string} environmentId Environment ID
39835
39882
  * @param {ContainerRequest} [containerRequest]
@@ -39907,7 +39954,7 @@ export declare class ContainersApi extends BaseAPI {
39907
39954
  */
39908
39955
  cloneContainer(containerId: string, cloneServiceRequest?: CloneServiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ContainerResponse, any, {}, any>>;
39909
39956
  /**
39910
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
39957
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
39911
39958
  * @summary Create a container
39912
39959
  * @param {string} environmentId Environment ID
39913
39960
  * @param {ContainerRequest} [containerRequest]
package/dist/esm/api.js CHANGED
@@ -19990,6 +19990,48 @@ export const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
19990
19990
  options: localVarRequestOptions,
19991
19991
  };
19992
19992
  }),
19993
+ /**
19994
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
19995
+ * @summary List last container commits
19996
+ * @param {string} containerId Container ID
19997
+ * @param {string} [startId] Starting point after which to return results
19998
+ * @param {string} [gitCommitId] Git Commit ID
19999
+ * @param {*} [options] Override http request option.
20000
+ * @throws {RequiredError}
20001
+ */
20002
+ listContainerCommit: (containerId_1, startId_1, gitCommitId_1, ...args_1) => __awaiter(this, [containerId_1, startId_1, gitCommitId_1, ...args_1], void 0, function* (containerId, startId, gitCommitId, options = {}) {
20003
+ // verify required parameter 'containerId' is not null or undefined
20004
+ assertParamExists('listContainerCommit', 'containerId', containerId);
20005
+ const localVarPath = `/container/{containerId}/commit`
20006
+ .replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
20007
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20008
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20009
+ let baseOptions;
20010
+ if (configuration) {
20011
+ baseOptions = configuration.baseOptions;
20012
+ }
20013
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20014
+ const localVarHeaderParameter = {};
20015
+ const localVarQueryParameter = {};
20016
+ // authentication ApiKeyAuth required
20017
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20018
+ // authentication bearerAuth required
20019
+ // http bearer authentication required
20020
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
20021
+ if (startId !== undefined) {
20022
+ localVarQueryParameter['startId'] = startId;
20023
+ }
20024
+ if (gitCommitId !== undefined) {
20025
+ localVarQueryParameter['gitCommitId'] = gitCommitId;
20026
+ }
20027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20029
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20030
+ return {
20031
+ url: toPathString(localVarUrlObj),
20032
+ options: localVarRequestOptions,
20033
+ };
20034
+ }),
19993
20035
  /**
19994
20036
  * This will return all the custom domains and Qovery autogenerated domain for the given container
19995
20037
  * @summary List all URLs of the container
@@ -20099,6 +20141,24 @@ export const ContainerMainCallsApiFp = function (configuration) {
20099
20141
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20100
20142
  });
20101
20143
  },
20144
+ /**
20145
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
20146
+ * @summary List last container commits
20147
+ * @param {string} containerId Container ID
20148
+ * @param {string} [startId] Starting point after which to return results
20149
+ * @param {string} [gitCommitId] Git Commit ID
20150
+ * @param {*} [options] Override http request option.
20151
+ * @throws {RequiredError}
20152
+ */
20153
+ listContainerCommit(containerId, startId, gitCommitId, options) {
20154
+ return __awaiter(this, void 0, void 0, function* () {
20155
+ var _a, _b, _c;
20156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerCommit(containerId, startId, gitCommitId, options);
20157
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20158
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ContainerMainCallsApi.listContainerCommit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20160
+ });
20161
+ },
20102
20162
  /**
20103
20163
  * This will return all the custom domains and Qovery autogenerated domain for the given container
20104
20164
  * @summary List all URLs of the container
@@ -20166,6 +20226,18 @@ export const ContainerMainCallsApiFactory = function (configuration, basePath, a
20166
20226
  getContainerStatus(containerId, options) {
20167
20227
  return localVarFp.getContainerStatus(containerId, options).then((request) => request(axios, basePath));
20168
20228
  },
20229
+ /**
20230
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
20231
+ * @summary List last container commits
20232
+ * @param {string} containerId Container ID
20233
+ * @param {string} [startId] Starting point after which to return results
20234
+ * @param {string} [gitCommitId] Git Commit ID
20235
+ * @param {*} [options] Override http request option.
20236
+ * @throws {RequiredError}
20237
+ */
20238
+ listContainerCommit(containerId, startId, gitCommitId, options) {
20239
+ return localVarFp.listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(axios, basePath));
20240
+ },
20169
20241
  /**
20170
20242
  * This will return all the custom domains and Qovery autogenerated domain for the given container
20171
20243
  * @summary List all URLs of the container
@@ -20231,6 +20303,19 @@ export class ContainerMainCallsApi extends BaseAPI {
20231
20303
  getContainerStatus(containerId, options) {
20232
20304
  return ContainerMainCallsApiFp(this.configuration).getContainerStatus(containerId, options).then((request) => request(this.axios, this.basePath));
20233
20305
  }
20306
+ /**
20307
+ * Returns the last 100 commits of the branch of the Git repository the container builds from, as `listApplicationCommit` and `listJobCommit` do for applications and jobs. `startId` and `gitCommitId` are accepted and ignored. Returns 400 when the container has an image source. Returns 404 when the Git provider cannot list the commits.
20308
+ * @summary List last container commits
20309
+ * @param {string} containerId Container ID
20310
+ * @param {string} [startId] Starting point after which to return results
20311
+ * @param {string} [gitCommitId] Git Commit ID
20312
+ * @param {*} [options] Override http request option.
20313
+ * @throws {RequiredError}
20314
+ * @memberof ContainerMainCallsApi
20315
+ */
20316
+ listContainerCommit(containerId, startId, gitCommitId, options) {
20317
+ return ContainerMainCallsApiFp(this.configuration).listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(this.axios, this.basePath));
20318
+ }
20234
20319
  /**
20235
20320
  * This will return all the custom domains and Qovery autogenerated domain for the given container
20236
20321
  * @summary List all URLs of the container
@@ -21416,7 +21501,7 @@ export const ContainersApiAxiosParamCreator = function (configuration) {
21416
21501
  };
21417
21502
  }),
21418
21503
  /**
21419
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
21504
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
21420
21505
  * @summary Create a container
21421
21506
  * @param {string} environmentId Environment ID
21422
21507
  * @param {ContainerRequest} [containerRequest]
@@ -21669,7 +21754,7 @@ export const ContainersApiFp = function (configuration) {
21669
21754
  });
21670
21755
  },
21671
21756
  /**
21672
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
21757
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
21673
21758
  * @summary Create a container
21674
21759
  * @param {string} environmentId Environment ID
21675
21760
  * @param {ContainerRequest} [containerRequest]
@@ -21798,7 +21883,7 @@ export const ContainersApiFactory = function (configuration, basePath, axios) {
21798
21883
  return localVarFp.cloneContainer(containerId, cloneServiceRequest, options).then((request) => request(axios, basePath));
21799
21884
  },
21800
21885
  /**
21801
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
21886
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
21802
21887
  * @summary Create a container
21803
21888
  * @param {string} environmentId Environment ID
21804
21889
  * @param {ContainerRequest} [containerRequest]
@@ -21893,7 +21978,7 @@ export class ContainersApi extends BaseAPI {
21893
21978
  return ContainersApiFp(this.configuration).cloneContainer(containerId, cloneServiceRequest, options).then((request) => request(this.axios, this.basePath));
21894
21979
  }
21895
21980
  /**
21896
- * A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image`. Returns 400 when: - `source.git_repository` is sent: a Git repository source can only be set on update, with `PUT /container/{containerId}`; - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `build_settings` is sent.
21981
+ * A container is created from an image or from a Git repository: - image: send `registry_id`, `image_name` and `tag`, or `source.image`; - Git repository: send `source.git_repository`, and optionally `build_settings`. The repository, its token, the Dockerfile and the build settings go through the same checks, with the same errors, as a switch to `git_repository` with `PUT /container/{containerId}`. Nothing is created when a check fails. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - `source` is not sent and `registry_id`, `image_name` and `tag` are not all sent; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent; - `build_settings` is sent with an image source; - `source.git_repository` is sent and the environment\'s cluster has no build registry. Returns 404 when the registry in `registry_id` or `source.image.registry_id` does not exist in the environment\'s organization.
21897
21982
  * @summary Create a container
21898
21983
  * @param {string} environmentId Environment ID
21899
21984
  * @param {ContainerRequest} [containerRequest]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.1046",
3
+ "version": "v1.1.1047",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {