OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 message DeviceRegisterResponse { | 49 message DeviceRegisterResponse { |
50 // Device management token for this registration. This token MUST be | 50 // Device management token for this registration. This token MUST be |
51 // part of HTTP Authorization header for all future requests from | 51 // part of HTTP Authorization header for all future requests from |
52 // device to server. | 52 // device to server. |
53 required string device_management_token = 1; | 53 required string device_management_token = 1; |
54 | 54 |
55 // Device display name. By default, server generates the name in | 55 // Device display name. By default, server generates the name in |
56 // the format of "Machine Model - Machine Id". However, domain | 56 // the format of "Machine Model - Machine Id". However, domain |
57 // admin can update it using CPanel, so do NOT treat it as constant. | 57 // admin can update it using CPanel, so do NOT treat it as constant. |
58 optional string machine_name = 2; | 58 optional string machine_name = 2; |
59 | |
60 // Enum listing the possible modes the device should be locked into when the | |
61 // registration is finished. | |
62 enum DeviceMode { | |
63 // In ENTERPRISE mode the device has no local owner and device settings are | |
64 // controlled through the cloud policy infrastructure. Auto-enrollment is | |
65 // supported in that mode. | |
66 ENTERPRISE = 0; | |
67 // Devices in KIOSK mode also have no local owner and get their device | |
68 // settings from the cloud, but additionally this mode enables the demo | |
69 // account on the device. | |
70 KIOSK = 1; | |
71 } | |
72 optional DeviceMode enrollment_type = 3 [default = ENTERPRISE]; | |
Mattias Nissler (ping if slow)
2012/02/16 10:39:01
If you declare a default, have you checked whether
pastarmovj
2012/02/16 14:55:21
Yes. It returns false. The default however will en
| |
59 } | 73 } |
60 | 74 |
61 // Request from device to server to unregister device. | 75 // Request from device to server to unregister device. |
62 // GoogleDMToken MUST be in HTTP Authorization header. | 76 // GoogleDMToken MUST be in HTTP Authorization header. |
63 message DeviceUnregisterRequest { | 77 message DeviceUnregisterRequest { |
64 } | 78 } |
65 | 79 |
66 // Response from server to device for unregister request. | 80 // Response from server to device for unregister request. |
67 message DeviceUnregisterResponse { | 81 message DeviceUnregisterResponse { |
68 } | 82 } |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
422 | 436 |
423 // Device status report response. | 437 // Device status report response. |
424 optional DeviceStatusReportResponse device_status_report_response = 6; | 438 optional DeviceStatusReportResponse device_status_report_response = 6; |
425 | 439 |
426 // Session status report response. | 440 // Session status report response. |
427 optional SessionStatusReportResponse session_status_report_response = 7; | 441 optional SessionStatusReportResponse session_status_report_response = 7; |
428 | 442 |
429 // Auto-enrollment detection response. | 443 // Auto-enrollment detection response. |
430 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; | 444 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; |
431 } | 445 } |
OLD | NEW |