From b1b56f8be01c596ab24f16e5bef6f8d96b3bae86 Mon Sep 17 00:00:00 2001 From: "ctjhoa@qovery.com" Date: Fri, 12 Jul 2024 10:24:29 +0200 Subject: [PATCH] feat(COR-720): add icon_uri attribute on services --- openapi.yaml | 73 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 55 insertions(+), 18 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index fed7e883..a3ac09a3 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11091,9 +11091,10 @@ components: - $ref: '#/components/schemas/ServiceStorage' - type: object required: - - healthchecks - - name - environment + - name + - healthchecks + - icon_uri properties: environment: $ref: '#/components/schemas/ReferenceObject' @@ -11167,6 +11168,10 @@ components: $ref: '#/components/schemas/OrganizationAnnotationsGroupResponseList' labels_groups: $ref: '#/components/schemas/OrganizationLabelsGroupResponseList' + icon_uri: + type: string + x-stoplight: + id: b8karc43pdxpu ApplicationDeploymentRestriction: allOf: - $ref: '#/components/schemas/Base' @@ -11515,12 +11520,16 @@ components: description: optional entrypoint when launching container auto_deploy: type: boolean - nullable: true description: Specify if the application will be automatically updated after receiving a new commit. + nullable: true annotations_groups: $ref: '#/components/schemas/ServiceAnnotationsRequestList' labels_groups: $ref: '#/components/schemas/ServiceLabelsRequestList' + icon_uri: + type: string + x-stoplight: + id: om4lw1ulknsrg ApplicationResponseList: type: object properties: @@ -13184,14 +13193,18 @@ components: If not specified, it takes the value of the `auto_preview` property from the associated environment. auto_deploy: type: boolean - nullable: true description: | 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 + nullable: true annotations_groups: $ref: '#/components/schemas/ServiceAnnotationsRequestList' labels_groups: $ref: '#/components/schemas/ServiceLabelsRequestList' + icon_uri: + type: string + x-stoplight: + id: jiypvl6nd63dm ContainerResponse: allOf: - $ref: '#/components/schemas/Base' @@ -13200,15 +13213,16 @@ components: - type: object required: - environment + - maximum_cpu + - maximum_memory - name - - auto_preview - cpu - memory - min_running_instances - max_running_instances - - maximum_cpu - - maximum_memory - healthchecks + - auto_preview + - icon_uri properties: environment: $ref: '#/components/schemas/ReferenceObject' @@ -13273,6 +13287,10 @@ components: $ref: '#/components/schemas/OrganizationAnnotationsGroupResponseList' labels_groups: $ref: '#/components/schemas/OrganizationLabelsGroupResponseList' + icon_uri: + type: string + x-stoplight: + id: o2bdci7ak3bmz ContainerResponseList: type: object properties: @@ -13639,6 +13657,10 @@ components: $ref: '#/components/schemas/ServiceAnnotationsRequestList' labels_groups: $ref: '#/components/schemas/ServiceLabelsRequestList' + icon_uri: + type: string + x-stoplight: + id: ls6yevnhskd5y DatabaseResponseList: type: object properties: @@ -15028,6 +15050,10 @@ components: $ref: '#/components/schemas/ServiceAnnotationsRequestList' labels_groups: $ref: '#/components/schemas/ServiceLabelsRequestList' + icon_uri: + type: string + x-stoplight: + id: k3gangiisgxpc type: object JobResponse: oneOf: @@ -15188,10 +15214,10 @@ components: - type: object required: - name + - auto_deploy - source - - values_override - arguments - - auto_deploy + - values_override properties: name: type: string @@ -15206,23 +15232,21 @@ components: Maximum number of seconds allowed for helm to run before killing it and mark it as failed auto_preview: type: boolean - nullable: true description: | Indicates if the 'environment preview option' is enabled. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called or when a new commit is updated. If not specified, it takes the value of the `auto_preview` property from the associated environment. + nullable: true auto_deploy: type: boolean description: | Specify if the helm will be automatically updated after receiving a new image tag or a new commit according to the source type. source: oneOf: - - type: object - properties: + - properties: git_repository: $ref: '#/components/schemas/HelmGitRepositoryRequest' - - type: object - properties: + - properties: helm_repository: type: object properties: @@ -15237,6 +15261,7 @@ components: chart_version: type: string description: The version of the chart to use + type: object arguments: type: array description: The extra arguments to pass to helm @@ -15292,6 +15317,10 @@ components: content: type: string description: The content of the value file + icon_uri: + type: string + x-stoplight: + id: 117p5u95nwx2p HelmResponse: allOf: - $ref: '#/components/schemas/Base' @@ -15305,6 +15334,7 @@ components: - arguments - allow_cluster_wide_resources - values_override + - icon_uri properties: environment: $ref: '#/components/schemas/ReferenceObject' @@ -15369,7 +15399,6 @@ components: properties: git: $ref: '#/components/schemas/HelmSourceGitResponse' - type: object - x-stoplight: id: 0prdehm6z8pua required: @@ -15377,7 +15406,7 @@ components: properties: repository: $ref: '#/components/schemas/HelmSourceRepositoryResponse' - type: object + type: object arguments: type: array description: The extra arguments to pass to helm @@ -15438,6 +15467,10 @@ components: description: List of path inside your git repository to locate values file. Must start by a / items: type: string + icon_uri: + type: string + x-stoplight: + id: i2pvbugqsldhe HelmResponseList: type: object properties: @@ -17859,6 +17892,7 @@ components: - auto_preview - source - healthchecks + - icon_uri properties: environment: $ref: '#/components/schemas/ReferenceObject' @@ -17914,13 +17948,12 @@ components: properties: image: $ref: '#/components/schemas/ContainerSource' - type: object - required: - docker properties: docker: $ref: '#/components/schemas/JobSourceDockerResponse' - type: object + type: object healthchecks: $ref: '#/components/schemas/Healthcheck' auto_deploy: @@ -17928,6 +17961,10 @@ components: description: | Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the "Auto Deploy job" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments + icon_uri: + type: string + x-stoplight: + id: p1secr7kxozsd HelmGitRepositoryRequest: type: object required: