-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdisk.proto
81 lines (68 loc) · 1.72 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
syntax = "proto3";
package cloud.disk_manager;
option go_package = "github.com/ydb-platform/nbs/cloud/disk_manager/api;disk_manager";
enum DiskKind {
DISK_KIND_UNSPECIFIED = 0;
DISK_KIND_SSD = 1;
// The base storage is HDD, index is still kept on SSD.
DISK_KIND_HDD = 2;
DISK_KIND_SSD_NONREPLICATED = 3;
DISK_KIND_SSD_MIRROR2 = 4;
DISK_KIND_SSD_LOCAL = 5;
DISK_KIND_SSD_MIRROR3 = 6;
DISK_KIND_HDD_NONREPLICATED = 7;
DISK_KIND_HDD_LOCAL = 8;
}
message DiskId {
string zone_id = 1;
string disk_id = 2;
}
message DiskPerformanceProfile {
int64 max_read_bandwidth = 1;
int64 max_postponed_weight = 2;
bool throttling_enabled = 3;
int64 max_read_iops = 4;
int64 boost_time = 5;
int64 boost_refill_time = 6;
int64 boost_percentage = 7;
int64 max_write_bandwidth = 8;
int64 max_write_iops = 9;
int64 burst_percentage = 10;
}
message DiskModel {
int64 block_size = 1;
int64 size = 2;
int64 channels_count = 3;
DiskKind kind = 4;
DiskPerformanceProfile performance_profile = 5;
int64 merged_channels_count = 6;
int64 mixed_channels_count = 7;
}
enum EncryptionMode {
NO_ENCRYPTION = 0;
// Encryption with a user provided key.
ENCRYPTION_AES_XTS = 1;
// Encryption with a Root KMS provided key.
ENCRYPTION_AT_REST = 2;
}
message KmsKey {
string kek_id = 1;
bytes encrypted_dek = 2;
string task_id = 3;
}
message EncryptionDesc {
EncryptionMode mode = 1;
oneof key {
bytes key_hash = 2;
KmsKey kms_key = 3;
}
}
message DiskStats {
int64 storage_size = 1;
}
message DiskParams {
int64 block_size = 1;
int64 size = 2;
string cloud_id = 3;
string folder_id = 4;
}