qovery-typescript-axios 1.1.1046 → 1.1.1048
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 +170 -22
- package/dist/api.d.ts +118 -21
- package/dist/api.js +100 -9
- package/dist/esm/api.d.ts +118 -21
- package/dist/esm/api.js +100 -9
- package/package.json +1 -1
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
|
-
*
|
|
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
|
|
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.
|
|
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
|
|
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}`)
|
|
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
|
*
|
|
@@ -27317,7 +27323,7 @@ export interface SecretResponseList {
|
|
|
27317
27323
|
'results'?: Array<Secret>;
|
|
27318
27324
|
}
|
|
27319
27325
|
/**
|
|
27320
|
-
* Cloud credential of the organization that the cluster runs on, of the same provider as the cluster. This operation only takes and returns its id.
|
|
27326
|
+
* Cloud credential of the organization that the cluster runs on, of the same provider as the cluster; an on-premise credential for the on-premise providers. This operation only takes and returns its id.
|
|
27321
27327
|
* @export
|
|
27322
27328
|
* @interface SelfManagedClusterCredentials
|
|
27323
27329
|
*/
|
|
@@ -27379,7 +27385,45 @@ export interface SelfManagedClusterPlatformSelection {
|
|
|
27379
27385
|
'managedConfig'?: { [key: string]: { [key: string]: any; }; };
|
|
27380
27386
|
}
|
|
27381
27387
|
/**
|
|
27382
|
-
*
|
|
27388
|
+
* Credentials of the registry, checked before anything is created when Qovery can reach the registry; a refused login answers 400. Omit the object for a registry without credentials.
|
|
27389
|
+
* @export
|
|
27390
|
+
* @interface SelfManagedClusterRegistryCredentialsRequest
|
|
27391
|
+
*/
|
|
27392
|
+
export interface SelfManagedClusterRegistryCredentialsRequest {
|
|
27393
|
+
/**
|
|
27394
|
+
*
|
|
27395
|
+
* @type {string}
|
|
27396
|
+
* @memberof SelfManagedClusterRegistryCredentialsRequest
|
|
27397
|
+
*/
|
|
27398
|
+
'username': string;
|
|
27399
|
+
/**
|
|
27400
|
+
*
|
|
27401
|
+
* @type {string}
|
|
27402
|
+
* @memberof SelfManagedClusterRegistryCredentialsRequest
|
|
27403
|
+
*/
|
|
27404
|
+
'password': string;
|
|
27405
|
+
}
|
|
27406
|
+
/**
|
|
27407
|
+
* Generic registry of an on-premise cluster, created as the cluster\'s own registry. Only for the on-premise providers: it answers 400 on AWS, GCP and SCW, whose registry is derived from the cloud credential. Without it the cluster gets an empty generic registry, to configure with the container registry API before the first application deployment. An unknown key next to `url` and `credentials` answers 400.
|
|
27408
|
+
* @export
|
|
27409
|
+
* @interface SelfManagedClusterRegistryRequest
|
|
27410
|
+
*/
|
|
27411
|
+
export interface SelfManagedClusterRegistryRequest {
|
|
27412
|
+
/**
|
|
27413
|
+
* URL of the registry: `http` or `https` scheme, host and optional port only, without user info, path, query or fragment, and not localhost.
|
|
27414
|
+
* @type {string}
|
|
27415
|
+
* @memberof SelfManagedClusterRegistryRequest
|
|
27416
|
+
*/
|
|
27417
|
+
'url': string;
|
|
27418
|
+
/**
|
|
27419
|
+
*
|
|
27420
|
+
* @type {SelfManagedClusterRegistryCredentialsRequest}
|
|
27421
|
+
* @memberof SelfManagedClusterRegistryRequest
|
|
27422
|
+
*/
|
|
27423
|
+
'credentials'?: SelfManagedClusterRegistryCredentialsRequest;
|
|
27424
|
+
}
|
|
27425
|
+
/**
|
|
27426
|
+
* Registry of the cluster. On AWS, GCP and Scaleway it is derived from the cloud credential and region: ECR, Artifact Registry or Scaleway Container Registry. On an on-premise provider it is the generic registry given in the request, or an empty generic registry.
|
|
27383
27427
|
* @export
|
|
27384
27428
|
* @interface SelfManagedClusterRegistryResponse
|
|
27385
27429
|
*/
|
|
@@ -27418,13 +27462,13 @@ export interface SelfManagedClusterRequest {
|
|
|
27418
27462
|
*/
|
|
27419
27463
|
'production'?: boolean;
|
|
27420
27464
|
/**
|
|
27421
|
-
* Cloud provider of the cluster. The cluster kind is EKS_SELF_MANAGED on AWS, GKE_SELF_MANAGED on GCP and SCW_SELF_MANAGED on SCW.
|
|
27465
|
+
* Cloud provider of the cluster. The cluster kind is EKS_SELF_MANAGED on AWS, GKE_SELF_MANAGED on GCP and SCW_SELF_MANAGED on SCW. ON_PREMISE, HETZNER, OVH, CIVO, ORACLE and IBM are the on-premise providers, for any other Kubernetes: the cluster kind is SELF_MANAGED. They are not generally available yet and answer 400 outside a short list of Qovery test organizations.
|
|
27422
27466
|
* @type {string}
|
|
27423
27467
|
* @memberof SelfManagedClusterRequest
|
|
27424
27468
|
*/
|
|
27425
27469
|
'provider': SelfManagedClusterRequestProviderEnum;
|
|
27426
27470
|
/**
|
|
27427
|
-
* Region of the provider known to Qovery; a zone such as `fr-par-1` on Scaleway.
|
|
27471
|
+
* Region of the provider known to Qovery; a zone such as `fr-par-1` on Scaleway; `on-premise` for the on-premise providers.
|
|
27428
27472
|
* @type {string}
|
|
27429
27473
|
* @memberof SelfManagedClusterRequest
|
|
27430
27474
|
*/
|
|
@@ -27447,12 +27491,24 @@ export interface SelfManagedClusterRequest {
|
|
|
27447
27491
|
* @memberof SelfManagedClusterRequest
|
|
27448
27492
|
*/
|
|
27449
27493
|
'clusterInputs'?: { [key: string]: { [key: string]: string; }; };
|
|
27494
|
+
/**
|
|
27495
|
+
*
|
|
27496
|
+
* @type {SelfManagedClusterRegistryRequest}
|
|
27497
|
+
* @memberof SelfManagedClusterRequest
|
|
27498
|
+
*/
|
|
27499
|
+
'registry'?: SelfManagedClusterRegistryRequest;
|
|
27450
27500
|
}
|
|
27451
27501
|
|
|
27452
27502
|
export const SelfManagedClusterRequestProviderEnum = {
|
|
27453
27503
|
AWS: 'AWS',
|
|
27454
27504
|
GCP: 'GCP',
|
|
27455
|
-
SCW: 'SCW'
|
|
27505
|
+
SCW: 'SCW',
|
|
27506
|
+
ON_PREMISE: 'ON_PREMISE',
|
|
27507
|
+
HETZNER: 'HETZNER',
|
|
27508
|
+
OVH: 'OVH',
|
|
27509
|
+
CIVO: 'CIVO',
|
|
27510
|
+
ORACLE: 'ORACLE',
|
|
27511
|
+
IBM: 'IBM'
|
|
27456
27512
|
} as const;
|
|
27457
27513
|
|
|
27458
27514
|
export type SelfManagedClusterRequestProviderEnum = typeof SelfManagedClusterRequestProviderEnum[keyof typeof SelfManagedClusterRequestProviderEnum];
|
|
@@ -44815,7 +44871,7 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
44815
44871
|
};
|
|
44816
44872
|
},
|
|
44817
44873
|
/**
|
|
44818
|
-
* Creates a self-managed cluster on an existing AWS, GCP or Scaleway
|
|
44874
|
+
* Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
|
|
44819
44875
|
* @summary Create a self-managed cluster run by the Qovery Operator
|
|
44820
44876
|
* @param {string} organizationId Organization ID
|
|
44821
44877
|
* @param {SelfManagedClusterRequest} selfManagedClusterRequest
|
|
@@ -46681,7 +46737,7 @@ export const ClustersApiFp = function(configuration?: Configuration) {
|
|
|
46681
46737
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
46682
46738
|
},
|
|
46683
46739
|
/**
|
|
46684
|
-
* Creates a self-managed cluster on an existing AWS, GCP or Scaleway
|
|
46740
|
+
* Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
|
|
46685
46741
|
* @summary Create a self-managed cluster run by the Qovery Operator
|
|
46686
46742
|
* @param {string} organizationId Organization ID
|
|
46687
46743
|
* @param {SelfManagedClusterRequest} selfManagedClusterRequest
|
|
@@ -47251,7 +47307,7 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
|
|
|
47251
47307
|
return localVarFp.createCluster(organizationId, clusterRequest, options).then((request) => request(axios, basePath));
|
|
47252
47308
|
},
|
|
47253
47309
|
/**
|
|
47254
|
-
* Creates a self-managed cluster on an existing AWS, GCP or Scaleway
|
|
47310
|
+
* Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
|
|
47255
47311
|
* @summary Create a self-managed cluster run by the Qovery Operator
|
|
47256
47312
|
* @param {string} organizationId Organization ID
|
|
47257
47313
|
* @param {SelfManagedClusterRequest} selfManagedClusterRequest
|
|
@@ -47712,7 +47768,7 @@ export class ClustersApi extends BaseAPI {
|
|
|
47712
47768
|
}
|
|
47713
47769
|
|
|
47714
47770
|
/**
|
|
47715
|
-
* Creates a self-managed cluster on an existing AWS, GCP or Scaleway
|
|
47771
|
+
* Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
|
|
47716
47772
|
* @summary Create a self-managed cluster run by the Qovery Operator
|
|
47717
47773
|
* @param {string} organizationId Organization ID
|
|
47718
47774
|
* @param {SelfManagedClusterRequest} selfManagedClusterRequest
|
|
@@ -50551,6 +50607,57 @@ export const ContainerMainCallsApiAxiosParamCreator = function (configuration?:
|
|
|
50551
50607
|
|
|
50552
50608
|
|
|
50553
50609
|
|
|
50610
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50612
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
50613
|
+
|
|
50614
|
+
return {
|
|
50615
|
+
url: toPathString(localVarUrlObj),
|
|
50616
|
+
options: localVarRequestOptions,
|
|
50617
|
+
};
|
|
50618
|
+
},
|
|
50619
|
+
/**
|
|
50620
|
+
* 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.
|
|
50621
|
+
* @summary List last container commits
|
|
50622
|
+
* @param {string} containerId Container ID
|
|
50623
|
+
* @param {string} [startId] Starting point after which to return results
|
|
50624
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
50625
|
+
* @param {*} [options] Override http request option.
|
|
50626
|
+
* @throws {RequiredError}
|
|
50627
|
+
*/
|
|
50628
|
+
listContainerCommit: async (containerId: string, startId?: string, gitCommitId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50629
|
+
// verify required parameter 'containerId' is not null or undefined
|
|
50630
|
+
assertParamExists('listContainerCommit', 'containerId', containerId)
|
|
50631
|
+
const localVarPath = `/container/{containerId}/commit`
|
|
50632
|
+
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
50633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50634
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50635
|
+
let baseOptions;
|
|
50636
|
+
if (configuration) {
|
|
50637
|
+
baseOptions = configuration.baseOptions;
|
|
50638
|
+
}
|
|
50639
|
+
|
|
50640
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
50641
|
+
const localVarHeaderParameter = {} as any;
|
|
50642
|
+
const localVarQueryParameter = {} as any;
|
|
50643
|
+
|
|
50644
|
+
// authentication ApiKeyAuth required
|
|
50645
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
50646
|
+
|
|
50647
|
+
// authentication bearerAuth required
|
|
50648
|
+
// http bearer authentication required
|
|
50649
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
50650
|
+
|
|
50651
|
+
if (startId !== undefined) {
|
|
50652
|
+
localVarQueryParameter['startId'] = startId;
|
|
50653
|
+
}
|
|
50654
|
+
|
|
50655
|
+
if (gitCommitId !== undefined) {
|
|
50656
|
+
localVarQueryParameter['gitCommitId'] = gitCommitId;
|
|
50657
|
+
}
|
|
50658
|
+
|
|
50659
|
+
|
|
50660
|
+
|
|
50554
50661
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50555
50662
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50556
50663
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -50665,6 +50772,21 @@ export const ContainerMainCallsApiFp = function(configuration?: Configuration) {
|
|
|
50665
50772
|
const localVarOperationServerBasePath = operationServerMap['ContainerMainCallsApi.getContainerStatus']?.[localVarOperationServerIndex]?.url;
|
|
50666
50773
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50667
50774
|
},
|
|
50775
|
+
/**
|
|
50776
|
+
* 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.
|
|
50777
|
+
* @summary List last container commits
|
|
50778
|
+
* @param {string} containerId Container ID
|
|
50779
|
+
* @param {string} [startId] Starting point after which to return results
|
|
50780
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
50781
|
+
* @param {*} [options] Override http request option.
|
|
50782
|
+
* @throws {RequiredError}
|
|
50783
|
+
*/
|
|
50784
|
+
async listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommitResponseList>> {
|
|
50785
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listContainerCommit(containerId, startId, gitCommitId, options);
|
|
50786
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
50787
|
+
const localVarOperationServerBasePath = operationServerMap['ContainerMainCallsApi.listContainerCommit']?.[localVarOperationServerIndex]?.url;
|
|
50788
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50789
|
+
},
|
|
50668
50790
|
/**
|
|
50669
50791
|
* This will return all the custom domains and Qovery autogenerated domain for the given container
|
|
50670
50792
|
* @summary List all URLs of the container
|
|
@@ -50730,6 +50852,18 @@ export const ContainerMainCallsApiFactory = function (configuration?: Configurat
|
|
|
50730
50852
|
getContainerStatus(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
|
|
50731
50853
|
return localVarFp.getContainerStatus(containerId, options).then((request) => request(axios, basePath));
|
|
50732
50854
|
},
|
|
50855
|
+
/**
|
|
50856
|
+
* 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.
|
|
50857
|
+
* @summary List last container commits
|
|
50858
|
+
* @param {string} containerId Container ID
|
|
50859
|
+
* @param {string} [startId] Starting point after which to return results
|
|
50860
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
50861
|
+
* @param {*} [options] Override http request option.
|
|
50862
|
+
* @throws {RequiredError}
|
|
50863
|
+
*/
|
|
50864
|
+
listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommitResponseList> {
|
|
50865
|
+
return localVarFp.listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(axios, basePath));
|
|
50866
|
+
},
|
|
50733
50867
|
/**
|
|
50734
50868
|
* This will return all the custom domains and Qovery autogenerated domain for the given container
|
|
50735
50869
|
* @summary List all URLs of the container
|
|
@@ -50800,6 +50934,20 @@ export class ContainerMainCallsApi extends BaseAPI {
|
|
|
50800
50934
|
return ContainerMainCallsApiFp(this.configuration).getContainerStatus(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
50801
50935
|
}
|
|
50802
50936
|
|
|
50937
|
+
/**
|
|
50938
|
+
* 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.
|
|
50939
|
+
* @summary List last container commits
|
|
50940
|
+
* @param {string} containerId Container ID
|
|
50941
|
+
* @param {string} [startId] Starting point after which to return results
|
|
50942
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
50943
|
+
* @param {*} [options] Override http request option.
|
|
50944
|
+
* @throws {RequiredError}
|
|
50945
|
+
* @memberof ContainerMainCallsApi
|
|
50946
|
+
*/
|
|
50947
|
+
public listContainerCommit(containerId: string, startId?: string, gitCommitId?: string, options?: RawAxiosRequestConfig) {
|
|
50948
|
+
return ContainerMainCallsApiFp(this.configuration).listContainerCommit(containerId, startId, gitCommitId, options).then((request) => request(this.axios, this.basePath));
|
|
50949
|
+
}
|
|
50950
|
+
|
|
50803
50951
|
/**
|
|
50804
50952
|
* This will return all the custom domains and Qovery autogenerated domain for the given container
|
|
50805
50953
|
* @summary List all URLs of the container
|
|
@@ -52087,7 +52235,7 @@ export const ContainersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
52087
52235
|
};
|
|
52088
52236
|
},
|
|
52089
52237
|
/**
|
|
52090
|
-
* A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image
|
|
52238
|
+
* 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
52239
|
* @summary Create a container
|
|
52092
52240
|
* @param {string} environmentId Environment ID
|
|
52093
52241
|
* @param {ContainerRequest} [containerRequest]
|
|
@@ -52379,7 +52527,7 @@ export const ContainersApiFp = function(configuration?: Configuration) {
|
|
|
52379
52527
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
52380
52528
|
},
|
|
52381
52529
|
/**
|
|
52382
|
-
* A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image
|
|
52530
|
+
* 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
52531
|
* @summary Create a container
|
|
52384
52532
|
* @param {string} environmentId Environment ID
|
|
52385
52533
|
* @param {ContainerRequest} [containerRequest]
|
|
@@ -52491,7 +52639,7 @@ export const ContainersApiFactory = function (configuration?: Configuration, bas
|
|
|
52491
52639
|
return localVarFp.cloneContainer(containerId, cloneServiceRequest, options).then((request) => request(axios, basePath));
|
|
52492
52640
|
},
|
|
52493
52641
|
/**
|
|
52494
|
-
* A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image
|
|
52642
|
+
* 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
52643
|
* @summary Create a container
|
|
52496
52644
|
* @param {string} environmentId Environment ID
|
|
52497
52645
|
* @param {ContainerRequest} [containerRequest]
|
|
@@ -52589,7 +52737,7 @@ export class ContainersApi extends BaseAPI {
|
|
|
52589
52737
|
}
|
|
52590
52738
|
|
|
52591
52739
|
/**
|
|
52592
|
-
* A container is created from an image: send `registry_id`, `image_name` and `tag`, or `source.image
|
|
52740
|
+
* 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
52741
|
* @summary Create a container
|
|
52594
52742
|
* @param {string} environmentId Environment ID
|
|
52595
52743
|
* @param {ContainerRequest} [containerRequest]
|