| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 * Possible string values are: | 438 * Possible string values are: |
| 439 * - "annotatedLocation" : Chromebook location as annotated by the | 439 * - "annotatedLocation" : Chromebook location as annotated by the |
| 440 * administrator. | 440 * administrator. |
| 441 * - "annotatedUser" : Chromebook user as annotated by administrator. | 441 * - "annotatedUser" : Chromebook user as annotated by administrator. |
| 442 * - "lastSync" : Chromebook last sync. | 442 * - "lastSync" : Chromebook last sync. |
| 443 * - "notes" : Chromebook notes as annotated by the administrator. | 443 * - "notes" : Chromebook notes as annotated by the administrator. |
| 444 * - "serialNumber" : Chromebook Serial Number. | 444 * - "serialNumber" : Chromebook Serial Number. |
| 445 * - "status" : Chromebook status. | 445 * - "status" : Chromebook status. |
| 446 * - "supportEndDate" : Chromebook support end date. | 446 * - "supportEndDate" : Chromebook support end date. |
| 447 * | 447 * |
| 448 * [orgUnitPath] - Full path of the organization unit or its Id |
| 449 * |
| 448 * [pageToken] - Token to specify next page in the list | 450 * [pageToken] - Token to specify next page in the list |
| 449 * | 451 * |
| 450 * [projection] - Restrict information returned to a set of selected fields. | 452 * [projection] - Restrict information returned to a set of selected fields. |
| 451 * Possible string values are: | 453 * Possible string values are: |
| 452 * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId, | 454 * - "BASIC" : Includes only the basic metadata fields (e.g., deviceId, |
| 453 * serialNumber, status, and user) | 455 * serialNumber, status, and user) |
| 454 * - "FULL" : Includes all metadata fields | 456 * - "FULL" : Includes all metadata fields |
| 455 * | 457 * |
| 456 * [query] - Search string in the format given at | 458 * [query] - Search string in the format given at |
| 457 * http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333 | 459 * http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333 |
| 458 * | 460 * |
| 459 * [sortOrder] - Whether to return results in ascending or descending order. | 461 * [sortOrder] - Whether to return results in ascending or descending order. |
| 460 * Only of use when orderBy is also used | 462 * Only of use when orderBy is also used |
| 461 * Possible string values are: | 463 * Possible string values are: |
| 462 * - "ASCENDING" : Ascending order. | 464 * - "ASCENDING" : Ascending order. |
| 463 * - "DESCENDING" : Descending order. | 465 * - "DESCENDING" : Descending order. |
| 464 * | 466 * |
| 465 * Completes with a [ChromeOsDevices]. | 467 * Completes with a [ChromeOsDevices]. |
| 466 * | 468 * |
| 467 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 469 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 468 * error. | 470 * error. |
| 469 * | 471 * |
| 470 * If the used [http.Client] completes with an error when making a REST call, | 472 * If the used [http.Client] completes with an error when making a REST call, |
| 471 * this method will complete with the same error. | 473 * this method will complete with the same error. |
| 472 */ | 474 */ |
| 473 async.Future<ChromeOsDevices> list(core.String customerId, {core.int maxResult
s, core.String orderBy, core.String pageToken, core.String projection, core.Stri
ng query, core.String sortOrder}) { | 475 async.Future<ChromeOsDevices> list(core.String customerId, {core.int maxResult
s, core.String orderBy, core.String orgUnitPath, core.String pageToken, core.Str
ing projection, core.String query, core.String sortOrder}) { |
| 474 var _url = null; | 476 var _url = null; |
| 475 var _queryParams = new core.Map(); | 477 var _queryParams = new core.Map(); |
| 476 var _uploadMedia = null; | 478 var _uploadMedia = null; |
| 477 var _uploadOptions = null; | 479 var _uploadOptions = null; |
| 478 var _downloadOptions = commons.DownloadOptions.Metadata; | 480 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 479 var _body = null; | 481 var _body = null; |
| 480 | 482 |
| 481 if (customerId == null) { | 483 if (customerId == null) { |
| 482 throw new core.ArgumentError("Parameter customerId is required."); | 484 throw new core.ArgumentError("Parameter customerId is required."); |
| 483 } | 485 } |
| 484 if (maxResults != null) { | 486 if (maxResults != null) { |
| 485 _queryParams["maxResults"] = ["${maxResults}"]; | 487 _queryParams["maxResults"] = ["${maxResults}"]; |
| 486 } | 488 } |
| 487 if (orderBy != null) { | 489 if (orderBy != null) { |
| 488 _queryParams["orderBy"] = [orderBy]; | 490 _queryParams["orderBy"] = [orderBy]; |
| 489 } | 491 } |
| 492 if (orgUnitPath != null) { |
| 493 _queryParams["orgUnitPath"] = [orgUnitPath]; |
| 494 } |
| 490 if (pageToken != null) { | 495 if (pageToken != null) { |
| 491 _queryParams["pageToken"] = [pageToken]; | 496 _queryParams["pageToken"] = [pageToken]; |
| 492 } | 497 } |
| 493 if (projection != null) { | 498 if (projection != null) { |
| 494 _queryParams["projection"] = [projection]; | 499 _queryParams["projection"] = [projection]; |
| 495 } | 500 } |
| 496 if (query != null) { | 501 if (query != null) { |
| 497 _queryParams["query"] = [query]; | 502 _queryParams["query"] = [query]; |
| 498 } | 503 } |
| 499 if (sortOrder != null) { | 504 if (sortOrder != null) { |
| (...skipping 7494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7994 /** Boolean indicating if the user is delegated admin (Read-only) */ | 7999 /** Boolean indicating if the user is delegated admin (Read-only) */ |
| 7995 core.bool isDelegatedAdmin; | 8000 core.bool isDelegatedAdmin; |
| 7996 /** Is 2-step verification enforced (Read-only) */ | 8001 /** Is 2-step verification enforced (Read-only) */ |
| 7997 core.bool isEnforcedIn2Sv; | 8002 core.bool isEnforcedIn2Sv; |
| 7998 /** Is enrolled in 2-step verification (Read-only) */ | 8003 /** Is enrolled in 2-step verification (Read-only) */ |
| 7999 core.bool isEnrolledIn2Sv; | 8004 core.bool isEnrolledIn2Sv; |
| 8000 /** Is mailbox setup (Read-only) */ | 8005 /** Is mailbox setup (Read-only) */ |
| 8001 core.bool isMailboxSetup; | 8006 core.bool isMailboxSetup; |
| 8002 /** Kind of resource this is. */ | 8007 /** Kind of resource this is. */ |
| 8003 core.String kind; | 8008 core.String kind; |
| 8009 /** |
| 8010 * |
| 8011 * |
| 8012 * The values for Object must be JSON objects. It can consist of `num`, |
| 8013 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 8014 */ |
| 8015 core.Object languages; |
| 8004 /** User's last login time. (Read-only) */ | 8016 /** User's last login time. (Read-only) */ |
| 8005 core.DateTime lastLoginTime; | 8017 core.DateTime lastLoginTime; |
| 8006 /** | 8018 /** |
| 8007 * | 8019 * |
| 8008 * | 8020 * |
| 8009 * The values for Object must be JSON objects. It can consist of `num`, | 8021 * The values for Object must be JSON objects. It can consist of `num`, |
| 8010 * `String`, `bool` and `null` as well as `Map` and `List` values. | 8022 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 8011 */ | 8023 */ |
| 8012 core.Object locations; | 8024 core.Object locations; |
| 8013 /** User's name */ | 8025 /** User's name */ |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8140 } | 8152 } |
| 8141 if (_json.containsKey("isEnrolledIn2Sv")) { | 8153 if (_json.containsKey("isEnrolledIn2Sv")) { |
| 8142 isEnrolledIn2Sv = _json["isEnrolledIn2Sv"]; | 8154 isEnrolledIn2Sv = _json["isEnrolledIn2Sv"]; |
| 8143 } | 8155 } |
| 8144 if (_json.containsKey("isMailboxSetup")) { | 8156 if (_json.containsKey("isMailboxSetup")) { |
| 8145 isMailboxSetup = _json["isMailboxSetup"]; | 8157 isMailboxSetup = _json["isMailboxSetup"]; |
| 8146 } | 8158 } |
| 8147 if (_json.containsKey("kind")) { | 8159 if (_json.containsKey("kind")) { |
| 8148 kind = _json["kind"]; | 8160 kind = _json["kind"]; |
| 8149 } | 8161 } |
| 8162 if (_json.containsKey("languages")) { |
| 8163 languages = _json["languages"]; |
| 8164 } |
| 8150 if (_json.containsKey("lastLoginTime")) { | 8165 if (_json.containsKey("lastLoginTime")) { |
| 8151 lastLoginTime = core.DateTime.parse(_json["lastLoginTime"]); | 8166 lastLoginTime = core.DateTime.parse(_json["lastLoginTime"]); |
| 8152 } | 8167 } |
| 8153 if (_json.containsKey("locations")) { | 8168 if (_json.containsKey("locations")) { |
| 8154 locations = _json["locations"]; | 8169 locations = _json["locations"]; |
| 8155 } | 8170 } |
| 8156 if (_json.containsKey("name")) { | 8171 if (_json.containsKey("name")) { |
| 8157 name = new UserName.fromJson(_json["name"]); | 8172 name = new UserName.fromJson(_json["name"]); |
| 8158 } | 8173 } |
| 8159 if (_json.containsKey("nonEditableAliases")) { | 8174 if (_json.containsKey("nonEditableAliases")) { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8264 } | 8279 } |
| 8265 if (isEnrolledIn2Sv != null) { | 8280 if (isEnrolledIn2Sv != null) { |
| 8266 _json["isEnrolledIn2Sv"] = isEnrolledIn2Sv; | 8281 _json["isEnrolledIn2Sv"] = isEnrolledIn2Sv; |
| 8267 } | 8282 } |
| 8268 if (isMailboxSetup != null) { | 8283 if (isMailboxSetup != null) { |
| 8269 _json["isMailboxSetup"] = isMailboxSetup; | 8284 _json["isMailboxSetup"] = isMailboxSetup; |
| 8270 } | 8285 } |
| 8271 if (kind != null) { | 8286 if (kind != null) { |
| 8272 _json["kind"] = kind; | 8287 _json["kind"] = kind; |
| 8273 } | 8288 } |
| 8289 if (languages != null) { |
| 8290 _json["languages"] = languages; |
| 8291 } |
| 8274 if (lastLoginTime != null) { | 8292 if (lastLoginTime != null) { |
| 8275 _json["lastLoginTime"] = (lastLoginTime).toIso8601String(); | 8293 _json["lastLoginTime"] = (lastLoginTime).toIso8601String(); |
| 8276 } | 8294 } |
| 8277 if (locations != null) { | 8295 if (locations != null) { |
| 8278 _json["locations"] = locations; | 8296 _json["locations"] = locations; |
| 8279 } | 8297 } |
| 8280 if (name != null) { | 8298 if (name != null) { |
| 8281 _json["name"] = (name).toJson(); | 8299 _json["name"] = (name).toJson(); |
| 8282 } | 8300 } |
| 8283 if (nonEditableAliases != null) { | 8301 if (nonEditableAliases != null) { |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8691 if (protocol != null) { | 8709 if (protocol != null) { |
| 8692 _json["protocol"] = protocol; | 8710 _json["protocol"] = protocol; |
| 8693 } | 8711 } |
| 8694 if (type != null) { | 8712 if (type != null) { |
| 8695 _json["type"] = type; | 8713 _json["type"] = type; |
| 8696 } | 8714 } |
| 8697 return _json; | 8715 return _json; |
| 8698 } | 8716 } |
| 8699 } | 8717 } |
| 8700 | 8718 |
| 8719 /** JSON template for a language entry. */ |
| 8720 class UserLanguage { |
| 8721 /** |
| 8722 * Other language. User can provide own language name if there is no |
| 8723 * corresponding Google III language code. If this is set LanguageCode can't |
| 8724 * be set |
| 8725 */ |
| 8726 core.String customLanguage; |
| 8727 /** |
| 8728 * Language Code. Should be used for storing Google III LanguageCode string |
| 8729 * representation for language. Illegal values cause SchemaException. |
| 8730 */ |
| 8731 core.String languageCode; |
| 8732 |
| 8733 UserLanguage(); |
| 8734 |
| 8735 UserLanguage.fromJson(core.Map _json) { |
| 8736 if (_json.containsKey("customLanguage")) { |
| 8737 customLanguage = _json["customLanguage"]; |
| 8738 } |
| 8739 if (_json.containsKey("languageCode")) { |
| 8740 languageCode = _json["languageCode"]; |
| 8741 } |
| 8742 } |
| 8743 |
| 8744 core.Map<core.String, core.Object> toJson() { |
| 8745 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 8746 if (customLanguage != null) { |
| 8747 _json["customLanguage"] = customLanguage; |
| 8748 } |
| 8749 if (languageCode != null) { |
| 8750 _json["languageCode"] = languageCode; |
| 8751 } |
| 8752 return _json; |
| 8753 } |
| 8754 } |
| 8755 |
| 8701 /** JSON template for a location entry. */ | 8756 /** JSON template for a location entry. */ |
| 8702 class UserLocation { | 8757 class UserLocation { |
| 8703 /** | 8758 /** |
| 8704 * Textual location. This is most useful for display purposes to concisely | 8759 * Textual location. This is most useful for display purposes to concisely |
| 8705 * describe the location. E.g. "Mountain View, CA", "Near Seattle", | 8760 * describe the location. For example, "Mountain View, CA", "Near Seattle", |
| 8706 * "US-NYC-9TH 9A209A". | 8761 * "US-NYC-9TH 9A209A". |
| 8707 */ | 8762 */ |
| 8708 core.String area; | 8763 core.String area; |
| 8709 /** Building Identifier. */ | 8764 /** Building Identifier. */ |
| 8710 core.String buildingId; | 8765 core.String buildingId; |
| 8711 /** Custom Type. */ | 8766 /** Custom Type. */ |
| 8712 core.String customType; | 8767 core.String customType; |
| 8713 /** Most specific textual code of individual desk location. */ | 8768 /** Most specific textual code of individual desk location. */ |
| 8714 core.String deskCode; | 8769 core.String deskCode; |
| 8715 /** Floor name/number. */ | 8770 /** Floor name/number. */ |
| 8716 core.String floorName; | 8771 core.String floorName; |
| 8717 /** | 8772 /** |
| 8718 * Floor Section. More specific location within the floor. E.g. if a floor is | 8773 * Floor section. More specific location within the floor. For example, if a |
| 8719 * divided into sections "A", "B", and "C", this field would identify one of | 8774 * floor is divided into sections "A", "B", and "C", this field would identify |
| 8720 * those values. | 8775 * one of those values. |
| 8721 */ | 8776 */ |
| 8722 core.String floorSection; | 8777 core.String floorSection; |
| 8723 /** | 8778 /** |
| 8724 * Each entry can have a type which indicates standard types of that entry. | 8779 * Each entry can have a type which indicates standard types of that entry. |
| 8725 * For example location could be of types default and desk. In addition to | 8780 * For example location could be of types default and desk. In addition to |
| 8726 * standard type, an entry can have a custom type and can give it any name. | 8781 * standard type, an entry can have a custom type and can give it any name. |
| 8727 * Such types should have "custom" as type and also have a customType value. | 8782 * Such types should have "custom" as type and also have a customType value. |
| 8728 */ | 8783 */ |
| 8729 core.String type; | 8784 core.String type; |
| 8730 | 8785 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8850 core.String costCenter; | 8905 core.String costCenter; |
| 8851 /** Custom type. */ | 8906 /** Custom type. */ |
| 8852 core.String customType; | 8907 core.String customType; |
| 8853 /** Department within the organization. */ | 8908 /** Department within the organization. */ |
| 8854 core.String department; | 8909 core.String department; |
| 8855 /** Description of the organization. */ | 8910 /** Description of the organization. */ |
| 8856 core.String description; | 8911 core.String description; |
| 8857 /** The domain to which the organization belongs to. */ | 8912 /** The domain to which the organization belongs to. */ |
| 8858 core.String domain; | 8913 core.String domain; |
| 8859 /** | 8914 /** |
| 8915 * The full-time equivalent percent within the organization (100000 = 100%). |
| 8916 */ |
| 8917 core.int fullTimeEquivalent; |
| 8918 /** |
| 8860 * Location of the organization. This need not be fully qualified address. | 8919 * Location of the organization. This need not be fully qualified address. |
| 8861 */ | 8920 */ |
| 8862 core.String location; | 8921 core.String location; |
| 8863 /** Name of the organization */ | 8922 /** Name of the organization */ |
| 8864 core.String name; | 8923 core.String name; |
| 8865 /** If it user's primary organization. */ | 8924 /** If it user's primary organization. */ |
| 8866 core.bool primary; | 8925 core.bool primary; |
| 8867 /** Symbol of the organization. */ | 8926 /** Symbol of the organization. */ |
| 8868 core.String symbol; | 8927 core.String symbol; |
| 8869 /** Title (designation) of the user in the organization. */ | 8928 /** Title (designation) of the user in the organization. */ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8888 } | 8947 } |
| 8889 if (_json.containsKey("department")) { | 8948 if (_json.containsKey("department")) { |
| 8890 department = _json["department"]; | 8949 department = _json["department"]; |
| 8891 } | 8950 } |
| 8892 if (_json.containsKey("description")) { | 8951 if (_json.containsKey("description")) { |
| 8893 description = _json["description"]; | 8952 description = _json["description"]; |
| 8894 } | 8953 } |
| 8895 if (_json.containsKey("domain")) { | 8954 if (_json.containsKey("domain")) { |
| 8896 domain = _json["domain"]; | 8955 domain = _json["domain"]; |
| 8897 } | 8956 } |
| 8957 if (_json.containsKey("fullTimeEquivalent")) { |
| 8958 fullTimeEquivalent = _json["fullTimeEquivalent"]; |
| 8959 } |
| 8898 if (_json.containsKey("location")) { | 8960 if (_json.containsKey("location")) { |
| 8899 location = _json["location"]; | 8961 location = _json["location"]; |
| 8900 } | 8962 } |
| 8901 if (_json.containsKey("name")) { | 8963 if (_json.containsKey("name")) { |
| 8902 name = _json["name"]; | 8964 name = _json["name"]; |
| 8903 } | 8965 } |
| 8904 if (_json.containsKey("primary")) { | 8966 if (_json.containsKey("primary")) { |
| 8905 primary = _json["primary"]; | 8967 primary = _json["primary"]; |
| 8906 } | 8968 } |
| 8907 if (_json.containsKey("symbol")) { | 8969 if (_json.containsKey("symbol")) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 8925 } | 8987 } |
| 8926 if (department != null) { | 8988 if (department != null) { |
| 8927 _json["department"] = department; | 8989 _json["department"] = department; |
| 8928 } | 8990 } |
| 8929 if (description != null) { | 8991 if (description != null) { |
| 8930 _json["description"] = description; | 8992 _json["description"] = description; |
| 8931 } | 8993 } |
| 8932 if (domain != null) { | 8994 if (domain != null) { |
| 8933 _json["domain"] = domain; | 8995 _json["domain"] = domain; |
| 8934 } | 8996 } |
| 8997 if (fullTimeEquivalent != null) { |
| 8998 _json["fullTimeEquivalent"] = fullTimeEquivalent; |
| 8999 } |
| 8935 if (location != null) { | 9000 if (location != null) { |
| 8936 _json["location"] = location; | 9001 _json["location"] = location; |
| 8937 } | 9002 } |
| 8938 if (name != null) { | 9003 if (name != null) { |
| 8939 _json["name"] = name; | 9004 _json["name"] = name; |
| 8940 } | 9005 } |
| 8941 if (primary != null) { | 9006 if (primary != null) { |
| 8942 _json["primary"] = primary; | 9007 _json["primary"] = primary; |
| 8943 } | 9008 } |
| 8944 if (symbol != null) { | 9009 if (symbol != null) { |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9468 } | 9533 } |
| 9469 if (items != null) { | 9534 if (items != null) { |
| 9470 _json["items"] = items.map((value) => (value).toJson()).toList(); | 9535 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 9471 } | 9536 } |
| 9472 if (kind != null) { | 9537 if (kind != null) { |
| 9473 _json["kind"] = kind; | 9538 _json["kind"] = kind; |
| 9474 } | 9539 } |
| 9475 return _json; | 9540 return _json; |
| 9476 } | 9541 } |
| 9477 } | 9542 } |
| OLD | NEW |