| 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.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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 "PUT", | 942 "PUT", |
| 943 body: _body, | 943 body: _body, |
| 944 queryParams: _queryParams, | 944 queryParams: _queryParams, |
| 945 uploadOptions: _uploadOptions, | 945 uploadOptions: _uploadOptions, |
| 946 uploadMedia: _uploadMedia, | 946 uploadMedia: _uploadMedia, |
| 947 downloadOptions: _downloadOptions); | 947 downloadOptions: _downloadOptions); |
| 948 return _response.then((data) => new EnterpriseAccount.fromJson(data)); | 948 return _response.then((data) => new EnterpriseAccount.fromJson(data)); |
| 949 } | 949 } |
| 950 | 950 |
| 951 /** | 951 /** |
| 952 * Sets the Android Device Policy config resource. EMM may use this API to | 952 * Sets the Android Device Policy config resource. EMM may use this method to |
| 953 * enable or disable Android Device Policy support for the specified | 953 * enable or disable Android Device Policy support for the specified |
| 954 * enterprise. | 954 * enterprise. To learn more about managing devices and apps with Android |
| 955 * Device Policy, see the Android Management API. |
| 955 * | 956 * |
| 956 * [request] - The metadata request object. | 957 * [request] - The metadata request object. |
| 957 * | 958 * |
| 958 * Request parameters: | 959 * Request parameters: |
| 959 * | 960 * |
| 960 * [enterpriseId] - The ID of the enterprise. | 961 * [enterpriseId] - The ID of the enterprise. |
| 961 * | 962 * |
| 962 * Completes with a [AndroidDevicePolicyConfig]. | 963 * Completes with a [AndroidDevicePolicyConfig]. |
| 963 * | 964 * |
| 964 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 965 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 5342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6307 core.List<core.String> productId; | 6308 core.List<core.String> productId; |
| 6308 /** | 6309 /** |
| 6309 * The interpretation of this product set. "unknown" should never be sent and | 6310 * The interpretation of this product set. "unknown" should never be sent and |
| 6310 * is ignored if received. "whitelist" means that the user is entitled to | 6311 * is ignored if received. "whitelist" means that the user is entitled to |
| 6311 * access the product set. "includeAll" means that all products are | 6312 * access the product set. "includeAll" means that all products are |
| 6312 * accessible, including products that are approved, products with revoked | 6313 * accessible, including products that are approved, products with revoked |
| 6313 * approval, and products that have never been approved. "allApproved" means | 6314 * approval, and products that have never been approved. "allApproved" means |
| 6314 * that the user is entitled to access all products that are approved for the | 6315 * that the user is entitled to access all products that are approved for the |
| 6315 * enterprise. If the value is "allApproved" or "includeAll", the productId | 6316 * enterprise. If the value is "allApproved" or "includeAll", the productId |
| 6316 * field is ignored. If no value is provided, it is interpreted as "whitelist" | 6317 * field is ignored. If no value is provided, it is interpreted as "whitelist" |
| 6317 * for backwards compatibility. | 6318 * for backwards compatibility. Further "allApproved" or "includeAll" does not |
| 6319 * enable automatic visibility of "alpha" or "beta" tracks for Android app. |
| 6320 * Use ProductVisibility to enable "alpha" or "beta" tracks per user. |
| 6318 */ | 6321 */ |
| 6319 core.String productSetBehavior; | 6322 core.String productSetBehavior; |
| 6320 | 6323 |
| 6321 ProductSet(); | 6324 ProductSet(); |
| 6322 | 6325 |
| 6323 ProductSet.fromJson(core.Map _json) { | 6326 ProductSet.fromJson(core.Map _json) { |
| 6324 if (_json.containsKey("kind")) { | 6327 if (_json.containsKey("kind")) { |
| 6325 kind = _json["kind"]; | 6328 kind = _json["kind"]; |
| 6326 } | 6329 } |
| 6327 if (_json.containsKey("productId")) { | 6330 if (_json.containsKey("productId")) { |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7132 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 7133 if (kind != null) { | 7136 if (kind != null) { |
| 7134 _json["kind"] = kind; | 7137 _json["kind"] = kind; |
| 7135 } | 7138 } |
| 7136 if (user != null) { | 7139 if (user != null) { |
| 7137 _json["user"] = user.map((value) => (value).toJson()).toList(); | 7140 _json["user"] = user.map((value) => (value).toJson()).toList(); |
| 7138 } | 7141 } |
| 7139 return _json; | 7142 return _json; |
| 7140 } | 7143 } |
| 7141 } | 7144 } |
| OLD | NEW |