Skip to content

Commit 7d013a1

Browse files
azenlaSweetsurbhi88
authored andcommitted
more fixes to device protos
1 parent 1042bb7 commit 7d013a1

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
@@ -513,6 +513,8 @@ enum DeviceState {
513513
DEVICE_STATE_AVAILABLE = 1;
514514
DEVICE_STATE_TAINTED = 2;
515515
DEVICE_STATE_USED = 3;
516+
DEVICE_STATE_DESTROYING = 4;
517+
DEVICE_STATE_DESTROYED = 5;
516518
}
517519

518520
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)