Implemented the rest of the methods except for GetKillSwitchStatus
Change-Id: Ia5b1a1c44c2e52653b9845ecc9557f525e6d41b1
diff --git a/api_proto/kill_switch_objects.proto b/api_proto/kill_switch_objects.proto
index 77ff071..11c2c16 100644
--- a/api_proto/kill_switch_objects.proto
+++ b/api_proto/kill_switch_objects.proto
@@ -39,8 +39,13 @@
}
message KillSwitchTransformation {
- KillSwitch kill_switch_from = 1;
- KillSwitch kill_switch_to = 2;
+ KillSwitch old = 1;
+ KillSwitch new = 2;
+}
+
+message AuthorizedUserTransformation {
+ KillSwitchAuthorizedUser old = 1;
+ KillSwitchAuthorizedUser new = 2;
}
// Log entry which describes an action which has taken place.
@@ -52,16 +57,31 @@
KillSwitchAuthorizedUser user = 2;
message KillSwitchEnabled {
- KillSwitchTransformation transformation = 1;
+ KillSwitch kill_switch = 1;
}
message KillSwitchDisabled {
KillSwitchTransformation transformation = 1;
}
+ message AuthorizedUserAdded {
+ KillSwitchAuthorizedUser user = 1;
+ }
+
+ message AuthorizedUserUpdated {
+ AuthorizedUserTransformation transformation = 1;
+ }
+
+ message AuthorizedUserDeleted {
+ KillSwitchAuthorizedUser old_user = 1;
+ }
+
// Description of the action taken
oneof description {
KillSwitchEnabled kill_switch_enabled = 3;
KillSwitchDisabled kill_switch_disabled = 4;
+ AuthorizedUserAdded authorized_user_added = 5;
+ AuthorizedUserUpdated authorized_user_updated = 6;
+ AuthorizedUserDeleted authorized_user_deleted = 7;
}
}