Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: components/policy/proto/device_management_backend.proto

Issue 2765463002: Remote fetch device status (attributes and logs) command (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package enterprise_management; 9 package enterprise_management;
10 10
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 COMMAND_ECHO_TEST = -1; 1054 COMMAND_ECHO_TEST = -1;
1055 1055
1056 // Reboot the device. 1056 // Reboot the device.
1057 DEVICE_REBOOT = 0; 1057 DEVICE_REBOOT = 0;
1058 1058
1059 // Take a screenshot. 1059 // Take a screenshot.
1060 DEVICE_SCREENSHOT = 1; 1060 DEVICE_SCREENSHOT = 1;
1061 1061
1062 // Set device volume. 1062 // Set device volume.
1063 DEVICE_SET_VOLUME = 2; 1063 DEVICE_SET_VOLUME = 2;
1064
1065 // Force a refresh of device status (attributes).
1066 DEVICE_FETCH_STATUS = 3;
1064 } 1067 }
1065 1068
1066 // The command type. 1069 // The command type.
1067 optional Type type = 1; 1070 optional Type type = 1;
1068 1071
1069 // An opaque unique identifier for the command. The client processes 1072 // An opaque unique identifier for the command. The client processes
1070 // the commands in the order of the command list it receives. 1073 // the commands in the order of the command list it receives.
1071 optional int64 command_id = 2; 1074 optional int64 command_id = 2;
1072 1075
1073 // The age of the command (in milliseconds) when it is sent from server to 1076 // The age of the command (in milliseconds) when it is sent from server to
1074 // client, defined as current_server_time - command_generated_time. 1077 // client, defined as current_server_time - command_generated_time.
1075 optional int64 age_of_command = 3; 1078 optional int64 age_of_command = 3;
1076 1079
1077 // Extra parameters for this command, expected to be a JSON string. 1080 // Extra parameters for this command, expected to be a JSON string. The
1078 // If the command type is DEVICE_SCREENSHOT, the format of the JSON payload 1081 // following are the JSON payloads for their corresponding command type:
1079 // is: {"fileUploadUrl" : url_string} 1082 // DEVICE_SCREENSHOT: {"fileUploadUrl" : url_string}
1083 // DEVICE_SET_VOLUME: {"volume" : 30}
Andrew T Wilson (Slow) 2017/03/20 16:33:10 This seems unrelated to this CL? maybe drive this
1080 optional string payload = 4; 1084 optional string payload = 4;
1081 } 1085 }
1082 1086
1083 // This protobuf defines the execution result of a single remote command 1087 // This protobuf defines the execution result of a single remote command
1084 // which will be sent back to the server. 1088 // which will be sent back to the server.
1085 message RemoteCommandResult { 1089 message RemoteCommandResult {
1086 enum ResultType { 1090 enum ResultType {
1087 RESULT_IGNORED = 0; // The command was ignored as obsolete. 1091 RESULT_IGNORED = 0; // The command was ignored as obsolete.
1088 RESULT_FAILURE = 1; // The command could not be executed. 1092 RESULT_FAILURE = 1; // The command could not be executed.
1089 RESULT_SUCCESS = 2; // The command was successfully executed. 1093 RESULT_SUCCESS = 2; // The command was successfully executed.
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 check_android_management_response = 18; 1484 check_android_management_response = 18;
1481 1485
1482 // Response to an Active Directory Play user enrollment request. 1486 // Response to an Active Directory Play user enrollment request.
1483 optional ActiveDirectoryEnrollPlayUserResponse 1487 optional ActiveDirectoryEnrollPlayUserResponse
1484 active_directory_enroll_play_user_response = 19; 1488 active_directory_enroll_play_user_response = 19;
1485 1489
1486 // Response to a Play activity request. 1490 // Response to a Play activity request.
1487 optional ActiveDirectoryPlayActivityResponse 1491 optional ActiveDirectoryPlayActivityResponse
1488 active_directory_play_activity_response = 20; 1492 active_directory_play_activity_response = 20;
1489 } 1493 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698