| OLD | NEW |
| 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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 // regular device registration request | 1185 // regular device registration request |
| 1186 optional DeviceRegisterRequest device_register_request = 3; | 1186 optional DeviceRegisterRequest device_register_request = 3; |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 // Gets an enrollment token to a managed Google Play account for using it with | 1189 // Gets an enrollment token to a managed Google Play account for using it with |
| 1190 // Active Directory. Sent when a new user logs in with Active Directory and | 1190 // Active Directory. Sent when a new user logs in with Active Directory and |
| 1191 // opens Play Store for the first time. | 1191 // opens Play Store for the first time. |
| 1192 message ActiveDirectoryEnrollPlayUserRequest {} | 1192 message ActiveDirectoryEnrollPlayUserRequest {} |
| 1193 | 1193 |
| 1194 // The result when a new user logs in to Play Store with Active Directory. | 1194 // The result when a new user logs in to Play Store with Active Directory. |
| 1195 // 903 Arc Disabled HTTP error code is returned if the reason of the failure is | 1195 // 904 Arc Disabled HTTP error code is returned if the reason of the failure is |
| 1196 // that ARC is not enabled for the domain. | 1196 // that ARC is not enabled for the domain. |
| 1197 // 403 Forbidden HTTP error code is returned if the device can't get Managed | 1197 // 403 Forbidden HTTP error code is returned if the device can't get Managed |
| 1198 // Google Play accounts. | 1198 // Google Play accounts. |
| 1199 message ActiveDirectoryEnrollPlayUserResponse { | 1199 message ActiveDirectoryEnrollPlayUserResponse { |
| 1200 // The enrollment token which can be used to fetch a Managed Google Play | 1200 // The enrollment token which can be used to fetch a Managed Google Play |
| 1201 // account. | 1201 // account. |
| 1202 optional string enrollment_token = 1; | 1202 optional string enrollment_token = 1; |
| 1203 // The user id which identifies the user enrolled by this token. This user id | 1203 // The user id which identifies the user enrolled by this token. This user id |
| 1204 // is opaque to the client and is only used in the ActiveDirectoryPlayActivity | 1204 // is opaque to the client and is only used in the ActiveDirectoryPlayActivity |
| 1205 // requests. | 1205 // requests. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 // policy: policy_request | 1276 // policy: policy_request |
| 1277 // register: register_request | 1277 // register: register_request |
| 1278 // status: device_status_report_request or session_status_report_request | 1278 // status: device_status_report_request or session_status_report_request |
| 1279 // unregister: unregister_request | 1279 // unregister: unregister_request |
| 1280 // remote_commands: remote_command_request | 1280 // remote_commands: remote_command_request |
| 1281 // attribute_update_permission: device_attribute_update_permission_request | 1281 // attribute_update_permission: device_attribute_update_permission_request |
| 1282 // attribute_update: device_attribute_update_request | 1282 // attribute_update: device_attribute_update_request |
| 1283 // gcm_id_update: gcm_id_update_request | 1283 // gcm_id_update: gcm_id_update_request |
| 1284 // check_android_management: check_android_management_request | 1284 // check_android_management: check_android_management_request |
| 1285 // certificate_based_register: certificate_based_register_request | 1285 // certificate_based_register: certificate_based_register_request |
| 1286 // active_directory_enroll_play_user: |
| 1287 // active_directory_enroll_play_user_request |
| 1288 // active_directory_play_activity: active_directory_play_activity_request |
| 1286 // | 1289 // |
| 1287 message DeviceManagementRequest { | 1290 message DeviceManagementRequest { |
| 1288 // Register request. | 1291 // Register request. |
| 1289 optional DeviceRegisterRequest register_request = 1; | 1292 optional DeviceRegisterRequest register_request = 1; |
| 1290 | 1293 |
| 1291 // Unregister request. | 1294 // Unregister request. |
| 1292 optional DeviceUnregisterRequest unregister_request = 2; | 1295 optional DeviceUnregisterRequest unregister_request = 2; |
| 1293 | 1296 |
| 1294 // Policy request. | 1297 // Policy request. |
| 1295 optional DevicePolicyRequest policy_request = 3; | 1298 optional DevicePolicyRequest policy_request = 3; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 // 200 OK: valid response is returned to client. | 1365 // 200 OK: valid response is returned to client. |
| 1363 // 400 Bad Request: invalid argument. | 1366 // 400 Bad Request: invalid argument. |
| 1364 // 401 Unauthorized: invalid auth cookie or DM token. | 1367 // 401 Unauthorized: invalid auth cookie or DM token. |
| 1365 // 403 Forbidden: device management is not allowed. | 1368 // 403 Forbidden: device management is not allowed. |
| 1366 // 404 Not Found: the request URL is invalid. | 1369 // 404 Not Found: the request URL is invalid. |
| 1367 // 410 Device Not Found: the device id is not found. | 1370 // 410 Device Not Found: the device id is not found. |
| 1368 // 491 Request Pending: the request is pending approval. | 1371 // 491 Request Pending: the request is pending approval. |
| 1369 // 500 Internal Server Error: most likely a bug in DM server. | 1372 // 500 Internal Server Error: most likely a bug in DM server. |
| 1370 // 503 Service Unavailable: most likely a backend error. | 1373 // 503 Service Unavailable: most likely a backend error. |
| 1371 // 902 Policy Not Found: the policy is not found. | 1374 // 902 Policy Not Found: the policy is not found. |
| 1372 // 903 Arc Disabled: ARC is not enabled on the domain. | 1375 // 903 Deprovisioned: the device has been deprovisioned. |
| 1376 // 904 Arc Disabled: ARC is not enabled on the domain. |
| 1373 message DeviceManagementResponse { | 1377 message DeviceManagementResponse { |
| 1374 // TODO(hong): move error handling to HTTP level. | 1378 // TODO(hong): move error handling to HTTP level. |
| 1375 // Error code to client. | 1379 // Error code to client. |
| 1376 enum ErrorCode { | 1380 enum ErrorCode { |
| 1377 SUCCESS = 0; | 1381 SUCCESS = 0; |
| 1378 // Returned for register request when device management is not supported | 1382 // Returned for register request when device management is not supported |
| 1379 // for the domain. | 1383 // for the domain. |
| 1380 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1; | 1384 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1; |
| 1381 // Returned when the device is not found. | 1385 // Returned when the device is not found. |
| 1382 DEVICE_NOT_FOUND = 2; | 1386 DEVICE_NOT_FOUND = 2; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1454 check_android_management_response = 18; | 1458 check_android_management_response = 18; |
| 1455 | 1459 |
| 1456 // Response to an Active Directory Play user enrollment request. | 1460 // Response to an Active Directory Play user enrollment request. |
| 1457 optional ActiveDirectoryEnrollPlayUserResponse | 1461 optional ActiveDirectoryEnrollPlayUserResponse |
| 1458 active_directory_enroll_play_user_response = 19; | 1462 active_directory_enroll_play_user_response = 19; |
| 1459 | 1463 |
| 1460 // Response to a Play activity request. | 1464 // Response to a Play activity request. |
| 1461 optional ActiveDirectoryPlayActivityResponse | 1465 optional ActiveDirectoryPlayActivityResponse |
| 1462 active_directory_play_activity_response = 20; | 1466 active_directory_play_activity_response = 20; |
| 1463 } | 1467 } |
| OLD | NEW |