OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.androidmanagement.v1; | 3 library googleapis.androidmanagement.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client androidmanagement/v1'; | 15 const core.String USER_AGENT = 'dart-api-client androidmanagement/v1'; |
16 | 16 |
17 /** | 17 /** |
18 * The Android Management API provides remote enterprise management of Android | 18 * The Android Management API provides remote enterprise management of Android |
19 * devices and apps. | 19 * devices and apps. |
20 */ | 20 */ |
21 class AndroidmanagementApi { | 21 class AndroidmanagementApi { |
| 22 /** Manage Android devices and apps for your customers */ |
| 23 static const AndroidmanagementScope = "https://www.googleapis.com/auth/android
management"; |
| 24 |
22 | 25 |
23 final commons.ApiRequester _requester; | 26 final commons.ApiRequester _requester; |
24 | 27 |
25 EnterprisesResourceApi get enterprises => new EnterprisesResourceApi(_requeste
r); | 28 EnterprisesResourceApi get enterprises => new EnterprisesResourceApi(_requeste
r); |
26 SignupUrlsResourceApi get signupUrls => new SignupUrlsResourceApi(_requester); | 29 SignupUrlsResourceApi get signupUrls => new SignupUrlsResourceApi(_requester); |
27 | 30 |
28 AndroidmanagementApi(http.Client client, {core.String rootUrl: "https://androi
dmanagement.googleapis.com/", core.String servicePath: ""}) : | 31 AndroidmanagementApi(http.Client client, {core.String rootUrl: "https://androi
dmanagement.googleapis.com/", core.String servicePath: ""}) : |
29 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
30 } | 33 } |
31 | 34 |
(...skipping 10 matching lines...) Expand all Loading... |
42 EnterprisesResourceApi(commons.ApiRequester client) : | 45 EnterprisesResourceApi(commons.ApiRequester client) : |
43 _requester = client; | 46 _requester = client; |
44 | 47 |
45 /** | 48 /** |
46 * Creates an enterprise by completing the enterprise signup flow. | 49 * Creates an enterprise by completing the enterprise signup flow. |
47 * | 50 * |
48 * [request] - The metadata request object. | 51 * [request] - The metadata request object. |
49 * | 52 * |
50 * Request parameters: | 53 * Request parameters: |
51 * | 54 * |
52 * [signupUrlName] - The name of the | 55 * [signupUrlName] - The name of the SignupUrl used to sign up for the |
53 * [`SignupUrl`](/android/management/reference/rest/v1/signupUrls#SignupUrl) | 56 * enterprise. |
54 * used to sign up for the enterprise. | |
55 * | 57 * |
56 * [enterpriseToken] - The enterprise token appended to the callback URL. | 58 * [enterpriseToken] - The enterprise token appended to the callback URL. |
57 * | 59 * |
58 * [projectId] - The id of the Google Cloud Platform project which will own | 60 * [projectId] - The id of the Google Cloud Platform project which will own |
59 * the enterprise. | 61 * the enterprise. |
60 * | 62 * |
61 * Completes with a [Enterprise]. | 63 * Completes with a [Enterprise]. |
62 * | 64 * |
63 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 65 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
64 * error. | 66 * error. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 uploadMedia: _uploadMedia, | 99 uploadMedia: _uploadMedia, |
98 downloadOptions: _downloadOptions); | 100 downloadOptions: _downloadOptions); |
99 return _response.then((data) => new Enterprise.fromJson(data)); | 101 return _response.then((data) => new Enterprise.fromJson(data)); |
100 } | 102 } |
101 | 103 |
102 /** | 104 /** |
103 * Gets an enterprise. | 105 * Gets an enterprise. |
104 * | 106 * |
105 * Request parameters: | 107 * Request parameters: |
106 * | 108 * |
107 * [name] - The name of the enterprise in the form | 109 * [name] - The name of the enterprise in the form enterprises/{enterpriseId} |
108 * `enterprises/{enterpriseId}` | |
109 * Value must have pattern "^enterprises/[^/]+$". | 110 * Value must have pattern "^enterprises/[^/]+$". |
110 * | 111 * |
111 * Completes with a [Enterprise]. | 112 * Completes with a [Enterprise]. |
112 * | 113 * |
113 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 114 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
114 * error. | 115 * error. |
115 * | 116 * |
116 * If the used [http.Client] completes with an error when making a REST call, | 117 * If the used [http.Client] completes with an error when making a REST call, |
117 * this method will complete with the same error. | 118 * this method will complete with the same error. |
118 */ | 119 */ |
(...skipping 21 matching lines...) Expand all Loading... |
140 return _response.then((data) => new Enterprise.fromJson(data)); | 141 return _response.then((data) => new Enterprise.fromJson(data)); |
141 } | 142 } |
142 | 143 |
143 /** | 144 /** |
144 * Updates an enterprise. | 145 * Updates an enterprise. |
145 * | 146 * |
146 * [request] - The metadata request object. | 147 * [request] - The metadata request object. |
147 * | 148 * |
148 * Request parameters: | 149 * Request parameters: |
149 * | 150 * |
150 * [name] - The name of the enterprise in the form | 151 * [name] - The name of the enterprise in the form enterprises/{enterpriseId} |
151 * `enterprises/{enterpriseId}` | |
152 * Value must have pattern "^enterprises/[^/]+$". | 152 * Value must have pattern "^enterprises/[^/]+$". |
153 * | 153 * |
154 * [updateMask] - The field mask indicating the fields to update. | 154 * [updateMask] - The field mask indicating the fields to update. If not set, |
155 * If not set, all modifiable fields will be modified. | 155 * all modifiable fields will be modified. |
156 * | 156 * |
157 * Completes with a [Enterprise]. | 157 * Completes with a [Enterprise]. |
158 * | 158 * |
159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
160 * error. | 160 * error. |
161 * | 161 * |
162 * If the used [http.Client] completes with an error when making a REST call, | 162 * If the used [http.Client] completes with an error when making a REST call, |
163 * this method will complete with the same error. | 163 * this method will complete with the same error. |
164 */ | 164 */ |
165 async.Future<Enterprise> patch(Enterprise request, core.String name, {core.Str
ing updateMask}) { | 165 async.Future<Enterprise> patch(Enterprise request, core.String name, {core.Str
ing updateMask}) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 EnterprisesApplicationsResourceApi(commons.ApiRequester client) : | 201 EnterprisesApplicationsResourceApi(commons.ApiRequester client) : |
202 _requester = client; | 202 _requester = client; |
203 | 203 |
204 /** | 204 /** |
205 * Gets info about an application. | 205 * Gets info about an application. |
206 * | 206 * |
207 * Request parameters: | 207 * Request parameters: |
208 * | 208 * |
209 * [name] - The name of the application in the form | 209 * [name] - The name of the application in the form |
210 * `enterprises/{enterpriseId}/applications/{package_name}` | 210 * enterprises/{enterpriseId}/applications/{package_name} |
211 * Value must have pattern "^enterprises/[^/]+/applications/[^/]+$". | 211 * Value must have pattern "^enterprises/[^/]+/applications/[^/]+$". |
212 * | 212 * |
213 * [languageCode] - The preferred language for localized application info, as | 213 * [languageCode] - The preferred language for localized application info, as |
214 * a BCP47 tag | 214 * a BCP47 tag (e.g. "en-US", "de"). If not specified the default language of |
215 * (e.g. "en-US", "de"). If not specified the default language of the | 215 * the application will be used. |
216 * application will be used. | |
217 * | 216 * |
218 * Completes with a [Application]. | 217 * Completes with a [Application]. |
219 * | 218 * |
220 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 219 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
221 * error. | 220 * error. |
222 * | 221 * |
223 * If the used [http.Client] completes with an error when making a REST call, | 222 * If the used [http.Client] completes with an error when making a REST call, |
224 * this method will complete with the same error. | 223 * this method will complete with the same error. |
225 */ | 224 */ |
226 async.Future<Application> get(core.String name, {core.String languageCode}) { | 225 async.Future<Application> get(core.String name, {core.String languageCode}) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 259 |
261 EnterprisesDevicesResourceApi(commons.ApiRequester client) : | 260 EnterprisesDevicesResourceApi(commons.ApiRequester client) : |
262 _requester = client; | 261 _requester = client; |
263 | 262 |
264 /** | 263 /** |
265 * Deletes a device, which causes the device to be wiped. | 264 * Deletes a device, which causes the device to be wiped. |
266 * | 265 * |
267 * Request parameters: | 266 * Request parameters: |
268 * | 267 * |
269 * [name] - The name of the device in the form | 268 * [name] - The name of the device in the form |
270 * `enterprises/{enterpriseId}/devices/{deviceId}` | 269 * enterprises/{enterpriseId}/devices/{deviceId} |
271 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". | 270 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". |
272 * | 271 * |
273 * Completes with a [Empty]. | 272 * Completes with a [Empty]. |
274 * | 273 * |
275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 274 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
276 * error. | 275 * error. |
277 * | 276 * |
278 * If the used [http.Client] completes with an error when making a REST call, | 277 * If the used [http.Client] completes with an error when making a REST call, |
279 * this method will complete with the same error. | 278 * this method will complete with the same error. |
280 */ | 279 */ |
(...skipping 20 matching lines...) Expand all Loading... |
301 downloadOptions: _downloadOptions); | 300 downloadOptions: _downloadOptions); |
302 return _response.then((data) => new Empty.fromJson(data)); | 301 return _response.then((data) => new Empty.fromJson(data)); |
303 } | 302 } |
304 | 303 |
305 /** | 304 /** |
306 * Gets a device. | 305 * Gets a device. |
307 * | 306 * |
308 * Request parameters: | 307 * Request parameters: |
309 * | 308 * |
310 * [name] - The name of the device in the form | 309 * [name] - The name of the device in the form |
311 * `enterprises/{enterpriseId}/devices/{deviceId}` | 310 * enterprises/{enterpriseId}/devices/{deviceId} |
312 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". | 311 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". |
313 * | 312 * |
314 * Completes with a [Device]. | 313 * Completes with a [Device]. |
315 * | 314 * |
316 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 315 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
317 * error. | 316 * error. |
318 * | 317 * |
319 * If the used [http.Client] completes with an error when making a REST call, | 318 * If the used [http.Client] completes with an error when making a REST call, |
320 * this method will complete with the same error. | 319 * this method will complete with the same error. |
321 */ | 320 */ |
(...skipping 15 matching lines...) Expand all Loading... |
337 "GET", | 336 "GET", |
338 body: _body, | 337 body: _body, |
339 queryParams: _queryParams, | 338 queryParams: _queryParams, |
340 uploadOptions: _uploadOptions, | 339 uploadOptions: _uploadOptions, |
341 uploadMedia: _uploadMedia, | 340 uploadMedia: _uploadMedia, |
342 downloadOptions: _downloadOptions); | 341 downloadOptions: _downloadOptions); |
343 return _response.then((data) => new Device.fromJson(data)); | 342 return _response.then((data) => new Device.fromJson(data)); |
344 } | 343 } |
345 | 344 |
346 /** | 345 /** |
347 * Issues a command to a device. The | 346 * Issues a command to a device. The Operation resource returned contains a |
348 * [`Operation`](/android/management/reference/rest/v1/enterprises.devices.ope
rations#Operation) | 347 * Command in its metadata field. Use the get operation method to get the |
349 * resource returned contains a | 348 * status of the command. |
350 * [`Command`](/android/management/reference/rest/v1/enterprises.devices/issue
Command#Command) | |
351 * in its `metadata` field. | |
352 * Use the | |
353 * [get operation | |
354 * method](/android/management/reference/rest/v1/enterprises.devices.operation
s/get) | |
355 * to get the status of the command. | |
356 * | 349 * |
357 * [request] - The metadata request object. | 350 * [request] - The metadata request object. |
358 * | 351 * |
359 * Request parameters: | 352 * Request parameters: |
360 * | 353 * |
361 * [name] - The name of the device in the form | 354 * [name] - The name of the device in the form |
362 * `enterprises/{enterpriseId}/devices/{deviceId}` | 355 * enterprises/{enterpriseId}/devices/{deviceId} |
363 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". | 356 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". |
364 * | 357 * |
365 * Completes with a [Operation]. | 358 * Completes with a [Operation]. |
366 * | 359 * |
367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 360 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
368 * error. | 361 * error. |
369 * | 362 * |
370 * If the used [http.Client] completes with an error when making a REST call, | 363 * If the used [http.Client] completes with an error when making a REST call, |
371 * this method will complete with the same error. | 364 * this method will complete with the same error. |
372 */ | 365 */ |
(...skipping 23 matching lines...) Expand all Loading... |
396 downloadOptions: _downloadOptions); | 389 downloadOptions: _downloadOptions); |
397 return _response.then((data) => new Operation.fromJson(data)); | 390 return _response.then((data) => new Operation.fromJson(data)); |
398 } | 391 } |
399 | 392 |
400 /** | 393 /** |
401 * Lists devices for a given enterprise. | 394 * Lists devices for a given enterprise. |
402 * | 395 * |
403 * Request parameters: | 396 * Request parameters: |
404 * | 397 * |
405 * [parent] - The name of the enterprise in the form | 398 * [parent] - The name of the enterprise in the form |
406 * `enterprises/{enterpriseId}` | 399 * enterprises/{enterpriseId} |
407 * Value must have pattern "^enterprises/[^/]+$". | 400 * Value must have pattern "^enterprises/[^/]+$". |
408 * | 401 * |
409 * [pageSize] - The requested page size. The actual page size may be fixed to | 402 * [pageSize] - The requested page size. The actual page size may be fixed to |
410 * a min or max | 403 * a min or max value. |
411 * value. | |
412 * | 404 * |
413 * [pageToken] - A token identifying a page of results the server should | 405 * [pageToken] - A token identifying a page of results the server should |
414 * return. | 406 * return. |
415 * | 407 * |
416 * Completes with a [ListDevicesResponse]. | 408 * Completes with a [ListDevicesResponse]. |
417 * | 409 * |
418 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 410 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
419 * error. | 411 * error. |
420 * | 412 * |
421 * If the used [http.Client] completes with an error when making a REST call, | 413 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 30 matching lines...) Expand all Loading... |
452 } | 444 } |
453 | 445 |
454 /** | 446 /** |
455 * Updates a device. | 447 * Updates a device. |
456 * | 448 * |
457 * [request] - The metadata request object. | 449 * [request] - The metadata request object. |
458 * | 450 * |
459 * Request parameters: | 451 * Request parameters: |
460 * | 452 * |
461 * [name] - The name of the device in the form | 453 * [name] - The name of the device in the form |
462 * `enterprises/{enterpriseId}/devices/{deviceId}` | 454 * enterprises/{enterpriseId}/devices/{deviceId} |
463 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". | 455 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". |
464 * | 456 * |
465 * [updateMask] - The field mask indicating the fields to update. | 457 * [updateMask] - The field mask indicating the fields to update. If not set, |
466 * If not set, all modifiable fields will be modified. | 458 * all modifiable fields will be modified. |
467 * | 459 * |
468 * Completes with a [Device]. | 460 * Completes with a [Device]. |
469 * | 461 * |
470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 462 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
471 * error. | 463 * error. |
472 * | 464 * |
473 * If the used [http.Client] completes with an error when making a REST call, | 465 * If the used [http.Client] completes with an error when making a REST call, |
474 * this method will complete with the same error. | 466 * this method will complete with the same error. |
475 */ | 467 */ |
476 async.Future<Device> patch(Device request, core.String name, {core.String upda
teMask}) { | 468 async.Future<Device> patch(Device request, core.String name, {core.String upda
teMask}) { |
(...skipping 29 matching lines...) Expand all Loading... |
506 } | 498 } |
507 | 499 |
508 | 500 |
509 class EnterprisesDevicesOperationsResourceApi { | 501 class EnterprisesDevicesOperationsResourceApi { |
510 final commons.ApiRequester _requester; | 502 final commons.ApiRequester _requester; |
511 | 503 |
512 EnterprisesDevicesOperationsResourceApi(commons.ApiRequester client) : | 504 EnterprisesDevicesOperationsResourceApi(commons.ApiRequester client) : |
513 _requester = client; | 505 _requester = client; |
514 | 506 |
515 /** | 507 /** |
516 * Starts asynchronous cancellation on a long-running operation. The server | 508 * Starts asynchronous cancellation on a long-running operation. The server |
517 * makes a best effort to cancel the operation, but success is not | 509 * makes a best effort to cancel the operation, but success is not guaranteed. |
518 * guaranteed. If the server doesn't support this method, it returns | 510 * If the server doesn't support this method, it returns |
519 * `google.rpc.Code.UNIMPLEMENTED`. Clients can use | 511 * google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or |
520 * Operations.GetOperation or | |
521 * other methods to check whether the cancellation succeeded or whether the | 512 * other methods to check whether the cancellation succeeded or whether the |
522 * operation completed despite cancellation. On successful cancellation, | 513 * operation completed despite cancellation. On successful cancellation, the |
523 * the operation is not deleted; instead, it becomes an operation with | 514 * operation is not deleted; instead, it becomes an operation with an |
524 * an Operation.error value with a google.rpc.Status.code of 1, | 515 * Operation.error value with a google.rpc.Status.code of 1, corresponding to |
525 * corresponding to `Code.CANCELLED`. | 516 * Code.CANCELLED. |
526 * | 517 * |
527 * Request parameters: | 518 * Request parameters: |
528 * | 519 * |
529 * [name] - The name of the operation resource to be cancelled. | 520 * [name] - The name of the operation resource to be cancelled. |
530 * Value must have pattern | 521 * Value must have pattern |
531 * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". | 522 * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". |
532 * | 523 * |
533 * Completes with a [Empty]. | 524 * Completes with a [Empty]. |
534 * | 525 * |
535 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 526 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
559 uploadOptions: _uploadOptions, | 550 uploadOptions: _uploadOptions, |
560 uploadMedia: _uploadMedia, | 551 uploadMedia: _uploadMedia, |
561 downloadOptions: _downloadOptions); | 552 downloadOptions: _downloadOptions); |
562 return _response.then((data) => new Empty.fromJson(data)); | 553 return _response.then((data) => new Empty.fromJson(data)); |
563 } | 554 } |
564 | 555 |
565 /** | 556 /** |
566 * Deletes a long-running operation. This method indicates that the client is | 557 * Deletes a long-running operation. This method indicates that the client is |
567 * no longer interested in the operation result. It does not cancel the | 558 * no longer interested in the operation result. It does not cancel the |
568 * operation. If the server doesn't support this method, it returns | 559 * operation. If the server doesn't support this method, it returns |
569 * `google.rpc.Code.UNIMPLEMENTED`. | 560 * google.rpc.Code.UNIMPLEMENTED. |
570 * | 561 * |
571 * Request parameters: | 562 * Request parameters: |
572 * | 563 * |
573 * [name] - The name of the operation resource to be deleted. | 564 * [name] - The name of the operation resource to be deleted. |
574 * Value must have pattern | 565 * Value must have pattern |
575 * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". | 566 * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". |
576 * | 567 * |
577 * Completes with a [Empty]. | 568 * Completes with a [Empty]. |
578 * | 569 * |
579 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 570 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 20 matching lines...) Expand all Loading... |
600 "DELETE", | 591 "DELETE", |
601 body: _body, | 592 body: _body, |
602 queryParams: _queryParams, | 593 queryParams: _queryParams, |
603 uploadOptions: _uploadOptions, | 594 uploadOptions: _uploadOptions, |
604 uploadMedia: _uploadMedia, | 595 uploadMedia: _uploadMedia, |
605 downloadOptions: _downloadOptions); | 596 downloadOptions: _downloadOptions); |
606 return _response.then((data) => new Empty.fromJson(data)); | 597 return _response.then((data) => new Empty.fromJson(data)); |
607 } | 598 } |
608 | 599 |
609 /** | 600 /** |
610 * Gets the latest state of a long-running operation. Clients can use this | 601 * Gets the latest state of a long-running operation. Clients can use this |
611 * method to poll the operation result at intervals as recommended by the API | 602 * method to poll the operation result at intervals as recommended by the API |
612 * service. | 603 * service. |
613 * | 604 * |
614 * Request parameters: | 605 * Request parameters: |
615 * | 606 * |
616 * [name] - The name of the operation resource. | 607 * [name] - The name of the operation resource. |
617 * Value must have pattern | 608 * Value must have pattern |
618 * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". | 609 * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". |
619 * | 610 * |
620 * Completes with a [Operation]. | 611 * Completes with a [Operation]. |
(...skipping 23 matching lines...) Expand all Loading... |
644 body: _body, | 635 body: _body, |
645 queryParams: _queryParams, | 636 queryParams: _queryParams, |
646 uploadOptions: _uploadOptions, | 637 uploadOptions: _uploadOptions, |
647 uploadMedia: _uploadMedia, | 638 uploadMedia: _uploadMedia, |
648 downloadOptions: _downloadOptions); | 639 downloadOptions: _downloadOptions); |
649 return _response.then((data) => new Operation.fromJson(data)); | 640 return _response.then((data) => new Operation.fromJson(data)); |
650 } | 641 } |
651 | 642 |
652 /** | 643 /** |
653 * Lists operations that match the specified filter in the request. If the | 644 * Lists operations that match the specified filter in the request. If the |
654 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 645 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
655 * | 646 * binding allows API services to override the binding to use different |
656 * NOTE: the `name` binding allows API services to override the binding | 647 * resource name schemes, such as users / * /operations. To override the |
657 * to use different resource name schemes, such as `users / * /operations`. To | 648 * binding, API services can add a binding such as "/v1/{name=users / * |
658 * override the binding, API services can add a binding such as | 649 * }/operations" to their service configuration. For backwards compatibility, |
659 * `"/v1/{name=users / * }/operations"` to their service configuration. | 650 * the default name includes the operations collection id, however overriding |
660 * For backwards compatibility, the default name includes the operations | 651 * users must ensure the name binding is the parent resource, without the |
661 * collection id, however overriding users must ensure the name binding | 652 * operations collection id. |
662 * is the parent resource, without the operations collection id. | |
663 * | 653 * |
664 * Request parameters: | 654 * Request parameters: |
665 * | 655 * |
666 * [name] - The name of the operation's parent resource. | 656 * [name] - The name of the operation's parent resource. |
667 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+/operations$". | 657 * Value must have pattern "^enterprises/[^/]+/devices/[^/]+/operations$". |
668 * | 658 * |
669 * [pageSize] - The standard list page size. | 659 * [pageSize] - The standard list page size. |
670 * | 660 * |
671 * [filter] - The standard list filter. | 661 * [filter] - The standard list filter. |
672 * | 662 * |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 _requester = client; | 713 _requester = client; |
724 | 714 |
725 /** | 715 /** |
726 * Creates an enrollment token for a given enterprise. | 716 * Creates an enrollment token for a given enterprise. |
727 * | 717 * |
728 * [request] - The metadata request object. | 718 * [request] - The metadata request object. |
729 * | 719 * |
730 * Request parameters: | 720 * Request parameters: |
731 * | 721 * |
732 * [parent] - The name of the enterprise in the form | 722 * [parent] - The name of the enterprise in the form |
733 * `enterprises/{enterpriseId}` | 723 * enterprises/{enterpriseId} |
734 * Value must have pattern "^enterprises/[^/]+$". | 724 * Value must have pattern "^enterprises/[^/]+$". |
735 * | 725 * |
736 * Completes with a [EnrollmentToken]. | 726 * Completes with a [EnrollmentToken]. |
737 * | 727 * |
738 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 728 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
739 * error. | 729 * error. |
740 * | 730 * |
741 * If the used [http.Client] completes with an error when making a REST call, | 731 * If the used [http.Client] completes with an error when making a REST call, |
742 * this method will complete with the same error. | 732 * this method will complete with the same error. |
743 */ | 733 */ |
(...skipping 23 matching lines...) Expand all Loading... |
767 downloadOptions: _downloadOptions); | 757 downloadOptions: _downloadOptions); |
768 return _response.then((data) => new EnrollmentToken.fromJson(data)); | 758 return _response.then((data) => new EnrollmentToken.fromJson(data)); |
769 } | 759 } |
770 | 760 |
771 /** | 761 /** |
772 * Deletes an enrollment token, which prevents future use of the token. | 762 * Deletes an enrollment token, which prevents future use of the token. |
773 * | 763 * |
774 * Request parameters: | 764 * Request parameters: |
775 * | 765 * |
776 * [name] - The name of the enrollment token in the form | 766 * [name] - The name of the enrollment token in the form |
777 * `enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}` | 767 * enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId} |
778 * Value must have pattern "^enterprises/[^/]+/enrollmentTokens/[^/]+$". | 768 * Value must have pattern "^enterprises/[^/]+/enrollmentTokens/[^/]+$". |
779 * | 769 * |
780 * Completes with a [Empty]. | 770 * Completes with a [Empty]. |
781 * | 771 * |
782 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
783 * error. | 773 * error. |
784 * | 774 * |
785 * If the used [http.Client] completes with an error when making a REST call, | 775 * If the used [http.Client] completes with an error when making a REST call, |
786 * this method will complete with the same error. | 776 * this method will complete with the same error. |
787 */ | 777 */ |
(...skipping 30 matching lines...) Expand all Loading... |
818 EnterprisesPoliciesResourceApi(commons.ApiRequester client) : | 808 EnterprisesPoliciesResourceApi(commons.ApiRequester client) : |
819 _requester = client; | 809 _requester = client; |
820 | 810 |
821 /** | 811 /** |
822 * Deletes a policy. This operation is only permitted if no devices are | 812 * Deletes a policy. This operation is only permitted if no devices are |
823 * currently referencing the policy. | 813 * currently referencing the policy. |
824 * | 814 * |
825 * Request parameters: | 815 * Request parameters: |
826 * | 816 * |
827 * [name] - The name of the policy in the form | 817 * [name] - The name of the policy in the form |
828 * `enterprises/{enterpriseId}/policies/{policyId}` | 818 * enterprises/{enterpriseId}/policies/{policyId} |
829 * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". | 819 * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". |
830 * | 820 * |
831 * Completes with a [Empty]. | 821 * Completes with a [Empty]. |
832 * | 822 * |
833 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 823 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
834 * error. | 824 * error. |
835 * | 825 * |
836 * If the used [http.Client] completes with an error when making a REST call, | 826 * If the used [http.Client] completes with an error when making a REST call, |
837 * this method will complete with the same error. | 827 * this method will complete with the same error. |
838 */ | 828 */ |
(...skipping 20 matching lines...) Expand all Loading... |
859 downloadOptions: _downloadOptions); | 849 downloadOptions: _downloadOptions); |
860 return _response.then((data) => new Empty.fromJson(data)); | 850 return _response.then((data) => new Empty.fromJson(data)); |
861 } | 851 } |
862 | 852 |
863 /** | 853 /** |
864 * Gets a policy. | 854 * Gets a policy. |
865 * | 855 * |
866 * Request parameters: | 856 * Request parameters: |
867 * | 857 * |
868 * [name] - The name of the policy in the form | 858 * [name] - The name of the policy in the form |
869 * `enterprises/{enterpriseId}/policies/{policyId}` | 859 * enterprises/{enterpriseId}/policies/{policyId} |
870 * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". | 860 * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". |
871 * | 861 * |
872 * Completes with a [Policy]. | 862 * Completes with a [Policy]. |
873 * | 863 * |
874 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 864 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
875 * error. | 865 * error. |
876 * | 866 * |
877 * If the used [http.Client] completes with an error when making a REST call, | 867 * If the used [http.Client] completes with an error when making a REST call, |
878 * this method will complete with the same error. | 868 * this method will complete with the same error. |
879 */ | 869 */ |
(...skipping 20 matching lines...) Expand all Loading... |
900 downloadOptions: _downloadOptions); | 890 downloadOptions: _downloadOptions); |
901 return _response.then((data) => new Policy.fromJson(data)); | 891 return _response.then((data) => new Policy.fromJson(data)); |
902 } | 892 } |
903 | 893 |
904 /** | 894 /** |
905 * Lists policies for a given enterprise. | 895 * Lists policies for a given enterprise. |
906 * | 896 * |
907 * Request parameters: | 897 * Request parameters: |
908 * | 898 * |
909 * [parent] - The name of the enterprise in the form | 899 * [parent] - The name of the enterprise in the form |
910 * `enterprises/{enterpriseId}` | 900 * enterprises/{enterpriseId} |
911 * Value must have pattern "^enterprises/[^/]+$". | 901 * Value must have pattern "^enterprises/[^/]+$". |
912 * | 902 * |
913 * [pageSize] - The requested page size. The actual page size may be fixed to | 903 * [pageSize] - The requested page size. The actual page size may be fixed to |
914 * a min or max | 904 * a min or max value. |
915 * value. | |
916 * | 905 * |
917 * [pageToken] - A token identifying a page of results the server should | 906 * [pageToken] - A token identifying a page of results the server should |
918 * return. | 907 * return. |
919 * | 908 * |
920 * Completes with a [ListPoliciesResponse]. | 909 * Completes with a [ListPoliciesResponse]. |
921 * | 910 * |
922 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 911 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
923 * error. | 912 * error. |
924 * | 913 * |
925 * If the used [http.Client] completes with an error when making a REST call, | 914 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 30 matching lines...) Expand all Loading... |
956 } | 945 } |
957 | 946 |
958 /** | 947 /** |
959 * Updates or creates a policy. | 948 * Updates or creates a policy. |
960 * | 949 * |
961 * [request] - The metadata request object. | 950 * [request] - The metadata request object. |
962 * | 951 * |
963 * Request parameters: | 952 * Request parameters: |
964 * | 953 * |
965 * [name] - The name of the policy in the form | 954 * [name] - The name of the policy in the form |
966 * `enterprises/{enterpriseId}/policies/{policyId}` | 955 * enterprises/{enterpriseId}/policies/{policyId} |
967 * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". | 956 * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". |
968 * | 957 * |
969 * [updateMask] - The field mask indicating the fields to update. | 958 * [updateMask] - The field mask indicating the fields to update. If not set, |
970 * If not set, all modifiable fields will be modified. | 959 * all modifiable fields will be modified. |
971 * | 960 * |
972 * Completes with a [Policy]. | 961 * Completes with a [Policy]. |
973 * | 962 * |
974 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 963 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
975 * error. | 964 * error. |
976 * | 965 * |
977 * If the used [http.Client] completes with an error when making a REST call, | 966 * If the used [http.Client] completes with an error when making a REST call, |
978 * this method will complete with the same error. | 967 * this method will complete with the same error. |
979 */ | 968 */ |
980 async.Future<Policy> patch(Policy request, core.String name, {core.String upda
teMask}) { | 969 async.Future<Policy> patch(Policy request, core.String name, {core.String upda
teMask}) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 | 1007 |
1019 /** | 1008 /** |
1020 * Creates a web token to access an embeddable managed Google Play web UI for | 1009 * Creates a web token to access an embeddable managed Google Play web UI for |
1021 * a given enterprise. | 1010 * a given enterprise. |
1022 * | 1011 * |
1023 * [request] - The metadata request object. | 1012 * [request] - The metadata request object. |
1024 * | 1013 * |
1025 * Request parameters: | 1014 * Request parameters: |
1026 * | 1015 * |
1027 * [parent] - The name of the enterprise in the form | 1016 * [parent] - The name of the enterprise in the form |
1028 * `enterprises/{enterpriseId}` | 1017 * enterprises/{enterpriseId} |
1029 * Value must have pattern "^enterprises/[^/]+$". | 1018 * Value must have pattern "^enterprises/[^/]+$". |
1030 * | 1019 * |
1031 * Completes with a [WebToken]. | 1020 * Completes with a [WebToken]. |
1032 * | 1021 * |
1033 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1022 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1034 * error. | 1023 * error. |
1035 * | 1024 * |
1036 * If the used [http.Client] completes with an error when making a REST call, | 1025 * If the used [http.Client] completes with an error when making a REST call, |
1037 * this method will complete with the same error. | 1026 * this method will complete with the same error. |
1038 */ | 1027 */ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 | 1060 |
1072 SignupUrlsResourceApi(commons.ApiRequester client) : | 1061 SignupUrlsResourceApi(commons.ApiRequester client) : |
1073 _requester = client; | 1062 _requester = client; |
1074 | 1063 |
1075 /** | 1064 /** |
1076 * Creates an enterprise signup URL. | 1065 * Creates an enterprise signup URL. |
1077 * | 1066 * |
1078 * Request parameters: | 1067 * Request parameters: |
1079 * | 1068 * |
1080 * [callbackUrl] - The callback URL to which the admin will be redirected | 1069 * [callbackUrl] - The callback URL to which the admin will be redirected |
1081 * after successfully | 1070 * after successfully creating an enterprise. Before redirecting there the |
1082 * creating an enterprise. Before redirecting there the system will add a | 1071 * system will add a query parameter to this URL named enterpriseToken which |
1083 * query parameter to this URL named `enterpriseToken` which will | 1072 * will contain an opaque token to be used for the create enterprise request. |
1084 * contain an opaque token to be used for the | 1073 * The URL will be parsed then reformatted in order to add the enterpriseToken |
1085 * [create | 1074 * parameter, so there may be some minor formatting changes. |
1086 * enterprise](/android/management/reference/rest/v1/enterprises/create) | |
1087 * request. The URL will be parsed then reformatted in order to add the | |
1088 * `enterpriseToken` parameter, so there may be some minor formatting changes. | |
1089 * | 1075 * |
1090 * [projectId] - The id of the Google Cloud Platform project which will own | 1076 * [projectId] - The id of the Google Cloud Platform project which will own |
1091 * the enterprise. | 1077 * the enterprise. |
1092 * | 1078 * |
1093 * Completes with a [SignupUrl]. | 1079 * Completes with a [SignupUrl]. |
1094 * | 1080 * |
1095 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1081 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1096 * error. | 1082 * error. |
1097 * | 1083 * |
1098 * If the used [http.Client] completes with an error when making a REST call, | 1084 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 | 1147 |
1162 /** Application information. */ | 1148 /** Application information. */ |
1163 class Application { | 1149 class Application { |
1164 /** | 1150 /** |
1165 * The set of managed properties available to be pre-configured for the | 1151 * The set of managed properties available to be pre-configured for the |
1166 * application. | 1152 * application. |
1167 */ | 1153 */ |
1168 core.List<ManagedProperty> managedProperties; | 1154 core.List<ManagedProperty> managedProperties; |
1169 /** | 1155 /** |
1170 * The name of the application in the form | 1156 * The name of the application in the form |
1171 * `enterprises/{enterpriseId}/applications/{package_name}` | 1157 * enterprises/{enterpriseId}/applications/{package_name} |
1172 */ | 1158 */ |
1173 core.String name; | 1159 core.String name; |
1174 /** The permissions required by the app. */ | 1160 /** The permissions required by the app. */ |
1175 core.List<ApplicationPermission> permissions; | 1161 core.List<ApplicationPermission> permissions; |
1176 /** The title of the application. Localized. */ | 1162 /** The title of the application. Localized. */ |
1177 core.String title; | 1163 core.String title; |
1178 | 1164 |
1179 Application(); | 1165 Application(); |
1180 | 1166 |
1181 Application.fromJson(core.Map _json) { | 1167 Application.fromJson(core.Map _json) { |
(...skipping 25 matching lines...) Expand all Loading... |
1207 if (title != null) { | 1193 if (title != null) { |
1208 _json["title"] = title; | 1194 _json["title"] = title; |
1209 } | 1195 } |
1210 return _json; | 1196 return _json; |
1211 } | 1197 } |
1212 } | 1198 } |
1213 | 1199 |
1214 /** Application permission. */ | 1200 /** Application permission. */ |
1215 class ApplicationPermission { | 1201 class ApplicationPermission { |
1216 /** | 1202 /** |
1217 * A longer description of the permission, giving more details of | 1203 * A longer description of the permission, giving more details of what it |
1218 * what it affects. Localized. | 1204 * affects. Localized. |
1219 */ | 1205 */ |
1220 core.String description; | 1206 core.String description; |
1221 /** The name of the permission. Localized. */ | 1207 /** The name of the permission. Localized. */ |
1222 core.String name; | 1208 core.String name; |
1223 /** An opaque string uniquely identifying the permission. Not localized. */ | 1209 /** An opaque string uniquely identifying the permission. Not localized. */ |
1224 core.String permissionId; | 1210 core.String permissionId; |
1225 | 1211 |
1226 ApplicationPermission(); | 1212 ApplicationPermission(); |
1227 | 1213 |
1228 ApplicationPermission.fromJson(core.Map _json) { | 1214 ApplicationPermission.fromJson(core.Map _json) { |
(...skipping 20 matching lines...) Expand all Loading... |
1249 _json["permissionId"] = permissionId; | 1235 _json["permissionId"] = permissionId; |
1250 } | 1236 } |
1251 return _json; | 1237 return _json; |
1252 } | 1238 } |
1253 } | 1239 } |
1254 | 1240 |
1255 /** Policy for an individual app. */ | 1241 /** Policy for an individual app. */ |
1256 class ApplicationPolicy { | 1242 class ApplicationPolicy { |
1257 /** | 1243 /** |
1258 * The default policy for all permissions requested by the app. If specified, | 1244 * The default policy for all permissions requested by the app. If specified, |
1259 * this overrides the policy-level `default_permission_policy` which applies | 1245 * this overrides the policy-level default_permission_policy which applies to |
1260 * to all apps. | 1246 * all apps. |
1261 * Possible string values are: | 1247 * Possible string values are: |
1262 * - "PERMISSION_POLICY_UNSPECIFIED" : Policy not specified. If no policy is | 1248 * - "PERMISSION_POLICY_UNSPECIFIED" : Policy not specified. If no policy is |
1263 * specified for a permission at any | 1249 * specified for a permission at any level, then the PROMPT behavior is used |
1264 * level, then the `PROMPT` behavior is used by default. | 1250 * by default. |
1265 * - "PROMPT" : Prompt the user to grant a permission. | 1251 * - "PROMPT" : Prompt the user to grant a permission. |
1266 * - "GRANT" : Automatically grant a permission. | 1252 * - "GRANT" : Automatically grant a permission. |
1267 * - "DENY" : Automatically deny a permission. | 1253 * - "DENY" : Automatically deny a permission. |
1268 */ | 1254 */ |
1269 core.String defaultPermissionPolicy; | 1255 core.String defaultPermissionPolicy; |
1270 /** | 1256 /** |
1271 * The type of installation to perform. | 1257 * The type of installation to perform. |
1272 * Possible string values are: | 1258 * Possible string values are: |
1273 * - "INSTALL_TYPE_UNSPECIFIED" : No automatic installation is performed. Any | 1259 * - "INSTALL_TYPE_UNSPECIFIED" : No automatic installation is performed. Any |
1274 * other app policies will be | 1260 * other app policies will be applied if the user installs the app. |
1275 * applied if the user installs the app. | |
1276 * - "PREINSTALLED" : The application is automatically installed and can be | 1261 * - "PREINSTALLED" : The application is automatically installed and can be |
1277 * removed by the | 1262 * removed by the user. |
1278 * user. | |
1279 * - "FORCE_INSTALLED" : The application is automatically installed and cannot | 1263 * - "FORCE_INSTALLED" : The application is automatically installed and cannot |
1280 * be removed by the | 1264 * be removed by the user. |
1281 * user. | |
1282 */ | 1265 */ |
1283 core.String installType; | 1266 core.String installType; |
1284 /** Whether the application is allowed to lock itself in full-screen mode. */ | 1267 /** Whether the application is allowed to lock itself in full-screen mode. */ |
1285 core.bool lockTaskAllowed; | 1268 core.bool lockTaskAllowed; |
1286 /** | 1269 /** |
1287 * Managed configuration applied to the app. The format for the configuration | 1270 * Managed configuration applied to the app. The format for the configuration |
1288 * is dictated by the | 1271 * is dictated by the ManagedProperty values supported by the app. Each field |
1289 * [`ManagedProperty`](/android/management/reference/rest/v1/enterprises.appli
cations#ManagedProperty) | 1272 * name in the managed configuration must match the key field of the |
1290 * values supported by the app. Each field name in the managed configuration | 1273 * ManagedProperty. The field value must be compatible with the type of the |
1291 * must match the `key` field of the `ManagedProperty`. The field value must | 1274 * ManagedProperty: <table> <tr><td><i>type</i></td><td><i>JSON |
1292 * be compatible with the `type` of the `ManagedProperty`: | 1275 * value</i></td></tr> <tr><td>BOOL</td><td>true or false</td></tr> |
1293 * <table> | 1276 * <tr><td>STRING</td><td>string</td></tr> |
1294 * <tr><td><i>type</i></td><td><i>JSON value</i></td></tr> | 1277 * <tr><td>INTEGER</td><td>number</td></tr> |
1295 * <tr><td>`BOOL`</td><td>`true` or `false`</td></tr> | 1278 * <tr><td>CHOICE</td><td>string</td></tr> <tr><td>MULTISELECT</td><td>array |
1296 * <tr><td>`STRING`</td><td>string</td></tr> | 1279 * of strings</td></tr> <tr><td>HIDDEN</td><td>string</td></tr> |
1297 * <tr><td>`INTEGER`</td><td>number</td></tr> | 1280 * <tr><td>BUNDLE_ARRAY</td><td>array of objects</td></tr> </table> |
1298 * <tr><td>`CHOICE`</td><td>string</td></tr> | |
1299 * <tr><td>`MULTISELECT`</td><td>array of strings</td></tr> | |
1300 * <tr><td>`HIDDEN`</td><td>string</td></tr> | |
1301 * <tr><td>`BUNDLE_ARRAY`</td><td>array of objects</td></tr> | |
1302 * </table> | |
1303 * | 1281 * |
1304 * The values for Object must be JSON objects. It can consist of `num`, | 1282 * The values for Object must be JSON objects. It can consist of `num`, |
1305 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1283 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1306 */ | 1284 */ |
1307 core.Map<core.String, core.Object> managedConfiguration; | 1285 core.Map<core.String, core.Object> managedConfiguration; |
1308 /** | 1286 /** |
1309 * The package name of the app, e.g. `com.google.android.youtube` for the | 1287 * The package name of the app, e.g. com.google.android.youtube for the |
1310 * YouTube app. | 1288 * YouTube app. |
1311 */ | 1289 */ |
1312 core.String packageName; | 1290 core.String packageName; |
1313 /** | 1291 /** |
1314 * Explicit permission grants or denials for the app. These values override | 1292 * Explicit permission grants or denials for the app. These values override |
1315 * the `default_permission_policy`. | 1293 * the default_permission_policy. |
1316 */ | 1294 */ |
1317 core.List<PermissionGrant> permissionGrants; | 1295 core.List<PermissionGrant> permissionGrants; |
1318 | 1296 |
1319 ApplicationPolicy(); | 1297 ApplicationPolicy(); |
1320 | 1298 |
1321 ApplicationPolicy.fromJson(core.Map _json) { | 1299 ApplicationPolicy.fromJson(core.Map _json) { |
1322 if (_json.containsKey("defaultPermissionPolicy")) { | 1300 if (_json.containsKey("defaultPermissionPolicy")) { |
1323 defaultPermissionPolicy = _json["defaultPermissionPolicy"]; | 1301 defaultPermissionPolicy = _json["defaultPermissionPolicy"]; |
1324 } | 1302 } |
1325 if (_json.containsKey("installType")) { | 1303 if (_json.containsKey("installType")) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 | 1343 |
1366 /** A command. */ | 1344 /** A command. */ |
1367 class Command { | 1345 class Command { |
1368 /** | 1346 /** |
1369 * The timestamp at which the command was created. The timestamp is | 1347 * The timestamp at which the command was created. The timestamp is |
1370 * automatically generated by the server. | 1348 * automatically generated by the server. |
1371 */ | 1349 */ |
1372 core.String createTime; | 1350 core.String createTime; |
1373 /** | 1351 /** |
1374 * The duration for which the command is valid. The command will expire if not | 1352 * The duration for which the command is valid. The command will expire if not |
1375 * executed by the device during this time. The default duration if | 1353 * executed by the device during this time. The default duration if |
1376 * unspecified is ten minutes. There is no maximum duration. | 1354 * unspecified is ten minutes. There is no maximum duration. |
1377 */ | 1355 */ |
1378 core.String duration; | 1356 core.String duration; |
1379 /** | 1357 /** |
1380 * For commands of type `RESET_PASSWORD`, optionally specifies the new | 1358 * For commands of type RESET_PASSWORD, optionally specifies the new password. |
1381 * password. | |
1382 */ | 1359 */ |
1383 core.String newPassword; | 1360 core.String newPassword; |
1384 /** For commands of type `RESET_PASSWORD`, optionally specifies flags. */ | 1361 /** For commands of type RESET_PASSWORD, optionally specifies flags. */ |
1385 core.List<core.String> resetPasswordFlags; | 1362 core.List<core.String> resetPasswordFlags; |
1386 /** | 1363 /** |
1387 * The type of the command. | 1364 * The type of the command. |
1388 * Possible string values are: | 1365 * Possible string values are: |
1389 * - "COMMAND_TYPE_UNSPECIFIED" : This value is disallowed. | 1366 * - "COMMAND_TYPE_UNSPECIFIED" : This value is disallowed. |
1390 * - "LOCK" : Lock the device, as if the lock screen timeout had expired. | 1367 * - "LOCK" : Lock the device, as if the lock screen timeout had expired. |
1391 * - "RESET_PASSWORD" : Reset the user's password. | 1368 * - "RESET_PASSWORD" : Reset the user's password. |
1392 * - "REBOOT" : Reboot the device. Only supported on API level 24+. | 1369 * - "REBOOT" : Reboot the device. Only supported on API level 24+. |
1393 */ | 1370 */ |
1394 core.String type; | 1371 core.String type; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 if (type != null) { | 1407 if (type != null) { |
1431 _json["type"] = type; | 1408 _json["type"] = type; |
1432 } | 1409 } |
1433 return _json; | 1410 return _json; |
1434 } | 1411 } |
1435 } | 1412 } |
1436 | 1413 |
1437 /** | 1414 /** |
1438 * A rule declaring which mitigating actions to take when a device is not | 1415 * A rule declaring which mitigating actions to take when a device is not |
1439 * compliant with its policy. For every rule, there is always an implicit | 1416 * compliant with its policy. For every rule, there is always an implicit |
1440 * mitigating action to set `policy_compliant` to false for the | 1417 * mitigating action to set policy_compliant to false for the Device resource, |
1441 * [`Device`](/android/management/reference/rest/v1/enterprises.devices#Device) | 1418 * and display a message on the device indicating that the device is not |
1442 * resource, and display a message on the device indicating that the device is | 1419 * compliant with its policy. Other mitigating actions may optionally be taken |
1443 * not compliant with its policy. Other mitigating actions may optionally be | 1420 * as well, depending on the field values in the rule. |
1444 * taken as well, depending on the field values in the rule. | |
1445 */ | 1421 */ |
1446 class ComplianceRule { | 1422 class ComplianceRule { |
1447 /** | 1423 /** |
1448 * A condition which is satisfied if the Android Framework API level on the | 1424 * A condition which is satisfied if the Android Framework API level on the |
1449 * device does not meet a minimum requirement. | 1425 * device does not meet a minimum requirement. |
1450 */ | 1426 */ |
1451 ApiLevelCondition apiLevelCondition; | 1427 ApiLevelCondition apiLevelCondition; |
1452 /** | 1428 /** |
1453 * If set to true, the rule includes a mitigating action to disable | 1429 * If set to true, the rule includes a mitigating action to disable |
1454 * applications so that the device is effectively disabled, but application | 1430 * applications so that the device is effectively disabled, but application |
1455 * data is preserved. If the device is running an app in locked task mode, the | 1431 * data is preserved. If the device is running an app in locked task mode, the |
1456 * app will be closed and a UI showing the reason for non-compliance will be | 1432 * app will be closed and a UI showing the reason for non-compliance will be |
1457 * displayed. | 1433 * displayed. |
1458 */ | 1434 */ |
1459 core.bool disableApps; | 1435 core.bool disableApps; |
1460 /** | 1436 /** |
1461 * A condition which is satisfied if there exists *any* matching | 1437 * A condition which is satisfied if there exists any matching |
1462 * [`NonComplianceDetail`](/android/management/reference/rest/v1/enterprises.d
evices#NonComplianceDetail) | 1438 * NonComplianceDetail for the device. |
1463 * for the device. | |
1464 */ | 1439 */ |
1465 NonComplianceDetailCondition nonComplianceDetailCondition; | 1440 NonComplianceDetailCondition nonComplianceDetailCondition; |
1466 | 1441 |
1467 ComplianceRule(); | 1442 ComplianceRule(); |
1468 | 1443 |
1469 ComplianceRule.fromJson(core.Map _json) { | 1444 ComplianceRule.fromJson(core.Map _json) { |
1470 if (_json.containsKey("apiLevelCondition")) { | 1445 if (_json.containsKey("apiLevelCondition")) { |
1471 apiLevelCondition = new ApiLevelCondition.fromJson(_json["apiLevelConditio
n"]); | 1446 apiLevelCondition = new ApiLevelCondition.fromJson(_json["apiLevelConditio
n"]); |
1472 } | 1447 } |
1473 if (_json.containsKey("disableApps")) { | 1448 if (_json.containsKey("disableApps")) { |
(...skipping 13 matching lines...) Expand all Loading... |
1487 _json["disableApps"] = disableApps; | 1462 _json["disableApps"] = disableApps; |
1488 } | 1463 } |
1489 if (nonComplianceDetailCondition != null) { | 1464 if (nonComplianceDetailCondition != null) { |
1490 _json["nonComplianceDetailCondition"] = (nonComplianceDetailCondition).toJ
son(); | 1465 _json["nonComplianceDetailCondition"] = (nonComplianceDetailCondition).toJ
son(); |
1491 } | 1466 } |
1492 return _json; | 1467 return _json; |
1493 } | 1468 } |
1494 } | 1469 } |
1495 | 1470 |
1496 /** | 1471 /** |
1497 * A device owned by an enterprise. | 1472 * A device owned by an enterprise. Unless otherwise noted, all fields are |
1498 * Unless otherwise noted, all fields are read-only and cannot be modified by | 1473 * read-only and cannot be modified by an update device request. |
1499 * an update device request. | |
1500 */ | 1474 */ |
1501 class Device { | 1475 class Device { |
1502 /** The API level of the Android platform version running on the device. */ | 1476 /** The API level of the Android platform version running on the device. */ |
1503 core.int apiLevel; | 1477 core.int apiLevel; |
1504 /** The name of the policy that is currently applied by the device. */ | 1478 /** The name of the policy that is currently applied by the device. */ |
1505 core.String appliedPolicyName; | 1479 core.String appliedPolicyName; |
1506 /** The version of the policy that is currently applied by the device. */ | 1480 /** The version of the policy that is currently applied by the device. */ |
1507 core.String appliedPolicyVersion; | 1481 core.String appliedPolicyVersion; |
1508 /** | 1482 /** |
1509 * The state that is currently applied by the device. | 1483 * The state that is currently applied by the device. |
1510 * Possible string values are: | 1484 * Possible string values are: |
1511 * - "DEVICE_STATE_UNSPECIFIED" : This value is disallowed. | 1485 * - "DEVICE_STATE_UNSPECIFIED" : This value is disallowed. |
1512 * - "ACTIVE" : The device is active. | 1486 * - "ACTIVE" : The device is active. |
1513 * - "DISABLED" : The device is disabled. | 1487 * - "DISABLED" : The device is disabled. |
1514 * - "DELETED" : The device was deleted. This state will never be returned by | 1488 * - "DELETED" : The device was deleted. This state will never be returned by |
1515 * an API call, | 1489 * an API call, but will be used in the final policy compliance report |
1516 * but will be used in the final policy compliance report published to Cloud | 1490 * published to Cloud Pub/Sub when the device acknowledges the deletion. |
1517 * Pub/Sub when the device acknowledges the deletion. | |
1518 * - "PROVISIONING" : The device is being provisioned. Newly enrolled devices | 1491 * - "PROVISIONING" : The device is being provisioned. Newly enrolled devices |
1519 * will be in this | 1492 * will be in this state until they have applied policy. |
1520 * state until they have applied policy. | |
1521 */ | 1493 */ |
1522 core.String appliedState; | 1494 core.String appliedState; |
1523 /** | 1495 /** |
1524 * If the device state is `DISABLED`, an optional message that is displayed on | 1496 * If the device state is DISABLED, an optional message that is displayed on |
1525 * the device indicating the reason the device is disabled. This field may be | 1497 * the device indicating the reason the device is disabled. This field may be |
1526 * modified by an update request. | 1498 * modified by an update request. |
1527 */ | 1499 */ |
1528 UserFacingMessage disabledReason; | 1500 UserFacingMessage disabledReason; |
1529 /** | 1501 /** |
1530 * Displays on the device. This information is only available when | 1502 * Displays on the device. This information is only available when |
1531 * `displayInfoEnabled` is true in the device's policy. | 1503 * displayInfoEnabled is true in the device's policy. |
1532 */ | 1504 */ |
1533 core.List<Display> displays; | 1505 core.List<Display> displays; |
1534 /** The time of device enrollment. */ | 1506 /** The time of device enrollment. */ |
1535 core.String enrollmentTime; | 1507 core.String enrollmentTime; |
1536 /** | 1508 /** |
1537 * If this device was enrolled with an enrollment token with additional data | 1509 * If this device was enrolled with an enrollment token with additional data |
1538 * provided, this field contains that data. | 1510 * provided, this field contains that data. |
1539 */ | 1511 */ |
1540 core.String enrollmentTokenData; | 1512 core.String enrollmentTokenData; |
1541 /** | 1513 /** |
1542 * If this device was enrolled with an enrollment token, this field contains | 1514 * If this device was enrolled with an enrollment token, this field contains |
1543 * the name of the token. | 1515 * the name of the token. |
1544 */ | 1516 */ |
1545 core.String enrollmentTokenName; | 1517 core.String enrollmentTokenName; |
1546 /** Detailed information about the device hardware. */ | 1518 /** Detailed information about the device hardware. */ |
1547 HardwareInfo hardwareInfo; | 1519 HardwareInfo hardwareInfo; |
1548 /** | 1520 /** |
1549 * Hardware status samples in chronological order. This information is only | 1521 * Hardware status samples in chronological order. This information is only |
1550 * available when `hardwareStatusEnabled` is true in the device's policy. | 1522 * available when hardwareStatusEnabled is true in the device's policy. |
1551 */ | 1523 */ |
1552 core.List<HardwareStatus> hardwareStatusSamples; | 1524 core.List<HardwareStatus> hardwareStatusSamples; |
1553 /** The last time the device sent a policy compliance report. */ | 1525 /** The last time the device sent a policy compliance report. */ |
1554 core.String lastPolicyComplianceReportTime; | 1526 core.String lastPolicyComplianceReportTime; |
1555 /** The last time the device fetched its policy. */ | 1527 /** The last time the device fetched its policy. */ |
1556 core.String lastPolicySyncTime; | 1528 core.String lastPolicySyncTime; |
1557 /** The last time the device sent a status report. */ | 1529 /** The last time the device sent a status report. */ |
1558 core.String lastStatusReportTime; | 1530 core.String lastStatusReportTime; |
1559 /** | 1531 /** |
1560 * Events related to memory and storage measurements in chronological order. | 1532 * Events related to memory and storage measurements in chronological order. |
1561 * This information is only available when `memoryInfoEnabled` is true in the | 1533 * This information is only available when memoryInfoEnabled is true in the |
1562 * device's policy. | 1534 * device's policy. |
1563 */ | 1535 */ |
1564 core.List<MemoryEvent> memoryEvents; | 1536 core.List<MemoryEvent> memoryEvents; |
1565 /** | 1537 /** |
1566 * Memory information. This information is only available when | 1538 * Memory information. This information is only available when |
1567 * `memoryInfoEnabled` is true in the device's policy. | 1539 * memoryInfoEnabled is true in the device's policy. |
1568 */ | 1540 */ |
1569 MemoryInfo memoryInfo; | 1541 MemoryInfo memoryInfo; |
1570 /** | 1542 /** |
1571 * The name of the device in the form | 1543 * The name of the device in the form |
1572 * `enterprises/{enterpriseId}/devices/{deviceId}` | 1544 * enterprises/{enterpriseId}/devices/{deviceId} |
1573 */ | 1545 */ |
1574 core.String name; | 1546 core.String name; |
1575 /** | 1547 /** |
1576 * Device network information. This information is only available when | 1548 * Device network information. This information is only available when |
1577 * `networkInfoEnabled` is true in the device's policy. | 1549 * networkInfoEnabled is true in the device's policy. |
1578 */ | 1550 */ |
1579 NetworkInfo networkInfo; | 1551 NetworkInfo networkInfo; |
1580 /** | 1552 /** |
1581 * Details about policy settings for which the device is not in compliance. | 1553 * Details about policy settings for which the device is not in compliance. |
1582 */ | 1554 */ |
1583 core.List<NonComplianceDetail> nonComplianceDetails; | 1555 core.List<NonComplianceDetail> nonComplianceDetails; |
1584 /** Whether the device is compliant with its policy. */ | 1556 /** Whether the device is compliant with its policy. */ |
1585 core.bool policyCompliant; | 1557 core.bool policyCompliant; |
1586 /** | 1558 /** |
1587 * The name of the policy that is intended to be applied to the device. If | 1559 * The name of the policy that is intended to be applied to the device. If |
1588 * empty, the policy with id `default` is applied. | 1560 * empty, the policy with id default is applied. This field may be modified by |
1589 * This field may be modified by an update request. | 1561 * an update request. The name of the policy is in the form |
1590 * The name of the policy is in the form | 1562 * enterprises/{enterpriseId}/policies/{policyId}. It is also permissible to |
1591 * `enterprises/{enterpriseId}/policies/{policyId}`. | 1563 * only specify the policyId when updating this field as long as the policyId |
1592 * It is also permissible to only specify the `policyId` when updating this | 1564 * contains no slashes since the rest of the policy name can be inferred from |
1593 * field as long as the `policyId` contains no slashes since the rest of the | 1565 * context. |
1594 * policy name can be inferred from context. | |
1595 */ | 1566 */ |
1596 core.String policyName; | 1567 core.String policyName; |
1597 /** | 1568 /** |
1598 * Power management events on the device in chronological order. This | 1569 * Power management events on the device in chronological order. This |
1599 * information is only available when `powerManagementEventsEnabled` is true | 1570 * information is only available when powerManagementEventsEnabled is true in |
1600 * in the device's policy. | 1571 * the device's policy. |
1601 */ | 1572 */ |
1602 core.List<PowerManagementEvent> powerManagementEvents; | 1573 core.List<PowerManagementEvent> powerManagementEvents; |
1603 /** | 1574 /** |
1604 * The previous device names used for the same physical device when it has | 1575 * The previous device names used for the same physical device when it has |
1605 * been enrolled multiple times. The serial number is used as the unique | 1576 * been enrolled multiple times. The serial number is used as the unique |
1606 * identifier to determine if the same physical device has enrolled | 1577 * identifier to determine if the same physical device has enrolled |
1607 * previously. The names are in chronological order. | 1578 * previously. The names are in chronological order. |
1608 */ | 1579 */ |
1609 core.List<core.String> previousDeviceNames; | 1580 core.List<core.String> previousDeviceNames; |
1610 /** | 1581 /** |
1611 * Detailed information about the device software. This information is only | 1582 * Detailed information about the device software. This information is only |
1612 * available when `softwareInfoEnabled` is true in the device's policy. | 1583 * available when softwareInfoEnabled is true in the device's policy. |
1613 */ | 1584 */ |
1614 SoftwareInfo softwareInfo; | 1585 SoftwareInfo softwareInfo; |
1615 /** | 1586 /** |
1616 * The state that is intended to be applied to the device. This field may be | 1587 * The state that is intended to be applied to the device. This field may be |
1617 * modified by an update request. | 1588 * modified by an update request. Note that UpdateDevice only handles toggling |
1618 * Note that UpdateDevice only handles toggling between `ACTIVE` and | 1589 * between ACTIVE and DISABLED states. Use the delete device method to cause |
1619 * `DISABLED` states. Use the | 1590 * the device to enter the DELETED state. |
1620 * [delete device | |
1621 * method](/android/management/reference/rest/v1/enterprises.devices/delete) | |
1622 * to cause the device to enter the `DELETED` state. | |
1623 * Possible string values are: | 1591 * Possible string values are: |
1624 * - "DEVICE_STATE_UNSPECIFIED" : This value is disallowed. | 1592 * - "DEVICE_STATE_UNSPECIFIED" : This value is disallowed. |
1625 * - "ACTIVE" : The device is active. | 1593 * - "ACTIVE" : The device is active. |
1626 * - "DISABLED" : The device is disabled. | 1594 * - "DISABLED" : The device is disabled. |
1627 * - "DELETED" : The device was deleted. This state will never be returned by | 1595 * - "DELETED" : The device was deleted. This state will never be returned by |
1628 * an API call, | 1596 * an API call, but will be used in the final policy compliance report |
1629 * but will be used in the final policy compliance report published to Cloud | 1597 * published to Cloud Pub/Sub when the device acknowledges the deletion. |
1630 * Pub/Sub when the device acknowledges the deletion. | |
1631 * - "PROVISIONING" : The device is being provisioned. Newly enrolled devices | 1598 * - "PROVISIONING" : The device is being provisioned. Newly enrolled devices |
1632 * will be in this | 1599 * will be in this state until they have applied policy. |
1633 * state until they have applied policy. | |
1634 */ | 1600 */ |
1635 core.String state; | 1601 core.String state; |
1636 /** | 1602 /** |
1637 * The resource name of the user of the device in the form | 1603 * The resource name of the user of the device in the form |
1638 * `enterprises/{enterpriseId}/users/{userId}`. This is the name of the | 1604 * enterprises/{enterpriseId}/users/{userId}. This is the name of the device |
1639 * device account automatically created for this device. | 1605 * account automatically created for this device. |
1640 */ | 1606 */ |
1641 core.String userName; | 1607 core.String userName; |
1642 | 1608 |
1643 Device(); | 1609 Device(); |
1644 | 1610 |
1645 Device.fromJson(core.Map _json) { | 1611 Device.fromJson(core.Map _json) { |
1646 if (_json.containsKey("apiLevel")) { | 1612 if (_json.containsKey("apiLevel")) { |
1647 apiLevel = _json["apiLevel"]; | 1613 apiLevel = _json["apiLevel"]; |
1648 } | 1614 } |
1649 if (_json.containsKey("appliedPolicyName")) { | 1615 if (_json.containsKey("appliedPolicyName")) { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1880 } | 1846 } |
1881 if (width != null) { | 1847 if (width != null) { |
1882 _json["width"] = width; | 1848 _json["width"] = width; |
1883 } | 1849 } |
1884 return _json; | 1850 return _json; |
1885 } | 1851 } |
1886 } | 1852 } |
1887 | 1853 |
1888 /** | 1854 /** |
1889 * A generic empty message that you can re-use to avoid defining duplicated | 1855 * A generic empty message that you can re-use to avoid defining duplicated |
1890 * empty messages in your APIs. A typical example is to use it as the request | 1856 * empty messages in your APIs. A typical example is to use it as the request or |
1891 * or the response type of an API method. For instance: | 1857 * the response type of an API method. For instance: |
1892 * | 1858 * service Foo { |
1893 * service Foo { | 1859 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
1894 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 1860 * } |
1895 * } | 1861 * The JSON representation for Empty is empty JSON object {}. |
1896 * | |
1897 * The JSON representation for `Empty` is empty JSON object `{}`. | |
1898 */ | 1862 */ |
1899 class Empty { | 1863 class Empty { |
1900 | 1864 |
1901 Empty(); | 1865 Empty(); |
1902 | 1866 |
1903 Empty.fromJson(core.Map _json) { | 1867 Empty.fromJson(core.Map _json) { |
1904 } | 1868 } |
1905 | 1869 |
1906 core.Map<core.String, core.Object> toJson() { | 1870 core.Map<core.String, core.Object> toJson() { |
1907 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1871 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1908 return _json; | 1872 return _json; |
1909 } | 1873 } |
1910 } | 1874 } |
1911 | 1875 |
1912 /** An enrollment token. */ | 1876 /** An enrollment token. */ |
1913 class EnrollmentToken { | 1877 class EnrollmentToken { |
1914 /** | 1878 /** |
1915 * Optional, arbitrary data associated with the enrollment token. | 1879 * Optional, arbitrary data associated with the enrollment token. This could |
1916 * This could contain, for example, the id of an org unit to which the device | 1880 * contain, for example, the id of an org unit to which the device is assigned |
1917 * is assigned after enrollment. | 1881 * after enrollment. After a device enrolls with the token, this data will be |
1918 * After a device enrolls with the token, this data will be exposed in the | 1882 * exposed in the enrollment_token_data field of the Device resource. The data |
1919 * `enrollment_token_data` field of the | 1883 * must be 1024 characters or less; otherwise, the creation request will fail. |
1920 * [`Device`](/android/management/reference/rest/v1/enterprises.devices#Device
) | |
1921 * resource. The data must be 1024 characters or less; otherwise, the creation | |
1922 * request will fail. | |
1923 */ | 1884 */ |
1924 core.String additionalData; | 1885 core.String additionalData; |
1925 /** | 1886 /** |
1926 * The duration of the token. If not specified, the duration will be 1 hour. | 1887 * The duration of the token. If not specified, the duration will be 1 hour. |
1927 * The allowed range is 1 minute to 30 days. | 1888 * The allowed range is 1 minute to 30 days. |
1928 */ | 1889 */ |
1929 core.String duration; | 1890 core.String duration; |
1930 /** | 1891 /** |
1931 * The expiration time of the token. This is a read-only field generated by | 1892 * The expiration time of the token. This is a read-only field generated by |
1932 * the server. | 1893 * the server. |
1933 */ | 1894 */ |
1934 core.String expirationTimestamp; | 1895 core.String expirationTimestamp; |
1935 /** | 1896 /** |
1936 * The name of the enrollment token, which is generated by the server during | 1897 * The name of the enrollment token, which is generated by the server during |
1937 * creation, in the form | 1898 * creation, in the form |
1938 * `enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}` | 1899 * enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId} |
1939 */ | 1900 */ |
1940 core.String name; | 1901 core.String name; |
1941 /** | 1902 /** |
1942 * The name of the policy that will be initially applied to the enrolled | 1903 * The name of the policy that will be initially applied to the enrolled |
1943 * device in the form `enterprises/{enterpriseId}/policies/{policyId}`. | 1904 * device in the form enterprises/{enterpriseId}/policies/{policyId}. If not |
1944 * If not specified, the policy with id `default` is applied. | 1905 * specified, the policy with id default is applied. It is permissible to only |
1945 * It is permissible to only specify the `policyId` when updating this | 1906 * specify the policyId when updating this field as long as the policyId |
1946 * field as long as the `policyId` contains no slashes since the rest of the | 1907 * contains no slashes since the rest of the policy name can be inferred from |
1947 * policy name can be inferred from context. | 1908 * context. |
1948 */ | 1909 */ |
1949 core.String policyName; | 1910 core.String policyName; |
1950 /** | 1911 /** |
1951 * A JSON string whose UTF-8 representation can be used to generate a QR code | 1912 * A JSON string whose UTF-8 representation can be used to generate a QR code |
1952 * to enroll a device with this enrollment token. To enroll a device using | 1913 * to enroll a device with this enrollment token. To enroll a device using |
1953 * NFC, the NFC record must contain a serialized `java.util.Properties` | 1914 * NFC, the NFC record must contain a serialized java.util.Properties |
1954 * representation of the properties in the JSON. | 1915 * representation of the properties in the JSON. |
1955 */ | 1916 */ |
1956 core.String qrCode; | 1917 core.String qrCode; |
1957 /** | 1918 /** |
1958 * The token value which is passed to the device and authorizes the device to | 1919 * The token value which is passed to the device and authorizes the device to |
1959 * enroll. This is a read-only field generated by the server. | 1920 * enroll. This is a read-only field generated by the server. |
1960 */ | 1921 */ |
1961 core.String value; | 1922 core.String value; |
1962 | 1923 |
1963 EnrollmentToken(); | 1924 EnrollmentToken(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2028 /** The name of the enterprise as it will appear to users. */ | 1989 /** The name of the enterprise as it will appear to users. */ |
2029 core.String enterpriseDisplayName; | 1990 core.String enterpriseDisplayName; |
2030 /** | 1991 /** |
2031 * An image displayed as a logo during device provisioning. Supported types | 1992 * An image displayed as a logo during device provisioning. Supported types |
2032 * are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, | 1993 * are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, |
2033 * image/vnd.wap.wbmp, image/x-adobe-dng. | 1994 * image/vnd.wap.wbmp, image/x-adobe-dng. |
2034 */ | 1995 */ |
2035 ExternalData logo; | 1996 ExternalData logo; |
2036 /** | 1997 /** |
2037 * The name of the enterprise which is generated by the server during | 1998 * The name of the enterprise which is generated by the server during |
2038 * creation, in the form | 1999 * creation, in the form enterprises/{enterpriseId} |
2039 * `enterprises/{enterpriseId}` | |
2040 */ | 2000 */ |
2041 core.String name; | 2001 core.String name; |
2042 /** | 2002 /** |
2043 * A color in RGB format indicating the predominant color to display in the | 2003 * A color in RGB format indicating the predominant color to display in the |
2044 * device management app UI. The color components are stored as follows: | 2004 * device management app UI. The color components are stored as follows: (red |
2045 * `(red << 16) | (green << 8) | blue`, where each component may take a value | 2005 * << 16) | (green << 8) | blue, where each component may take a value between |
2046 * between 0 and 255 inclusive. | 2006 * 0 and 255 inclusive. |
2047 */ | 2007 */ |
2048 core.int primaryColor; | 2008 core.int primaryColor; |
2049 /** | 2009 /** |
2050 * When Cloud Pub/Sub notifications are enabled, this field is required to | 2010 * When Cloud Pub/Sub notifications are enabled, this field is required to |
2051 * indicate the topic to which the notifications will be published. The format | 2011 * indicate the topic to which the notifications will be published. The format |
2052 * of this field is `projects/{project}/topics/{topic}`. You must have granted | 2012 * of this field is projects/{project}/topics/{topic}. You must have granted |
2053 * the publish permission on this topic to | 2013 * the publish permission on this topic to |
2054 * android-cloud-policy@system.gserviceaccount.com | 2014 * android-cloud-policy@system.gserviceaccount.com |
2055 */ | 2015 */ |
2056 core.String pubsubTopic; | 2016 core.String pubsubTopic; |
2057 | 2017 |
2058 Enterprise(); | 2018 Enterprise(); |
2059 | 2019 |
2060 Enterprise.fromJson(core.Map _json) { | 2020 Enterprise.fromJson(core.Map _json) { |
2061 if (_json.containsKey("appAutoApprovalEnabled")) { | 2021 if (_json.containsKey("appAutoApprovalEnabled")) { |
2062 appAutoApprovalEnabled = _json["appAutoApprovalEnabled"]; | 2022 appAutoApprovalEnabled = _json["appAutoApprovalEnabled"]; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2160 /** | 2120 /** |
2161 * Battery shutdown temperature thresholds in Celsius for each battery on the | 2121 * Battery shutdown temperature thresholds in Celsius for each battery on the |
2162 * device. | 2122 * device. |
2163 */ | 2123 */ |
2164 core.List<core.double> batteryShutdownTemperatures; | 2124 core.List<core.double> batteryShutdownTemperatures; |
2165 /** | 2125 /** |
2166 * Battery throttling temperature thresholds in Celsius for each battery on | 2126 * Battery throttling temperature thresholds in Celsius for each battery on |
2167 * the device. | 2127 * the device. |
2168 */ | 2128 */ |
2169 core.List<core.double> batteryThrottlingTemperatures; | 2129 core.List<core.double> batteryThrottlingTemperatures; |
2170 /** Brand of the device, e.g. `Google`. */ | 2130 /** Brand of the device, e.g. Google. */ |
2171 core.String brand; | 2131 core.String brand; |
2172 /** | 2132 /** |
2173 * CPU shutdown temperature thresholds in Celsius for each CPU on the device. | 2133 * CPU shutdown temperature thresholds in Celsius for each CPU on the device. |
2174 */ | 2134 */ |
2175 core.List<core.double> cpuShutdownTemperatures; | 2135 core.List<core.double> cpuShutdownTemperatures; |
2176 /** | 2136 /** |
2177 * CPU throttling temperature thresholds in Celsius for each CPU on the | 2137 * CPU throttling temperature thresholds in Celsius for each CPU on the |
2178 * device. | 2138 * device. |
2179 */ | 2139 */ |
2180 core.List<core.double> cpuThrottlingTemperatures; | 2140 core.List<core.double> cpuThrottlingTemperatures; |
2181 /** Baseband version, e.g. `MDM9625_104662.22.05.34p`. */ | 2141 /** Baseband version, e.g. MDM9625_104662.22.05.34p. */ |
2182 core.String deviceBasebandVersion; | 2142 core.String deviceBasebandVersion; |
2183 /** | 2143 /** |
2184 * GPU shutdown temperature thresholds in Celsius for each GPU on the device. | 2144 * GPU shutdown temperature thresholds in Celsius for each GPU on the device. |
2185 */ | 2145 */ |
2186 core.List<core.double> gpuShutdownTemperatures; | 2146 core.List<core.double> gpuShutdownTemperatures; |
2187 /** | 2147 /** |
2188 * GPU throttling temperature thresholds in Celsius for each GPU on the | 2148 * GPU throttling temperature thresholds in Celsius for each GPU on the |
2189 * device. | 2149 * device. |
2190 */ | 2150 */ |
2191 core.List<core.double> gpuThrottlingTemperatures; | 2151 core.List<core.double> gpuThrottlingTemperatures; |
2192 /** Name of the hardware, e.g. `Angler`. */ | 2152 /** Name of the hardware, e.g. Angler. */ |
2193 core.String hardware; | 2153 core.String hardware; |
2194 /** Manufacturer, e.g. `Motorola`. */ | 2154 /** Manufacturer, e.g. Motorola. */ |
2195 core.String manufacturer; | 2155 core.String manufacturer; |
2196 /** The model of the device, e.g. `Asus Nexus 7`. */ | 2156 /** The model of the device, e.g. Asus Nexus 7. */ |
2197 core.String model; | 2157 core.String model; |
2198 /** The device serial number. */ | 2158 /** The device serial number. */ |
2199 core.String serialNumber; | 2159 core.String serialNumber; |
2200 /** Device skin shutdown temperature thresholds in Celsius. */ | 2160 /** Device skin shutdown temperature thresholds in Celsius. */ |
2201 core.List<core.double> skinShutdownTemperatures; | 2161 core.List<core.double> skinShutdownTemperatures; |
2202 /** Device skin throttling temperature thresholds in Celsius. */ | 2162 /** Device skin throttling temperature thresholds in Celsius. */ |
2203 core.List<core.double> skinThrottlingTemperatures; | 2163 core.List<core.double> skinThrottlingTemperatures; |
2204 | 2164 |
2205 HardwareInfo(); | 2165 HardwareInfo(); |
2206 | 2166 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2292 } | 2252 } |
2293 if (skinThrottlingTemperatures != null) { | 2253 if (skinThrottlingTemperatures != null) { |
2294 _json["skinThrottlingTemperatures"] = skinThrottlingTemperatures; | 2254 _json["skinThrottlingTemperatures"] = skinThrottlingTemperatures; |
2295 } | 2255 } |
2296 return _json; | 2256 return _json; |
2297 } | 2257 } |
2298 } | 2258 } |
2299 | 2259 |
2300 /** | 2260 /** |
2301 * Hardware status. Temperatures may be compared to the temperature thresholds | 2261 * Hardware status. Temperatures may be compared to the temperature thresholds |
2302 * available in `hardwareInfo` to determine hardware health. | 2262 * available in hardwareInfo to determine hardware health. |
2303 */ | 2263 */ |
2304 class HardwareStatus { | 2264 class HardwareStatus { |
2305 /** | 2265 /** |
2306 * Current battery temperatures in Celsius for each battery on the device. | 2266 * Current battery temperatures in Celsius for each battery on the device. |
2307 */ | 2267 */ |
2308 core.List<core.double> batteryTemperatures; | 2268 core.List<core.double> batteryTemperatures; |
2309 /** Current CPU temperatures in Celsius for each CPU on the device. */ | 2269 /** Current CPU temperatures in Celsius for each CPU on the device. */ |
2310 core.List<core.double> cpuTemperatures; | 2270 core.List<core.double> cpuTemperatures; |
2311 /** | 2271 /** |
2312 * CPU usages in percentage for each core available on the device. | 2272 * CPU usages in percentage for each core available on the device. Usage is 0 |
2313 * Usage is 0 for each unplugged core. Empty array implies that CPU usage | 2273 * for each unplugged core. Empty array implies that CPU usage is not |
2314 * is not supported in the system. | 2274 * supported in the system. |
2315 */ | 2275 */ |
2316 core.List<core.double> cpuUsages; | 2276 core.List<core.double> cpuUsages; |
2317 /** The time the measurements were taken. */ | 2277 /** The time the measurements were taken. */ |
2318 core.String createTime; | 2278 core.String createTime; |
2319 /** | 2279 /** |
2320 * Fan speeds in RPM for each fan on the device. Empty array means that there | 2280 * Fan speeds in RPM for each fan on the device. Empty array means that there |
2321 * are no fans or fan speed is not supported on the system. | 2281 * are no fans or fan speed is not supported on the system. |
2322 */ | 2282 */ |
2323 core.List<core.double> fanSpeeds; | 2283 core.List<core.double> fanSpeeds; |
2324 /** Current GPU temperatures in Celsius for each GPU on the device. */ | 2284 /** Current GPU temperatures in Celsius for each GPU on the device. */ |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2465 if (policies != null) { | 2425 if (policies != null) { |
2466 _json["policies"] = policies.map((value) => (value).toJson()).toList(); | 2426 _json["policies"] = policies.map((value) => (value).toJson()).toList(); |
2467 } | 2427 } |
2468 return _json; | 2428 return _json; |
2469 } | 2429 } |
2470 } | 2430 } |
2471 | 2431 |
2472 /** Managed property. */ | 2432 /** Managed property. */ |
2473 class ManagedProperty { | 2433 class ManagedProperty { |
2474 /** | 2434 /** |
2475 * The default value of the properties. `BUNDLE_ARRAY` properties | 2435 * The default value of the properties. BUNDLE_ARRAY properties never have a |
2476 * never have a default value. | 2436 * default value. |
2477 * | 2437 * |
2478 * The values for Object must be JSON objects. It can consist of `num`, | 2438 * The values for Object must be JSON objects. It can consist of `num`, |
2479 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2439 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2480 */ | 2440 */ |
2481 core.Object defaultValue; | 2441 core.Object defaultValue; |
2482 /** | 2442 /** |
2483 * A longer description of the property, giving more detail of what it | 2443 * A longer description of the property, giving more detail of what it |
2484 * affects. Localized. | 2444 * affects. Localized. |
2485 */ | 2445 */ |
2486 core.String description; | 2446 core.String description; |
2487 /** | 2447 /** For CHOICE or MULTISELECT properties, the list of possible entries. */ |
2488 * For `CHOICE` or `MULTISELECT` properties, the list | |
2489 * of possible entries. | |
2490 */ | |
2491 core.List<ManagedPropertyEntry> entries; | 2448 core.List<ManagedPropertyEntry> entries; |
2492 /** | 2449 /** |
2493 * The unique key that the application uses to identify the property, | 2450 * The unique key that the application uses to identify the property, e.g. |
2494 * e.g. "com.google.android.gm.fieldname". | 2451 * "com.google.android.gm.fieldname". |
2495 */ | 2452 */ |
2496 core.String key; | 2453 core.String key; |
2497 /** | 2454 /** |
2498 * For `BUNDLE_ARRAY` properties, the list of nested properties. A | 2455 * For BUNDLE_ARRAY properties, the list of nested properties. A BUNDLE_ARRAY |
2499 * `BUNDLE_ARRAY` property is at most two levels deep. | 2456 * property is at most two levels deep. |
2500 */ | 2457 */ |
2501 core.List<ManagedProperty> nestedProperties; | 2458 core.List<ManagedProperty> nestedProperties; |
2502 /** The name of the property. Localized. */ | 2459 /** The name of the property. Localized. */ |
2503 core.String title; | 2460 core.String title; |
2504 /** | 2461 /** |
2505 * The type of the property. | 2462 * The type of the property. |
2506 * Possible string values are: | 2463 * Possible string values are: |
2507 * - "MANAGED_PROPERTY_TYPE_UNSPECIFIED" : Not used. | 2464 * - "MANAGED_PROPERTY_TYPE_UNSPECIFIED" : Not used. |
2508 * - "BOOL" : A property of boolean type. | 2465 * - "BOOL" : A property of boolean type. |
2509 * - "STRING" : A property of string type. | 2466 * - "STRING" : A property of string type. |
2510 * - "INTEGER" : A property of integer type. | 2467 * - "INTEGER" : A property of integer type. |
2511 * - "CHOICE" : A choice of one item from a set. | 2468 * - "CHOICE" : A choice of one item from a set. |
2512 * - "MULTISELECT" : A choice of multiple items from a set. | 2469 * - "MULTISELECT" : A choice of multiple items from a set. |
2513 * - "HIDDEN" : A hidden restriction of string type (the default value can be | 2470 * - "HIDDEN" : A hidden restriction of string type (the default value can be |
2514 * used | 2471 * used to pass along information that cannot be modified, such as a version |
2515 * to pass along information that cannot be modified, such as a version | |
2516 * code). | 2472 * code). |
2517 * - "BUNDLE_ARRAY" : An array of property bundles. | 2473 * - "BUNDLE_ARRAY" : An array of property bundles. |
2518 */ | 2474 */ |
2519 core.String type; | 2475 core.String type; |
2520 | 2476 |
2521 ManagedProperty(); | 2477 ManagedProperty(); |
2522 | 2478 |
2523 ManagedProperty.fromJson(core.Map _json) { | 2479 ManagedProperty.fromJson(core.Map _json) { |
2524 if (_json.containsKey("defaultValue")) { | 2480 if (_json.containsKey("defaultValue")) { |
2525 defaultValue = _json["defaultValue"]; | 2481 defaultValue = _json["defaultValue"]; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2600 if (value != null) { | 2556 if (value != null) { |
2601 _json["value"] = value; | 2557 _json["value"] = value; |
2602 } | 2558 } |
2603 return _json; | 2559 return _json; |
2604 } | 2560 } |
2605 } | 2561 } |
2606 | 2562 |
2607 /** An event related to memory and storage measurements. */ | 2563 /** An event related to memory and storage measurements. */ |
2608 class MemoryEvent { | 2564 class MemoryEvent { |
2609 /** | 2565 /** |
2610 * The number of free bytes in the medium, or for `EXTERNAL_STORAGE_DETECTED`, | 2566 * The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, |
2611 * the total capacity in bytes of the storage medium. | 2567 * the total capacity in bytes of the storage medium. |
2612 */ | 2568 */ |
2613 core.String byteCount; | 2569 core.String byteCount; |
2614 /** The creation time of the event. */ | 2570 /** The creation time of the event. */ |
2615 core.String createTime; | 2571 core.String createTime; |
2616 /** | 2572 /** |
2617 * Event type. | 2573 * Event type. |
2618 * Possible string values are: | 2574 * Possible string values are: |
2619 * - "MEMORY_EVENT_TYPE_UNSPECIFIED" : Unspecified. No events have this type. | 2575 * - "MEMORY_EVENT_TYPE_UNSPECIFIED" : Unspecified. No events have this type. |
2620 * - "RAM_MEASURED" : Free space in RAM was measured. | 2576 * - "RAM_MEASURED" : Free space in RAM was measured. |
2621 * - "INTERNAL_STORAGE_MEASURED" : Free space in internal storage was | 2577 * - "INTERNAL_STORAGE_MEASURED" : Free space in internal storage was |
2622 * measured. | 2578 * measured. |
2623 * - "EXTERNAL_STORAGE_DETECTED" : A new external storage medium was detected. | 2579 * - "EXTERNAL_STORAGE_DETECTED" : A new external storage medium was detected. |
2624 * The reported byte count is | 2580 * The reported byte count is the total capacity of the storage medium. |
2625 * the total capacity of the storage medium. | |
2626 * - "EXTERNAL_STORAGE_REMOVED" : An external storage medium was removed. The | 2581 * - "EXTERNAL_STORAGE_REMOVED" : An external storage medium was removed. The |
2627 * reported byte count is zero. | 2582 * reported byte count is zero. |
2628 * - "EXTERNAL_STORAGE_MEASURED" : Free space in an external storage medium | 2583 * - "EXTERNAL_STORAGE_MEASURED" : Free space in an external storage medium |
2629 * was measured. | 2584 * was measured. |
2630 */ | 2585 */ |
2631 core.String eventType; | 2586 core.String eventType; |
2632 | 2587 |
2633 MemoryEvent(); | 2588 MemoryEvent(); |
2634 | 2589 |
2635 MemoryEvent.fromJson(core.Map _json) { | 2590 MemoryEvent.fromJson(core.Map _json) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2684 } | 2639 } |
2685 if (totalRam != null) { | 2640 if (totalRam != null) { |
2686 _json["totalRam"] = totalRam; | 2641 _json["totalRam"] = totalRam; |
2687 } | 2642 } |
2688 return _json; | 2643 return _json; |
2689 } | 2644 } |
2690 } | 2645 } |
2691 | 2646 |
2692 /** Device network info. */ | 2647 /** Device network info. */ |
2693 class NetworkInfo { | 2648 class NetworkInfo { |
2694 /** IMEI number of the GSM device, e.g. `A1000031212`. */ | 2649 /** IMEI number of the GSM device, e.g. A1000031212. */ |
2695 core.String imei; | 2650 core.String imei; |
2696 /** MEID number of the CDMA device, e.g. `A00000292788E1`. */ | 2651 /** MEID number of the CDMA device, e.g. A00000292788E1. */ |
2697 core.String meid; | 2652 core.String meid; |
2698 /** WiFi MAC address of the device, e.g. `7c:11:11:11:11:11`. */ | 2653 /** WiFi MAC address of the device, e.g. 7c:11:11:11:11:11. */ |
2699 core.String wifiMacAddress; | 2654 core.String wifiMacAddress; |
2700 | 2655 |
2701 NetworkInfo(); | 2656 NetworkInfo(); |
2702 | 2657 |
2703 NetworkInfo.fromJson(core.Map _json) { | 2658 NetworkInfo.fromJson(core.Map _json) { |
2704 if (_json.containsKey("imei")) { | 2659 if (_json.containsKey("imei")) { |
2705 imei = _json["imei"]; | 2660 imei = _json["imei"]; |
2706 } | 2661 } |
2707 if (_json.containsKey("meid")) { | 2662 if (_json.containsKey("meid")) { |
2708 meid = _json["meid"]; | 2663 meid = _json["meid"]; |
(...skipping 25 matching lines...) Expand all Loading... |
2734 * setting on the device. | 2689 * setting on the device. |
2735 * | 2690 * |
2736 * The values for Object must be JSON objects. It can consist of `num`, | 2691 * The values for Object must be JSON objects. It can consist of `num`, |
2737 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2692 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2738 */ | 2693 */ |
2739 core.Object currentValue; | 2694 core.Object currentValue; |
2740 /** | 2695 /** |
2741 * For settings with nested fields, if a particular nested field is out of | 2696 * For settings with nested fields, if a particular nested field is out of |
2742 * compliance, this specifies the full path to the offending field. The path | 2697 * compliance, this specifies the full path to the offending field. The path |
2743 * is formatted in the same way the policy JSON field would be referenced in | 2698 * is formatted in the same way the policy JSON field would be referenced in |
2744 * JavaScript, that is: | 2699 * JavaScript, that is: 1) For object-typed fields, the field name is followed |
2745 * 1) For object-typed fields, the field name is followed by a dot then by a | 2700 * by a dot then by a subfield name. 2) For array-typed fields, the field |
2746 * subfield name. | 2701 * name is followed by the array index enclosed in brackets. For example, to |
2747 * 2) For array-typed fields, the field name is followed by the array index | 2702 * indicate a problem with the url field in the externalData field in the 3rd |
2748 * enclosed in brackets. | 2703 * application, the path would be applications[2].externalData.url |
2749 * For example, to indicate a problem with the `url` field in the | |
2750 * `externalData` field in the 3rd application, the path would be | |
2751 * `applications[2].externalData.url` | |
2752 */ | 2704 */ |
2753 core.String fieldPath; | 2705 core.String fieldPath; |
2754 /** | 2706 /** |
2755 * If `package_name` is set and the non-compliance reason is | 2707 * If package_name is set and the non-compliance reason is APP_NOT_INSTALLED, |
2756 * `APP_NOT_INSTALLED`, the detailed reason the app cannot be installed. | 2708 * the detailed reason the app cannot be installed. |
2757 * Possible string values are: | 2709 * Possible string values are: |
2758 * - "INSTALLATION_FAILURE_REASON_UNSPECIFIED" : This value is disallowed. | 2710 * - "INSTALLATION_FAILURE_REASON_UNSPECIFIED" : This value is disallowed. |
2759 * - "INSTALLATION_FAILURE_REASON_UNKNOWN" : An unknown condition is | 2711 * - "INSTALLATION_FAILURE_REASON_UNKNOWN" : An unknown condition is |
2760 * preventing the app from being installed. Some | 2712 * preventing the app from being installed. Some potential reaons are that the |
2761 * potential reaons are that the device does not have enough storage, the | 2713 * device does not have enough storage, the device network connection is |
2762 * device network connection is unreliable, or the installation is taking | 2714 * unreliable, or the installation is taking longer than expected. The |
2763 * longer than expected. The installation will be retried automatically. | 2715 * installation will be retried automatically. |
2764 * - "IN_PROGRESS" : The installation is still in progress. | 2716 * - "IN_PROGRESS" : The installation is still in progress. |
2765 * - "NOT_FOUND" : The app was not found in Play. | 2717 * - "NOT_FOUND" : The app was not found in Play. |
2766 * - "NOT_COMPATIBLE_WITH_DEVICE" : The app is incompatible with the device. | 2718 * - "NOT_COMPATIBLE_WITH_DEVICE" : The app is incompatible with the device. |
2767 * - "NOT_APPROVED" : The app has not been approved by the admin. | 2719 * - "NOT_APPROVED" : The app has not been approved by the admin. |
2768 * - "PERMISSIONS_NOT_ACCEPTED" : The app has new permissions that have not | 2720 * - "PERMISSIONS_NOT_ACCEPTED" : The app has new permissions that have not |
2769 * been accepted by the admin. | 2721 * been accepted by the admin. |
2770 * - "NOT_AVAILABLE_IN_COUNTRY" : The app is not available in the user's | 2722 * - "NOT_AVAILABLE_IN_COUNTRY" : The app is not available in the user's |
2771 * country. | 2723 * country. |
2772 * - "NO_LICENSES_REMAINING" : There are no more licenses to assign to the | 2724 * - "NO_LICENSES_REMAINING" : There are no more licenses to assign to the |
2773 * user. | 2725 * user. |
2774 * - "NOT_ENROLLED" : The enterprise is no longer enrolled with Play for Work | 2726 * - "NOT_ENROLLED" : The enterprise is no longer enrolled with Play for Work |
2775 * or Android Device | 2727 * or Android Device Policy is not enabled for the enterprise. |
2776 * Policy is not enabled for the enterprise. | 2728 * - "USER_INVALID" : The user is no longer valid. The user may have been |
| 2729 * deleted or disabled. |
2777 */ | 2730 */ |
2778 core.String installationFailureReason; | 2731 core.String installationFailureReason; |
2779 /** | 2732 /** |
2780 * The reason the device is not in compliance with the setting. | 2733 * The reason the device is not in compliance with the setting. |
2781 * Possible string values are: | 2734 * Possible string values are: |
2782 * - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. | 2735 * - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. |
2783 * - "API_LEVEL" : The setting is not supported in the API level of Android OS | 2736 * - "API_LEVEL" : The setting is not supported in the API level of Android OS |
2784 * version the | 2737 * version the device is running. |
2785 * device is running. | |
2786 * - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) does | 2738 * - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) does |
2787 * not support the | 2739 * not support the setting. |
2788 * setting. | |
2789 * - "USER_ACTION" : The user has not taken required action to comply with the | 2740 * - "USER_ACTION" : The user has not taken required action to comply with the |
2790 * setting. | 2741 * setting. |
2791 * - "INVALID_VALUE" : The setting has an invalid value. | 2742 * - "INVALID_VALUE" : The setting has an invalid value. |
2792 * - "APP_NOT_INSTALLED" : The application required to implement the policy is | 2743 * - "APP_NOT_INSTALLED" : The application required to implement the policy is |
2793 * not installed. | 2744 * not installed. |
2794 * - "UNSUPPORTED" : The policy is not supported by the version of Android | 2745 * - "UNSUPPORTED" : The policy is not supported by the version of Android |
2795 * Device Policy on | 2746 * Device Policy on the device. |
2796 * the device. | |
2797 * - "APP_INSTALLED" : A blocked application is installed. | 2747 * - "APP_INSTALLED" : A blocked application is installed. |
2798 * - "PENDING" : The setting was not applied yet at the time of the report, | 2748 * - "PENDING" : The setting was not applied yet at the time of the report, |
2799 * but is | 2749 * but is expected to be applied shortly. |
2800 * expected to be applied shortly. | |
2801 * - "APP_INCOMPATIBLE" : The setting cannot be applied to the application | 2750 * - "APP_INCOMPATIBLE" : The setting cannot be applied to the application |
2802 * because its target SDK | 2751 * because its target SDK version is not high enough. |
2803 * version is not high enough. | |
2804 */ | 2752 */ |
2805 core.String nonComplianceReason; | 2753 core.String nonComplianceReason; |
2806 /** | 2754 /** |
2807 * The package name indicating which application is out of compliance, if | 2755 * The package name indicating which application is out of compliance, if |
2808 * applicable. | 2756 * applicable. |
2809 */ | 2757 */ |
2810 core.String packageName; | 2758 core.String packageName; |
2811 /** | 2759 /** |
2812 * The name of the policy setting. This is the JSON field name of a top-level | 2760 * The name of the policy setting. This is the JSON field name of a top-level |
2813 * [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Polic
y) | 2761 * Policy field. |
2814 * field. | |
2815 */ | 2762 */ |
2816 core.String settingName; | 2763 core.String settingName; |
2817 | 2764 |
2818 NonComplianceDetail(); | 2765 NonComplianceDetail(); |
2819 | 2766 |
2820 NonComplianceDetail.fromJson(core.Map _json) { | 2767 NonComplianceDetail.fromJson(core.Map _json) { |
2821 if (_json.containsKey("currentValue")) { | 2768 if (_json.containsKey("currentValue")) { |
2822 currentValue = _json["currentValue"]; | 2769 currentValue = _json["currentValue"]; |
2823 } | 2770 } |
2824 if (_json.containsKey("fieldPath")) { | 2771 if (_json.containsKey("fieldPath")) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2856 _json["packageName"] = packageName; | 2803 _json["packageName"] = packageName; |
2857 } | 2804 } |
2858 if (settingName != null) { | 2805 if (settingName != null) { |
2859 _json["settingName"] = settingName; | 2806 _json["settingName"] = settingName; |
2860 } | 2807 } |
2861 return _json; | 2808 return _json; |
2862 } | 2809 } |
2863 } | 2810 } |
2864 | 2811 |
2865 /** | 2812 /** |
2866 * A compliance rule condition which is satisfied if there exists *any* | 2813 * A compliance rule condition which is satisfied if there exists any matching |
2867 * matching | 2814 * NonComplianceDetail for the device. A NonComplianceDetail matches a |
2868 * [`NonComplianceDetail`](/android/management/reference/rest/v1/enterprises.dev
ices#NonComplianceDetail) | 2815 * NonComplianceDetailCondition if all the fields which are set within the |
2869 * for the device. A `NonComplianceDetail` matches a | 2816 * NonComplianceDetailCondition match the corresponding NonComplianceDetail |
2870 * `NonComplianceDetailCondition` if *all* the fields which are set within the | |
2871 * `NonComplianceDetailCondition` match the corresponding `NonComplianceDetail` | |
2872 * fields. | 2817 * fields. |
2873 */ | 2818 */ |
2874 class NonComplianceDetailCondition { | 2819 class NonComplianceDetailCondition { |
2875 /** | 2820 /** |
2876 * The reason the device is not in compliance with the setting. If not set, | 2821 * The reason the device is not in compliance with the setting. If not set, |
2877 * then this condition matches any reason. | 2822 * then this condition matches any reason. |
2878 * Possible string values are: | 2823 * Possible string values are: |
2879 * - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. | 2824 * - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. |
2880 * - "API_LEVEL" : The setting is not supported in the API level of Android OS | 2825 * - "API_LEVEL" : The setting is not supported in the API level of Android OS |
2881 * version the | 2826 * version the device is running. |
2882 * device is running. | |
2883 * - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) does | 2827 * - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) does |
2884 * not support the | 2828 * not support the setting. |
2885 * setting. | |
2886 * - "USER_ACTION" : The user has not taken required action to comply with the | 2829 * - "USER_ACTION" : The user has not taken required action to comply with the |
2887 * setting. | 2830 * setting. |
2888 * - "INVALID_VALUE" : The setting has an invalid value. | 2831 * - "INVALID_VALUE" : The setting has an invalid value. |
2889 * - "APP_NOT_INSTALLED" : The application required to implement the policy is | 2832 * - "APP_NOT_INSTALLED" : The application required to implement the policy is |
2890 * not installed. | 2833 * not installed. |
2891 * - "UNSUPPORTED" : The policy is not supported by the version of Android | 2834 * - "UNSUPPORTED" : The policy is not supported by the version of Android |
2892 * Device Policy on | 2835 * Device Policy on the device. |
2893 * the device. | |
2894 * - "APP_INSTALLED" : A blocked application is installed. | 2836 * - "APP_INSTALLED" : A blocked application is installed. |
2895 * - "PENDING" : The setting was not applied yet at the time of the report, | 2837 * - "PENDING" : The setting was not applied yet at the time of the report, |
2896 * but is | 2838 * but is expected to be applied shortly. |
2897 * expected to be applied shortly. | |
2898 * - "APP_INCOMPATIBLE" : The setting cannot be applied to the application | 2839 * - "APP_INCOMPATIBLE" : The setting cannot be applied to the application |
2899 * because its target SDK | 2840 * because its target SDK version is not high enough. |
2900 * version is not high enough. | |
2901 */ | 2841 */ |
2902 core.String nonComplianceReason; | 2842 core.String nonComplianceReason; |
2903 /** | 2843 /** |
2904 * The package name indicating which application is out of compliance. If not | 2844 * The package name indicating which application is out of compliance. If not |
2905 * set, then this condition matches any package name. If this field is set, | 2845 * set, then this condition matches any package name. If this field is set, |
2906 * then `setting_name` must be unset or set to `applications`; otherwise, the | 2846 * then setting_name must be unset or set to applications; otherwise, the |
2907 * condition would never be satisfied. | 2847 * condition would never be satisfied. |
2908 */ | 2848 */ |
2909 core.String packageName; | 2849 core.String packageName; |
2910 /** | 2850 /** |
2911 * The name of the policy setting. This is the JSON field name of a top-level | 2851 * The name of the policy setting. This is the JSON field name of a top-level |
2912 * [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Polic
y) | 2852 * Policy field. If not set, then this condition matches any setting name. |
2913 * field. If not set, then this condition matches any setting name. | |
2914 */ | 2853 */ |
2915 core.String settingName; | 2854 core.String settingName; |
2916 | 2855 |
2917 NonComplianceDetailCondition(); | 2856 NonComplianceDetailCondition(); |
2918 | 2857 |
2919 NonComplianceDetailCondition.fromJson(core.Map _json) { | 2858 NonComplianceDetailCondition.fromJson(core.Map _json) { |
2920 if (_json.containsKey("nonComplianceReason")) { | 2859 if (_json.containsKey("nonComplianceReason")) { |
2921 nonComplianceReason = _json["nonComplianceReason"]; | 2860 nonComplianceReason = _json["nonComplianceReason"]; |
2922 } | 2861 } |
2923 if (_json.containsKey("packageName")) { | 2862 if (_json.containsKey("packageName")) { |
(...skipping 18 matching lines...) Expand all Loading... |
2942 return _json; | 2881 return _json; |
2943 } | 2882 } |
2944 } | 2883 } |
2945 | 2884 |
2946 /** | 2885 /** |
2947 * This resource represents a long-running operation that is the result of a | 2886 * This resource represents a long-running operation that is the result of a |
2948 * network API call. | 2887 * network API call. |
2949 */ | 2888 */ |
2950 class Operation { | 2889 class Operation { |
2951 /** | 2890 /** |
2952 * If the value is `false`, it means the operation is still in progress. | 2891 * If the value is false, it means the operation is still in progress. If |
2953 * If true, the operation is completed, and either `error` or `response` is | 2892 * true, the operation is completed, and either error or response is |
2954 * available. | 2893 * available. |
2955 */ | 2894 */ |
2956 core.bool done; | 2895 core.bool done; |
2957 /** The error result of the operation in case of failure or cancellation. */ | 2896 /** The error result of the operation in case of failure or cancellation. */ |
2958 Status error; | 2897 Status error; |
2959 /** | 2898 /** |
2960 * Service-specific metadata associated with the operation. It typically | 2899 * Service-specific metadata associated with the operation. It typically |
2961 * contains progress information and common metadata such as create time. | 2900 * contains progress information and common metadata such as create time. Some |
2962 * Some services might not provide such metadata. Any method that returns a | 2901 * services might not provide such metadata. Any method that returns a |
2963 * long-running operation should document the metadata type, if any. | 2902 * long-running operation should document the metadata type, if any. |
2964 * | 2903 * |
2965 * The values for Object must be JSON objects. It can consist of `num`, | 2904 * The values for Object must be JSON objects. It can consist of `num`, |
2966 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2905 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2967 */ | 2906 */ |
2968 core.Map<core.String, core.Object> metadata; | 2907 core.Map<core.String, core.Object> metadata; |
2969 /** | 2908 /** |
2970 * The server-assigned name, which is only unique within the same service that | 2909 * The server-assigned name, which is only unique within the same service that |
2971 * originally returns it. If you use the default HTTP mapping, the | 2910 * originally returns it. If you use the default HTTP mapping, the name should |
2972 * `name` should have the format of `operations/some/unique/name`. | 2911 * have the format of operations/some/unique/name. |
2973 */ | 2912 */ |
2974 core.String name; | 2913 core.String name; |
2975 /** | 2914 /** |
2976 * The normal response of the operation in case of success. If the original | 2915 * The normal response of the operation in case of success. If the original |
2977 * method returns no data on success, such as `Delete`, the response is | 2916 * method returns no data on success, such as Delete, the response is |
2978 * `google.protobuf.Empty`. If the original method is standard | 2917 * google.protobuf.Empty. If the original method is standard |
2979 * `Get`/`Create`/`Update`, the response should be the resource. For other | 2918 * Get/Create/Update, the response should be the resource. For other methods, |
2980 * methods, the response should have the type `XxxResponse`, where `Xxx` | 2919 * the response should have the type XxxResponse, where Xxx is the original |
2981 * is the original method name. For example, if the original method name | 2920 * method name. For example, if the original method name is TakeSnapshot(), |
2982 * is `TakeSnapshot()`, the inferred response type is | 2921 * the inferred response type is TakeSnapshotResponse. |
2983 * `TakeSnapshotResponse`. | |
2984 * | 2922 * |
2985 * The values for Object must be JSON objects. It can consist of `num`, | 2923 * The values for Object must be JSON objects. It can consist of `num`, |
2986 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2924 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2987 */ | 2925 */ |
2988 core.Map<core.String, core.Object> response; | 2926 core.Map<core.String, core.Object> response; |
2989 | 2927 |
2990 Operation(); | 2928 Operation(); |
2991 | 2929 |
2992 Operation.fromJson(core.Map _json) { | 2930 Operation.fromJson(core.Map _json) { |
2993 if (_json.containsKey("done")) { | 2931 if (_json.containsKey("done")) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3031 /** Requirements for the password used to unlock a device. */ | 2969 /** Requirements for the password used to unlock a device. */ |
3032 class PasswordRequirements { | 2970 class PasswordRequirements { |
3033 /** | 2971 /** |
3034 * A device will be wiped after too many incorrect device-unlock passwords | 2972 * A device will be wiped after too many incorrect device-unlock passwords |
3035 * have been entered. A value of 0 means there is no restriction. | 2973 * have been entered. A value of 0 means there is no restriction. |
3036 */ | 2974 */ |
3037 core.int maximumFailedPasswordsForWipe; | 2975 core.int maximumFailedPasswordsForWipe; |
3038 /** Password expiration timeout. */ | 2976 /** Password expiration timeout. */ |
3039 core.String passwordExpirationTimeout; | 2977 core.String passwordExpirationTimeout; |
3040 /** | 2978 /** |
3041 * The length of the password history. After setting this, the user will | 2979 * The length of the password history. After setting this, the user will not |
3042 * not be able to enter a new password that is the same as any password in | 2980 * be able to enter a new password that is the same as any password in the |
3043 * the history. A value of 0 means there is no restriction. | 2981 * history. A value of 0 means there is no restriction. |
3044 */ | 2982 */ |
3045 core.int passwordHistoryLength; | 2983 core.int passwordHistoryLength; |
3046 /** | 2984 /** |
3047 * The minimum allowed password length. A value of 0 means there is no | 2985 * The minimum allowed password length. A value of 0 means there is no |
3048 * restriction. | 2986 * restriction. Only enforced when password_quality is NUMERIC, |
3049 * Only enforced when `password_quality` is `NUMERIC`, `NUMERIC_COMPLEX`, | 2987 * NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. |
3050 * `ALPHABETIC`, `ALPHANUMERIC`, or `COMPLEX`. | |
3051 */ | 2988 */ |
3052 core.int passwordMinimumLength; | 2989 core.int passwordMinimumLength; |
3053 /** | 2990 /** |
3054 * Minimum number of letters required in the password. | 2991 * Minimum number of letters required in the password. Only enforced when |
3055 * Only enforced when `password_quality` is `COMPLEX`. | 2992 * password_quality is COMPLEX. |
3056 */ | 2993 */ |
3057 core.int passwordMinimumLetters; | 2994 core.int passwordMinimumLetters; |
3058 /** | 2995 /** |
3059 * Minimum number of lower case letters required in the password. | 2996 * Minimum number of lower case letters required in the password. Only |
3060 * Only enforced when `password_quality` is `COMPLEX`. | 2997 * enforced when password_quality is COMPLEX. |
3061 */ | 2998 */ |
3062 core.int passwordMinimumLowerCase; | 2999 core.int passwordMinimumLowerCase; |
3063 /** | 3000 /** |
3064 * Minimum number of non-letter characters (numerical digits or symbols) | 3001 * Minimum number of non-letter characters (numerical digits or symbols) |
3065 * required in the password. | 3002 * required in the password. Only enforced when password_quality is COMPLEX. |
3066 * Only enforced when `password_quality` is `COMPLEX`. | |
3067 */ | 3003 */ |
3068 core.int passwordMinimumNonLetter; | 3004 core.int passwordMinimumNonLetter; |
3069 /** | 3005 /** |
3070 * Minimum number of numerical digits required in the password. | 3006 * Minimum number of numerical digits required in the password. Only enforced |
3071 * Only enforced when `password_quality` is `COMPLEX`. | 3007 * when password_quality is COMPLEX. |
3072 */ | 3008 */ |
3073 core.int passwordMinimumNumeric; | 3009 core.int passwordMinimumNumeric; |
3074 /** | 3010 /** |
3075 * Minimum number of symbols required in the password. | 3011 * Minimum number of symbols required in the password. Only enforced when |
3076 * Only enforced when `password_quality` is `COMPLEX`. | 3012 * password_quality is COMPLEX. |
3077 */ | 3013 */ |
3078 core.int passwordMinimumSymbols; | 3014 core.int passwordMinimumSymbols; |
3079 /** | 3015 /** |
3080 * Minimum number of upper case letters required in the password. | 3016 * Minimum number of upper case letters required in the password. Only |
3081 * Only enforced when `password_quality` is `COMPLEX`. | 3017 * enforced when password_quality is COMPLEX. |
3082 */ | 3018 */ |
3083 core.int passwordMinimumUpperCase; | 3019 core.int passwordMinimumUpperCase; |
3084 /** | 3020 /** |
3085 * The required password quality. | 3021 * The required password quality. |
3086 * Possible string values are: | 3022 * Possible string values are: |
3087 * - "PASSWORD_QUALITY_UNSPECIFIED" : There are no requirements for the | 3023 * - "PASSWORD_QUALITY_UNSPECIFIED" : There are no requirements for the |
3088 * password. | 3024 * password. |
3089 * - "SOMETHING" : There must be a password, but there are no restrictions on | 3025 * - "SOMETHING" : There must be a password, but there are no restrictions on |
3090 * its | 3026 * its characters. |
3091 * characters. | |
3092 * - "NUMERIC" : The password must contain numeric characters. | 3027 * - "NUMERIC" : The password must contain numeric characters. |
3093 * - "NUMERIC_COMPLEX" : The password must contain numeric characters with no | 3028 * - "NUMERIC_COMPLEX" : The password must contain numeric characters with no |
3094 * repeating (4444) or | 3029 * repeating (4444) or ordered (1234, 4321, 2468) sequences. |
3095 * ordered (1234, 4321, 2468) sequences. | |
3096 * - "ALPHABETIC" : The password must contain alphabetic (or symbol) | 3030 * - "ALPHABETIC" : The password must contain alphabetic (or symbol) |
3097 * characters. | 3031 * characters. |
3098 * - "ALPHANUMERIC" : The password must contain at both numeric and alphabetic | 3032 * - "ALPHANUMERIC" : The password must contain at both numeric and alphabetic |
3099 * (or symbol) | 3033 * (or symbol) characters. |
3100 * characters. | |
3101 * - "COMPLEX" : The password must contain at least a letter, a numerical | 3034 * - "COMPLEX" : The password must contain at least a letter, a numerical |
3102 * digit and a | 3035 * digit and a special symbol. Other password constraints, for example, |
3103 * special symbol. Other password constraints, for example, | 3036 * password_minimum_letters are enforced. |
3104 * `password_minimum_letters` are enforced. | |
3105 */ | 3037 */ |
3106 core.String passwordQuality; | 3038 core.String passwordQuality; |
3107 | 3039 |
3108 PasswordRequirements(); | 3040 PasswordRequirements(); |
3109 | 3041 |
3110 PasswordRequirements.fromJson(core.Map _json) { | 3042 PasswordRequirements.fromJson(core.Map _json) { |
3111 if (_json.containsKey("maximumFailedPasswordsForWipe")) { | 3043 if (_json.containsKey("maximumFailedPasswordsForWipe")) { |
3112 maximumFailedPasswordsForWipe = _json["maximumFailedPasswordsForWipe"]; | 3044 maximumFailedPasswordsForWipe = _json["maximumFailedPasswordsForWipe"]; |
3113 } | 3045 } |
3114 if (_json.containsKey("passwordExpirationTimeout")) { | 3046 if (_json.containsKey("passwordExpirationTimeout")) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3177 } | 3109 } |
3178 if (passwordQuality != null) { | 3110 if (passwordQuality != null) { |
3179 _json["passwordQuality"] = passwordQuality; | 3111 _json["passwordQuality"] = passwordQuality; |
3180 } | 3112 } |
3181 return _json; | 3113 return _json; |
3182 } | 3114 } |
3183 } | 3115 } |
3184 | 3116 |
3185 /** Configuration for an Android permission and its grant state. */ | 3117 /** Configuration for an Android permission and its grant state. */ |
3186 class PermissionGrant { | 3118 class PermissionGrant { |
3187 /** The android permission, e.g. `android.permission.READ_CALENDAR`. */ | 3119 /** The android permission, e.g. android.permission.READ_CALENDAR. */ |
3188 core.String permission; | 3120 core.String permission; |
3189 /** | 3121 /** |
3190 * The policy for granting the permission. | 3122 * The policy for granting the permission. |
3191 * Possible string values are: | 3123 * Possible string values are: |
3192 * - "PERMISSION_POLICY_UNSPECIFIED" : Policy not specified. If no policy is | 3124 * - "PERMISSION_POLICY_UNSPECIFIED" : Policy not specified. If no policy is |
3193 * specified for a permission at any | 3125 * specified for a permission at any level, then the PROMPT behavior is used |
3194 * level, then the `PROMPT` behavior is used by default. | 3126 * by default. |
3195 * - "PROMPT" : Prompt the user to grant a permission. | 3127 * - "PROMPT" : Prompt the user to grant a permission. |
3196 * - "GRANT" : Automatically grant a permission. | 3128 * - "GRANT" : Automatically grant a permission. |
3197 * - "DENY" : Automatically deny a permission. | 3129 * - "DENY" : Automatically deny a permission. |
3198 */ | 3130 */ |
3199 core.String policy; | 3131 core.String policy; |
3200 | 3132 |
3201 PermissionGrant(); | 3133 PermissionGrant(); |
3202 | 3134 |
3203 PermissionGrant.fromJson(core.Map _json) { | 3135 PermissionGrant.fromJson(core.Map _json) { |
3204 if (_json.containsKey("permission")) { | 3136 if (_json.containsKey("permission")) { |
(...skipping 15 matching lines...) Expand all Loading... |
3220 return _json; | 3152 return _json; |
3221 } | 3153 } |
3222 } | 3154 } |
3223 | 3155 |
3224 /** | 3156 /** |
3225 * A default activity for handling intents that match a particular intent | 3157 * A default activity for handling intents that match a particular intent |
3226 * filter. | 3158 * filter. |
3227 */ | 3159 */ |
3228 class PersistentPreferredActivity { | 3160 class PersistentPreferredActivity { |
3229 /** | 3161 /** |
3230 * The intent actions to match in the filter. If any actions are included in | 3162 * The intent actions to match in the filter. If any actions are included in |
3231 * the filter, then an intent's action must be one of those values for it to | 3163 * the filter, then an intent's action must be one of those values for it to |
3232 * match. If no actions are included, the intent action is ignored. | 3164 * match. If no actions are included, the intent action is ignored. |
3233 */ | 3165 */ |
3234 core.List<core.String> actions; | 3166 core.List<core.String> actions; |
3235 /** | 3167 /** |
3236 * The intent categories to match in the filter. An intent includes the | 3168 * The intent categories to match in the filter. An intent includes the |
3237 * categories that it requires, all of which must be included in the filter in | 3169 * categories that it requires, all of which must be included in the filter in |
3238 * order to match. In other words, adding a category to the filter has no | 3170 * order to match. In other words, adding a category to the filter has no |
3239 * impact on matching unless that category is specified in the intent. | 3171 * impact on matching unless that category is specified in the intent. |
3240 */ | 3172 */ |
3241 core.List<core.String> categories; | 3173 core.List<core.String> categories; |
3242 /** | 3174 /** |
3243 * The activity that should be the default intent handler. This should be an | 3175 * The activity that should be the default intent handler. This should be an |
3244 * Android component name, e.g. `com.android.enterprise.app/.MainActivity`. | 3176 * Android component name, e.g. com.android.enterprise.app/.MainActivity. |
3245 * Alternatively, the value may be the package name of an app, which causes | 3177 * Alternatively, the value may be the package name of an app, which causes |
3246 * Android Device Policy to choose an appropriate activity from the app to | 3178 * Android Device Policy to choose an appropriate activity from the app to |
3247 * handle the intent. | 3179 * handle the intent. |
3248 */ | 3180 */ |
3249 core.String receiverActivity; | 3181 core.String receiverActivity; |
3250 | 3182 |
3251 PersistentPreferredActivity(); | 3183 PersistentPreferredActivity(); |
3252 | 3184 |
3253 PersistentPreferredActivity.fromJson(core.Map _json) { | 3185 PersistentPreferredActivity.fromJson(core.Map _json) { |
3254 if (_json.containsKey("actions")) { | 3186 if (_json.containsKey("actions")) { |
(...skipping 24 matching lines...) Expand all Loading... |
3279 | 3211 |
3280 /** A policy, which governs behavior for a device. */ | 3212 /** A policy, which governs behavior for a device. */ |
3281 class Policy { | 3213 class Policy { |
3282 /** Whether adding new users and profiles is disabled. */ | 3214 /** Whether adding new users and profiles is disabled. */ |
3283 core.bool addUserDisabled; | 3215 core.bool addUserDisabled; |
3284 /** Whether adjusting the master volume is disabled. */ | 3216 /** Whether adjusting the master volume is disabled. */ |
3285 core.bool adjustVolumeDisabled; | 3217 core.bool adjustVolumeDisabled; |
3286 /** Policy applied to apps. */ | 3218 /** Policy applied to apps. */ |
3287 core.List<ApplicationPolicy> applications; | 3219 core.List<ApplicationPolicy> applications; |
3288 /** | 3220 /** |
3289 * Whether applications other than the ones configured in `applications` are | 3221 * Whether applications other than the ones configured in applications are |
3290 * blocked from being installed. When set, applications that were | 3222 * blocked from being installed. When set, applications that were installed |
3291 * installed under a previous policy but no longer appear in the policy are | 3223 * under a previous policy but no longer appear in the policy are |
3292 * automatically uninstalled. | 3224 * automatically uninstalled. |
3293 */ | 3225 */ |
3294 core.bool blockApplicationsEnabled; | 3226 core.bool blockApplicationsEnabled; |
3295 /** Whether all cameras on the device are disabled. */ | 3227 /** Whether all cameras on the device are disabled. */ |
3296 core.bool cameraDisabled; | 3228 core.bool cameraDisabled; |
3297 /** | 3229 /** |
3298 * Rules declaring which mitigating actions to take when a device is not | 3230 * Rules declaring which mitigating actions to take when a device is not |
3299 * compliant with its policy. When the conditions for multiple rules are | 3231 * compliant with its policy. When the conditions for multiple rules are |
3300 * satisfied, all of the mitigating actions for the rules are taken. There is | 3232 * satisfied, all of the mitigating actions for the rules are taken. There is |
3301 * a maximum limit of 100 rules. | 3233 * a maximum limit of 100 rules. |
3302 */ | 3234 */ |
3303 core.List<ComplianceRule> complianceRules; | 3235 core.List<ComplianceRule> complianceRules; |
3304 /** Whether the user is allowed to enable debugging features. */ | 3236 /** Whether the user is allowed to enable debugging features. */ |
3305 core.bool debuggingFeaturesAllowed; | 3237 core.bool debuggingFeaturesAllowed; |
3306 /** | 3238 /** |
3307 * The default permission policy for requests for runtime permissions. | 3239 * The default permission policy for requests for runtime permissions. |
3308 * Possible string values are: | 3240 * Possible string values are: |
3309 * - "PERMISSION_POLICY_UNSPECIFIED" : Policy not specified. If no policy is | 3241 * - "PERMISSION_POLICY_UNSPECIFIED" : Policy not specified. If no policy is |
3310 * specified for a permission at any | 3242 * specified for a permission at any level, then the PROMPT behavior is used |
3311 * level, then the `PROMPT` behavior is used by default. | 3243 * by default. |
3312 * - "PROMPT" : Prompt the user to grant a permission. | 3244 * - "PROMPT" : Prompt the user to grant a permission. |
3313 * - "GRANT" : Automatically grant a permission. | 3245 * - "GRANT" : Automatically grant a permission. |
3314 * - "DENY" : Automatically deny a permission. | 3246 * - "DENY" : Automatically deny a permission. |
3315 */ | 3247 */ |
3316 core.String defaultPermissionPolicy; | 3248 core.String defaultPermissionPolicy; |
3317 /** Whether factory resetting from settings is disabled. */ | 3249 /** Whether factory resetting from settings is disabled. */ |
3318 core.bool factoryResetDisabled; | 3250 core.bool factoryResetDisabled; |
3319 /** | 3251 /** |
3320 * Email addresses of device administrators for factory reset protection. | 3252 * Email addresses of device administrators for factory reset protection. When |
3321 * When the device is factory reset, it will require one of these admins to | 3253 * the device is factory reset, it will require one of these admins to log in |
3322 * log in with the Google account email and password to unlock the device. | 3254 * with the Google account email and password to unlock the device. If no |
3323 * If no admins are specified, the device will not provide factory reset | 3255 * admins are specified, the device will not provide factory reset protection. |
3324 * protection. | |
3325 */ | 3256 */ |
3326 core.List<core.String> frpAdminEmails; | 3257 core.List<core.String> frpAdminEmails; |
3327 /** | 3258 /** |
3328 * Whether the user is allowed to enable the "Unknown Sources" setting, | 3259 * Whether the user is allowed to have fun. Controls whether the Easter egg |
3329 * which allows installation of apps from unknown sources. | 3260 * game in Settings is disabled. |
| 3261 */ |
| 3262 core.bool funDisabled; |
| 3263 /** |
| 3264 * Whether the user is allowed to enable the "Unknown Sources" setting, which |
| 3265 * allows installation of apps from unknown sources. |
3330 */ | 3266 */ |
3331 core.bool installUnknownSourcesAllowed; | 3267 core.bool installUnknownSourcesAllowed; |
3332 /** Whether the keyguard is disabled. */ | 3268 /** Whether the keyguard is disabled. */ |
3333 core.bool keyguardDisabled; | 3269 core.bool keyguardDisabled; |
3334 /** | 3270 /** |
3335 * Maximum time in milliseconds for user activity until the device will lock. | 3271 * Maximum time in milliseconds for user activity until the device will lock. |
3336 * A value of 0 means there is no restriction. | 3272 * A value of 0 means there is no restriction. |
3337 */ | 3273 */ |
3338 core.String maximumTimeToLock; | 3274 core.String maximumTimeToLock; |
3339 /** Whether adding or removing accounts is disabled. */ | 3275 /** Whether adding or removing accounts is disabled. */ |
3340 core.bool modifyAccountsDisabled; | 3276 core.bool modifyAccountsDisabled; |
3341 /** | 3277 /** |
3342 * The name of the policy in the form | 3278 * The name of the policy in the form |
3343 * `enterprises/{enterpriseId}/policies/{policyId}` | 3279 * enterprises/{enterpriseId}/policies/{policyId} |
3344 */ | 3280 */ |
3345 core.String name; | 3281 core.String name; |
3346 /** | 3282 /** |
3347 * Flag to specify if network escape hatch is enabled. If this flag has been | 3283 * Flag to specify if network escape hatch is enabled. If this flag has been |
3348 * enabled then upon device boot if device has no network connection, then an | 3284 * enabled then upon device boot if device has no network connection, then an |
3349 * activity will be shown that allows the user to temporarily connect to a | 3285 * activity will be shown that allows the user to temporarily connect to a |
3350 * network to fetch the latest policy. The launched activity will time out if | 3286 * network to fetch the latest policy. The launched activity will time out if |
3351 * no network has been connected for a given while and will return to the | 3287 * no network has been connected for a given while and will return to the |
3352 * previous activity that was shown. | 3288 * previous activity that was shown. |
3353 */ | 3289 */ |
3354 core.bool networkEscapeHatchEnabled; | 3290 core.bool networkEscapeHatchEnabled; |
3355 /** | 3291 /** |
3356 * Network configuration for the device. See | 3292 * Network configuration for the device. See configure networks for more |
3357 * [configure networks](/android/management/configure-networks) | 3293 * information. |
3358 * for more information. | |
3359 * | 3294 * |
3360 * The values for Object must be JSON objects. It can consist of `num`, | 3295 * The values for Object must be JSON objects. It can consist of `num`, |
3361 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3296 * `String`, `bool` and `null` as well as `Map` and `List` values. |
3362 */ | 3297 */ |
3363 core.Map<core.String, core.Object> openNetworkConfiguration; | 3298 core.Map<core.String, core.Object> openNetworkConfiguration; |
3364 /** Password requirements. */ | 3299 /** Password requirements. */ |
3365 PasswordRequirements passwordRequirements; | 3300 PasswordRequirements passwordRequirements; |
3366 /** Default intent handler activities. */ | 3301 /** Default intent handler activities. */ |
3367 core.List<PersistentPreferredActivity> persistentPreferredActivities; | 3302 core.List<PersistentPreferredActivity> persistentPreferredActivities; |
3368 /** Whether removing other users is disabled. */ | 3303 /** Whether removing other users is disabled. */ |
3369 core.bool removeUserDisabled; | 3304 core.bool removeUserDisabled; |
3370 /** Whether rebooting the device into safe boot is disabled. */ | 3305 /** Whether rebooting the device into safe boot is disabled. */ |
3371 core.bool safeBootDisabled; | 3306 core.bool safeBootDisabled; |
3372 /** Whether screen capture is disabled. */ | 3307 /** Whether screen capture is disabled. */ |
3373 core.bool screenCaptureDisabled; | 3308 core.bool screenCaptureDisabled; |
3374 /** | 3309 /** |
3375 * Whether the status bar is disabled. This disables notifications, quick | 3310 * Whether the status bar is disabled. This disables notifications, quick |
3376 * settings and other screen overlays that allow escape from full-screen mode. | 3311 * settings and other screen overlays that allow escape from full-screen mode. |
3377 */ | 3312 */ |
3378 core.bool statusBarDisabled; | 3313 core.bool statusBarDisabled; |
3379 /** Status reporting settings */ | 3314 /** Status reporting settings */ |
3380 StatusReportingSettings statusReportingSettings; | 3315 StatusReportingSettings statusReportingSettings; |
3381 /** | 3316 /** |
3382 * The battery plugged in modes for which the device stays on. When using this | 3317 * The battery plugged in modes for which the device stays on. When using this |
3383 * setting, it is recommended to clear `maximum_time_to_lock` so that the | 3318 * setting, it is recommended to clear maximum_time_to_lock so that the device |
3384 * device doesn't lock itself while it stays on. | 3319 * doesn't lock itself while it stays on. |
3385 */ | 3320 */ |
3386 core.List<core.String> stayOnPluggedModes; | 3321 core.List<core.String> stayOnPluggedModes; |
3387 /** | 3322 /** |
3388 * The system update policy, which controls how OS updates are applied. If the | 3323 * The system update policy, which controls how OS updates are applied. If the |
3389 * update type is `WINDOWED` and the device has a device account, the update | 3324 * update type is WINDOWED and the device has a device account, the update |
3390 * window will automatically apply to Play app updates as well. | 3325 * window will automatically apply to Play app updates as well. |
3391 */ | 3326 */ |
3392 SystemUpdate systemUpdate; | 3327 SystemUpdate systemUpdate; |
3393 /** | 3328 /** |
3394 * Whether the microphone is muted and adjusting microphone volume is | 3329 * Whether the microphone is muted and adjusting microphone volume is |
3395 * disabled. | 3330 * disabled. |
3396 */ | 3331 */ |
3397 core.bool unmuteMicrophoneDisabled; | 3332 core.bool unmuteMicrophoneDisabled; |
3398 /** | 3333 /** |
3399 * The version of the policy. This is a read-only field. The version is | 3334 * The version of the policy. This is a read-only field. The version is |
(...skipping 27 matching lines...) Expand all Loading... |
3427 } | 3362 } |
3428 if (_json.containsKey("defaultPermissionPolicy")) { | 3363 if (_json.containsKey("defaultPermissionPolicy")) { |
3429 defaultPermissionPolicy = _json["defaultPermissionPolicy"]; | 3364 defaultPermissionPolicy = _json["defaultPermissionPolicy"]; |
3430 } | 3365 } |
3431 if (_json.containsKey("factoryResetDisabled")) { | 3366 if (_json.containsKey("factoryResetDisabled")) { |
3432 factoryResetDisabled = _json["factoryResetDisabled"]; | 3367 factoryResetDisabled = _json["factoryResetDisabled"]; |
3433 } | 3368 } |
3434 if (_json.containsKey("frpAdminEmails")) { | 3369 if (_json.containsKey("frpAdminEmails")) { |
3435 frpAdminEmails = _json["frpAdminEmails"]; | 3370 frpAdminEmails = _json["frpAdminEmails"]; |
3436 } | 3371 } |
| 3372 if (_json.containsKey("funDisabled")) { |
| 3373 funDisabled = _json["funDisabled"]; |
| 3374 } |
3437 if (_json.containsKey("installUnknownSourcesAllowed")) { | 3375 if (_json.containsKey("installUnknownSourcesAllowed")) { |
3438 installUnknownSourcesAllowed = _json["installUnknownSourcesAllowed"]; | 3376 installUnknownSourcesAllowed = _json["installUnknownSourcesAllowed"]; |
3439 } | 3377 } |
3440 if (_json.containsKey("keyguardDisabled")) { | 3378 if (_json.containsKey("keyguardDisabled")) { |
3441 keyguardDisabled = _json["keyguardDisabled"]; | 3379 keyguardDisabled = _json["keyguardDisabled"]; |
3442 } | 3380 } |
3443 if (_json.containsKey("maximumTimeToLock")) { | 3381 if (_json.containsKey("maximumTimeToLock")) { |
3444 maximumTimeToLock = _json["maximumTimeToLock"]; | 3382 maximumTimeToLock = _json["maximumTimeToLock"]; |
3445 } | 3383 } |
3446 if (_json.containsKey("modifyAccountsDisabled")) { | 3384 if (_json.containsKey("modifyAccountsDisabled")) { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3515 } | 3453 } |
3516 if (defaultPermissionPolicy != null) { | 3454 if (defaultPermissionPolicy != null) { |
3517 _json["defaultPermissionPolicy"] = defaultPermissionPolicy; | 3455 _json["defaultPermissionPolicy"] = defaultPermissionPolicy; |
3518 } | 3456 } |
3519 if (factoryResetDisabled != null) { | 3457 if (factoryResetDisabled != null) { |
3520 _json["factoryResetDisabled"] = factoryResetDisabled; | 3458 _json["factoryResetDisabled"] = factoryResetDisabled; |
3521 } | 3459 } |
3522 if (frpAdminEmails != null) { | 3460 if (frpAdminEmails != null) { |
3523 _json["frpAdminEmails"] = frpAdminEmails; | 3461 _json["frpAdminEmails"] = frpAdminEmails; |
3524 } | 3462 } |
| 3463 if (funDisabled != null) { |
| 3464 _json["funDisabled"] = funDisabled; |
| 3465 } |
3525 if (installUnknownSourcesAllowed != null) { | 3466 if (installUnknownSourcesAllowed != null) { |
3526 _json["installUnknownSourcesAllowed"] = installUnknownSourcesAllowed; | 3467 _json["installUnknownSourcesAllowed"] = installUnknownSourcesAllowed; |
3527 } | 3468 } |
3528 if (keyguardDisabled != null) { | 3469 if (keyguardDisabled != null) { |
3529 _json["keyguardDisabled"] = keyguardDisabled; | 3470 _json["keyguardDisabled"] = keyguardDisabled; |
3530 } | 3471 } |
3531 if (maximumTimeToLock != null) { | 3472 if (maximumTimeToLock != null) { |
3532 _json["maximumTimeToLock"] = maximumTimeToLock; | 3473 _json["maximumTimeToLock"] = maximumTimeToLock; |
3533 } | 3474 } |
3534 if (modifyAccountsDisabled != null) { | 3475 if (modifyAccountsDisabled != null) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3575 } | 3516 } |
3576 if (version != null) { | 3517 if (version != null) { |
3577 _json["version"] = version; | 3518 _json["version"] = version; |
3578 } | 3519 } |
3579 return _json; | 3520 return _json; |
3580 } | 3521 } |
3581 } | 3522 } |
3582 | 3523 |
3583 /** A power management event. */ | 3524 /** A power management event. */ |
3584 class PowerManagementEvent { | 3525 class PowerManagementEvent { |
3585 /** | 3526 /** For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. */ |
3586 * For `BATTERY_LEVEL_COLLECTED` events, the battery level as a percentage. | |
3587 */ | |
3588 core.double batteryLevel; | 3527 core.double batteryLevel; |
3589 /** The creation time of the event. */ | 3528 /** The creation time of the event. */ |
3590 core.String createTime; | 3529 core.String createTime; |
3591 /** | 3530 /** |
3592 * Event type. | 3531 * Event type. |
3593 * Possible string values are: | 3532 * Possible string values are: |
3594 * - "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED" : Unspecified. No events have | 3533 * - "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED" : Unspecified. No events have |
3595 * this type. | 3534 * this type. |
3596 * - "BATTERY_LEVEL_COLLECTED" : Battery level was measured. | 3535 * - "BATTERY_LEVEL_COLLECTED" : Battery level was measured. |
3597 * - "POWER_CONNECTED" : The device started charging. | 3536 * - "POWER_CONNECTED" : The device started charging. |
(...skipping 30 matching lines...) Expand all Loading... |
3628 if (eventType != null) { | 3567 if (eventType != null) { |
3629 _json["eventType"] = eventType; | 3568 _json["eventType"] = eventType; |
3630 } | 3569 } |
3631 return _json; | 3570 return _json; |
3632 } | 3571 } |
3633 } | 3572 } |
3634 | 3573 |
3635 /** An enterprise signup URL. */ | 3574 /** An enterprise signup URL. */ |
3636 class SignupUrl { | 3575 class SignupUrl { |
3637 /** | 3576 /** |
3638 * The name of the resource. This must be included in the | 3577 * The name of the resource. This must be included in the create enterprise |
3639 * [create | |
3640 * enterprise](/android/management/reference/rest/v1/enterprises/create) | |
3641 * request at the end of the signup flow. | 3578 * request at the end of the signup flow. |
3642 */ | 3579 */ |
3643 core.String name; | 3580 core.String name; |
3644 /** | 3581 /** |
3645 * A URL under which the Admin can sign up for an enterprise. | 3582 * A URL under which the Admin can sign up for an enterprise. The page pointed |
3646 * The page pointed to cannot be rendered in an iframe. | 3583 * to cannot be rendered in an iframe. |
3647 */ | 3584 */ |
3648 core.String url; | 3585 core.String url; |
3649 | 3586 |
3650 SignupUrl(); | 3587 SignupUrl(); |
3651 | 3588 |
3652 SignupUrl.fromJson(core.Map _json) { | 3589 SignupUrl.fromJson(core.Map _json) { |
3653 if (_json.containsKey("name")) { | 3590 if (_json.containsKey("name")) { |
3654 name = _json["name"]; | 3591 name = _json["name"]; |
3655 } | 3592 } |
3656 if (_json.containsKey("url")) { | 3593 if (_json.containsKey("url")) { |
3657 url = _json["url"]; | 3594 url = _json["url"]; |
3658 } | 3595 } |
3659 } | 3596 } |
3660 | 3597 |
3661 core.Map<core.String, core.Object> toJson() { | 3598 core.Map<core.String, core.Object> toJson() { |
3662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3599 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3663 if (name != null) { | 3600 if (name != null) { |
3664 _json["name"] = name; | 3601 _json["name"] = name; |
3665 } | 3602 } |
3666 if (url != null) { | 3603 if (url != null) { |
3667 _json["url"] = url; | 3604 _json["url"] = url; |
3668 } | 3605 } |
3669 return _json; | 3606 return _json; |
3670 } | 3607 } |
3671 } | 3608 } |
3672 | 3609 |
3673 /** Information about device software. */ | 3610 /** Information about device software. */ |
3674 class SoftwareInfo { | 3611 class SoftwareInfo { |
3675 /** | 3612 /** |
3676 * Android build Id string meant for displaying to the user, | 3613 * Android build Id string meant for displaying to the user, e.g. |
3677 * e.g. `shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys`. | 3614 * shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys. |
3678 */ | 3615 */ |
3679 core.String androidBuildNumber; | 3616 core.String androidBuildNumber; |
3680 /** Build time. */ | 3617 /** Build time. */ |
3681 core.String androidBuildTime; | 3618 core.String androidBuildTime; |
3682 /** The user visible Android version string, e.g. `6.0.1`. */ | 3619 /** The user visible Android version string, e.g. 6.0.1. */ |
3683 core.String androidVersion; | 3620 core.String androidVersion; |
3684 /** The system bootloader version number, e.g. `0.6.7`. */ | 3621 /** The system bootloader version number, e.g. 0.6.7. */ |
3685 core.String bootloaderVersion; | 3622 core.String bootloaderVersion; |
3686 /** Kernel version, e.g. `2.6.32.9-g103d848`. */ | 3623 /** Kernel version, e.g. 2.6.32.9-g103d848. */ |
3687 core.String deviceKernelVersion; | 3624 core.String deviceKernelVersion; |
3688 /** Security patch level, e.g. `2016-05-01`. */ | 3625 /** Security patch level, e.g. 2016-05-01. */ |
3689 core.String securityPatchLevel; | 3626 core.String securityPatchLevel; |
3690 | 3627 |
3691 SoftwareInfo(); | 3628 SoftwareInfo(); |
3692 | 3629 |
3693 SoftwareInfo.fromJson(core.Map _json) { | 3630 SoftwareInfo.fromJson(core.Map _json) { |
3694 if (_json.containsKey("androidBuildNumber")) { | 3631 if (_json.containsKey("androidBuildNumber")) { |
3695 androidBuildNumber = _json["androidBuildNumber"]; | 3632 androidBuildNumber = _json["androidBuildNumber"]; |
3696 } | 3633 } |
3697 if (_json.containsKey("androidBuildTime")) { | 3634 if (_json.containsKey("androidBuildTime")) { |
3698 androidBuildTime = _json["androidBuildTime"]; | 3635 androidBuildTime = _json["androidBuildTime"]; |
(...skipping 30 matching lines...) Expand all Loading... |
3729 _json["deviceKernelVersion"] = deviceKernelVersion; | 3666 _json["deviceKernelVersion"] = deviceKernelVersion; |
3730 } | 3667 } |
3731 if (securityPatchLevel != null) { | 3668 if (securityPatchLevel != null) { |
3732 _json["securityPatchLevel"] = securityPatchLevel; | 3669 _json["securityPatchLevel"] = securityPatchLevel; |
3733 } | 3670 } |
3734 return _json; | 3671 return _json; |
3735 } | 3672 } |
3736 } | 3673 } |
3737 | 3674 |
3738 /** | 3675 /** |
3739 * The `Status` type defines a logical error model that is suitable for | 3676 * The Status type defines a logical error model that is suitable for different |
3740 * different | |
3741 * programming environments, including REST APIs and RPC APIs. It is used by | 3677 * programming environments, including REST APIs and RPC APIs. It is used by |
3742 * [gRPC](https://github.com/grpc). The error model is designed to be: | 3678 * gRPC (https://github.com/grpc). The error model is designed to be: |
3743 * | 3679 * Simple to use and understand for most users |
3744 * - Simple to use and understand for most users | 3680 * Flexible enough to meet unexpected needsOverviewThe Status message contains |
3745 * - Flexible enough to meet unexpected needs | 3681 * three pieces of data: error code, error message, and error details. The error |
3746 * | 3682 * code should be an enum value of google.rpc.Code, but it may accept additional |
3747 * # Overview | 3683 * error codes if needed. The error message should be a developer-facing English |
3748 * | 3684 * message that helps developers understand and resolve the error. If a |
3749 * The `Status` message contains three pieces of data: error code, error | 3685 * localized user-facing error message is needed, put the localized message in |
3750 * message, | 3686 * the error details or localize it in the client. The optional error details |
3751 * and error details. The error code should be an enum value of | 3687 * may contain arbitrary information about the error. There is a predefined set |
3752 * google.rpc.Code, but it may accept additional error codes if needed. The | 3688 * of error detail types in the package google.rpc that can be used for common |
3753 * error message should be a developer-facing English message that helps | 3689 * error conditions.Language mappingThe Status message is the logical |
3754 * developers *understand* and *resolve* the error. If a localized user-facing | 3690 * representation of the error model, but it is not necessarily the actual wire |
3755 * error message is needed, put the localized message in the error details or | 3691 * format. When the Status message is exposed in different client libraries and |
3756 * localize it in the client. The optional error details may contain arbitrary | 3692 * different wire protocols, it can be mapped differently. For example, it will |
3757 * information about the error. There is a predefined set of error detail types | 3693 * likely be mapped to some exceptions in Java, but more likely mapped to some |
3758 * in the package `google.rpc` that can be used for common error conditions. | 3694 * error codes in C.Other usesThe error model and the Status message can be used |
3759 * | 3695 * in a variety of environments, either with or without APIs, to provide a |
3760 * # Language mapping | 3696 * consistent developer experience across different environments.Example uses of |
3761 * | 3697 * this error model include: |
3762 * The `Status` message is the logical representation of the error model, but it | 3698 * Partial errors. If a service needs to return partial errors to the client, it |
3763 * is not necessarily the actual wire format. When the `Status` message is | 3699 * may embed the Status in the normal response to indicate the partial errors. |
3764 * exposed in different client libraries and different wire protocols, it can be | 3700 * Workflow errors. A typical workflow has multiple steps. Each step may have a |
3765 * mapped differently. For example, it will likely be mapped to some exceptions | 3701 * Status message for error reporting. |
3766 * in Java, but more likely mapped to some error codes in C. | 3702 * Batch operations. If a client uses batch request and batch response, the |
3767 * | 3703 * Status message should be used directly inside batch response, one for each |
3768 * # Other uses | 3704 * error sub-response. |
3769 * | 3705 * Asynchronous operations. If an API call embeds asynchronous operation results |
3770 * The error model and the `Status` message can be used in a variety of | 3706 * in its response, the status of those operations should be represented |
3771 * environments, either with or without APIs, to provide a | 3707 * directly using the Status message. |
3772 * consistent developer experience across different environments. | 3708 * Logging. If some API errors are stored in logs, the message Status could be |
3773 * | 3709 * used directly after any stripping needed for security/privacy reasons. |
3774 * Example uses of this error model include: | |
3775 * | |
3776 * - Partial errors. If a service needs to return partial errors to the client, | |
3777 * it may embed the `Status` in the normal response to indicate the partial | |
3778 * errors. | |
3779 * | |
3780 * - Workflow errors. A typical workflow has multiple steps. Each step may | |
3781 * have a `Status` message for error reporting. | |
3782 * | |
3783 * - Batch operations. If a client uses batch request and batch response, the | |
3784 * `Status` message should be used directly inside batch response, one for | |
3785 * each error sub-response. | |
3786 * | |
3787 * - Asynchronous operations. If an API call embeds asynchronous operation | |
3788 * results in its response, the status of those operations should be | |
3789 * represented directly using the `Status` message. | |
3790 * | |
3791 * - Logging. If some API errors are stored in logs, the message `Status` could | |
3792 * be used directly after any stripping needed for security/privacy reasons. | |
3793 */ | 3710 */ |
3794 class Status { | 3711 class Status { |
3795 /** The status code, which should be an enum value of google.rpc.Code. */ | 3712 /** The status code, which should be an enum value of google.rpc.Code. */ |
3796 core.int code; | 3713 core.int code; |
3797 /** | 3714 /** |
3798 * A list of messages that carry the error details. There is a common set of | 3715 * A list of messages that carry the error details. There is a common set of |
3799 * message types for APIs to use. | 3716 * message types for APIs to use. |
3800 * | 3717 * |
3801 * The values for Object must be JSON objects. It can consist of `num`, | 3718 * The values for Object must be JSON objects. It can consist of `num`, |
3802 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3719 * `String`, `bool` and `null` as well as `Map` and `List` values. |
3803 */ | 3720 */ |
3804 core.List<core.Map<core.String, core.Object>> details; | 3721 core.List<core.Map<core.String, core.Object>> details; |
3805 /** | 3722 /** |
3806 * A developer-facing error message, which should be in English. Any | 3723 * A developer-facing error message, which should be in English. Any |
3807 * user-facing error message should be localized and sent in the | 3724 * user-facing error message should be localized and sent in the |
3808 * google.rpc.Status.details field, or localized by the client. | 3725 * google.rpc.Status.details field, or localized by the client. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3896 if (softwareInfoEnabled != null) { | 3813 if (softwareInfoEnabled != null) { |
3897 _json["softwareInfoEnabled"] = softwareInfoEnabled; | 3814 _json["softwareInfoEnabled"] = softwareInfoEnabled; |
3898 } | 3815 } |
3899 return _json; | 3816 return _json; |
3900 } | 3817 } |
3901 } | 3818 } |
3902 | 3819 |
3903 /** Configuration for managing system updates */ | 3820 /** Configuration for managing system updates */ |
3904 class SystemUpdate { | 3821 class SystemUpdate { |
3905 /** | 3822 /** |
3906 * If the type is `WINDOWED`, the end of the maintenance window, measured as | 3823 * If the type is WINDOWED, the end of the maintenance window, measured as the |
3907 * the number of minutes after midnight in device local time. This value must | 3824 * number of minutes after midnight in device local time. This value must be |
3908 * be between 0 and 1439, inclusive. If this value is less than | 3825 * between 0 and 1439, inclusive. If this value is less than start_minutes, |
3909 * `start_minutes`, then the maintenance window spans midnight. If the | 3826 * then the maintenance window spans midnight. If the maintenance window |
3910 * maintenance window specified is smaller than 30 minutes, the actual window | 3827 * specified is smaller than 30 minutes, the actual window is extended to 30 |
3911 * is extended to 30 minutes beyond the start time. | 3828 * minutes beyond the start time. |
3912 */ | 3829 */ |
3913 core.int endMinutes; | 3830 core.int endMinutes; |
3914 /** | 3831 /** |
3915 * If the type is `WINDOWED`, the start of the maintenance window, measured as | 3832 * If the type is WINDOWED, the start of the maintenance window, measured as |
3916 * the number of minutes after midnight in device local time. This value must | 3833 * the number of minutes after midnight in device local time. This value must |
3917 * be between 0 and 1439, inclusive. | 3834 * be between 0 and 1439, inclusive. |
3918 */ | 3835 */ |
3919 core.int startMinutes; | 3836 core.int startMinutes; |
3920 /** | 3837 /** |
3921 * The type of system update to configure. | 3838 * The type of system update to configure. |
3922 * Possible string values are: | 3839 * Possible string values are: |
3923 * - "SYSTEM_UPDATE_TYPE_UNSPECIFIED" : Follow the default update behavior for | 3840 * - "SYSTEM_UPDATE_TYPE_UNSPECIFIED" : Follow the default update behavior for |
3924 * the device, which typically | 3841 * the device, which typically requires the user to accept system updates. |
3925 * requires the user to accept system updates. | |
3926 * - "AUTOMATIC" : Install automatically as soon as an update is available. | 3842 * - "AUTOMATIC" : Install automatically as soon as an update is available. |
3927 * - "WINDOWED" : Install automatically within a daily maintenance window. If | 3843 * - "WINDOWED" : Install automatically within a daily maintenance window. If |
3928 * the device | 3844 * the device has a device account, this also configures Play apps to be |
3929 * has a device account, this also configures Play apps to be updated within | 3845 * updated within the window. This is strongly recommended for kiosk devices |
3930 * the window. This is strongly recommended for kiosk devices because this | 3846 * because this is the only way apps persistently pinned to the foreground can |
3931 * is the only way apps persistently pinned to the foreground can be updated | 3847 * be updated by Play. |
3932 * by Play. | |
3933 * - "POSTPONE" : Postpone automatic install up to a maximum of 30 days. | 3848 * - "POSTPONE" : Postpone automatic install up to a maximum of 30 days. |
3934 */ | 3849 */ |
3935 core.String type; | 3850 core.String type; |
3936 | 3851 |
3937 SystemUpdate(); | 3852 SystemUpdate(); |
3938 | 3853 |
3939 SystemUpdate.fromJson(core.Map _json) { | 3854 SystemUpdate.fromJson(core.Map _json) { |
3940 if (_json.containsKey("endMinutes")) { | 3855 if (_json.containsKey("endMinutes")) { |
3941 endMinutes = _json["endMinutes"]; | 3856 endMinutes = _json["endMinutes"]; |
3942 } | 3857 } |
(...skipping 26 matching lines...) Expand all Loading... |
3969 */ | 3884 */ |
3970 class UserFacingMessage { | 3885 class UserFacingMessage { |
3971 /** | 3886 /** |
3972 * The default message that gets displayed if no localized message is | 3887 * The default message that gets displayed if no localized message is |
3973 * specified, or the user's locale does not match with any of the localized | 3888 * specified, or the user's locale does not match with any of the localized |
3974 * messages. A default message must be provided if any localized messages are | 3889 * messages. A default message must be provided if any localized messages are |
3975 * provided. | 3890 * provided. |
3976 */ | 3891 */ |
3977 core.String defaultMessage; | 3892 core.String defaultMessage; |
3978 /** | 3893 /** |
3979 * A map which contains <locale, message> pairs. | 3894 * A map which contains <locale, message> pairs. The locale is a BCP 47 |
3980 * The locale is a BCP 47 language code, e.g. en-US, es-ES, fr. | 3895 * language code, e.g. en-US, es-ES, fr. |
3981 */ | 3896 */ |
3982 core.Map<core.String, core.String> localizedMessages; | 3897 core.Map<core.String, core.String> localizedMessages; |
3983 | 3898 |
3984 UserFacingMessage(); | 3899 UserFacingMessage(); |
3985 | 3900 |
3986 UserFacingMessage.fromJson(core.Map _json) { | 3901 UserFacingMessage.fromJson(core.Map _json) { |
3987 if (_json.containsKey("defaultMessage")) { | 3902 if (_json.containsKey("defaultMessage")) { |
3988 defaultMessage = _json["defaultMessage"]; | 3903 defaultMessage = _json["defaultMessage"]; |
3989 } | 3904 } |
3990 if (_json.containsKey("localizedMessages")) { | 3905 if (_json.containsKey("localizedMessages")) { |
(...skipping 10 matching lines...) Expand all Loading... |
4001 _json["localizedMessages"] = localizedMessages; | 3916 _json["localizedMessages"] = localizedMessages; |
4002 } | 3917 } |
4003 return _json; | 3918 return _json; |
4004 } | 3919 } |
4005 } | 3920 } |
4006 | 3921 |
4007 /** A web token used to access an embeddable managed Google Play web UI. */ | 3922 /** A web token used to access an embeddable managed Google Play web UI. */ |
4008 class WebToken { | 3923 class WebToken { |
4009 /** | 3924 /** |
4010 * The name of the web token, which is generated by the server during | 3925 * The name of the web token, which is generated by the server during |
4011 * creation, in the form | 3926 * creation, in the form enterprises/{enterpriseId}/webTokens/{webTokenId}. |
4012 * `enterprises/{enterpriseId}/webTokens/{webTokenId}`. | |
4013 */ | 3927 */ |
4014 core.String name; | 3928 core.String name; |
4015 /** | 3929 /** |
4016 * The URL of the parent frame hosting the iframe with the embedded UI. To | 3930 * The URL of the parent frame hosting the iframe with the embedded UI. To |
4017 * prevent XSS, the iframe may not be hosted at other URLs. The URL must use | 3931 * prevent XSS, the iframe may not be hosted at other URLs. The URL must use |
4018 * the https scheme. | 3932 * the https scheme. |
4019 */ | 3933 */ |
4020 core.String parentFrameUrl; | 3934 core.String parentFrameUrl; |
4021 /** | 3935 /** |
4022 * Permissions the admin may exercise in the embedded UI. The admin must have | 3936 * Permissions the admin may exercise in the embedded UI. The admin must have |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4056 } | 3970 } |
4057 if (permissions != null) { | 3971 if (permissions != null) { |
4058 _json["permissions"] = permissions; | 3972 _json["permissions"] = permissions; |
4059 } | 3973 } |
4060 if (value != null) { | 3974 if (value != null) { |
4061 _json["value"] = value; | 3975 _json["value"] = value; |
4062 } | 3976 } |
4063 return _json; | 3977 return _json; |
4064 } | 3978 } |
4065 } | 3979 } |
OLD | NEW |