forked from ydb-platform/nbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisk.proto
59 lines (43 loc) · 1.39 KB
/
disk.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
syntax = "proto3";
package NCloud.NBlockStore.NProto;
import "cloud/blockstore/libs/storage/protos/disk.proto";
import "cloud/blockstore/public/api/protos/headers.proto";
import "cloud/storage/core/protos/error.proto";
import "contrib/ydb/core/protos/blockstore_config.proto";
////////////////////////////////////////////////////////////////////////////////
// Create disk from devices
message TCreateDiskFromDevicesRequest
{
// Optional request headers.
THeaders Headers = 1;
// Force dangerous actions.
bool Force = 2;
NKikimrBlockStore.TVolumeConfig VolumeConfig = 3;
// List of devices (agentId & device name) that make up the disk.
repeated TDeviceConfig Devices = 4;
}
message TCreateDiskFromDevicesResponse
{
// Optional error, set only if error happened.
NCloud.NProto.TError Error = 1;
// Number of total logical blocks.
uint64 BlockCount = 2;
}
////////////////////////////////////////////////////////////////////////////////
// Change disk device
message TChangeDiskDeviceRequest
{
// Optional request headers.
THeaders Headers = 1;
// Disk identification
string DiskId = 2;
// Source device identification
string SourceDeviceId = 3;
// Target device identification
string TargetDeviceId = 4;
}
message TChangeDiskDeviceResponse
{
// Optional error, set only if error happened.
NCloud.NProto.TError Error = 1;
}