Skip to content

Commit 1551e42

Browse files
authored
Add reason for backup and disk_expansion support status (#346)
1 parent d57eb14 commit 1551e42

7 files changed

Lines changed: 430 additions & 144 deletions

File tree

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

Lines changed: 215 additions & 87 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: 30 additions & 2 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.py

Lines changed: 53 additions & 37 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: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

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

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

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

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

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,18 @@ enum ClusterDiskExpansionSupportStatus {
11761176
CLUSTER_DISK_EXPANSION_SUPPORT_STATUS_NOT_SUPPORTED = 2;
11771177
}
11781178

1179+
// ClusterDiskExpansionSupportInfo provides information about disk expansion support
1180+
message ClusterDiskExpansionSupportInfo {
1181+
// The current disk expansion support status
1182+
ClusterDiskExpansionSupportStatus status = 1 [(buf.validate.field).enum = {
1183+
defined_only: true
1184+
not_in: [0]
1185+
}];
1186+
// Optional human-readable reason providing more context about the disk expansion status.
1187+
// When a cluster does not support disk expansion, this explain why.
1188+
optional string reason = 2 [(buf.validate.field).string.min_len = 1];
1189+
}
1190+
11791191
// ClusterBackupSupportStatus defines the backup support states of a cluster.
11801192
enum ClusterBackupSupportStatus {
11811193
// Backup support is unspecified.
@@ -1186,14 +1198,26 @@ enum ClusterBackupSupportStatus {
11861198
CLUSTER_BACKUP_SUPPORT_STATUS_NOT_SUPPORTED = 2;
11871199
}
11881200

1201+
// ClusterBackupSupportInfo provides information about backup support
1202+
message ClusterBackupSupportInfo {
1203+
// The current backup support status
1204+
ClusterBackupSupportStatus status = 1 [(buf.validate.field).enum = {
1205+
defined_only: true
1206+
not_in: [0]
1207+
}];
1208+
// Optional human-readable reason providing more context about the backup support status.
1209+
// When a cluster does not support backup, this explain why.
1210+
optional string reason = 2 [(buf.validate.field).string.min_len = 1];
1211+
}
1212+
11891213
// ClusterCapabilities specifies whether some actions are supported by the cluster or not.
11901214
message ClusterCapabilities {
11911215
// Whether the StorageClass used by the cluster supports disk expansion or not.
11921216
// Disk scaling will be enabled or disabled based on this for hybrid cloud clusters.
1193-
ClusterDiskExpansionSupportStatus disk_expansion = 1;
1217+
ClusterDiskExpansionSupportInfo disk_expansion = 1 [(buf.validate.field).required = true];
11941218
// Whether it is possible to take a backup for the cluster or not.
11951219
// Backup tab will be shown or hidden based on this for hybrid cloud clusters.
1196-
ClusterBackupSupportStatus backup = 2;
1220+
ClusterBackupSupportInfo backup = 2 [(buf.validate.field).required = true];
11971221
// Whether the cluster can be scaled up or down.
11981222
ClusterScalabilityInfo scalability_info = 3 [(buf.validate.field).required = true];
11991223
}

0 commit comments

Comments
 (0)