Skip to content

Commit f27f2ea

Browse files
authored
Merge pull request #588 from ImMin5/master
Add WarehouseInfo message and update data_source.proto for improved structure
2 parents 0aea8b9 + cd69570 commit f27f2ea

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

proto/spaceone/api/cost_analysis/v1/data_source.proto

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ message PluginInfo {
130130
UpgradeMode upgrade_mode = 8;
131131
}
132132

133+
message WarehouseInfo {
134+
enum WarehouseType {
135+
NONE = 0;
136+
DATABRICKS = 1;
137+
}
138+
WarehouseType type = 1;
139+
}
140+
133141
message Schedule {
134142
enum ScheduleState {
135143
NONE = 0;
@@ -208,9 +216,11 @@ message RegisterDataSourceRequest {
208216
google.protobuf.Struct template = 6;
209217
// +optional
210218
PluginInfo plugin_info = 7;
211-
Schedule schedule = 8;
219+
// +optoinal
220+
WarehouseInfo warehouse_info = 8;
221+
Schedule schedule = 9;
212222
// +optional
213-
google.protobuf.Struct tags = 9;
223+
google.protobuf.Struct tags = 10;
214224
ResourceGroup resource_group = 20;
215225
// +optional
216226
string workspace_id = 21;
@@ -422,14 +432,15 @@ message DataSourceInfo {
422432
SecretType secret_type = 6;
423433
SecretFilter secret_filter = 7;
424434
PluginInfo plugin_info = 8;
425-
Schedule schedule = 9;
426-
google.protobuf.Struct template = 10;
427-
google.protobuf.Struct tags = 11;
428-
repeated string cost_tag_keys = 12;
429-
repeated string cost_additional_info_keys = 13;
430-
repeated string cost_data_keys = 14;
431-
int32 data_source_account_count = 15;
432-
int32 connected_workspace_count = 16;
435+
WarehouseInfo warehouse_info = 9;
436+
Schedule schedule = 10;
437+
google.protobuf.Struct template = 11;
438+
google.protobuf.Struct tags = 12;
439+
repeated string cost_tag_keys = 13;
440+
repeated string cost_additional_info_keys = 14;
441+
repeated string cost_data_keys = 15;
442+
int32 data_source_account_count = 16;
443+
int32 connected_workspace_count = 17;
433444

434445
ResourceGroup resource_group = 20;
435446
string domain_id = 21;

0 commit comments

Comments
 (0)