From 3065016b6fcbcb862e3ba4c005eefd1be53176b8 Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Mon, 2 Oct 2023 12:32:15 +0200 Subject: [PATCH] feat(COR-715) add INVALID_CREDENTIALS in cluster state --- src/schemas/ClusterResponse.yaml | 2 +- src/schemas/ClusterStatusGetResponse.yaml | 2 +- src/schemas/ClusterStatusResponse.yaml | 2 +- src/schemas/_index.yaml | 2 ++ src/schemas/enums/ClusterState.yaml | 25 +++++++++++++++++++++++ 5 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 src/schemas/enums/ClusterState.yaml diff --git a/src/schemas/ClusterResponse.yaml b/src/schemas/ClusterResponse.yaml index bbbff8db..6d8cb00e 100644 --- a/src/schemas/ClusterResponse.yaml +++ b/src/schemas/ClusterResponse.yaml @@ -45,7 +45,7 @@ allOf: type: integer description: This is an estimation of the cost this cluster will represent on your cloud proider bill, based on your current configuration status: - $ref: './enums/State.yaml' + $ref: './enums/ClusterState.yaml' has_access: type: boolean version: diff --git a/src/schemas/ClusterStatusGetResponse.yaml b/src/schemas/ClusterStatusGetResponse.yaml index b3d0bac9..fb268229 100644 --- a/src/schemas/ClusterStatusGetResponse.yaml +++ b/src/schemas/ClusterStatusGetResponse.yaml @@ -4,7 +4,7 @@ properties: type: string format: uuid status: - $ref: './enums/State.yaml' + $ref: './enums/ClusterState.yaml' is_deployed: type: boolean last_execution_id: diff --git a/src/schemas/ClusterStatusResponse.yaml b/src/schemas/ClusterStatusResponse.yaml index f8869615..94ef9ca9 100644 --- a/src/schemas/ClusterStatusResponse.yaml +++ b/src/schemas/ClusterStatusResponse.yaml @@ -4,6 +4,6 @@ properties: type: string format: uuid status: - $ref: './enums/State.yaml' + $ref: './enums/ClusterState.yaml' is_deployed: type: boolean diff --git a/src/schemas/_index.yaml b/src/schemas/_index.yaml index 026d79e1..7b3ef3f8 100644 --- a/src/schemas/_index.yaml +++ b/src/schemas/_index.yaml @@ -616,6 +616,8 @@ SignUpRequest: $ref: ./SignUpRequest.yaml StateEnum: $ref: ./enums/State.yaml +ClusterStateEnum: + $ref: ./enums/ClusterState.yaml Status: $ref: ./Status.yaml Stage: diff --git a/src/schemas/enums/ClusterState.yaml b/src/schemas/enums/ClusterState.yaml new file mode 100644 index 00000000..0c60509a --- /dev/null +++ b/src/schemas/enums/ClusterState.yaml @@ -0,0 +1,25 @@ +type: string +enum: + - BUILDING + - BUILD_ERROR + - CANCELED + - CANCELING + - DELETED + - DELETE_ERROR + - DELETE_QUEUED + - DELETING + - DEPLOYED + - DEPLOYING + - DEPLOYMENT_ERROR + - DEPLOYMENT_QUEUED + - QUEUED + - READY + - STOPPED + - STOPPING + - STOP_ERROR + - STOP_QUEUED + - RESTART_QUEUED + - RESTARTING + - RESTARTED + - RESTART_ERROR + - INVALID_CREDENTIALS \ No newline at end of file