Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: generated/googleapis/lib/admin/directory_v1.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 "GET", 511 "GET",
512 body: _body, 512 body: _body,
513 queryParams: _queryParams, 513 queryParams: _queryParams,
514 uploadOptions: _uploadOptions, 514 uploadOptions: _uploadOptions,
515 uploadMedia: _uploadMedia, 515 uploadMedia: _uploadMedia,
516 downloadOptions: _downloadOptions); 516 downloadOptions: _downloadOptions);
517 return _response.then((data) => new ChromeOsDevices.fromJson(data)); 517 return _response.then((data) => new ChromeOsDevices.fromJson(data));
518 } 518 }
519 519
520 /** 520 /**
521 * Move or insert multiple Chrome OS Devices to Organization Unit
522 *
523 * [request] - The metadata request object.
524 *
525 * Request parameters:
526 *
527 * [customerId] - Immutable ID of the G Suite account
528 *
529 * [orgUnitPath] - Full path of the target organization unit or its Id
530 *
531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
532 * error.
533 *
534 * If the used [http.Client] completes with an error when making a REST call,
535 * this method will complete with the same error.
536 */
537 async.Future moveDevicesToOu(ChromeOsMoveDevicesToOu request, core.String cust omerId, core.String orgUnitPath) {
538 var _url = null;
539 var _queryParams = new core.Map();
540 var _uploadMedia = null;
541 var _uploadOptions = null;
542 var _downloadOptions = commons.DownloadOptions.Metadata;
543 var _body = null;
544
545 if (request != null) {
546 _body = convert.JSON.encode((request).toJson());
547 }
548 if (customerId == null) {
549 throw new core.ArgumentError("Parameter customerId is required.");
550 }
551 if (orgUnitPath == null) {
552 throw new core.ArgumentError("Parameter orgUnitPath is required.");
553 }
554 _queryParams["orgUnitPath"] = [orgUnitPath];
555
556 _downloadOptions = null;
557
558 _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/device s/chromeos/moveDevicesToOu';
559
560 var _response = _requester.request(_url,
561 "POST",
562 body: _body,
563 queryParams: _queryParams,
564 uploadOptions: _uploadOptions,
565 uploadMedia: _uploadMedia,
566 downloadOptions: _downloadOptions);
567 return _response.then((data) => null);
568 }
569
570 /**
521 * Update Chrome OS Device. This method supports patch semantics. 571 * Update Chrome OS Device. This method supports patch semantics.
522 * 572 *
523 * [request] - The metadata request object. 573 * [request] - The metadata request object.
524 * 574 *
525 * Request parameters: 575 * Request parameters:
526 * 576 *
527 * [customerId] - Immutable ID of the G Suite account 577 * [customerId] - Immutable ID of the G Suite account
528 * 578 *
529 * [deviceId] - Immutable ID of Chrome OS Device 579 * [deviceId] - Immutable ID of Chrome OS Device
530 * 580 *
(...skipping 5263 matching lines...) Expand 10 before | Expand all | Expand 10 after
5794 if (kind != null) { 5844 if (kind != null) {
5795 _json["kind"] = kind; 5845 _json["kind"] = kind;
5796 } 5846 }
5797 if (nextPageToken != null) { 5847 if (nextPageToken != null) {
5798 _json["nextPageToken"] = nextPageToken; 5848 _json["nextPageToken"] = nextPageToken;
5799 } 5849 }
5800 return _json; 5850 return _json;
5801 } 5851 }
5802 } 5852 }
5803 5853
5854 /**
5855 * JSON request template for moving ChromeOs Device to given OU in Directory
5856 * Devices API.
5857 */
5858 class ChromeOsMoveDevicesToOu {
5859 /** ChromeOs Devices to be moved to OU */
5860 core.List<core.String> deviceIds;
5861
5862 ChromeOsMoveDevicesToOu();
5863
5864 ChromeOsMoveDevicesToOu.fromJson(core.Map _json) {
5865 if (_json.containsKey("deviceIds")) {
5866 deviceIds = _json["deviceIds"];
5867 }
5868 }
5869
5870 core.Map<core.String, core.Object> toJson() {
5871 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5872 if (deviceIds != null) {
5873 _json["deviceIds"] = deviceIds;
5874 }
5875 return _json;
5876 }
5877 }
5878
5804 /** JSON template for Customer Resource object in Directory API. */ 5879 /** JSON template for Customer Resource object in Directory API. */
5805 class Customer { 5880 class Customer {
5806 /** 5881 /**
5807 * The customer's secondary contact email address. This email address cannot 5882 * The customer's secondary contact email address. This email address cannot
5808 * be on the same domain as the customerDomain 5883 * be on the same domain as the customerDomain
5809 */ 5884 */
5810 core.String alternateEmail; 5885 core.String alternateEmail;
5811 /** The customer's creation time (Readonly) */ 5886 /** The customer's creation time (Readonly) */
5812 core.DateTime customerCreationTime; 5887 core.DateTime customerCreationTime;
5813 /** 5888 /**
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after
7997 /** Boolean indicating if the user is admin (Read-only) */ 8072 /** Boolean indicating if the user is admin (Read-only) */
7998 core.bool isAdmin; 8073 core.bool isAdmin;
7999 /** Boolean indicating if the user is delegated admin (Read-only) */ 8074 /** Boolean indicating if the user is delegated admin (Read-only) */
8000 core.bool isDelegatedAdmin; 8075 core.bool isDelegatedAdmin;
8001 /** Is 2-step verification enforced (Read-only) */ 8076 /** Is 2-step verification enforced (Read-only) */
8002 core.bool isEnforcedIn2Sv; 8077 core.bool isEnforcedIn2Sv;
8003 /** Is enrolled in 2-step verification (Read-only) */ 8078 /** Is enrolled in 2-step verification (Read-only) */
8004 core.bool isEnrolledIn2Sv; 8079 core.bool isEnrolledIn2Sv;
8005 /** Is mailbox setup (Read-only) */ 8080 /** Is mailbox setup (Read-only) */
8006 core.bool isMailboxSetup; 8081 core.bool isMailboxSetup;
8082 /**
8083 *
8084 *
8085 * The values for Object must be JSON objects. It can consist of `num`,
8086 * `String`, `bool` and `null` as well as `Map` and `List` values.
8087 */
8088 core.Object keywords;
8007 /** Kind of resource this is. */ 8089 /** Kind of resource this is. */
8008 core.String kind; 8090 core.String kind;
8009 /** 8091 /**
8010 * 8092 *
8011 * 8093 *
8012 * The values for Object must be JSON objects. It can consist of `num`, 8094 * 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. 8095 * `String`, `bool` and `null` as well as `Map` and `List` values.
8014 */ 8096 */
8015 core.Object languages; 8097 core.Object languages;
8016 /** User's last login time. (Read-only) */ 8098 /** User's last login time. (Read-only) */
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
8149 } 8231 }
8150 if (_json.containsKey("isEnforcedIn2Sv")) { 8232 if (_json.containsKey("isEnforcedIn2Sv")) {
8151 isEnforcedIn2Sv = _json["isEnforcedIn2Sv"]; 8233 isEnforcedIn2Sv = _json["isEnforcedIn2Sv"];
8152 } 8234 }
8153 if (_json.containsKey("isEnrolledIn2Sv")) { 8235 if (_json.containsKey("isEnrolledIn2Sv")) {
8154 isEnrolledIn2Sv = _json["isEnrolledIn2Sv"]; 8236 isEnrolledIn2Sv = _json["isEnrolledIn2Sv"];
8155 } 8237 }
8156 if (_json.containsKey("isMailboxSetup")) { 8238 if (_json.containsKey("isMailboxSetup")) {
8157 isMailboxSetup = _json["isMailboxSetup"]; 8239 isMailboxSetup = _json["isMailboxSetup"];
8158 } 8240 }
8241 if (_json.containsKey("keywords")) {
8242 keywords = _json["keywords"];
8243 }
8159 if (_json.containsKey("kind")) { 8244 if (_json.containsKey("kind")) {
8160 kind = _json["kind"]; 8245 kind = _json["kind"];
8161 } 8246 }
8162 if (_json.containsKey("languages")) { 8247 if (_json.containsKey("languages")) {
8163 languages = _json["languages"]; 8248 languages = _json["languages"];
8164 } 8249 }
8165 if (_json.containsKey("lastLoginTime")) { 8250 if (_json.containsKey("lastLoginTime")) {
8166 lastLoginTime = core.DateTime.parse(_json["lastLoginTime"]); 8251 lastLoginTime = core.DateTime.parse(_json["lastLoginTime"]);
8167 } 8252 }
8168 if (_json.containsKey("locations")) { 8253 if (_json.containsKey("locations")) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
8276 } 8361 }
8277 if (isEnforcedIn2Sv != null) { 8362 if (isEnforcedIn2Sv != null) {
8278 _json["isEnforcedIn2Sv"] = isEnforcedIn2Sv; 8363 _json["isEnforcedIn2Sv"] = isEnforcedIn2Sv;
8279 } 8364 }
8280 if (isEnrolledIn2Sv != null) { 8365 if (isEnrolledIn2Sv != null) {
8281 _json["isEnrolledIn2Sv"] = isEnrolledIn2Sv; 8366 _json["isEnrolledIn2Sv"] = isEnrolledIn2Sv;
8282 } 8367 }
8283 if (isMailboxSetup != null) { 8368 if (isMailboxSetup != null) {
8284 _json["isMailboxSetup"] = isMailboxSetup; 8369 _json["isMailboxSetup"] = isMailboxSetup;
8285 } 8370 }
8371 if (keywords != null) {
8372 _json["keywords"] = keywords;
8373 }
8286 if (kind != null) { 8374 if (kind != null) {
8287 _json["kind"] = kind; 8375 _json["kind"] = kind;
8288 } 8376 }
8289 if (languages != null) { 8377 if (languages != null) {
8290 _json["languages"] = languages; 8378 _json["languages"] = languages;
8291 } 8379 }
8292 if (lastLoginTime != null) { 8380 if (lastLoginTime != null) {
8293 _json["lastLoginTime"] = (lastLoginTime).toIso8601String(); 8381 _json["lastLoginTime"] = (lastLoginTime).toIso8601String();
8294 } 8382 }
8295 if (locations != null) { 8383 if (locations != null) {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
8709 if (protocol != null) { 8797 if (protocol != null) {
8710 _json["protocol"] = protocol; 8798 _json["protocol"] = protocol;
8711 } 8799 }
8712 if (type != null) { 8800 if (type != null) {
8713 _json["type"] = type; 8801 _json["type"] = type;
8714 } 8802 }
8715 return _json; 8803 return _json;
8716 } 8804 }
8717 } 8805 }
8718 8806
8807 /** JSON template for a keyword entry. */
8808 class UserKeyword {
8809 /** Custom Type. */
8810 core.String customType;
8811 /**
8812 * Each entry can have a type which indicates standard type of that entry. For
8813 * example, keyword could be of type occupation or outlook. In addition to the
8814 * standard type, an entry can have a custom type and can give it any name.
8815 * Such types should have the CUSTOM value as type and also have a customType
8816 * value.
8817 */
8818 core.String type;
8819 /** Keyword. */
8820 core.String value;
8821
8822 UserKeyword();
8823
8824 UserKeyword.fromJson(core.Map _json) {
8825 if (_json.containsKey("customType")) {
8826 customType = _json["customType"];
8827 }
8828 if (_json.containsKey("type")) {
8829 type = _json["type"];
8830 }
8831 if (_json.containsKey("value")) {
8832 value = _json["value"];
8833 }
8834 }
8835
8836 core.Map<core.String, core.Object> toJson() {
8837 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8838 if (customType != null) {
8839 _json["customType"] = customType;
8840 }
8841 if (type != null) {
8842 _json["type"] = type;
8843 }
8844 if (value != null) {
8845 _json["value"] = value;
8846 }
8847 return _json;
8848 }
8849 }
8850
8719 /** JSON template for a language entry. */ 8851 /** JSON template for a language entry. */
8720 class UserLanguage { 8852 class UserLanguage {
8721 /** 8853 /**
8722 * Other language. User can provide own language name if there is no 8854 * 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 8855 * corresponding Google III language code. If this is set LanguageCode can't
8724 * be set 8856 * be set
8725 */ 8857 */
8726 core.String customLanguage; 8858 core.String customLanguage;
8727 /** 8859 /**
8728 * Language Code. Should be used for storing Google III LanguageCode string 8860 * Language Code. Should be used for storing Google III LanguageCode string
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
9533 } 9665 }
9534 if (items != null) { 9666 if (items != null) {
9535 _json["items"] = items.map((value) => (value).toJson()).toList(); 9667 _json["items"] = items.map((value) => (value).toJson()).toList();
9536 } 9668 }
9537 if (kind != null) { 9669 if (kind != null) {
9538 _json["kind"] = kind; 9670 _json["kind"] = kind;
9539 } 9671 }
9540 return _json; 9672 return _json;
9541 } 9673 }
9542 } 9674 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/acceleratedmobilepageurl/v1.dart ('k') | generated/googleapis/lib/analytics/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698