@@ -9,8 +9,12 @@ import "src/api/protos/ydb_operation.proto";
9
9
message ConfigIdentity {
10
10
// Current main config version
11
11
uint64 version = 1 ;
12
- // Cluster name (should be set on node with console tablet, unknown by default)
13
- string cluster = 2 ;
12
+ oneof type {
13
+ // Cluster name (should be set on node with console tablet, unknown by default)
14
+ string cluster = 2 ;
15
+ // database name
16
+ string database = 3 ;
17
+ }
14
18
}
15
19
16
20
message SetConfigRequest {
@@ -19,6 +23,7 @@ message SetConfigRequest {
19
23
string config = 2 ;
20
24
bool dry_run = 3 ;
21
25
bool allow_unknown_fields = 4 ;
26
+ bool allow_absent_database = 5 ;
22
27
}
23
28
24
29
message SetConfigResponse {
@@ -31,6 +36,7 @@ message ReplaceConfigRequest {
31
36
string config = 2 ;
32
37
bool dry_run = 3 ;
33
38
bool allow_unknown_fields = 4 ;
39
+ bool allow_absent_database = 5 ;
34
40
}
35
41
36
42
message ReplaceConfigResponse {
@@ -74,12 +80,12 @@ message GetConfigResponse {
74
80
}
75
81
76
82
message GetConfigResult {
77
- // Main dynamic config with metadata in YAML format
78
- string config = 1 ;
83
+ // Main/database dynamic config with metadata in YAML format
84
+ repeated string config = 1 ;
79
85
// All volatile configs
80
86
repeated VolatileConfig volatile_configs = 2 ;
81
87
82
- ConfigIdentity identity = 3 ;
88
+ repeated ConfigIdentity identity = 3 ;
83
89
}
84
90
85
91
message VolatileConfigMetadata {
0 commit comments