qovery-typescript-axios 1.1.1045 → 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: - `source` cannot be sent together with the flat `registry_id`, `image_name` and `tag` fields: 400. - 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. 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
  *
@@ -50434,7 +50440,7 @@ export const ContainerMainCallsApiAxiosParamCreator = function (configuration?:
50434
50440
  };
50435
50441
  },
50436
50442
  /**
50437
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50443
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50438
50444
  * @summary Edit container
50439
50445
  * @param {string} containerId Container ID
50440
50446
  * @param {ContainerRequest} [containerRequest]
@@ -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};
@@ -50626,7 +50683,7 @@ export const ContainerMainCallsApiFp = function(configuration?: Configuration) {
50626
50683
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50627
50684
  },
50628
50685
  /**
50629
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50686
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50630
50687
  * @summary Edit container
50631
50688
  * @param {string} containerId Container ID
50632
50689
  * @param {ContainerRequest} [containerRequest]
@@ -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
@@ -50700,7 +50772,7 @@ export const ContainerMainCallsApiFactory = function (configuration?: Configurat
50700
50772
  return localVarFp.deleteContainer(containerId, skipReconcile, options).then((request) => request(axios, basePath));
50701
50773
  },
50702
50774
  /**
50703
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50775
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50704
50776
  * @summary Edit container
50705
50777
  * @param {string} containerId Container ID
50706
50778
  * @param {ContainerRequest} [containerRequest]
@@ -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
@@ -50764,7 +50848,7 @@ export class ContainerMainCallsApi extends BaseAPI {
50764
50848
  }
50765
50849
 
50766
50850
  /**
50767
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50851
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
50768
50852
  * @summary Edit container
50769
50853
  * @param {string} containerId Container ID
50770
50854
  * @param {ContainerRequest} [containerRequest]
@@ -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: - `source` cannot be sent together with the flat `registry_id`, `image_name` and `tag` fields: 400. - 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. 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
  *
@@ -38932,7 +38938,7 @@ export declare const ContainerMainCallsApiAxiosParamCreator: (configuration?: Co
38932
38938
  */
38933
38939
  deleteContainer: (containerId: string, skipReconcile?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38934
38940
  /**
38935
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
38941
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
38936
38942
  * @summary Edit container
38937
38943
  * @param {string} containerId Container ID
38938
38944
  * @param {ContainerRequest} [containerRequest]
@@ -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
@@ -38980,7 +38996,7 @@ export declare const ContainerMainCallsApiFp: (configuration?: Configuration) =>
38980
38996
  */
38981
38997
  deleteContainer(containerId: string, skipReconcile?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38982
38998
  /**
38983
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
38999
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
38984
39000
  * @summary Edit container
38985
39001
  * @param {string} containerId Container ID
38986
39002
  * @param {ContainerRequest} [containerRequest]
@@ -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
@@ -39028,7 +39054,7 @@ export declare const ContainerMainCallsApiFactory: (configuration?: Configuratio
39028
39054
  */
39029
39055
  deleteContainer(containerId: string, skipReconcile?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
39030
39056
  /**
39031
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
39057
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
39032
39058
  * @summary Edit container
39033
39059
  * @param {string} containerId Container ID
39034
39060
  * @param {ContainerRequest} [containerRequest]
@@ -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
@@ -39079,7 +39115,7 @@ export declare class ContainerMainCallsApi extends BaseAPI {
39079
39115
  */
39080
39116
  deleteContainer(containerId: string, skipReconcile?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
39081
39117
  /**
39082
- * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. Returns 400 when: - `source` is sent together with `registry_id`, `image_name` or `tag`; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, `source` is not sent, and only some of `registry_id`, `image_name` and `tag` are sent: send all three, or none to keep the image; - the container has a Git repository source and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
39118
+ * - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it. - To switch the container between an image and a Git repository, send `source`. The container keeps its id, Kubernetes names, volumes and built-in variables. When `source` is not sent, the stored source is kept. - A body built from the `GET /container/{containerId}` response is accepted as is: `source` is ignored when it repeats the stored source, and `registry_id`, `image_name` and `tag` when they repeat the image the container runs. Only what changed is applied. To change the image with the flat fields, send all three of `registry_id`, `image_name` and `tag`: GET returns `registry.id`, not `registry_id`. Returns 400 when: - `source` and `registry_id`, `image_name` or `tag` both ask for a change, unless both name the same image; - `source` has both `image` and `git_repository`, or neither; - the container has an image source, only some of `registry_id`, `image_name` and `tag` are sent, and either `source` is not sent or one of them differs from the image the container runs: send all three, or none to keep the image; - the container has a Git repository source, `source.image` is not sent, and `registry_id`, `image_name` or `tag` differ from the `registry.id`, `image_name` and `tag` that `GET /container/{containerId}` returns. A deployment that finishes between the GET and the PUT changes these values, so the PUT gets a 400: get the container again and retry; - `auto_deploy` or `auto_preview` is `true` while `source.git_repository` is sent, or while the container has a Git repository source and `source` is not sent; - `build_settings` is sent while the container keeps, or switches to, an image source.
39083
39119
  * @summary Edit container
39084
39120
  * @param {string} containerId Container ID
39085
39121
  * @param {ContainerRequest} [containerRequest]
@@ -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]