Skip to content

Commit ec4c342

Browse files
committed
more fixes to device protos
1 parent 1c5b621 commit ec4c342

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

protect/control/v1/common.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ enum DeviceState {
497497
DEVICE_STATE_AVAILABLE = 1;
498498
DEVICE_STATE_TAINTED = 2;
499499
DEVICE_STATE_USED = 3;
500+
DEVICE_STATE_DESTROYING = 4;
501+
DEVICE_STATE_DESTROYED = 5;
500502
}
501503

502504
message DeviceStatus {

protect/control/v1/control.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ message GetHostStatusReply {
7474
}
7575

7676
message UpdateDeviceStateRequest {
77-
string id = 1;
77+
string device_id = 1;
7878
DeviceState state = 2;
7979
}
8080

@@ -640,7 +640,7 @@ message CreateDeviceReply {
640640
}
641641

642642
message DestroyDeviceRequest {
643-
string id = 1;
643+
string device_id = 1;
644644
}
645645

646646
message DestroyDeviceReply {}
@@ -650,5 +650,5 @@ message ResolveDeviceIdsRequest {
650650
}
651651

652652
message ResolveDeviceIdsReply {
653-
string device_ids = 1;
653+
repeated string device_ids = 1;
654654
}

0 commit comments

Comments
 (0)