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

Side by Side Diff: generated/googleapis/lib/androidenterprise/v1.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/cloudbuild/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2707 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 var _response = _requester.request(_url, 2718 var _response = _requester.request(_url,
2719 "POST", 2719 "POST",
2720 body: _body, 2720 body: _body,
2721 queryParams: _queryParams, 2721 queryParams: _queryParams,
2722 uploadOptions: _uploadOptions, 2722 uploadOptions: _uploadOptions,
2723 uploadMedia: _uploadMedia, 2723 uploadMedia: _uploadMedia,
2724 downloadOptions: _downloadOptions); 2724 downloadOptions: _downloadOptions);
2725 return _response.then((data) => null); 2725 return _response.then((data) => null);
2726 } 2726 }
2727 2727
2728 /**
2729 * This method has been deprecated. To programmatically approve applications,
2730 * you must use the iframe mechanism via the generateApprovalUrl and approve
2731 * methods of the Products resource. For more information, see the Play EMM
2732 * API usage requirements.
2733 *
2734 * The updatePermissions method (deprecated) updates the set of Android app
2735 * permissions for this app that have been accepted by the enterprise.
2736 *
2737 * [request] - The metadata request object.
2738 *
2739 * Request parameters:
2740 *
2741 * [enterpriseId] - The ID of the enterprise.
2742 *
2743 * [productId] - The ID of the product.
2744 *
2745 * Completes with a [ProductPermissions].
2746 *
2747 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2748 * error.
2749 *
2750 * If the used [http.Client] completes with an error when making a REST call,
2751 * this method will complete with the same error.
2752 */
2753 async.Future<ProductPermissions> updatePermissions(ProductPermissions request, core.String enterpriseId, core.String productId) {
2754 var _url = null;
2755 var _queryParams = new core.Map();
2756 var _uploadMedia = null;
2757 var _uploadOptions = null;
2758 var _downloadOptions = commons.DownloadOptions.Metadata;
2759 var _body = null;
2760
2761 if (request != null) {
2762 _body = convert.JSON.encode((request).toJson());
2763 }
2764 if (enterpriseId == null) {
2765 throw new core.ArgumentError("Parameter enterpriseId is required.");
2766 }
2767 if (productId == null) {
2768 throw new core.ArgumentError("Parameter productId is required.");
2769 }
2770
2771 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/p roducts/' + commons.Escaper.ecapeVariable('$productId') + '/permissions';
2772
2773 var _response = _requester.request(_url,
2774 "PUT",
2775 body: _body,
2776 queryParams: _queryParams,
2777 uploadOptions: _uploadOptions,
2778 uploadMedia: _uploadMedia,
2779 downloadOptions: _downloadOptions);
2780 return _response.then((data) => new ProductPermissions.fromJson(data));
2781 }
2782
2783 } 2728 }
2784 2729
2785 2730
2786 class ServiceaccountkeysResourceApi { 2731 class ServiceaccountkeysResourceApi {
2787 final commons.ApiRequester _requester; 2732 final commons.ApiRequester _requester;
2788 2733
2789 ServiceaccountkeysResourceApi(commons.ApiRequester client) : 2734 ServiceaccountkeysResourceApi(commons.ApiRequester client) :
2790 _requester = client; 2735 _requester = client;
2791 2736
2792 /** 2737 /**
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3941 "DELETE", 3886 "DELETE",
3942 body: _body, 3887 body: _body,
3943 queryParams: _queryParams, 3888 queryParams: _queryParams,
3944 uploadOptions: _uploadOptions, 3889 uploadOptions: _uploadOptions,
3945 uploadMedia: _uploadMedia, 3890 uploadMedia: _uploadMedia,
3946 downloadOptions: _downloadOptions); 3891 downloadOptions: _downloadOptions);
3947 return _response.then((data) => null); 3892 return _response.then((data) => null);
3948 } 3893 }
3949 3894
3950 /** 3895 /**
3951 * Modifies the set of products a user is entitled to access. 3896 * Modifies the set of products that a user is entitled to access (referred to
3897 * as whitelisted products). Only products that are approved or products that
3898 * were previously approved (products with revoked approval) can be
3899 * whitelisted.
3952 * 3900 *
3953 * [request] - The metadata request object. 3901 * [request] - The metadata request object.
3954 * 3902 *
3955 * Request parameters: 3903 * Request parameters:
3956 * 3904 *
3957 * [enterpriseId] - The ID of the enterprise. 3905 * [enterpriseId] - The ID of the enterprise.
3958 * 3906 *
3959 * [userId] - The ID of the user. 3907 * [userId] - The ID of the user.
3960 * 3908 *
3961 * Completes with a [ProductSet]. 3909 * Completes with a [ProductSet].
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
6212 class ProductSet { 6160 class ProductSet {
6213 /** 6161 /**
6214 * Identifies what kind of resource this is. Value: the fixed string 6162 * Identifies what kind of resource this is. Value: the fixed string
6215 * "androidenterprise#productSet". 6163 * "androidenterprise#productSet".
6216 */ 6164 */
6217 core.String kind; 6165 core.String kind;
6218 /** The list of product IDs making up the set of products. */ 6166 /** The list of product IDs making up the set of products. */
6219 core.List<core.String> productId; 6167 core.List<core.String> productId;
6220 /** 6168 /**
6221 * The interpretation of this product set. "unknown" should never be sent and 6169 * The interpretation of this product set. "unknown" should never be sent and
6222 * ignored if received. "whitelist" means that this product set constitutes a 6170 * is ignored if received. "whitelist" means that this product set constitutes
6223 * whitelist. "includeAll" means that all products are accessible, including 6171 * a whitelist. "includeAll" means that all products are accessible, including
6224 * products that are approved, not approved, and even products where approval 6172 * products that are approved, products with revoked approval, and products
6225 * has been revoked. If the value is "includeAll", the value of the productId 6173 * that have never been approved. If the value is "includeAll", the value of
6226 * field is therefore ignored. If a value is not supplied, it is interpreted 6174 * the productId field is therefore ignored. If a value is not supplied, it is
6227 * to be "whitelist" for backwards compatibility. 6175 * interpreted to be "whitelist" for backwards compatibility.
6228 */ 6176 */
6229 core.String productSetBehavior; 6177 core.String productSetBehavior;
6230 6178
6231 ProductSet(); 6179 ProductSet();
6232 6180
6233 ProductSet.fromJson(core.Map _json) { 6181 ProductSet.fromJson(core.Map _json) {
6234 if (_json.containsKey("kind")) { 6182 if (_json.containsKey("kind")) {
6235 kind = _json["kind"]; 6183 kind = _json["kind"];
6236 } 6184 }
6237 if (_json.containsKey("productId")) { 6185 if (_json.containsKey("productId")) {
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
7034 var _json = new core.Map(); 6982 var _json = new core.Map();
7035 if (kind != null) { 6983 if (kind != null) {
7036 _json["kind"] = kind; 6984 _json["kind"] = kind;
7037 } 6985 }
7038 if (user != null) { 6986 if (user != null) {
7039 _json["user"] = user.map((value) => (value).toJson()).toList(); 6987 _json["user"] = user.map((value) => (value).toJson()).toList();
7040 } 6988 }
7041 return _json; 6989 return _json;
7042 } 6990 }
7043 } 6991 }
OLDNEW
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/cloudbuild/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698