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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 } | 180 } |
181 | 181 |
182 // Response from server to API access request. | 182 // Response from server to API access request. |
183 message DeviceServiceApiAccessResponse { | 183 message DeviceServiceApiAccessResponse { |
184 // The OAuth2 authorization code for the requested scope(s). | 184 // The OAuth2 authorization code for the requested scope(s). |
185 // This can be exchanged for a refresh token. | 185 // This can be exchanged for a refresh token. |
186 optional string auth_code = 1; | 186 optional string auth_code = 1; |
187 } | 187 } |
188 | 188 |
189 message PolicyFetchRequest { | 189 message PolicyFetchRequest { |
190 reserved 5, 10; | |
Thiemo Nagel
2017/05/24 09:17:42
Hey Pavol, I've just realized that the "10" actual
pmarko
2017/05/24 09:42:11
Good catch. Fix CL up:
https://chromium-review.goo
| |
191 | |
190 // This is the policy type, which maps to D3 policy type internally. | 192 // This is the policy type, which maps to D3 policy type internally. |
191 // By convention, we use "/" as separator to create policy namespace. | 193 // By convention, we use "/" as separator to create policy namespace. |
192 // The policy type names are case insensitive. | 194 // The policy type names are case insensitive. |
193 // | 195 // |
194 // Possible values for Chrome OS are: | 196 // Possible values for Chrome OS are: |
195 // google/chromeos/device => ChromeDeviceSettingsProto | 197 // google/chromeos/device => ChromeDeviceSettingsProto |
196 // google/chromeos/user => ChromeSettingsProto | 198 // google/chromeos/user => ChromeSettingsProto |
197 // google/chromeos/publicaccount => ChromeSettingsProto | 199 // google/chromeos/publicaccount => ChromeSettingsProto |
198 // google/chrome/extension => ExternalPolicyData | 200 // google/chrome/extension => ExternalPolicyData |
199 // google/chromeos/signinextension => ExternalPolicyData | 201 // google/chromeos/signinextension => ExternalPolicyData |
(...skipping 13 matching lines...) Expand all Loading... | |
213 } | 215 } |
214 optional SignatureType signature_type = 3 [default = NONE]; | 216 optional SignatureType signature_type = 3 [default = NONE]; |
215 | 217 |
216 // The version number of the public key that is currently stored | 218 // The version number of the public key that is currently stored |
217 // on the client. This should be the last number the server had | 219 // on the client. This should be the last number the server had |
218 // supplied as new_public_key_version in PolicyData. | 220 // supplied as new_public_key_version in PolicyData. |
219 // This field is unspecified if the client does not yet have a | 221 // This field is unspecified if the client does not yet have a |
220 // public key. | 222 // public key. |
221 optional int32 public_key_version = 4; | 223 optional int32 public_key_version = 4; |
222 | 224 |
223 // Machine hardware id, such as serial number. | |
224 // This field is should be set only if the serial number for the device is | |
225 // missing from the server, as indicated by the valid_serial_number_missing | |
226 // field in the last policy fetch response. | |
227 optional string machine_id = 5; | |
228 | |
229 // This field is used for devices to send the additional ID to fetch settings. | 225 // This field is used for devices to send the additional ID to fetch settings. |
230 // Retrieving some settings requires more than just device or user ID. | 226 // Retrieving some settings requires more than just device or user ID. |
231 // For example, to retrieve public account, devices need to pass in | 227 // For example, to retrieve public account, devices need to pass in |
232 // public account ID in addition to device ID. To retrieve extension or | 228 // public account ID in addition to device ID. To retrieve extension or |
233 // plug-in settings, devices need to pass in extension/plug-in ID in | 229 // plug-in settings, devices need to pass in extension/plug-in ID in |
234 // addition to user ID. | 230 // addition to user ID. |
235 // policy_type represents the type of settings (e.g. public account, | 231 // policy_type represents the type of settings (e.g. public account, |
236 // extension) devices request to fetch. | 232 // extension) devices request to fetch. |
237 optional string settings_entity_id = 6; | 233 optional string settings_entity_id = 6; |
238 | 234 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
334 // Association is active and policy is pushed. | 330 // Association is active and policy is pushed. |
335 ACTIVE = 0; | 331 ACTIVE = 0; |
336 // Association is alive, but the corresponding domain is not managed. | 332 // Association is alive, but the corresponding domain is not managed. |
337 UNMANAGED = 1; | 333 UNMANAGED = 1; |
338 // The device has been deprovisioned by the administrator and is no longer | 334 // The device has been deprovisioned by the administrator and is no longer |
339 // managed. | 335 // managed. |
340 DEPROVISIONED = 2; | 336 DEPROVISIONED = 2; |
341 } | 337 } |
342 optional AssociationState state = 9 [default = ACTIVE]; | 338 optional AssociationState state = 9 [default = ACTIVE]; |
343 | 339 |
344 // Indicates if the the server cannot find a valid serial number for the | |
345 // device. If this flag is set, the device should send the valid serial | |
346 // number with a device policy fetch request. Note that this only | |
347 // applies to device policy. | |
348 optional bool valid_serial_number_missing = 10; | |
349 | |
350 // Indicates which public account or extension/plug-in this policy data is | 340 // Indicates which public account or extension/plug-in this policy data is |
351 // for. See PolicyFetchRequest.settings_entity_id for more details. | 341 // for. See PolicyFetchRequest.settings_entity_id for more details. |
352 optional string settings_entity_id = 11; | 342 optional string settings_entity_id = 11; |
353 | 343 |
354 // Indicates the identity the device service account is associated with. | 344 // Indicates the identity the device service account is associated with. |
355 // This is only sent as part of device policy fetch. | 345 // This is only sent as part of device policy fetch. |
356 optional string service_account_identity = 12; | 346 optional string service_account_identity = 12; |
357 | 347 |
358 // The object source which hosts policy objects within the invalidation | 348 // The object source which hosts policy objects within the invalidation |
359 // service. This value is combined with invalidation_name to form the object | 349 // service. This value is combined with invalidation_name to form the object |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1413 check_android_management_response = 18; | 1403 check_android_management_response = 18; |
1414 | 1404 |
1415 // Response to an Active Directory Play user enrollment request. | 1405 // Response to an Active Directory Play user enrollment request. |
1416 optional ActiveDirectoryEnrollPlayUserResponse | 1406 optional ActiveDirectoryEnrollPlayUserResponse |
1417 active_directory_enroll_play_user_response = 19; | 1407 active_directory_enroll_play_user_response = 19; |
1418 | 1408 |
1419 // Response to a Play activity request. | 1409 // Response to a Play activity request. |
1420 optional ActiveDirectoryPlayActivityResponse | 1410 optional ActiveDirectoryPlayActivityResponse |
1421 active_directory_play_activity_response = 20; | 1411 active_directory_play_activity_response = 20; |
1422 } | 1412 } |
OLD | NEW |