| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Possible values for Chrome OS are: | 194 // Possible values for Chrome OS are: |
| 195 // google/chromeos/device => ChromeDeviceSettingsProto | 195 // google/chromeos/device => ChromeDeviceSettingsProto |
| 196 // google/chromeos/user => ChromeSettingsProto | 196 // google/chromeos/user => ChromeSettingsProto |
| 197 // google/chromeos/publicaccount => ChromeSettingsProto | 197 // google/chromeos/publicaccount => ChromeSettingsProto |
| 198 // google/chrome/extension => ExternalPolicyData | 198 // google/chrome/extension => ExternalPolicyData |
| 199 // google/chromeos/signinextension => ExternalPolicyData | 199 // google/chromeos/signinextension => ExternalPolicyData |
| 200 // google/android/user => ChromeSettingsProto | 200 // google/android/user => ChromeSettingsProto |
| 201 // google/ios/user => ChromeSettingsProto | 201 // google/ios/user => ChromeSettingsProto |
| 202 optional string policy_type = 1; | 202 optional string policy_type = 1; |
| 203 | 203 |
| 204 // This is the last policy timestamp that client received from server. | 204 // This is the last policy timestamp that client received from server. The |
| 205 // expectation is that this field is filled by the value of |
| 206 // PolicyData.timestamp from the last policy received by the client. |
| 205 optional int64 timestamp = 2; | 207 optional int64 timestamp = 2; |
| 206 | 208 |
| 207 // Tell server what kind of security signature is required. | 209 // Tell server what kind of security signature is required. |
| 208 enum SignatureType { | 210 enum SignatureType { |
| 209 NONE = 0; | 211 NONE = 0; |
| 210 SHA1_RSA = 1; | 212 SHA1_RSA = 1; |
| 211 } | 213 } |
| 212 optional SignatureType signature_type = 3 [default = NONE]; | 214 optional SignatureType signature_type = 3 [default = NONE]; |
| 213 | 215 |
| 214 // The version number of the public key that is currently stored | 216 // The version number of the public key that is currently stored |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // |DEVICE_MODE_DISABLED|. | 280 // |DEVICE_MODE_DISABLED|. |
| 279 optional DisabledState disabled_state = 2; | 281 optional DisabledState disabled_state = 2; |
| 280 } | 282 } |
| 281 | 283 |
| 282 // This message is included in serialized form in PolicyFetchResponse below. It | 284 // This message is included in serialized form in PolicyFetchResponse below. It |
| 283 // may also be signed, with the signature being created for the serialized form. | 285 // may also be signed, with the signature being created for the serialized form. |
| 284 message PolicyData { | 286 message PolicyData { |
| 285 // See PolicyFetchRequest.policy_type. | 287 // See PolicyFetchRequest.policy_type. |
| 286 optional string policy_type = 1; | 288 optional string policy_type = 1; |
| 287 | 289 |
| 288 // [timestamp] is milliseconds since Epoch in UTC timezone. It is | 290 // [timestamp] is milliseconds since Epoch in UTC timezone (Java time). It is |
| 289 // included here so that the time at which the server issued this | 291 // included here so that the time at which the server issued this response |
| 290 // response cannot be faked (as protection against replay attacks). | 292 // cannot be faked (as protection against replay attacks). It is the timestamp |
| 291 // It is the timestamp generated by DMServer, NOT the time admin | 293 // generated by DMServer, NOT the time admin last updated the policy or |
| 292 // last updated the policy or anything like that. | 294 // anything like that. |
| 293 optional int64 timestamp = 2; | 295 optional int64 timestamp = 2; |
| 294 | 296 |
| 295 // The DM token that was used by the client in the HTTP POST header | 297 // The DM token that was used by the client in the HTTP POST header |
| 296 // for authenticating the request. It is included here again so that | 298 // for authenticating the request. It is included here again so that |
| 297 // the client can verify that the response is meant for them (and not | 299 // the client can verify that the response is meant for them (and not |
| 298 // issued by a replay or man-in-the-middle attack). | 300 // issued by a replay or man-in-the-middle attack). |
| 299 optional string request_token = 3; | 301 optional string request_token = 3; |
| 300 | 302 |
| 301 // The serialized value of the actual policy protobuf. This can be | 303 // The serialized value of the actual policy protobuf. This can be |
| 302 // deserialized to an instance of, for example, ChromeSettingsProto, | 304 // deserialized to an instance of, for example, ChromeSettingsProto, |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 repeated PolicyFetchRequest request = 3; | 531 repeated PolicyFetchRequest request = 3; |
| 530 } | 532 } |
| 531 | 533 |
| 532 // Response from server to device for reading policies. | 534 // Response from server to device for reading policies. |
| 533 message DevicePolicyResponse { | 535 message DevicePolicyResponse { |
| 534 // The policy fetch response. | 536 // The policy fetch response. |
| 535 repeated PolicyFetchResponse response = 3; | 537 repeated PolicyFetchResponse response = 3; |
| 536 } | 538 } |
| 537 | 539 |
| 538 message TimePeriod { | 540 message TimePeriod { |
| 539 // [timestamp] is milli seconds since Epoch in UTC timezone. | 541 // [timestamp] is milliseconds since Epoch in UTC timezone (Java time). |
| 540 optional int64 start_timestamp = 1; | 542 optional int64 start_timestamp = 1; |
| 541 optional int64 end_timestamp = 2; | 543 optional int64 end_timestamp = 2; |
| 542 } | 544 } |
| 543 | 545 |
| 544 message ActiveTimePeriod { | 546 message ActiveTimePeriod { |
| 545 optional TimePeriod time_period = 1; | 547 optional TimePeriod time_period = 1; |
| 546 | 548 |
| 547 // The active duration during the above time period. | 549 // The active duration during the above time period. |
| 548 // The unit is milli-second. | 550 // The unit is milli-second. |
| 549 optional int32 active_duration = 2; | 551 optional int32 active_duration = 2; |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 RESULT_SUCCESS = 2; // The command was successfully executed. | 1018 RESULT_SUCCESS = 2; // The command was successfully executed. |
| 1017 } | 1019 } |
| 1018 | 1020 |
| 1019 // The result of the command. | 1021 // The result of the command. |
| 1020 optional ResultType result = 1; | 1022 optional ResultType result = 1; |
| 1021 | 1023 |
| 1022 // The opaque unique identifier of the command. This value is copied from the | 1024 // The opaque unique identifier of the command. This value is copied from the |
| 1023 // RemoteCommand protobuf that contained the command. | 1025 // RemoteCommand protobuf that contained the command. |
| 1024 optional int64 command_id = 2; | 1026 optional int64 command_id = 2; |
| 1025 | 1027 |
| 1026 // The time at which the command was executed, if the the result is | 1028 // The timestamp representing time at which the command was executed, if the |
| 1027 // RESULT_SUCCESS. | 1029 // result is RESULT_SUCCESS. The timestamp is milliseconds since Epoch in UTC |
| 1030 // timezone (Java time). |
| 1028 optional int64 timestamp = 3; | 1031 optional int64 timestamp = 3; |
| 1029 | 1032 |
| 1030 // Extra information sent to server as result of execution, expected to be a | 1033 // Extra information sent to server as result of execution, expected to be a |
| 1031 // JSON string. | 1034 // JSON string. |
| 1032 optional string payload = 4; | 1035 optional string payload = 4; |
| 1033 } | 1036 } |
| 1034 | 1037 |
| 1035 message DeviceRemoteCommandRequest { | 1038 message DeviceRemoteCommandRequest { |
| 1036 // The command ID of the last command received from the server until | 1039 // The command ID of the last command received from the server until |
| 1037 // now. Omitted if no commands have been received yet. | 1040 // now. Omitted if no commands have been received yet. |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 check_android_management_response = 18; | 1410 check_android_management_response = 18; |
| 1408 | 1411 |
| 1409 // Response to an Active Directory Play user enrollment request. | 1412 // Response to an Active Directory Play user enrollment request. |
| 1410 optional ActiveDirectoryEnrollPlayUserResponse | 1413 optional ActiveDirectoryEnrollPlayUserResponse |
| 1411 active_directory_enroll_play_user_response = 19; | 1414 active_directory_enroll_play_user_response = 19; |
| 1412 | 1415 |
| 1413 // Response to a Play activity request. | 1416 // Response to a Play activity request. |
| 1414 optional ActiveDirectoryPlayActivityResponse | 1417 optional ActiveDirectoryPlayActivityResponse |
| 1415 active_directory_play_activity_response = 20; | 1418 active_directory_play_activity_response = 20; |
| 1416 } | 1419 } |
| OLD | NEW |