OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // Response from server to device. | 244 // Response from server to device. |
245 // | 245 // |
246 // The server uses the following numbers as HTTP status codes | 246 // The server uses the following numbers as HTTP status codes |
247 // to report top-level errors. | 247 // to report top-level errors. |
248 // | 248 // |
249 // 200 OK: valid response is returned to client. | 249 // 200 OK: valid response is returned to client. |
250 // 400 Bad Request: invalid argument. | 250 // 400 Bad Request: invalid argument. |
251 // 401 Unauthorized: invalid auth cookie or DM token. | 251 // 401 Unauthorized: invalid auth cookie or DM token. |
252 // 403 Forbidden: device management is not allowed. | 252 // 403 Forbidden: device management is not allowed. |
253 // 404 Not Found: the request URL is invalid. | 253 // 404 Not Found: the request URL is invalid. |
| 254 // 410 Gone: device is unknown to the server. |
254 // 491 Request Pending: the request is pending approval. | 255 // 491 Request Pending: the request is pending approval. |
255 // 500 Internal Server Error: most likely a bug in DM server. | 256 // 500 Internal Server Error: most likely a bug in DM server. |
256 // 503 Service Unavailable: most likely a backend error. | 257 // 503 Service Unavailable: most likely a backend error. |
257 // 901 Device Not Found: the device id is not found. | 258 // 901 Device Not Found: the device id is not found. |
258 // 902 Policy Not Found: the policy is not found. | 259 // 902 Policy Not Found: the policy is not found. |
259 message DeviceManagementResponse { | 260 message DeviceManagementResponse { |
260 // Error message. | 261 // Error message. |
261 optional string error_message = 2; | 262 optional string error_message = 2; |
262 | 263 |
263 // Register response | 264 // Register response |
264 optional DeviceRegisterResponse register_response = 3; | 265 optional DeviceRegisterResponse register_response = 3; |
265 | 266 |
266 // Unregister response | 267 // Unregister response |
267 optional DeviceUnregisterResponse unregister_response = 4; | 268 optional DeviceUnregisterResponse unregister_response = 4; |
268 | 269 |
269 // Policy response. | 270 // Policy response. |
270 optional DevicePolicyResponse policy_response = 5; | 271 optional DevicePolicyResponse policy_response = 5; |
271 } | 272 } |
OLD | NEW |