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.admin.directory_v1; | 3 library googleapis.admin.directory_v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:collection' as collection; | 6 import 'dart:collection' as collection; |
7 import 'dart:async' as async; | 7 import 'dart:async' as async; |
8 import 'dart:convert' as convert; | 8 import 'dart:convert' as convert; |
9 | 9 |
10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } | 317 } |
318 | 318 |
319 | 319 |
320 class ChromeosdevicesResourceApi { | 320 class ChromeosdevicesResourceApi { |
321 final commons.ApiRequester _requester; | 321 final commons.ApiRequester _requester; |
322 | 322 |
323 ChromeosdevicesResourceApi(commons.ApiRequester client) : | 323 ChromeosdevicesResourceApi(commons.ApiRequester client) : |
324 _requester = client; | 324 _requester = client; |
325 | 325 |
326 /** | 326 /** |
| 327 * Take action on Chrome OS Device |
| 328 * |
| 329 * [request] - The metadata request object. |
| 330 * |
| 331 * Request parameters: |
| 332 * |
| 333 * [customerId] - Immutable id of the Google Apps account |
| 334 * |
| 335 * [resourceId] - Immutable id of Chrome OS Device |
| 336 * |
| 337 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 338 * error. |
| 339 * |
| 340 * If the used [http.Client] completes with an error when making a REST call, |
| 341 * this method will complete with the same error. |
| 342 */ |
| 343 async.Future action(ChromeOsDeviceAction request, core.String customerId, core
.String resourceId) { |
| 344 var _url = null; |
| 345 var _queryParams = new core.Map(); |
| 346 var _uploadMedia = null; |
| 347 var _uploadOptions = null; |
| 348 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 349 var _body = null; |
| 350 |
| 351 if (request != null) { |
| 352 _body = convert.JSON.encode((request).toJson()); |
| 353 } |
| 354 if (customerId == null) { |
| 355 throw new core.ArgumentError("Parameter customerId is required."); |
| 356 } |
| 357 if (resourceId == null) { |
| 358 throw new core.ArgumentError("Parameter resourceId is required."); |
| 359 } |
| 360 |
| 361 _downloadOptions = null; |
| 362 |
| 363 _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/device
s/chromeos/' + commons.Escaper.ecapeVariable('$resourceId') + '/action'; |
| 364 |
| 365 var _response = _requester.request(_url, |
| 366 "POST", |
| 367 body: _body, |
| 368 queryParams: _queryParams, |
| 369 uploadOptions: _uploadOptions, |
| 370 uploadMedia: _uploadMedia, |
| 371 downloadOptions: _downloadOptions); |
| 372 return _response.then((data) => null); |
| 373 } |
| 374 |
| 375 /** |
327 * Retrieve Chrome OS Device | 376 * Retrieve Chrome OS Device |
328 * | 377 * |
329 * Request parameters: | 378 * Request parameters: |
330 * | 379 * |
331 * [customerId] - Immutable id of the Google Apps account | 380 * [customerId] - Immutable id of the Google Apps account |
332 * | 381 * |
333 * [deviceId] - Immutable id of Chrome OS Device | 382 * [deviceId] - Immutable id of Chrome OS Device |
334 * | 383 * |
335 * [projection] - Restrict information returned to a set of selected fields. | 384 * [projection] - Restrict information returned to a set of selected fields. |
336 * Possible string values are: | 385 * Possible string values are: |
(...skipping 5327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5664 _json["supportEndDate"] = (supportEndDate).toIso8601String(); | 5713 _json["supportEndDate"] = (supportEndDate).toIso8601String(); |
5665 } | 5714 } |
5666 if (willAutoRenew != null) { | 5715 if (willAutoRenew != null) { |
5667 _json["willAutoRenew"] = willAutoRenew; | 5716 _json["willAutoRenew"] = willAutoRenew; |
5668 } | 5717 } |
5669 return _json; | 5718 return _json; |
5670 } | 5719 } |
5671 } | 5720 } |
5672 | 5721 |
5673 /** | 5722 /** |
| 5723 * JSON request template for firing actions on ChromeOs Device in Directory |
| 5724 * Devices API. |
| 5725 */ |
| 5726 class ChromeOsDeviceAction { |
| 5727 /** Action to be taken on the ChromeOs Device */ |
| 5728 core.String action; |
| 5729 core.String deprovisionReason; |
| 5730 |
| 5731 ChromeOsDeviceAction(); |
| 5732 |
| 5733 ChromeOsDeviceAction.fromJson(core.Map _json) { |
| 5734 if (_json.containsKey("action")) { |
| 5735 action = _json["action"]; |
| 5736 } |
| 5737 if (_json.containsKey("deprovisionReason")) { |
| 5738 deprovisionReason = _json["deprovisionReason"]; |
| 5739 } |
| 5740 } |
| 5741 |
| 5742 core.Map toJson() { |
| 5743 var _json = new core.Map(); |
| 5744 if (action != null) { |
| 5745 _json["action"] = action; |
| 5746 } |
| 5747 if (deprovisionReason != null) { |
| 5748 _json["deprovisionReason"] = deprovisionReason; |
| 5749 } |
| 5750 return _json; |
| 5751 } |
| 5752 } |
| 5753 |
| 5754 /** |
5674 * JSON response template for List Chrome OS Devices operation in Directory API. | 5755 * JSON response template for List Chrome OS Devices operation in Directory API. |
5675 */ | 5756 */ |
5676 class ChromeOsDevices { | 5757 class ChromeOsDevices { |
5677 /** List of Chrome OS Device objects. */ | 5758 /** List of Chrome OS Device objects. */ |
5678 core.List<ChromeOsDevice> chromeosdevices; | 5759 core.List<ChromeOsDevice> chromeosdevices; |
5679 /** ETag of the resource. */ | 5760 /** ETag of the resource. */ |
5680 core.String etag; | 5761 core.String etag; |
5681 /** Kind of resource this is. */ | 5762 /** Kind of resource this is. */ |
5682 core.String kind; | 5763 core.String kind; |
5683 /** Token used to access next page of this result. */ | 5764 /** Token used to access next page of this result. */ |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6436 } | 6517 } |
6437 | 6518 |
6438 /** JSON template for Mobile Device resource in Directory API. */ | 6519 /** JSON template for Mobile Device resource in Directory API. */ |
6439 class MobileDevice { | 6520 class MobileDevice { |
6440 /** Adb (USB debugging) enabled or disabled on device (Read-only) */ | 6521 /** Adb (USB debugging) enabled or disabled on device (Read-only) */ |
6441 core.bool adbStatus; | 6522 core.bool adbStatus; |
6442 /** List of applications installed on Mobile Device */ | 6523 /** List of applications installed on Mobile Device */ |
6443 core.List<MobileDeviceApplications> applications; | 6524 core.List<MobileDeviceApplications> applications; |
6444 /** Mobile Device Baseband version (Read-only) */ | 6525 /** Mobile Device Baseband version (Read-only) */ |
6445 core.String basebandVersion; | 6526 core.String basebandVersion; |
| 6527 /** Mobile Device Bootloader version (Read-only) */ |
| 6528 core.String bootloaderVersion; |
| 6529 /** Mobile Device Brand (Read-only) */ |
| 6530 core.String brand; |
6446 /** Mobile Device Build number (Read-only) */ | 6531 /** Mobile Device Build number (Read-only) */ |
6447 core.String buildNumber; | 6532 core.String buildNumber; |
6448 /** The default locale used on the Mobile Device (Read-only) */ | 6533 /** The default locale used on the Mobile Device (Read-only) */ |
6449 core.String defaultLanguage; | 6534 core.String defaultLanguage; |
6450 /** Developer options enabled or disabled on device (Read-only) */ | 6535 /** Developer options enabled or disabled on device (Read-only) */ |
6451 core.bool developerOptionsStatus; | 6536 core.bool developerOptionsStatus; |
6452 /** Mobile Device compromised status (Read-only) */ | 6537 /** Mobile Device compromised status (Read-only) */ |
6453 core.String deviceCompromisedStatus; | 6538 core.String deviceCompromisedStatus; |
6454 /** Mobile Device serial number (Read-only) */ | 6539 /** Mobile Device serial number (Read-only) */ |
6455 core.String deviceId; | 6540 core.String deviceId; |
| 6541 /** DevicePasswordStatus (Read-only) */ |
| 6542 core.String devicePasswordStatus; |
6456 /** List of owner user's email addresses (Read-only) */ | 6543 /** List of owner user's email addresses (Read-only) */ |
6457 core.List<core.String> email; | 6544 core.List<core.String> email; |
| 6545 /** Mobile Device Encryption Status (Read-only) */ |
| 6546 core.String encryptionStatus; |
6458 /** ETag of the resource. */ | 6547 /** ETag of the resource. */ |
6459 core.String etag; | 6548 core.String etag; |
6460 /** | 6549 /** |
6461 * Date and time the device was first synchronized with the policy settings in | 6550 * Date and time the device was first synchronized with the policy settings in |
6462 * the Google Apps administrator control panel (Read-only) | 6551 * the Google Apps administrator control panel (Read-only) |
6463 */ | 6552 */ |
6464 core.DateTime firstSync; | 6553 core.DateTime firstSync; |
| 6554 /** Mobile Device Hardware (Read-only) */ |
| 6555 core.String hardware; |
6465 /** Mobile Device Hardware Id (Read-only) */ | 6556 /** Mobile Device Hardware Id (Read-only) */ |
6466 core.String hardwareId; | 6557 core.String hardwareId; |
6467 /** Mobile Device IMEI number (Read-only) */ | 6558 /** Mobile Device IMEI number (Read-only) */ |
6468 core.String imei; | 6559 core.String imei; |
6469 /** Mobile Device Kernel version (Read-only) */ | 6560 /** Mobile Device Kernel version (Read-only) */ |
6470 core.String kernelVersion; | 6561 core.String kernelVersion; |
6471 /** Kind of resource this is. */ | 6562 /** Kind of resource this is. */ |
6472 core.String kind; | 6563 core.String kind; |
6473 /** | 6564 /** |
6474 * Date and time the device was last synchronized with the policy settings in | 6565 * Date and time the device was last synchronized with the policy settings in |
6475 * the Google Apps administrator control panel (Read-only) | 6566 * the Google Apps administrator control panel (Read-only) |
6476 */ | 6567 */ |
6477 core.DateTime lastSync; | 6568 core.DateTime lastSync; |
6478 /** | 6569 /** |
6479 * Boolean indicating if this account is on owner/primary profile or not | 6570 * Boolean indicating if this account is on owner/primary profile or not |
6480 * (Read-only) | 6571 * (Read-only) |
6481 */ | 6572 */ |
6482 core.bool managedAccountIsOnOwnerProfile; | 6573 core.bool managedAccountIsOnOwnerProfile; |
| 6574 /** Mobile Device manufacturer (Read-only) */ |
| 6575 core.String manufacturer; |
6483 /** Mobile Device MEID number (Read-only) */ | 6576 /** Mobile Device MEID number (Read-only) */ |
6484 core.String meid; | 6577 core.String meid; |
6485 /** Name of the model of the device */ | 6578 /** Name of the model of the device */ |
6486 core.String model; | 6579 core.String model; |
6487 /** List of owner user's names (Read-only) */ | 6580 /** List of owner user's names (Read-only) */ |
6488 core.List<core.String> name; | 6581 core.List<core.String> name; |
6489 /** Mobile Device mobile or network operator (if available) (Read-only) */ | 6582 /** Mobile Device mobile or network operator (if available) (Read-only) */ |
6490 core.String networkOperator; | 6583 core.String networkOperator; |
6491 /** Name of the mobile operating system */ | 6584 /** Name of the mobile operating system */ |
6492 core.String os; | 6585 core.String os; |
6493 /** List of accounts added on device (Read-only) */ | 6586 /** List of accounts added on device (Read-only) */ |
6494 core.List<core.String> otherAccountsInfo; | 6587 core.List<core.String> otherAccountsInfo; |
| 6588 /** DMAgentPermission (Read-only) */ |
| 6589 core.String privilege; |
| 6590 /** Mobile Device release version version (Read-only) */ |
| 6591 core.String releaseVersion; |
6495 /** Unique identifier of Mobile Device (Read-only) */ | 6592 /** Unique identifier of Mobile Device (Read-only) */ |
6496 core.String resourceId; | 6593 core.String resourceId; |
| 6594 /** Mobile Device Security patch level (Read-only) */ |
| 6595 core.String securityPatchLevel; |
6497 /** Mobile Device SSN or Serial Number (Read-only) */ | 6596 /** Mobile Device SSN or Serial Number (Read-only) */ |
6498 core.String serialNumber; | 6597 core.String serialNumber; |
6499 /** Status of the device (Read-only) */ | 6598 /** Status of the device (Read-only) */ |
6500 core.String status; | 6599 core.String status; |
6501 /** Work profile supported on device (Read-only) */ | 6600 /** Work profile supported on device (Read-only) */ |
6502 core.bool supportsWorkProfile; | 6601 core.bool supportsWorkProfile; |
6503 /** The type of device (Read-only) */ | 6602 /** The type of device (Read-only) */ |
6504 core.String type; | 6603 core.String type; |
6505 /** Unknown sources enabled or disabled on device (Read-only) */ | 6604 /** Unknown sources enabled or disabled on device (Read-only) */ |
6506 core.bool unknownSourcesStatus; | 6605 core.bool unknownSourcesStatus; |
6507 /** Mobile Device user agent */ | 6606 /** Mobile Device user agent */ |
6508 core.String userAgent; | 6607 core.String userAgent; |
6509 /** Mobile Device WiFi MAC address (Read-only) */ | 6608 /** Mobile Device WiFi MAC address (Read-only) */ |
6510 core.String wifiMacAddress; | 6609 core.String wifiMacAddress; |
6511 | 6610 |
6512 MobileDevice(); | 6611 MobileDevice(); |
6513 | 6612 |
6514 MobileDevice.fromJson(core.Map _json) { | 6613 MobileDevice.fromJson(core.Map _json) { |
6515 if (_json.containsKey("adbStatus")) { | 6614 if (_json.containsKey("adbStatus")) { |
6516 adbStatus = _json["adbStatus"]; | 6615 adbStatus = _json["adbStatus"]; |
6517 } | 6616 } |
6518 if (_json.containsKey("applications")) { | 6617 if (_json.containsKey("applications")) { |
6519 applications = _json["applications"].map((value) => new MobileDeviceApplic
ations.fromJson(value)).toList(); | 6618 applications = _json["applications"].map((value) => new MobileDeviceApplic
ations.fromJson(value)).toList(); |
6520 } | 6619 } |
6521 if (_json.containsKey("basebandVersion")) { | 6620 if (_json.containsKey("basebandVersion")) { |
6522 basebandVersion = _json["basebandVersion"]; | 6621 basebandVersion = _json["basebandVersion"]; |
6523 } | 6622 } |
| 6623 if (_json.containsKey("bootloaderVersion")) { |
| 6624 bootloaderVersion = _json["bootloaderVersion"]; |
| 6625 } |
| 6626 if (_json.containsKey("brand")) { |
| 6627 brand = _json["brand"]; |
| 6628 } |
6524 if (_json.containsKey("buildNumber")) { | 6629 if (_json.containsKey("buildNumber")) { |
6525 buildNumber = _json["buildNumber"]; | 6630 buildNumber = _json["buildNumber"]; |
6526 } | 6631 } |
6527 if (_json.containsKey("defaultLanguage")) { | 6632 if (_json.containsKey("defaultLanguage")) { |
6528 defaultLanguage = _json["defaultLanguage"]; | 6633 defaultLanguage = _json["defaultLanguage"]; |
6529 } | 6634 } |
6530 if (_json.containsKey("developerOptionsStatus")) { | 6635 if (_json.containsKey("developerOptionsStatus")) { |
6531 developerOptionsStatus = _json["developerOptionsStatus"]; | 6636 developerOptionsStatus = _json["developerOptionsStatus"]; |
6532 } | 6637 } |
6533 if (_json.containsKey("deviceCompromisedStatus")) { | 6638 if (_json.containsKey("deviceCompromisedStatus")) { |
6534 deviceCompromisedStatus = _json["deviceCompromisedStatus"]; | 6639 deviceCompromisedStatus = _json["deviceCompromisedStatus"]; |
6535 } | 6640 } |
6536 if (_json.containsKey("deviceId")) { | 6641 if (_json.containsKey("deviceId")) { |
6537 deviceId = _json["deviceId"]; | 6642 deviceId = _json["deviceId"]; |
6538 } | 6643 } |
| 6644 if (_json.containsKey("devicePasswordStatus")) { |
| 6645 devicePasswordStatus = _json["devicePasswordStatus"]; |
| 6646 } |
6539 if (_json.containsKey("email")) { | 6647 if (_json.containsKey("email")) { |
6540 email = _json["email"]; | 6648 email = _json["email"]; |
6541 } | 6649 } |
| 6650 if (_json.containsKey("encryptionStatus")) { |
| 6651 encryptionStatus = _json["encryptionStatus"]; |
| 6652 } |
6542 if (_json.containsKey("etag")) { | 6653 if (_json.containsKey("etag")) { |
6543 etag = _json["etag"]; | 6654 etag = _json["etag"]; |
6544 } | 6655 } |
6545 if (_json.containsKey("firstSync")) { | 6656 if (_json.containsKey("firstSync")) { |
6546 firstSync = core.DateTime.parse(_json["firstSync"]); | 6657 firstSync = core.DateTime.parse(_json["firstSync"]); |
6547 } | 6658 } |
| 6659 if (_json.containsKey("hardware")) { |
| 6660 hardware = _json["hardware"]; |
| 6661 } |
6548 if (_json.containsKey("hardwareId")) { | 6662 if (_json.containsKey("hardwareId")) { |
6549 hardwareId = _json["hardwareId"]; | 6663 hardwareId = _json["hardwareId"]; |
6550 } | 6664 } |
6551 if (_json.containsKey("imei")) { | 6665 if (_json.containsKey("imei")) { |
6552 imei = _json["imei"]; | 6666 imei = _json["imei"]; |
6553 } | 6667 } |
6554 if (_json.containsKey("kernelVersion")) { | 6668 if (_json.containsKey("kernelVersion")) { |
6555 kernelVersion = _json["kernelVersion"]; | 6669 kernelVersion = _json["kernelVersion"]; |
6556 } | 6670 } |
6557 if (_json.containsKey("kind")) { | 6671 if (_json.containsKey("kind")) { |
6558 kind = _json["kind"]; | 6672 kind = _json["kind"]; |
6559 } | 6673 } |
6560 if (_json.containsKey("lastSync")) { | 6674 if (_json.containsKey("lastSync")) { |
6561 lastSync = core.DateTime.parse(_json["lastSync"]); | 6675 lastSync = core.DateTime.parse(_json["lastSync"]); |
6562 } | 6676 } |
6563 if (_json.containsKey("managedAccountIsOnOwnerProfile")) { | 6677 if (_json.containsKey("managedAccountIsOnOwnerProfile")) { |
6564 managedAccountIsOnOwnerProfile = _json["managedAccountIsOnOwnerProfile"]; | 6678 managedAccountIsOnOwnerProfile = _json["managedAccountIsOnOwnerProfile"]; |
6565 } | 6679 } |
| 6680 if (_json.containsKey("manufacturer")) { |
| 6681 manufacturer = _json["manufacturer"]; |
| 6682 } |
6566 if (_json.containsKey("meid")) { | 6683 if (_json.containsKey("meid")) { |
6567 meid = _json["meid"]; | 6684 meid = _json["meid"]; |
6568 } | 6685 } |
6569 if (_json.containsKey("model")) { | 6686 if (_json.containsKey("model")) { |
6570 model = _json["model"]; | 6687 model = _json["model"]; |
6571 } | 6688 } |
6572 if (_json.containsKey("name")) { | 6689 if (_json.containsKey("name")) { |
6573 name = _json["name"]; | 6690 name = _json["name"]; |
6574 } | 6691 } |
6575 if (_json.containsKey("networkOperator")) { | 6692 if (_json.containsKey("networkOperator")) { |
6576 networkOperator = _json["networkOperator"]; | 6693 networkOperator = _json["networkOperator"]; |
6577 } | 6694 } |
6578 if (_json.containsKey("os")) { | 6695 if (_json.containsKey("os")) { |
6579 os = _json["os"]; | 6696 os = _json["os"]; |
6580 } | 6697 } |
6581 if (_json.containsKey("otherAccountsInfo")) { | 6698 if (_json.containsKey("otherAccountsInfo")) { |
6582 otherAccountsInfo = _json["otherAccountsInfo"]; | 6699 otherAccountsInfo = _json["otherAccountsInfo"]; |
6583 } | 6700 } |
| 6701 if (_json.containsKey("privilege")) { |
| 6702 privilege = _json["privilege"]; |
| 6703 } |
| 6704 if (_json.containsKey("releaseVersion")) { |
| 6705 releaseVersion = _json["releaseVersion"]; |
| 6706 } |
6584 if (_json.containsKey("resourceId")) { | 6707 if (_json.containsKey("resourceId")) { |
6585 resourceId = _json["resourceId"]; | 6708 resourceId = _json["resourceId"]; |
6586 } | 6709 } |
| 6710 if (_json.containsKey("securityPatchLevel")) { |
| 6711 securityPatchLevel = _json["securityPatchLevel"]; |
| 6712 } |
6587 if (_json.containsKey("serialNumber")) { | 6713 if (_json.containsKey("serialNumber")) { |
6588 serialNumber = _json["serialNumber"]; | 6714 serialNumber = _json["serialNumber"]; |
6589 } | 6715 } |
6590 if (_json.containsKey("status")) { | 6716 if (_json.containsKey("status")) { |
6591 status = _json["status"]; | 6717 status = _json["status"]; |
6592 } | 6718 } |
6593 if (_json.containsKey("supportsWorkProfile")) { | 6719 if (_json.containsKey("supportsWorkProfile")) { |
6594 supportsWorkProfile = _json["supportsWorkProfile"]; | 6720 supportsWorkProfile = _json["supportsWorkProfile"]; |
6595 } | 6721 } |
6596 if (_json.containsKey("type")) { | 6722 if (_json.containsKey("type")) { |
(...skipping 14 matching lines...) Expand all Loading... |
6611 var _json = new core.Map(); | 6737 var _json = new core.Map(); |
6612 if (adbStatus != null) { | 6738 if (adbStatus != null) { |
6613 _json["adbStatus"] = adbStatus; | 6739 _json["adbStatus"] = adbStatus; |
6614 } | 6740 } |
6615 if (applications != null) { | 6741 if (applications != null) { |
6616 _json["applications"] = applications.map((value) => (value).toJson()).toLi
st(); | 6742 _json["applications"] = applications.map((value) => (value).toJson()).toLi
st(); |
6617 } | 6743 } |
6618 if (basebandVersion != null) { | 6744 if (basebandVersion != null) { |
6619 _json["basebandVersion"] = basebandVersion; | 6745 _json["basebandVersion"] = basebandVersion; |
6620 } | 6746 } |
| 6747 if (bootloaderVersion != null) { |
| 6748 _json["bootloaderVersion"] = bootloaderVersion; |
| 6749 } |
| 6750 if (brand != null) { |
| 6751 _json["brand"] = brand; |
| 6752 } |
6621 if (buildNumber != null) { | 6753 if (buildNumber != null) { |
6622 _json["buildNumber"] = buildNumber; | 6754 _json["buildNumber"] = buildNumber; |
6623 } | 6755 } |
6624 if (defaultLanguage != null) { | 6756 if (defaultLanguage != null) { |
6625 _json["defaultLanguage"] = defaultLanguage; | 6757 _json["defaultLanguage"] = defaultLanguage; |
6626 } | 6758 } |
6627 if (developerOptionsStatus != null) { | 6759 if (developerOptionsStatus != null) { |
6628 _json["developerOptionsStatus"] = developerOptionsStatus; | 6760 _json["developerOptionsStatus"] = developerOptionsStatus; |
6629 } | 6761 } |
6630 if (deviceCompromisedStatus != null) { | 6762 if (deviceCompromisedStatus != null) { |
6631 _json["deviceCompromisedStatus"] = deviceCompromisedStatus; | 6763 _json["deviceCompromisedStatus"] = deviceCompromisedStatus; |
6632 } | 6764 } |
6633 if (deviceId != null) { | 6765 if (deviceId != null) { |
6634 _json["deviceId"] = deviceId; | 6766 _json["deviceId"] = deviceId; |
6635 } | 6767 } |
| 6768 if (devicePasswordStatus != null) { |
| 6769 _json["devicePasswordStatus"] = devicePasswordStatus; |
| 6770 } |
6636 if (email != null) { | 6771 if (email != null) { |
6637 _json["email"] = email; | 6772 _json["email"] = email; |
6638 } | 6773 } |
| 6774 if (encryptionStatus != null) { |
| 6775 _json["encryptionStatus"] = encryptionStatus; |
| 6776 } |
6639 if (etag != null) { | 6777 if (etag != null) { |
6640 _json["etag"] = etag; | 6778 _json["etag"] = etag; |
6641 } | 6779 } |
6642 if (firstSync != null) { | 6780 if (firstSync != null) { |
6643 _json["firstSync"] = (firstSync).toIso8601String(); | 6781 _json["firstSync"] = (firstSync).toIso8601String(); |
6644 } | 6782 } |
| 6783 if (hardware != null) { |
| 6784 _json["hardware"] = hardware; |
| 6785 } |
6645 if (hardwareId != null) { | 6786 if (hardwareId != null) { |
6646 _json["hardwareId"] = hardwareId; | 6787 _json["hardwareId"] = hardwareId; |
6647 } | 6788 } |
6648 if (imei != null) { | 6789 if (imei != null) { |
6649 _json["imei"] = imei; | 6790 _json["imei"] = imei; |
6650 } | 6791 } |
6651 if (kernelVersion != null) { | 6792 if (kernelVersion != null) { |
6652 _json["kernelVersion"] = kernelVersion; | 6793 _json["kernelVersion"] = kernelVersion; |
6653 } | 6794 } |
6654 if (kind != null) { | 6795 if (kind != null) { |
6655 _json["kind"] = kind; | 6796 _json["kind"] = kind; |
6656 } | 6797 } |
6657 if (lastSync != null) { | 6798 if (lastSync != null) { |
6658 _json["lastSync"] = (lastSync).toIso8601String(); | 6799 _json["lastSync"] = (lastSync).toIso8601String(); |
6659 } | 6800 } |
6660 if (managedAccountIsOnOwnerProfile != null) { | 6801 if (managedAccountIsOnOwnerProfile != null) { |
6661 _json["managedAccountIsOnOwnerProfile"] = managedAccountIsOnOwnerProfile; | 6802 _json["managedAccountIsOnOwnerProfile"] = managedAccountIsOnOwnerProfile; |
6662 } | 6803 } |
| 6804 if (manufacturer != null) { |
| 6805 _json["manufacturer"] = manufacturer; |
| 6806 } |
6663 if (meid != null) { | 6807 if (meid != null) { |
6664 _json["meid"] = meid; | 6808 _json["meid"] = meid; |
6665 } | 6809 } |
6666 if (model != null) { | 6810 if (model != null) { |
6667 _json["model"] = model; | 6811 _json["model"] = model; |
6668 } | 6812 } |
6669 if (name != null) { | 6813 if (name != null) { |
6670 _json["name"] = name; | 6814 _json["name"] = name; |
6671 } | 6815 } |
6672 if (networkOperator != null) { | 6816 if (networkOperator != null) { |
6673 _json["networkOperator"] = networkOperator; | 6817 _json["networkOperator"] = networkOperator; |
6674 } | 6818 } |
6675 if (os != null) { | 6819 if (os != null) { |
6676 _json["os"] = os; | 6820 _json["os"] = os; |
6677 } | 6821 } |
6678 if (otherAccountsInfo != null) { | 6822 if (otherAccountsInfo != null) { |
6679 _json["otherAccountsInfo"] = otherAccountsInfo; | 6823 _json["otherAccountsInfo"] = otherAccountsInfo; |
6680 } | 6824 } |
| 6825 if (privilege != null) { |
| 6826 _json["privilege"] = privilege; |
| 6827 } |
| 6828 if (releaseVersion != null) { |
| 6829 _json["releaseVersion"] = releaseVersion; |
| 6830 } |
6681 if (resourceId != null) { | 6831 if (resourceId != null) { |
6682 _json["resourceId"] = resourceId; | 6832 _json["resourceId"] = resourceId; |
6683 } | 6833 } |
| 6834 if (securityPatchLevel != null) { |
| 6835 _json["securityPatchLevel"] = securityPatchLevel; |
| 6836 } |
6684 if (serialNumber != null) { | 6837 if (serialNumber != null) { |
6685 _json["serialNumber"] = serialNumber; | 6838 _json["serialNumber"] = serialNumber; |
6686 } | 6839 } |
6687 if (status != null) { | 6840 if (status != null) { |
6688 _json["status"] = status; | 6841 _json["status"] = status; |
6689 } | 6842 } |
6690 if (supportsWorkProfile != null) { | 6843 if (supportsWorkProfile != null) { |
6691 _json["supportsWorkProfile"] = supportsWorkProfile; | 6844 _json["supportsWorkProfile"] = supportsWorkProfile; |
6692 } | 6845 } |
6693 if (type != null) { | 6846 if (type != null) { |
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9061 } | 9214 } |
9062 if (items != null) { | 9215 if (items != null) { |
9063 _json["items"] = items.map((value) => (value).toJson()).toList(); | 9216 _json["items"] = items.map((value) => (value).toJson()).toList(); |
9064 } | 9217 } |
9065 if (kind != null) { | 9218 if (kind != null) { |
9066 _json["kind"] = kind; | 9219 _json["kind"] = kind; |
9067 } | 9220 } |
9068 return _json; | 9221 return _json; |
9069 } | 9222 } |
9070 } | 9223 } |
OLD | NEW |