Skip to content

Commit 891303e

Browse files
author
Toni Reina
authored
Add values to ClusterPhase (#88)
1 parent 8a3c130 commit 891303e

6 files changed

Lines changed: 167 additions & 131 deletions

File tree

gen/go/qdrant/cloud/cluster/v1/cluster.pb.go

Lines changed: 136 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/cluster/v1/cluster.swagger.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,12 @@
758758
"CLUSTER_PHASE_HEALTHY",
759759
"CLUSTER_PHASE_NOT_READY",
760760
"CLUSTER_PHASE_RECOVERY_MODE",
761-
"CLUSTER_PHASE_MANUAL_MAINTENANCE"
761+
"CLUSTER_PHASE_MANUAL_MAINTENANCE",
762+
"CLUSTER_PHASE_FAILED_TO_SYNC",
763+
"CLUSTER_PHASE_NOT_FOUND"
762764
],
763765
"default": "CLUSTER_PHASE_UNSPECIFIED",
764-
"description": "Defines the operational or transitional state of the Qdrant cluster.\n\n - CLUSTER_PHASE_UNSPECIFIED: The phase is unknown or not specified. Should not normally be used.\n - CLUSTER_PHASE_CREATING: The cluster is currently being created.\n - CLUSTER_PHASE_FAILED_TO_CREATE: The cluster creation process failed.\n - CLUSTER_PHASE_UPDATING: The cluster configuration is being updated.\n - CLUSTER_PHASE_FAILED_TO_UPDATE: The cluster update process failed.\n - CLUSTER_PHASE_SCALING: The cluster is undergoing scaling (up or down).\n - CLUSTER_PHASE_UPGRADING: The Qdrant version in the cluster is being upgraded.\n - CLUSTER_PHASE_SUSPENDING: The cluster is in the process of being suspended.\n - CLUSTER_PHASE_SUSPENDED: The cluster is currently suspended (inactive).\n - CLUSTER_PHASE_FAILED_TO_SUSPEND: The cluster suspension process failed.\n - CLUSTER_PHASE_RESUMING: The cluster is resuming from a suspended state.\n - CLUSTER_PHASE_FAILED_TO_RESUME: The cluster resumption process failed.\n - CLUSTER_PHASE_HEALTHY: The cluster is operational and healthy.\n - CLUSTER_PHASE_NOT_READY: The cluster is operational but not all components are ready or healthy.\n - CLUSTER_PHASE_RECOVERY_MODE: The cluster is in recovery mode, potentially after a failure.\n - CLUSTER_PHASE_MANUAL_MAINTENANCE: The cluster is under manual maintenance."
766+
"description": "Defines the operational or transitional state of the Qdrant cluster.\n\n - CLUSTER_PHASE_UNSPECIFIED: The phase is unknown or not specified. Should not normally be used.\n - CLUSTER_PHASE_CREATING: The cluster is currently being created.\n - CLUSTER_PHASE_FAILED_TO_CREATE: The cluster creation process failed.\n - CLUSTER_PHASE_UPDATING: The cluster configuration is being updated.\n - CLUSTER_PHASE_FAILED_TO_UPDATE: The cluster update process failed.\n - CLUSTER_PHASE_SCALING: The cluster is undergoing scaling (up or down).\n - CLUSTER_PHASE_UPGRADING: The Qdrant version in the cluster is being upgraded.\n - CLUSTER_PHASE_SUSPENDING: The cluster is in the process of being suspended.\n - CLUSTER_PHASE_SUSPENDED: The cluster is currently suspended (inactive).\n - CLUSTER_PHASE_FAILED_TO_SUSPEND: The cluster suspension process failed.\n - CLUSTER_PHASE_RESUMING: The cluster is resuming from a suspended state.\n - CLUSTER_PHASE_FAILED_TO_RESUME: The cluster resumption process failed.\n - CLUSTER_PHASE_HEALTHY: The cluster is operational and healthy.\n - CLUSTER_PHASE_NOT_READY: The cluster is operational but not all components are ready or healthy.\n - CLUSTER_PHASE_RECOVERY_MODE: The cluster is in recovery mode, potentially after a failure.\n - CLUSTER_PHASE_MANUAL_MAINTENANCE: The cluster is under manual maintenance.\n - CLUSTER_PHASE_FAILED_TO_SYNC: There was an error syncing the cluster in the cloud provider region.\n - CLUSTER_PHASE_NOT_FOUND: The cluster was expected but not found in the cloud provider region."
765767
},
766768
"v1ClusterState": {
767769
"type": "object",

gen/python/qdrant/cloud/cluster/v1/cluster_pb2.py

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/python/qdrant/cloud/cluster/v1/cluster_pb2.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class ClusterPhase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
7171
CLUSTER_PHASE_NOT_READY: _ClassVar[ClusterPhase]
7272
CLUSTER_PHASE_RECOVERY_MODE: _ClassVar[ClusterPhase]
7373
CLUSTER_PHASE_MANUAL_MAINTENANCE: _ClassVar[ClusterPhase]
74+
CLUSTER_PHASE_FAILED_TO_SYNC: _ClassVar[ClusterPhase]
75+
CLUSTER_PHASE_NOT_FOUND: _ClassVar[ClusterPhase]
7476
CLUSTER_CONFIGURATION_GPU_TYPE_UNSPECIFIED: ClusterConfigurationGpuType
7577
CLUSTER_CONFIGURATION_GPU_TYPE_NVIDIA: ClusterConfigurationGpuType
7678
CLUSTER_CONFIGURATION_GPU_TYPE_AMD: ClusterConfigurationGpuType
@@ -112,6 +114,8 @@ CLUSTER_PHASE_HEALTHY: ClusterPhase
112114
CLUSTER_PHASE_NOT_READY: ClusterPhase
113115
CLUSTER_PHASE_RECOVERY_MODE: ClusterPhase
114116
CLUSTER_PHASE_MANUAL_MAINTENANCE: ClusterPhase
117+
CLUSTER_PHASE_FAILED_TO_SYNC: ClusterPhase
118+
CLUSTER_PHASE_NOT_FOUND: ClusterPhase
115119

116120
class ListClustersRequest(_message.Message):
117121
__slots__ = ("account_id", "cloud_provider_id", "cloud_provider_region_id")

gen/typescript/qdrant/cloud/cluster/v1/cluster_pb.ts

Lines changed: 15 additions & 1 deletion
Large diffs are not rendered by default.

proto/qdrant/cloud/cluster/v1/cluster.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,10 @@ enum ClusterPhase {
608608
CLUSTER_PHASE_RECOVERY_MODE = 14;
609609
// The cluster is under manual maintenance.
610610
CLUSTER_PHASE_MANUAL_MAINTENANCE = 15;
611+
// There was an error syncing the cluster in the cloud provider region.
612+
CLUSTER_PHASE_FAILED_TO_SYNC = 16;
613+
// The cluster was expected but not found in the cloud provider region.
614+
CLUSTER_PHASE_NOT_FOUND = 17;
611615
}
612616

613617
// ClusterState represents the current state of a cluster

0 commit comments

Comments
 (0)