Skip to content

Commit 3f7b53c

Browse files
Add backup_schedule_id field to Backup message for schedule identification (#92)
1 parent b98e028 commit 3f7b53c

7 files changed

Lines changed: 344 additions & 305 deletions

File tree

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

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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@
474474
"backupDuration": {
475475
"type": "string",
476476
"description": "The total time taken to generate the backup. This is a read-only field and\nwill be available after the backup process is completed, regardless of\nwhether it succeeded or failed."
477+
},
478+
"backupScheduleId": {
479+
"type": "string",
480+
"description": "The identifier of the backup schedule (in GUID format).\nThis is a read-only field and will be present if the backup was created by a backup schedule."
477481
}
478482
},
479483
"description": "The actual backup.",
@@ -628,6 +632,10 @@
628632
"backupDuration": {
629633
"type": "string",
630634
"description": "The total time taken to generate the backup. This is a read-only field and\nwill be available after the backup process is completed, regardless of\nwhether it succeeded or failed."
635+
},
636+
"backupScheduleId": {
637+
"type": "string",
638+
"description": "The identifier of the backup schedule (in GUID format).\nThis is a read-only field and will be present if the backup was created by a backup schedule."
631639
}
632640
},
633641
"description": "A Backup represents a backup of a Qdrant database."

gen/python/qdrant/cloud/cluster/backup/v1/backup_pb2.py

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

gen/python/qdrant/cloud/cluster/backup/v1/backup_pb2.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class DeleteBackupScheduleResponse(_message.Message):
193193
def __init__(self) -> None: ...
194194

195195
class Backup(_message.Message):
196-
__slots__ = ("id", "created_at", "account_id", "cluster_id", "name", "status", "deleted_at", "backup_duration")
196+
__slots__ = ("id", "created_at", "account_id", "cluster_id", "name", "status", "deleted_at", "backup_duration", "backup_schedule_id")
197197
ID_FIELD_NUMBER: _ClassVar[int]
198198
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
199199
ACCOUNT_ID_FIELD_NUMBER: _ClassVar[int]
@@ -202,6 +202,7 @@ class Backup(_message.Message):
202202
STATUS_FIELD_NUMBER: _ClassVar[int]
203203
DELETED_AT_FIELD_NUMBER: _ClassVar[int]
204204
BACKUP_DURATION_FIELD_NUMBER: _ClassVar[int]
205+
BACKUP_SCHEDULE_ID_FIELD_NUMBER: _ClassVar[int]
205206
id: str
206207
created_at: _timestamp_pb2.Timestamp
207208
account_id: str
@@ -210,7 +211,8 @@ class Backup(_message.Message):
210211
status: BackupStatus
211212
deleted_at: _timestamp_pb2.Timestamp
212213
backup_duration: _duration_pb2.Duration
213-
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., account_id: _Optional[str] = ..., cluster_id: _Optional[str] = ..., name: _Optional[str] = ..., status: _Optional[_Union[BackupStatus, str]] = ..., deleted_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., backup_duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ...
214+
backup_schedule_id: str
215+
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., account_id: _Optional[str] = ..., cluster_id: _Optional[str] = ..., name: _Optional[str] = ..., status: _Optional[_Union[BackupStatus, str]] = ..., deleted_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., backup_duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., backup_schedule_id: _Optional[str] = ...) -> None: ...
214216

215217
class BackupSchedule(_message.Message):
216218
__slots__ = ("id", "created_at", "account_id", "cluster_id", "schedule", "retention_period", "deleted_at", "status")

gen/typescript/qdrant/cloud/cluster/backup/v1/backup_pb.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,14 @@ export declare type Backup = Message<"qdrant.cloud.cluster.backup.v1.Backup"> &
558558
* @generated from field: google.protobuf.Duration backup_duration = 8;
559559
*/
560560
backupDuration?: Duration;
561+
562+
/**
563+
* The identifier of the backup schedule (in GUID format).
564+
* This is a read-only field and will be present if the backup was created by a backup schedule.
565+
*
566+
* @generated from field: optional string backup_schedule_id = 9;
567+
*/
568+
backupScheduleId?: string;
561569
};
562570

563571
/**

gen/typescript/qdrant/cloud/cluster/backup/v1/backup_pb.js

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ message Backup {
323323
// will be available after the backup process is completed, regardless of
324324
// whether it succeeded or failed.
325325
google.protobuf.Duration backup_duration = 8;
326+
// The identifier of the backup schedule (in GUID format).
327+
// This is a read-only field and will be present if the backup was created by a backup schedule.
328+
optional string backup_schedule_id = 9 [(buf.validate.field).string = {uuid: true}];
326329
}
327330

328331
// BackupScheduleStatus represents the current status of a backup schedule.

0 commit comments

Comments
 (0)