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 15 matching lines...) Expand all Loading... |
26 // reuses an existing device id. | 26 // reuses an existing device id. |
27 optional bool reregister = 1; | 27 optional bool reregister = 1; |
28 | 28 |
29 // Device register type. This field does not exist for TT release. | 29 // Device register type. This field does not exist for TT release. |
30 // When a client requests for policies, server should verify the | 30 // When a client requests for policies, server should verify the |
31 // client has been registered properly. For example, a client must | 31 // client has been registered properly. For example, a client must |
32 // register with type DEVICE in order to retrieve device policies. | 32 // register with type DEVICE in order to retrieve device policies. |
33 enum Type { | 33 enum Type { |
34 TT = 0; // Register for TT release. | 34 TT = 0; // Register for TT release. |
35 USER = 1; // Register for Chrome OS user polices. | 35 USER = 1; // Register for Chrome OS user polices. |
36 DEVICE = 2; // Register for device policies. | 36 DEVICE = 2; // Register for Chrome OS device policies. |
37 BROWSER = 3; // Register for Chrome user policies. | 37 BROWSER = 3; // Register for desktop Chrome browser user policies. |
38 ANDROID_BROWSER = 4; // Register for Android Chrome browser user policies. | 38 ANDROID_BROWSER = 4; // Register for Android Chrome browser user policies. |
39 IOS_BROWSER = 5; // Register for iOS Chrome browser user policies. | 39 IOS_BROWSER = 5; // Register for iOS Chrome browser user policies. |
40 } | 40 } |
41 // NOTE: we also use this field to detect client version. If this | 41 // NOTE: we also use this field to detect client version. If this |
42 // field is missing, then the request comes from TT. We will remove | 42 // field is missing, then the request comes from TT. We will remove |
43 // Chrome OS TT support once it is over. | 43 // Chrome OS TT support once it is over. |
44 optional Type type = 2 [default = TT]; | 44 optional Type type = 2 [default = TT]; |
45 | 45 |
46 // Machine hardware id, such as serial number. | 46 // Machine hardware id, such as serial number. |
47 // This field is required if register type == DEVICE. | 47 // This field is required if register type == DEVICE. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // skip. | 86 // skip. |
87 FLAVOR_ENROLLMENT_SERVER_ADVERTISED = 5; | 87 FLAVOR_ENROLLMENT_SERVER_ADVERTISED = 5; |
88 // Device detected in steady state that it is supposed to be enrolled, but | 88 // Device detected in steady state that it is supposed to be enrolled, but |
89 // the policy is missing. | 89 // the policy is missing. |
90 FLAVOR_ENROLLMENT_RECOVERY = 6; | 90 FLAVOR_ENROLLMENT_RECOVERY = 6; |
91 // User policy registration for a logged-in user. | 91 // User policy registration for a logged-in user. |
92 FLAVOR_USER_REGISTRATION = 7; | 92 FLAVOR_USER_REGISTRATION = 7; |
93 // Attestation-based with the option to use a different authentication | 93 // Attestation-based with the option to use a different authentication |
94 // mechanism. | 94 // mechanism. |
95 FLAVOR_ENROLLMENT_ATTESTATION = 8; | 95 FLAVOR_ENROLLMENT_ATTESTATION = 8; |
96 // Attestation-based enrollment. | 96 // Forced attestation-based enrollment (cannot fallback to another flavor). |
97 FLAVOR_ENROLLMENT_ATTESTATION_FORCED = 9; | 97 FLAVOR_ENROLLMENT_ATTESTATION_FORCED = 9; |
98 }; | 98 }; |
99 | 99 |
100 // Indicates the registration flavor. This is passed to the server FYI when | 100 // Indicates the registration flavor. This is passed to the server FYI when |
101 // registering for policy so the server can distinguish registration triggers. | 101 // registering for policy so the server can distinguish registration triggers. |
102 optional Flavor flavor = 8; | 102 optional Flavor flavor = 8; |
103 } | 103 } |
104 | 104 |
105 // Response from server to device register request. | 105 // Response from server to device register request. |
106 message DeviceRegisterResponse { | 106 message DeviceRegisterResponse { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 // Request to access a Google service with the given scope. | 153 // Request to access a Google service with the given scope. |
154 message DeviceServiceApiAccessRequest { | 154 message DeviceServiceApiAccessRequest { |
155 // The list of auth scopes the device requests from DMServer. | 155 // The list of auth scopes the device requests from DMServer. |
156 repeated string auth_scope = 1; | 156 repeated string auth_scope = 1; |
157 | 157 |
158 // OAuth2 client ID to which the returned authorization code is bound. | 158 // OAuth2 client ID to which the returned authorization code is bound. |
159 optional string oauth2_client_id = 2; | 159 optional string oauth2_client_id = 2; |
160 } | 160 } |
161 | 161 |
| 162 // Response from server to API access request. |
162 message DeviceServiceApiAccessResponse { | 163 message DeviceServiceApiAccessResponse { |
163 // The OAuth2 authorization code for the requested scope(s). | 164 // The OAuth2 authorization code for the requested scope(s). |
164 // This can be exchanged for a refresh token. | 165 // This can be exchanged for a refresh token. |
165 // | 166 // |
166 // The server may send a successful response but not set this field or set an | 167 // The server may send a successful response but not set this field or set an |
167 // empty string to reject the auth code request and instruct the client to | 168 // empty string to reject the auth code request and instruct the client to |
168 // skip robot account auth setup. | 169 // skip robot account auth setup. |
169 optional string auth_code = 1; | 170 optional string auth_code = 1; |
170 } | 171 } |
171 | 172 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 optional string device_id = 8; | 310 optional string device_id = 8; |
310 | 311 |
311 // Indicates which state this association with DMServer is in. This can be | 312 // Indicates which state this association with DMServer is in. This can be |
312 // used to tell the client that it is not receiving policy even though the | 313 // used to tell the client that it is not receiving policy even though the |
313 // registration with the server is kept active. | 314 // registration with the server is kept active. |
314 enum AssociationState { | 315 enum AssociationState { |
315 // Association is active and policy is pushed. | 316 // Association is active and policy is pushed. |
316 ACTIVE = 0; | 317 ACTIVE = 0; |
317 // Association is alive, but the corresponding domain is not managed. | 318 // Association is alive, but the corresponding domain is not managed. |
318 UNMANAGED = 1; | 319 UNMANAGED = 1; |
319 // Client got dropped on the server side. | 320 // The device has been deprovisioned by the administrator and is no longer |
| 321 // managed. |
320 DEPROVISIONED = 2; | 322 DEPROVISIONED = 2; |
321 } | 323 } |
322 optional AssociationState state = 9 [default = ACTIVE]; | 324 optional AssociationState state = 9 [default = ACTIVE]; |
323 | 325 |
324 // Indicates if the the server cannot find a valid serial number for the | 326 // Indicates if the the server cannot find a valid serial number for the |
325 // device. If this flag is set, the device should send the valid serial | 327 // device. If this flag is set, the device should send the valid serial |
326 // number with a device policy fetch request. Note that this only | 328 // number with a device policy fetch request. Note that this only |
327 // applies to device policy. | 329 // applies to device policy. |
328 optional bool valid_serial_number_missing = 10; | 330 optional bool valid_serial_number_missing = 10; |
329 | 331 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 optional string annotated_location = 20; | 389 optional string annotated_location = 20; |
388 | 390 |
389 // The free-text asset identifier the admin enters to associate the device | 391 // The free-text asset identifier the admin enters to associate the device |
390 // with a user-generated identifier. | 392 // with a user-generated identifier. |
391 optional string annotated_asset_id = 21; | 393 optional string annotated_asset_id = 21; |
392 | 394 |
393 // The unique directory api ID of the device which was generated on the | 395 // The unique directory api ID of the device which was generated on the |
394 // server-side. | 396 // server-side. |
395 optional string directory_api_id = 22; | 397 optional string directory_api_id = 22; |
396 | 398 |
397 // List of device affiliation IDs. If exists overlap between user | 399 // List of device affiliation IDs. If there exists an overlap between user |
398 // affiliation IDs and device affiliation IDs, we consider that the user is | 400 // affiliation IDs and device affiliation IDs, we consider that the user is |
399 // affiliated on the device. Otherwise the user is not affiliated on the | 401 // affiliated on the device. Otherwise the user is not affiliated on the |
400 // device. Should be fetched with device policy. Ignored if fetched with | 402 // device. Should be fetched with device policy. Ignored if fetched with |
401 // other polices. | 403 // other polices. |
402 repeated string device_affiliation_ids = 23; | 404 repeated string device_affiliation_ids = 23; |
403 | 405 |
404 // List of user affiliation IDs. The list is used to define if current user | 406 // List of user affiliation IDs. The list is used to define if current user |
405 // is affiliated on the device. See device_affiliation_ids for details. | 407 // is affiliated on the device. See device_affiliation_ids for details. |
406 // Should be fetched with user policy. Ignored if fetched with other polices. | 408 // Should be fetched with user policy. Ignored if fetched with other polices. |
407 repeated string user_affiliation_ids = 24; | 409 repeated string user_affiliation_ids = 24; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 message PolicyPublicKeyAndDomain { | 455 message PolicyPublicKeyAndDomain { |
454 // The public key to sign (taken from the |new_public_key| field in | 456 // The public key to sign (taken from the |new_public_key| field in |
455 // PolicyFetchResponse). | 457 // PolicyFetchResponse). |
456 optional bytes new_public_key = 1; | 458 optional bytes new_public_key = 1; |
457 | 459 |
458 // The domain associated with this key (should match the domain portion of | 460 // The domain associated with this key (should match the domain portion of |
459 // the username field of the policy). | 461 // the username field of the policy). |
460 optional string domain = 2; | 462 optional string domain = 2; |
461 } | 463 } |
462 | 464 |
463 // This protobuf defines a single remote command from server to client for | |
464 // execution. | |
465 message RemoteCommand { | |
466 enum Type { | |
467 // Simple echo command for testing, will be ignored in production code. | |
468 COMMAND_ECHO_TEST = -1; | |
469 | |
470 // Reboot the device. | |
471 DEVICE_REBOOT = 0; | |
472 | |
473 // Take a screenshot. | |
474 DEVICE_SCREENSHOT = 1; | |
475 } | |
476 | |
477 // The command type. | |
478 optional Type type = 1; | |
479 | |
480 // An opaque unique identifier for the command. | |
481 optional int64 unique_id = 2; | |
482 | |
483 // The age of the command (in milliseconds) when it is sent from server to | |
484 // client, defined as current_server_time - command_generated_time. | |
485 optional int64 age_of_command = 3; | |
486 | |
487 // Extra parameters for this command, expected to be a JSON string. | |
488 optional string payload = 4; | |
489 } | |
490 | |
491 // This protobuf defines the execution result of a single remote command | |
492 // which will be sent back to the server. | |
493 message RemoteCommandResult { | |
494 enum ResultType { | |
495 RESULT_IGNORED = 0; // The command was ignored as obsolete. | |
496 RESULT_FAILURE = 1; // The command could not be executed. | |
497 RESULT_SUCCESS = 2; // The command was successfully executed. | |
498 } | |
499 | |
500 // The result of the command. | |
501 optional ResultType result = 1; | |
502 | |
503 // The opaque unique identifier of the command. This value is copied from the | |
504 // RemoteCommand protobuf that contained the command. | |
505 optional int64 unique_id = 2; | |
506 | |
507 // The time at which the command was executed, if the the result is | |
508 // RESULT_SUCCESS. | |
509 optional int64 timestamp = 3; | |
510 | |
511 // Extra information sent to server as result of execution, expected to be a | |
512 // JSON string. | |
513 optional string payload = 4; | |
514 } | |
515 | |
516 message DeviceRemoteCommandRequest { | |
517 // The command ID of the last command received from the server until | |
518 // now. Omitted if no commands have been received yet. | |
519 optional int64 last_command_unique_id = 1; | |
520 | |
521 // The execution results of previously fetched commands. | |
522 // The client should send back a command result whenever possible. | |
523 repeated RemoteCommandResult command_results = 2; | |
524 } | |
525 | |
526 message DeviceRemoteCommandResponse { | |
527 // The queue of pending commands. | |
528 repeated RemoteCommand commands = 1; | |
529 } | |
530 | |
531 // Request from device to server for reading policies. | 465 // Request from device to server for reading policies. |
532 message DevicePolicyRequest { | 466 message DevicePolicyRequest { |
533 // The policy fetch request. If this field exists, the request must | 467 // The policy fetch request. If this field exists, the request must |
534 // comes from a non-TT client. The repeated field allows client to | 468 // comes from a non-TT client. The repeated field allows client to |
535 // request multiple policies for better performance. | 469 // request multiple policies for better performance. |
536 repeated PolicyFetchRequest request = 3; | 470 repeated PolicyFetchRequest request = 3; |
537 } | 471 } |
538 | 472 |
539 // Response from server to device for reading policies. | 473 // Response from server to device for reading policies. |
540 message DevicePolicyResponse { | 474 message DevicePolicyResponse { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 optional string meid = 3; | 567 optional string meid = 3; |
634 | 568 |
635 // IMEI (if applicable) of the corresponding network device. 15-16 decimal | 569 // IMEI (if applicable) of the corresponding network device. 15-16 decimal |
636 // digits encoded as ASCII string. Example: 355402040158759. | 570 // digits encoded as ASCII string. Example: 355402040158759. |
637 optional string imei = 4; | 571 optional string imei = 4; |
638 | 572 |
639 // The device path associated with this network interface. | 573 // The device path associated with this network interface. |
640 optional string device_path = 5; | 574 optional string device_path = 5; |
641 } | 575 } |
642 | 576 |
643 | |
644 // Information about configured/visible networks - this is separate from | 577 // Information about configured/visible networks - this is separate from |
645 // NetworkInterface because a configured network may not be associated with | 578 // NetworkInterface because a configured network may not be associated with |
646 // any specific interface, or may be visible across multiple interfaces. | 579 // any specific interface, or may be visible across multiple interfaces. |
647 message NetworkState { | 580 message NetworkState { |
648 // The current state of this network. | 581 // The current state of this network. |
649 enum ConnectionState { | 582 enum ConnectionState { |
650 IDLE = 0; | 583 IDLE = 0; |
651 CARRIER = 1; | 584 CARRIER = 1; |
652 ASSOCIATION = 2; | 585 ASSOCIATION = 2; |
653 CONFIGURATION = 3; | 586 CONFIGURATION = 3; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 // The type of the user. | 624 // The type of the user. |
692 required UserType type = 1; | 625 required UserType type = 1; |
693 | 626 |
694 // Email address of the user. Present only if the user type is managed. | 627 // Email address of the user. Present only if the user type is managed. |
695 optional string email = 2; | 628 optional string email = 2; |
696 } | 629 } |
697 | 630 |
698 // Information about a single disk volume. | 631 // Information about a single disk volume. |
699 message VolumeInfo { | 632 message VolumeInfo { |
700 optional string volume_id = 1; | 633 optional string volume_id = 1; |
| 634 |
| 635 // The unit is bytes. |
701 optional int64 storage_total = 2; | 636 optional int64 storage_total = 2; |
702 optional int64 storage_free = 3; | 637 optional int64 storage_free = 3; |
703 } | 638 } |
704 | 639 |
705 // Information about a single CPU temperature channel. | 640 // Information about a single CPU temperature channel. |
706 message CPUTempInfo { | 641 message CPUTempInfo { |
707 // Temperature channel label. | 642 // Temperature channel label. |
708 optional string cpu_label = 1; | 643 optional string cpu_label = 1; |
709 // CPU temperature in Celsius. | 644 // CPU temperature in Celsius. |
710 optional int32 cpu_temp = 2; | 645 optional int32 cpu_temp = 2; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 | 687 |
753 // Free RAM (unreliable due to GC). | 688 // Free RAM (unreliable due to GC). |
754 optional int64 deprecated_system_ram_free = 13 [deprecated = true]; | 689 optional int64 deprecated_system_ram_free = 13 [deprecated = true]; |
755 | 690 |
756 // Total RAM on the device. | 691 // Total RAM on the device. |
757 optional int64 system_ram_total = 14; | 692 optional int64 system_ram_total = 14; |
758 | 693 |
759 // Samples of free RAM [in bytes] (unreliable due to GC). | 694 // Samples of free RAM [in bytes] (unreliable due to GC). |
760 repeated int64 system_ram_free = 15; | 695 repeated int64 system_ram_free = 15; |
761 | 696 |
762 // CPU temp information. | 697 // Samples of CPU temperatures in Celsius, plus associated labels |
| 698 // identifying which CPU produced the temperature measurement. |
763 repeated CPUTempInfo cpu_temp_info = 16; | 699 repeated CPUTempInfo cpu_temp_info = 16; |
764 | 700 |
765 // This field is set only when an OS update is needed because of the required | 701 // This field is set only when an OS update is needed because of the required |
766 // platform version of an updated kiosk app is different from the current | 702 // platform version of an updated kiosk app is different from the current |
767 // OS version. | 703 // OS version. |
768 optional OsUpdateStatus os_update_status = 17; | 704 optional OsUpdateStatus os_update_status = 17; |
769 | 705 |
770 // Set only when there is an auto launched with zero delay kiosk app | 706 // Set only when there is an auto launched with zero delay kiosk app |
771 // and it is currently running. Otherwise, this field is empty. | 707 // and it is currently running. Otherwise, this field is empty. |
772 optional AppStatus running_kiosk_app = 18; | 708 optional AppStatus running_kiosk_app = 18; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 // Self-reported status summary (via chrome.reporting APIs) | 740 // Self-reported status summary (via chrome.reporting APIs) |
805 optional string status = 3; | 741 optional string status = 3; |
806 | 742 |
807 // If true, the application is currently in a self-reported error state. | 743 // If true, the application is currently in a self-reported error state. |
808 optional bool error = 4; | 744 optional bool error = 4; |
809 | 745 |
810 // App required Chrome version, specified in app’s manifest file. | 746 // App required Chrome version, specified in app’s manifest file. |
811 optional string required_platform_version = 5; | 747 optional string required_platform_version = 5; |
812 } | 748 } |
813 | 749 |
814 // Report session (a user on one device) level status. | 750 // Report current active session (a user on one device) level status. |
815 message SessionStatusReportRequest { | 751 message SessionStatusReportRequest { |
816 // Installed apps for this user on this device. | 752 // Installed apps for this user on this device. |
817 // No longer used -- use installed_apps instead. | 753 // No longer used -- use installed_apps instead. |
818 repeated string installed_app_id = 1 [deprecated = true]; | 754 repeated string installed_app_id = 1 [deprecated = true]; |
819 | 755 |
820 // Installed extensions for this user on this device. | 756 // Installed extensions for this user on this device. |
821 // No longer used -- use installed_extensions instead. | 757 // No longer used -- use installed_extensions instead. |
822 repeated string installed_extension_id = 2 [deprecated = true]; | 758 repeated string installed_extension_id = 2 [deprecated = true]; |
823 | 759 |
824 // One stat per app for top 30 apps. | 760 // One stat per app for top 30 apps. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 // The Controller device is deprovisioned. | 962 // The Controller device is deprovisioned. |
1027 CONTROLLER_DEVICE_DEPROVISIONED = 5; | 963 CONTROLLER_DEVICE_DEPROVISIONED = 5; |
1028 | 964 |
1029 // Invalid controller identity. | 965 // Invalid controller identity. |
1030 INVALID_CONTROLLER_DEVICE_IDENTITY = 6; | 966 INVALID_CONTROLLER_DEVICE_IDENTITY = 6; |
1031 } | 967 } |
1032 | 968 |
1033 optional StatusCode status_code = 1 [default = NOT_PAIRED]; | 969 optional StatusCode status_code = 1 [default = NOT_PAIRED]; |
1034 } | 970 } |
1035 | 971 |
| 972 // This protobuf defines a single remote command from server to client for |
| 973 // execution. |
| 974 message RemoteCommand { |
| 975 enum Type { |
| 976 // Simple echo command for testing, will be ignored in production code. |
| 977 COMMAND_ECHO_TEST = -1; |
| 978 |
| 979 // Reboot the device. |
| 980 DEVICE_REBOOT = 0; |
| 981 |
| 982 // Take a screenshot. |
| 983 DEVICE_SCREENSHOT = 1; |
| 984 } |
| 985 |
| 986 // The command type. |
| 987 optional Type type = 1; |
| 988 |
| 989 // An opaque unique identifier for the command. |
| 990 optional int64 unique_id = 2; |
| 991 |
| 992 // The age of the command (in milliseconds) when it is sent from server to |
| 993 // client, defined as current_server_time - command_generated_time. |
| 994 optional int64 age_of_command = 3; |
| 995 |
| 996 // Extra parameters for this command, expected to be a JSON string. |
| 997 optional string payload = 4; |
| 998 } |
| 999 |
| 1000 // This protobuf defines the execution result of a single remote command |
| 1001 // which will be sent back to the server. |
| 1002 message RemoteCommandResult { |
| 1003 enum ResultType { |
| 1004 RESULT_IGNORED = 0; // The command was ignored as obsolete. |
| 1005 RESULT_FAILURE = 1; // The command could not be executed. |
| 1006 RESULT_SUCCESS = 2; // The command was successfully executed. |
| 1007 } |
| 1008 |
| 1009 // The result of the command. |
| 1010 optional ResultType result = 1; |
| 1011 |
| 1012 // The opaque unique identifier of the command. This value is copied from the |
| 1013 // RemoteCommand protobuf that contained the command. |
| 1014 optional int64 unique_id = 2; |
| 1015 |
| 1016 // The time at which the command was executed, if the the result is |
| 1017 // RESULT_SUCCESS. |
| 1018 optional int64 timestamp = 3; |
| 1019 |
| 1020 // Extra information sent to server as result of execution, expected to be a |
| 1021 // JSON string. |
| 1022 optional string payload = 4; |
| 1023 } |
| 1024 |
| 1025 message DeviceRemoteCommandRequest { |
| 1026 // The command ID of the last command received from the server until |
| 1027 // now. Omitted if no commands have been received yet. |
| 1028 optional int64 last_command_unique_id = 1; |
| 1029 |
| 1030 // The execution results of previously fetched commands. |
| 1031 // The client should send back a command result whenever possible. |
| 1032 repeated RemoteCommandResult command_results = 2; |
| 1033 } |
| 1034 |
| 1035 message DeviceRemoteCommandResponse { |
| 1036 // The queue of pending commands. |
| 1037 repeated RemoteCommand commands = 1; |
| 1038 } |
| 1039 |
1036 // Sent by the client to the server to check if the current user is allowed | 1040 // Sent by the client to the server to check if the current user is allowed |
1037 // to update attributes (asset id and location). The HTTP request contains an | 1041 // to update attributes (asset id and location). The HTTP request contains an |
1038 // end-user OAuth token. | 1042 // end-user OAuth token. |
1039 message DeviceAttributeUpdatePermissionRequest { | 1043 message DeviceAttributeUpdatePermissionRequest { |
1040 } | 1044 } |
1041 | 1045 |
1042 // Response from the server specifying whether the current user is allowed to | 1046 // Response from the server specifying whether the current user is allowed to |
1043 // update attributes (asset id and location). | 1047 // update attributes (asset id and location). |
1044 message DeviceAttributeUpdatePermissionResponse { | 1048 message DeviceAttributeUpdatePermissionResponse { |
1045 enum ResultType { | 1049 enum ResultType { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 optional SignedData signed_request = 1; | 1106 optional SignedData signed_request = 1; |
1103 } | 1107 } |
1104 | 1108 |
1105 message CertificateBasedDeviceRegistrationData { | 1109 message CertificateBasedDeviceRegistrationData { |
1106 enum CertificateType { | 1110 enum CertificateType { |
1107 UNKNOWN = 0; | 1111 UNKNOWN = 0; |
1108 ENTERPRISE_ENROLLMENT_CERTIFICATE = 1; | 1112 ENTERPRISE_ENROLLMENT_CERTIFICATE = 1; |
1109 } | 1113 } |
1110 | 1114 |
1111 optional CertificateType certificate_type = 1; | 1115 optional CertificateType certificate_type = 1; |
1112 // device certificate in X.509 format. | 1116 // Device certificate in X.509 format. |
1113 // We use CertificateFactory.generateCertificate() call and | 1117 // We use CertificateFactory.generateCertificate() call and |
1114 // the certificate provided must be DER-encoded and may be supplied in binary | 1118 // the certificate provided must be DER-encoded and may be supplied in binary |
1115 // or printable (Base64) encoding. If the certificate is provided in Base64 | 1119 // or printable (Base64) encoding. If the certificate is provided in Base64 |
1116 // encoding, it must be bounded at the beginning by | 1120 // encoding, it must be bounded at the beginning by |
1117 // -----BEGIN CERTIFICATE-----, and must be bounded at the end by | 1121 // -----BEGIN CERTIFICATE-----, and must be bounded at the end by |
1118 // -----END CERTIFICATE-----. | 1122 // -----END CERTIFICATE-----. |
1119 optional bytes device_certificate = 2; | 1123 optional bytes device_certificate = 2; |
1120 // regular device registration request | 1124 // regular device registration request |
1121 optional DeviceRegisterRequest device_register_request = 3; | 1125 optional DeviceRegisterRequest device_register_request = 3; |
1122 } | 1126 } |
1123 | 1127 |
1124 // Request from the DMAgent on the device to the DMServer. This is | 1128 // Request from the DMAgent on the device to the DMServer. This is |
1125 // container for all requests from device to server. The overall HTTP | 1129 // container for all requests from device to server. The overall HTTP |
1126 // request MUST be in the following format: | 1130 // request MUST be in the following format: |
1127 // | 1131 // |
1128 // * HTTP method is POST | 1132 // * HTTP method is POST |
1129 // * Data mime type is application/x-protobuffer | 1133 // * Data mime type is application/x-protobuffer |
| 1134 // * See GoogleContentTypeEnum.java |
1130 // * HTTP parameters are (all required, all case sensitive): | 1135 // * HTTP parameters are (all required, all case sensitive): |
1131 // * request: MUST BE one of | 1136 // * request: MUST BE one of |
1132 // * api_authorization | 1137 // * api_authorization |
1133 // * cert_upload | 1138 // * cert_upload |
1134 // * check_device_pairing | 1139 // * check_device_pairing |
1135 // * device_pairing | 1140 // * device_pairing |
1136 // * device_state_retrieval | 1141 // * device_state_retrieval |
1137 // * enterprise_check | 1142 // * enterprise_check |
1138 // * ping | 1143 // * ping |
1139 // * policy | 1144 // * policy |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 // Response to update device attribute. | 1310 // Response to update device attribute. |
1306 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16; | 1311 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16; |
1307 | 1312 |
1308 // Response to GCM id update request. | 1313 // Response to GCM id update request. |
1309 optional GcmIdUpdateResponse gcm_id_update_response = 17; | 1314 optional GcmIdUpdateResponse gcm_id_update_response = 17; |
1310 | 1315 |
1311 // Response to check Android management request. | 1316 // Response to check Android management request. |
1312 optional CheckAndroidManagementResponse | 1317 optional CheckAndroidManagementResponse |
1313 check_android_management_response = 18; | 1318 check_android_management_response = 18; |
1314 } | 1319 } |
OLD | NEW |