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

Side by Side Diff: generated/googleapis/lib/androidenterprise/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.androidenterprise.v1; 3 library googleapis.androidenterprise.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;
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 "GET", 563 "GET",
564 body: _body, 564 body: _body,
565 queryParams: _queryParams, 565 queryParams: _queryParams,
566 uploadOptions: _uploadOptions, 566 uploadOptions: _uploadOptions,
567 uploadMedia: _uploadMedia, 567 uploadMedia: _uploadMedia,
568 downloadOptions: _downloadOptions); 568 downloadOptions: _downloadOptions);
569 return _response.then((data) => new Enterprise.fromJson(data)); 569 return _response.then((data) => new Enterprise.fromJson(data));
570 } 570 }
571 571
572 /** 572 /**
573 * Returns the Android Device Policy config resource.
574 *
575 * Request parameters:
576 *
577 * [enterpriseId] - The ID of the enterprise.
578 *
579 * Completes with a [AndroidDevicePolicyConfig].
580 *
581 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
582 * error.
583 *
584 * If the used [http.Client] completes with an error when making a REST call,
585 * this method will complete with the same error.
586 */
587 async.Future<AndroidDevicePolicyConfig> getAndroidDevicePolicyConfig(core.Stri ng enterpriseId) {
588 var _url = null;
589 var _queryParams = new core.Map();
590 var _uploadMedia = null;
591 var _uploadOptions = null;
592 var _downloadOptions = commons.DownloadOptions.Metadata;
593 var _body = null;
594
595 if (enterpriseId == null) {
596 throw new core.ArgumentError("Parameter enterpriseId is required.");
597 }
598
599 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/a ndroidDevicePolicyConfig';
600
601 var _response = _requester.request(_url,
602 "GET",
603 body: _body,
604 queryParams: _queryParams,
605 uploadOptions: _uploadOptions,
606 uploadMedia: _uploadMedia,
607 downloadOptions: _downloadOptions);
608 return _response.then((data) => new AndroidDevicePolicyConfig.fromJson(data) );
609 }
610
611 /**
573 * Returns a service account and credentials. The service account can be bound 612 * Returns a service account and credentials. The service account can be bound
574 * to the enterprise by calling setAccount. The service account is unique to 613 * to the enterprise by calling setAccount. The service account is unique to
575 * this enterprise and EMM, and will be deleted if the enterprise is unbound. 614 * this enterprise and EMM, and will be deleted if the enterprise is unbound.
576 * The credentials contain private key data and are not stored server-side. 615 * The credentials contain private key data and are not stored server-side.
577 * 616 *
578 * This method can only be called after calling Enterprises.Enroll or 617 * This method can only be called after calling Enterprises.Enroll or
579 * Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other 618 * Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other
580 * times it will return an error. 619 * times it will return an error.
581 * 620 *
582 * Subsequent calls after the first will generate a new, unique set of 621 * Subsequent calls after the first will generate a new, unique set of
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 "PUT", 942 "PUT",
904 body: _body, 943 body: _body,
905 queryParams: _queryParams, 944 queryParams: _queryParams,
906 uploadOptions: _uploadOptions, 945 uploadOptions: _uploadOptions,
907 uploadMedia: _uploadMedia, 946 uploadMedia: _uploadMedia,
908 downloadOptions: _downloadOptions); 947 downloadOptions: _downloadOptions);
909 return _response.then((data) => new EnterpriseAccount.fromJson(data)); 948 return _response.then((data) => new EnterpriseAccount.fromJson(data));
910 } 949 }
911 950
912 /** 951 /**
952 * Sets the Android Device Policy config resource. EMM may use this API to
953 * enable or disable Android Device Policy support for the specified
954 * enterprise.
955 *
956 * [request] - The metadata request object.
957 *
958 * Request parameters:
959 *
960 * [enterpriseId] - The ID of the enterprise.
961 *
962 * Completes with a [AndroidDevicePolicyConfig].
963 *
964 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
965 * error.
966 *
967 * If the used [http.Client] completes with an error when making a REST call,
968 * this method will complete with the same error.
969 */
970 async.Future<AndroidDevicePolicyConfig> setAndroidDevicePolicyConfig(AndroidDe vicePolicyConfig request, core.String enterpriseId) {
971 var _url = null;
972 var _queryParams = new core.Map();
973 var _uploadMedia = null;
974 var _uploadOptions = null;
975 var _downloadOptions = commons.DownloadOptions.Metadata;
976 var _body = null;
977
978 if (request != null) {
979 _body = convert.JSON.encode((request).toJson());
980 }
981 if (enterpriseId == null) {
982 throw new core.ArgumentError("Parameter enterpriseId is required.");
983 }
984
985 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/a ndroidDevicePolicyConfig';
986
987 var _response = _requester.request(_url,
988 "PUT",
989 body: _body,
990 queryParams: _queryParams,
991 uploadOptions: _uploadOptions,
992 uploadMedia: _uploadMedia,
993 downloadOptions: _downloadOptions);
994 return _response.then((data) => new AndroidDevicePolicyConfig.fromJson(data) );
995 }
996
997 /**
913 * Sets the store layout for the enterprise. By default, storeLayoutType is 998 * Sets the store layout for the enterprise. By default, storeLayoutType is
914 * set to "basic" and the basic store layout is enabled. The basic layout only 999 * set to "basic" and the basic store layout is enabled. The basic layout only
915 * contains apps approved by the admin, and that have been added to the 1000 * contains apps approved by the admin, and that have been added to the
916 * available product set for a user (using the setAvailableProductSet call). 1001 * available product set for a user (using the setAvailableProductSet call).
917 * Apps on the page are sorted in order of their product ID value. If you 1002 * Apps on the page are sorted in order of their product ID value. If you
918 * create a custom store layout (by setting storeLayoutType = "custom" and 1003 * create a custom store layout (by setting storeLayoutType = "custom" and
919 * setting a homepage), the basic store layout is disabled. 1004 * setting a homepage), the basic store layout is disabled.
920 * 1005 *
921 * [request] - The metadata request object. 1006 * [request] - The metadata request object.
922 * 1007 *
(...skipping 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after
4107 if (parent != null) { 4192 if (parent != null) {
4108 _json["parent"] = parent; 4193 _json["parent"] = parent;
4109 } 4194 }
4110 if (permission != null) { 4195 if (permission != null) {
4111 _json["permission"] = permission; 4196 _json["permission"] = permission;
4112 } 4197 }
4113 return _json; 4198 return _json;
4114 } 4199 }
4115 } 4200 }
4116 4201
4202 /** The Android Device Policy configuration of an enterprise. */
4203 class AndroidDevicePolicyConfig {
4204 /**
4205 * Identifies what kind of resource this is. Value: the fixed string
4206 * "androidenterprise#androidDevicePolicyConfig".
4207 */
4208 core.String kind;
4209 /**
4210 * The state of Android Device Policy. "enabled" indicates that Android Device
4211 * Policy is enabled for the enterprise and the EMM is allowed to manage
4212 * devices with Android Device Policy, while "disabled" means that it cannot.
4213 */
4214 core.String state;
4215
4216 AndroidDevicePolicyConfig();
4217
4218 AndroidDevicePolicyConfig.fromJson(core.Map _json) {
4219 if (_json.containsKey("kind")) {
4220 kind = _json["kind"];
4221 }
4222 if (_json.containsKey("state")) {
4223 state = _json["state"];
4224 }
4225 }
4226
4227 core.Map<core.String, core.Object> toJson() {
4228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4229 if (kind != null) {
4230 _json["kind"] = kind;
4231 }
4232 if (state != null) {
4233 _json["state"] = state;
4234 }
4235 return _json;
4236 }
4237 }
4238
4117 /** 4239 /**
4118 * Represents the list of app restrictions available to be pre-configured for 4240 * Represents the list of app restrictions available to be pre-configured for
4119 * the product. 4241 * the product.
4120 */ 4242 */
4121 class AppRestrictionsSchema { 4243 class AppRestrictionsSchema {
4122 /** 4244 /**
4123 * Identifies what kind of resource this is. Value: the fixed string 4245 * Identifies what kind of resource this is. Value: the fixed string
4124 * "androidenterprise#appRestrictionsSchema". 4246 * "androidenterprise#appRestrictionsSchema".
4125 */ 4247 */
4126 core.String kind; 4248 core.String kind;
(...skipping 2883 matching lines...) Expand 10 before | Expand all | Expand 10 after
7010 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7132 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7011 if (kind != null) { 7133 if (kind != null) {
7012 _json["kind"] = kind; 7134 _json["kind"] = kind;
7013 } 7135 }
7014 if (user != null) { 7136 if (user != null) {
7015 _json["user"] = user.map((value) => (value).toJson()).toList(); 7137 _json["user"] = user.map((value) => (value).toJson()).toList();
7016 } 7138 }
7017 return _json; 7139 return _json;
7018 } 7140 }
7019 } 7141 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/androiddeviceprovisioning/v1.dart ('k') | generated/googleapis/lib/androidmanagement/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698