/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/disk_manager/api/image_service.proto
72 строки
2 KB
Aleksey Skvortsov
[Disk Manager] Support snapshots and images creation in cells (#4440)
05 ноя 2025, 11:59
Не верифицирован
05 ноя 2025, 11:59
716fd7f
Код
Авторство
О чём код?
syntax = "proto3"; package cloud.disk_manager; import "cloud/disk_manager/api/disk.proto"; import "cloud/disk_manager/api/image.proto"; import "cloud/disk_manager/api/operation.proto"; option go_package = "github.com/ydb-platform/nbs/cloud/disk_manager/api;disk_manager"; // Images are stored in global AZ and there's also a pool of base disks in each regional AZ. // Size of pools are managed automatically, these disks are assigned to a special cloud+folder. service ImageService { // Returns operation with: // metadata: CreateImageMetadata // response: CreateImageResponse rpc Create(CreateImageRequest) returns (Operation); // Returns operation with: // metadata: UpdateImageMetadata // response: google.protobuf.Empty rpc Update(UpdateImageRequest) returns (Operation); // Returns operation with: // metadata: DeleteImageMetadata // response: google.protobuf.Empty rpc Delete(DeleteImageRequest) returns (Operation); } message CreateImageRequest { reserved 8, 9; oneof src { string src_snapshot_id = 1; string src_image_id = 2; ImageUrl src_url = 3; // src_disk_id's zone ID must be an existing zone ID; using a cell ID // will cause a failure. DiskId src_disk_id = 5; } string dst_image_id = 6; string folder_id = 7; bool pooled = 10; } message CreateImageMetadata { double progress = 1; } message CreateImageResponse { int64 size = 1; int64 storage_size = 2; } message UpdateImageRequest { string image_id = 1; bool pooled = 2; } message UpdateImageMetadata { string image_id = 1; } message DeleteImageRequest { reserved 2, 3; string image_id = 1; } message DeleteImageMetadata { string image_id = 1; }