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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 "POST", | 893 "POST", |
894 body: _body, | 894 body: _body, |
895 queryParams: _queryParams, | 895 queryParams: _queryParams, |
896 uploadOptions: _uploadOptions, | 896 uploadOptions: _uploadOptions, |
897 uploadMedia: _uploadMedia, | 897 uploadMedia: _uploadMedia, |
898 downloadOptions: _downloadOptions); | 898 downloadOptions: _downloadOptions); |
899 return _response.then((data) => new Enterprise.fromJson(data)); | 899 return _response.then((data) => new Enterprise.fromJson(data)); |
900 } | 900 } |
901 | 901 |
902 /** | 902 /** |
| 903 * Returns a unique token to access an embeddable UI. To generate a web UI, |
| 904 * pass the generated token into the Play for Work javascript API. Each token |
| 905 * may only be used to start one UI session. See the javascript API |
| 906 * documentation for further information. |
| 907 * |
| 908 * [request] - The metadata request object. |
| 909 * |
| 910 * Request parameters: |
| 911 * |
| 912 * [enterpriseId] - The ID of the enterprise. |
| 913 * |
| 914 * Completes with a [AdministratorWebToken]. |
| 915 * |
| 916 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 917 * error. |
| 918 * |
| 919 * If the used [http.Client] completes with an error when making a REST call, |
| 920 * this method will complete with the same error. |
| 921 */ |
| 922 async.Future<AdministratorWebToken> createWebToken(AdministratorWebTokenSpec r
equest, core.String enterpriseId) { |
| 923 var _url = null; |
| 924 var _queryParams = new core.Map(); |
| 925 var _uploadMedia = null; |
| 926 var _uploadOptions = null; |
| 927 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 928 var _body = null; |
| 929 |
| 930 if (request != null) { |
| 931 _body = convert.JSON.encode((request).toJson()); |
| 932 } |
| 933 if (enterpriseId == null) { |
| 934 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 935 } |
| 936 |
| 937 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/c
reateWebToken'; |
| 938 |
| 939 var _response = _requester.request(_url, |
| 940 "POST", |
| 941 body: _body, |
| 942 queryParams: _queryParams, |
| 943 uploadOptions: _uploadOptions, |
| 944 uploadMedia: _uploadMedia, |
| 945 downloadOptions: _downloadOptions); |
| 946 return _response.then((data) => new AdministratorWebToken.fromJson(data)); |
| 947 } |
| 948 |
| 949 /** |
903 * Deletes the binding between the EMM and enterprise. This is now deprecated; | 950 * Deletes the binding between the EMM and enterprise. This is now deprecated; |
904 * use this to unenroll customers that were previously enrolled with the | 951 * use this to unenroll customers that were previously enrolled with the |
905 * 'insert' call, then enroll them again with the 'enroll' call. | 952 * 'insert' call, then enroll them again with the 'enroll' call. |
906 * | 953 * |
907 * Request parameters: | 954 * Request parameters: |
908 * | 955 * |
909 * [enterpriseId] - The ID of the enterprise. | 956 * [enterpriseId] - The ID of the enterprise. |
910 * | 957 * |
911 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 958 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
912 * error. | 959 * error. |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 uploadMedia: _uploadMedia, | 1308 uploadMedia: _uploadMedia, |
1262 downloadOptions: _downloadOptions); | 1309 downloadOptions: _downloadOptions); |
1263 return _response.then((data) => new EnterprisesListResponse.fromJson(data)); | 1310 return _response.then((data) => new EnterprisesListResponse.fromJson(data)); |
1264 } | 1311 } |
1265 | 1312 |
1266 /** | 1313 /** |
1267 * Pulls and returns a notification set for the enterprises associated with | 1314 * Pulls and returns a notification set for the enterprises associated with |
1268 * the service account authenticated for the request. The notification set may | 1315 * the service account authenticated for the request. The notification set may |
1269 * be empty if no notification are pending. | 1316 * be empty if no notification are pending. |
1270 * A notification set returned needs to be acknowledged within 20 seconds by | 1317 * A notification set returned needs to be acknowledged within 20 seconds by |
1271 * calling Enterprises.AcknowledgeNotificationSet, unless the notification set | 1318 * calling Enterprises.AcknowledgeNotificationSet, unless the notification |
1272 * is empty. | 1319 * set is empty. |
1273 * Notifications that are not acknowledged within the 20 seconds will | 1320 * Notifications that are not acknowledged within the 20 seconds will |
1274 * eventually be included again in the response to another PullNotificationSet | 1321 * eventually be included again in the response to another PullNotificationSet |
1275 * request, and those that are never acknowledged will ultimately be deleted | 1322 * request, and those that are never acknowledged will ultimately be deleted |
1276 * according to the Google Cloud Platform Pub/Sub system policy. | 1323 * according to the Google Cloud Platform Pub/Sub system policy. |
1277 * Multiple requests might be performed concurrently to retrieve | 1324 * Multiple requests might be performed concurrently to retrieve |
1278 * notifications, in which case the pending notifications (if any) will be | 1325 * notifications, in which case the pending notifications (if any) will be |
1279 * split among each caller, if any are pending. | 1326 * split among each caller, if any are pending. |
| 1327 * If no notifications are present, an empty notification list is returned. |
| 1328 * Subsequent requests may return more notifications once they become |
| 1329 * available. |
1280 * | 1330 * |
1281 * Request parameters: | 1331 * Request parameters: |
1282 * | 1332 * |
1283 * [requestMode] - The request mode for pulling notifications. If omitted, | 1333 * [requestMode] - The request mode for pulling notifications. |
1284 * defaults to WAIT_FOR_NOTIFCATIONS. | 1334 * Specifying waitForNotifications will cause the request to block and wait |
1285 * If this is set to WAIT_FOR_NOTIFCATIONS, the request will eventually | 1335 * until one or more notifications are present, or return an empty |
1286 * timeout, in which case it should be retried. | 1336 * notification list if no notifications are present after some time. |
| 1337 * Speciying returnImmediately will cause the request to immediately return |
| 1338 * the pending notifications, or an empty list if no notifications are |
| 1339 * present. |
| 1340 * If omitted, defaults to waitForNotifications. |
1287 * Possible string values are: | 1341 * Possible string values are: |
1288 * - "returnImmediately" | 1342 * - "returnImmediately" |
1289 * - "waitForNotifications" | 1343 * - "waitForNotifications" |
1290 * | 1344 * |
1291 * Completes with a [NotificationSet]. | 1345 * Completes with a [NotificationSet]. |
1292 * | 1346 * |
1293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1347 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1294 * error. | 1348 * error. |
1295 * | 1349 * |
1296 * If the used [http.Client] completes with an error when making a REST call, | 1350 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 "PUT", | 1453 "PUT", |
1400 body: _body, | 1454 body: _body, |
1401 queryParams: _queryParams, | 1455 queryParams: _queryParams, |
1402 uploadOptions: _uploadOptions, | 1456 uploadOptions: _uploadOptions, |
1403 uploadMedia: _uploadMedia, | 1457 uploadMedia: _uploadMedia, |
1404 downloadOptions: _downloadOptions); | 1458 downloadOptions: _downloadOptions); |
1405 return _response.then((data) => new EnterpriseAccount.fromJson(data)); | 1459 return _response.then((data) => new EnterpriseAccount.fromJson(data)); |
1406 } | 1460 } |
1407 | 1461 |
1408 /** | 1462 /** |
1409 * Sets the store layout for the enterprise. | 1463 * Sets the store layout for the enterprise. By default, storeLayoutType is |
| 1464 * set to "basic" and the basic store layout is enabled. The basic layout only |
| 1465 * contains apps approved by the administrator, and that have been added to |
| 1466 * the available product set for a user (using the setAvailableProductSet |
| 1467 * call). Apps on the page are sorted in order of their product ID value. If |
| 1468 * you create a custom store layout (by setting storeLayoutType = "custom"), |
| 1469 * the basic store layout is disabled. |
1410 * | 1470 * |
1411 * [request] - The metadata request object. | 1471 * [request] - The metadata request object. |
1412 * | 1472 * |
1413 * Request parameters: | 1473 * Request parameters: |
1414 * | 1474 * |
1415 * [enterpriseId] - The ID of the enterprise. | 1475 * [enterpriseId] - The ID of the enterprise. |
1416 * | 1476 * |
1417 * Completes with a [StoreLayout]. | 1477 * Completes with a [StoreLayout]. |
1418 * | 1478 * |
1419 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1479 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4239 uploadMedia: _uploadMedia, | 4299 uploadMedia: _uploadMedia, |
4240 downloadOptions: _downloadOptions); | 4300 downloadOptions: _downloadOptions); |
4241 return _response.then((data) => new ProductSet.fromJson(data)); | 4301 return _response.then((data) => new ProductSet.fromJson(data)); |
4242 } | 4302 } |
4243 | 4303 |
4244 /** | 4304 /** |
4245 * Creates a new EMM-managed user. | 4305 * Creates a new EMM-managed user. |
4246 * | 4306 * |
4247 * The Users resource passed in the body of the request should include an | 4307 * The Users resource passed in the body of the request should include an |
4248 * accountIdentifier and an accountType. | 4308 * accountIdentifier and an accountType. |
| 4309 * If a corresponding user already exists with the same account identifier, |
| 4310 * the user will be updated with the resource. In this case only the |
| 4311 * displayName field can be changed. |
4249 * | 4312 * |
4250 * [request] - The metadata request object. | 4313 * [request] - The metadata request object. |
4251 * | 4314 * |
4252 * Request parameters: | 4315 * Request parameters: |
4253 * | 4316 * |
4254 * [enterpriseId] - The ID of the enterprise. | 4317 * [enterpriseId] - The ID of the enterprise. |
4255 * | 4318 * |
4256 * Completes with a [User]. | 4319 * Completes with a [User]. |
4257 * | 4320 * |
4258 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4321 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4558 | 4621 |
4559 core.Map toJson() { | 4622 core.Map toJson() { |
4560 var _json = new core.Map(); | 4623 var _json = new core.Map(); |
4561 if (email != null) { | 4624 if (email != null) { |
4562 _json["email"] = email; | 4625 _json["email"] = email; |
4563 } | 4626 } |
4564 return _json; | 4627 return _json; |
4565 } | 4628 } |
4566 } | 4629 } |
4567 | 4630 |
| 4631 /** A token authorizing an administrator to access an iframe. */ |
| 4632 class AdministratorWebToken { |
| 4633 /** |
| 4634 * Identifies what kind of resource this is. Value: the fixed string |
| 4635 * "androidenterprise#administratorWebToken". |
| 4636 */ |
| 4637 core.String kind; |
| 4638 /** |
| 4639 * An opaque token to be passed to the Play front-end to generate an iframe. |
| 4640 */ |
| 4641 core.String token; |
| 4642 |
| 4643 AdministratorWebToken(); |
| 4644 |
| 4645 AdministratorWebToken.fromJson(core.Map _json) { |
| 4646 if (_json.containsKey("kind")) { |
| 4647 kind = _json["kind"]; |
| 4648 } |
| 4649 if (_json.containsKey("token")) { |
| 4650 token = _json["token"]; |
| 4651 } |
| 4652 } |
| 4653 |
| 4654 core.Map toJson() { |
| 4655 var _json = new core.Map(); |
| 4656 if (kind != null) { |
| 4657 _json["kind"] = kind; |
| 4658 } |
| 4659 if (token != null) { |
| 4660 _json["token"] = token; |
| 4661 } |
| 4662 return _json; |
| 4663 } |
| 4664 } |
| 4665 |
| 4666 /** |
| 4667 * Specification for a token used to generate iframes. The token specifies what |
| 4668 * data the admin is allowed to modify and the URI the iframe is allowed to |
| 4669 * communiate with. |
| 4670 */ |
| 4671 class AdministratorWebTokenSpec { |
| 4672 /** |
| 4673 * Identifies what kind of resource this is. Value: the fixed string |
| 4674 * "androidenterprise#administratorWebTokenSpec". |
| 4675 */ |
| 4676 core.String kind; |
| 4677 /** |
| 4678 * The URI of the parent frame hosting the iframe. To prevent XSS, the iframe |
| 4679 * may not be hosted at other URIs. This URI must be https. |
| 4680 */ |
| 4681 core.String parent; |
| 4682 /** |
| 4683 * The list of permissions the admin is granted within the iframe. The admin |
| 4684 * will only be allowed to view an iframe if they have all of the permissions |
| 4685 * associated with it. The only valid value is "approveApps" that will allow |
| 4686 * the admin to access the iframe in "approve" mode. |
| 4687 */ |
| 4688 core.List<core.String> permission; |
| 4689 |
| 4690 AdministratorWebTokenSpec(); |
| 4691 |
| 4692 AdministratorWebTokenSpec.fromJson(core.Map _json) { |
| 4693 if (_json.containsKey("kind")) { |
| 4694 kind = _json["kind"]; |
| 4695 } |
| 4696 if (_json.containsKey("parent")) { |
| 4697 parent = _json["parent"]; |
| 4698 } |
| 4699 if (_json.containsKey("permission")) { |
| 4700 permission = _json["permission"]; |
| 4701 } |
| 4702 } |
| 4703 |
| 4704 core.Map toJson() { |
| 4705 var _json = new core.Map(); |
| 4706 if (kind != null) { |
| 4707 _json["kind"] = kind; |
| 4708 } |
| 4709 if (parent != null) { |
| 4710 _json["parent"] = parent; |
| 4711 } |
| 4712 if (permission != null) { |
| 4713 _json["permission"] = permission; |
| 4714 } |
| 4715 return _json; |
| 4716 } |
| 4717 } |
| 4718 |
4568 /** | 4719 /** |
4569 * Represents the list of app restrictions available to be pre-configured for | 4720 * Represents the list of app restrictions available to be pre-configured for |
4570 * the product. | 4721 * the product. |
4571 */ | 4722 */ |
4572 class AppRestrictionsSchema { | 4723 class AppRestrictionsSchema { |
4573 /** | 4724 /** |
4574 * Identifies what kind of resource this is. Value: the fixed string | 4725 * Identifies what kind of resource this is. Value: the fixed string |
4575 * "androidenterprise#appRestrictionsSchema". | 4726 * "androidenterprise#appRestrictionsSchema". |
4576 */ | 4727 */ |
4577 core.String kind; | 4728 core.String kind; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4628 } | 4779 } |
4629 return _json; | 4780 return _json; |
4630 } | 4781 } |
4631 } | 4782 } |
4632 | 4783 |
4633 /** | 4784 /** |
4634 * A restriction in the App Restriction Schema represents a piece of | 4785 * A restriction in the App Restriction Schema represents a piece of |
4635 * configuration that may be pre-applied. | 4786 * configuration that may be pre-applied. |
4636 */ | 4787 */ |
4637 class AppRestrictionsSchemaRestriction { | 4788 class AppRestrictionsSchemaRestriction { |
4638 /** The default value of the restriction. */ | 4789 /** |
| 4790 * The default value of the restriction. bundle and bundleArray restrictions |
| 4791 * never have a default value. |
| 4792 */ |
4639 AppRestrictionsSchemaRestrictionRestrictionValue defaultValue; | 4793 AppRestrictionsSchemaRestrictionRestrictionValue defaultValue; |
4640 /** | 4794 /** |
4641 * A longer description of the restriction, giving more detail of what it | 4795 * A longer description of the restriction, giving more detail of what it |
4642 * affects. | 4796 * affects. |
4643 */ | 4797 */ |
4644 core.String description; | 4798 core.String description; |
4645 /** | 4799 /** |
4646 * For choice or multiselect restrictions, the list of possible entries' | 4800 * For choice or multiselect restrictions, the list of possible entries' |
4647 * human-readable names. | 4801 * human-readable names. |
4648 */ | 4802 */ |
4649 core.List<core.String> entry; | 4803 core.List<core.String> entry; |
4650 /** | 4804 /** |
4651 * For choice or multiselect restrictions, the list of possible entries' | 4805 * For choice or multiselect restrictions, the list of possible entries' |
4652 * machine-readable values. | 4806 * machine-readable values. These values should be used in the configuration, |
| 4807 * either as a single string value for a choice restriction or in a |
| 4808 * stringArray for a multiselect restriction. |
4653 */ | 4809 */ |
4654 core.List<core.String> entryValue; | 4810 core.List<core.String> entryValue; |
4655 /** | 4811 /** |
4656 * The unique key that the product uses to identify the restriction, e.g. | 4812 * The unique key that the product uses to identify the restriction, e.g. |
4657 * "com.google.android.gm.fieldname". | 4813 * "com.google.android.gm.fieldname". |
4658 */ | 4814 */ |
4659 core.String key; | 4815 core.String key; |
4660 /** | 4816 /** |
4661 * For bundle or bundleArray restrictions, the list of nested restrictions. | 4817 * For bundle or bundleArray restrictions, the list of nested restrictions. A |
| 4818 * bundle restriction is always nested within a bundleArray restriction, and a |
| 4819 * bundleArray restriction is at most two levels deep. |
4662 */ | 4820 */ |
4663 core.List<AppRestrictionsSchemaRestriction> nestedRestriction; | 4821 core.List<AppRestrictionsSchemaRestriction> nestedRestriction; |
4664 /** The type of the restriction. */ | 4822 /** The type of the restriction. */ |
4665 core.String restrictionType; | 4823 core.String restrictionType; |
4666 /** The name of the restriction. */ | 4824 /** The name of the restriction. */ |
4667 core.String title; | 4825 core.String title; |
4668 | 4826 |
4669 AppRestrictionsSchemaRestriction(); | 4827 AppRestrictionsSchemaRestriction(); |
4670 | 4828 |
4671 AppRestrictionsSchemaRestriction.fromJson(core.Map _json) { | 4829 AppRestrictionsSchemaRestriction.fromJson(core.Map _json) { |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5092 */ | 5250 */ |
5093 core.String androidId; | 5251 core.String androidId; |
5094 /** | 5252 /** |
5095 * Identifies what kind of resource this is. Value: the fixed string | 5253 * Identifies what kind of resource this is. Value: the fixed string |
5096 * "androidenterprise#device". | 5254 * "androidenterprise#device". |
5097 */ | 5255 */ |
5098 core.String kind; | 5256 core.String kind; |
5099 /** | 5257 /** |
5100 * Identifies the extent to which the device is controlled by an Android for | 5258 * Identifies the extent to which the device is controlled by an Android for |
5101 * Work EMM in various deployment configurations. | 5259 * Work EMM in various deployment configurations. |
| 5260 * |
5102 * Possible values include: | 5261 * Possible values include: |
5103 * - "managedDevice"—A device that has the EMM's device policy controller | 5262 * - "managedDevice", a device that has the EMM's device policy controller |
5104 * (DPC) as the device owner. | 5263 * (DPC) as the device owner, |
5105 * - "managedProfile"—A device that has a work profile managed by the DPC (DPC | 5264 * - "managedProfile", a device that has a work profile managed by the DPC |
5106 * is profile owner) in addition to a separate, personal profile that is | 5265 * (DPC is profile owner) in addition to a separate, personal profile that is |
5107 * unavailable to the DPC. | 5266 * unavailable to the DPC, |
5108 * - "containerApp"—A device running the Android for Work App. The Android for | 5267 * - "containerApp", a device running the Android for Work App. The Android |
5109 * Work App is managed by the DPC. | 5268 * for Work App is managed by the DPC, |
5110 * - "unmanagedProfile"—A device that has been allowed (by the domain's admin, | 5269 * - "unmanagedProfile", a device that has been allowed (by the domain's |
5111 * using the Admin Console to enable the privilege) to use Android for Work | 5270 * admin, using the Admin Console to enable the privilege) to use Android for |
5112 * apps or Google Apps for Work, but the profile is itself not owned by a DPC. | 5271 * Work apps or Google Apps for Work, but the profile is itself not owned by a |
| 5272 * DPC. |
5113 */ | 5273 */ |
5114 core.String managementType; | 5274 core.String managementType; |
5115 | 5275 |
5116 Device(); | 5276 Device(); |
5117 | 5277 |
5118 Device.fromJson(core.Map _json) { | 5278 Device.fromJson(core.Map _json) { |
5119 if (_json.containsKey("androidId")) { | 5279 if (_json.containsKey("androidId")) { |
5120 androidId = _json["androidId"]; | 5280 androidId = _json["androidId"]; |
5121 } | 5281 } |
5122 if (_json.containsKey("kind")) { | 5282 if (_json.containsKey("kind")) { |
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6697 | 6857 |
6698 /** A set of products. */ | 6858 /** A set of products. */ |
6699 class ProductSet { | 6859 class ProductSet { |
6700 /** | 6860 /** |
6701 * Identifies what kind of resource this is. Value: the fixed string | 6861 * Identifies what kind of resource this is. Value: the fixed string |
6702 * "androidenterprise#productSet". | 6862 * "androidenterprise#productSet". |
6703 */ | 6863 */ |
6704 core.String kind; | 6864 core.String kind; |
6705 /** The list of product IDs making up the set of products. */ | 6865 /** The list of product IDs making up the set of products. */ |
6706 core.List<core.String> productId; | 6866 core.List<core.String> productId; |
| 6867 /** |
| 6868 * The interpretation of this product set. "unknown" should never be sent and |
| 6869 * ignored if received. "whitelist" means that this product set constitutes a |
| 6870 * whitelist. "includeAll" means that all products are accessible (the value |
| 6871 * of the productId field is therefore ignored). If a value is not supplied, |
| 6872 * it is interpreted to be "whitelist" for backwards compatibility. |
| 6873 */ |
| 6874 core.String productSetBehavior; |
6707 | 6875 |
6708 ProductSet(); | 6876 ProductSet(); |
6709 | 6877 |
6710 ProductSet.fromJson(core.Map _json) { | 6878 ProductSet.fromJson(core.Map _json) { |
6711 if (_json.containsKey("kind")) { | 6879 if (_json.containsKey("kind")) { |
6712 kind = _json["kind"]; | 6880 kind = _json["kind"]; |
6713 } | 6881 } |
6714 if (_json.containsKey("productId")) { | 6882 if (_json.containsKey("productId")) { |
6715 productId = _json["productId"]; | 6883 productId = _json["productId"]; |
6716 } | 6884 } |
| 6885 if (_json.containsKey("productSetBehavior")) { |
| 6886 productSetBehavior = _json["productSetBehavior"]; |
| 6887 } |
6717 } | 6888 } |
6718 | 6889 |
6719 core.Map toJson() { | 6890 core.Map toJson() { |
6720 var _json = new core.Map(); | 6891 var _json = new core.Map(); |
6721 if (kind != null) { | 6892 if (kind != null) { |
6722 _json["kind"] = kind; | 6893 _json["kind"] = kind; |
6723 } | 6894 } |
6724 if (productId != null) { | 6895 if (productId != null) { |
6725 _json["productId"] = productId; | 6896 _json["productId"] = productId; |
6726 } | 6897 } |
| 6898 if (productSetBehavior != null) { |
| 6899 _json["productSetBehavior"] = productSetBehavior; |
| 6900 } |
6727 return _json; | 6901 return _json; |
6728 } | 6902 } |
6729 } | 6903 } |
6730 | 6904 |
6731 class ProductsApproveRequest { | 6905 class ProductsApproveRequest { |
6732 /** | 6906 /** |
6733 * The approval URL that was shown to the user. Only the permissions shown to | 6907 * The approval URL that was shown to the user. Only the permissions shown to |
6734 * the user with that URL will be accepted, which may not be the product's | 6908 * the user with that URL will be accepted, which may not be the product's |
6735 * entire set of permissions. For example, the URL may only display new | 6909 * entire set of permissions. For example, the URL may only display new |
6736 * permissions from an update after the product was approved, or not include | 6910 * permissions from an update after the product was approved, or not include |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7103 * | 7277 * |
7104 * If there exists at least one page, this field must be set to the ID of a | 7278 * If there exists at least one page, this field must be set to the ID of a |
7105 * valid page. | 7279 * valid page. |
7106 */ | 7280 */ |
7107 core.String homepageId; | 7281 core.String homepageId; |
7108 /** | 7282 /** |
7109 * Identifies what kind of resource this is. Value: the fixed string | 7283 * Identifies what kind of resource this is. Value: the fixed string |
7110 * "androidenterprise#storeLayout". | 7284 * "androidenterprise#storeLayout". |
7111 */ | 7285 */ |
7112 core.String kind; | 7286 core.String kind; |
| 7287 /** |
| 7288 * Sets a store layout type. By default, this value is set to "basic". If set |
| 7289 * to "custom", "homepageId" must be specified. If set to "basic", the layout |
| 7290 * will consist of all approved apps accessible by the user, split in pages of |
| 7291 * 100 each; in this case, "homepageId" must not be specified. The "basic" |
| 7292 * setting takes precedence over any existing collections setup for this |
| 7293 * enterprise (if any). Should the enterprise use collectionViewers for |
| 7294 * controlling access rights, these will still be respected. |
| 7295 */ |
| 7296 core.String storeLayoutType; |
7113 | 7297 |
7114 StoreLayout(); | 7298 StoreLayout(); |
7115 | 7299 |
7116 StoreLayout.fromJson(core.Map _json) { | 7300 StoreLayout.fromJson(core.Map _json) { |
7117 if (_json.containsKey("homepageId")) { | 7301 if (_json.containsKey("homepageId")) { |
7118 homepageId = _json["homepageId"]; | 7302 homepageId = _json["homepageId"]; |
7119 } | 7303 } |
7120 if (_json.containsKey("kind")) { | 7304 if (_json.containsKey("kind")) { |
7121 kind = _json["kind"]; | 7305 kind = _json["kind"]; |
7122 } | 7306 } |
| 7307 if (_json.containsKey("storeLayoutType")) { |
| 7308 storeLayoutType = _json["storeLayoutType"]; |
| 7309 } |
7123 } | 7310 } |
7124 | 7311 |
7125 core.Map toJson() { | 7312 core.Map toJson() { |
7126 var _json = new core.Map(); | 7313 var _json = new core.Map(); |
7127 if (homepageId != null) { | 7314 if (homepageId != null) { |
7128 _json["homepageId"] = homepageId; | 7315 _json["homepageId"] = homepageId; |
7129 } | 7316 } |
7130 if (kind != null) { | 7317 if (kind != null) { |
7131 _json["kind"] = kind; | 7318 _json["kind"] = kind; |
7132 } | 7319 } |
| 7320 if (storeLayoutType != null) { |
| 7321 _json["storeLayoutType"] = storeLayoutType; |
| 7322 } |
7133 return _json; | 7323 return _json; |
7134 } | 7324 } |
7135 } | 7325 } |
7136 | 7326 |
7137 /** The store page resources for the enterprise. */ | 7327 /** The store page resources for the enterprise. */ |
7138 class StoreLayoutClustersListResponse { | 7328 class StoreLayoutClustersListResponse { |
7139 /** A store cluster of an enterprise. */ | 7329 /** A store cluster of an enterprise. */ |
7140 core.List<StoreCluster> cluster; | 7330 core.List<StoreCluster> cluster; |
7141 /** | 7331 /** |
7142 * Identifies what kind of resource this is. Value: the fixed string | 7332 * Identifies what kind of resource this is. Value: the fixed string |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7476 var _json = new core.Map(); | 7666 var _json = new core.Map(); |
7477 if (kind != null) { | 7667 if (kind != null) { |
7478 _json["kind"] = kind; | 7668 _json["kind"] = kind; |
7479 } | 7669 } |
7480 if (user != null) { | 7670 if (user != null) { |
7481 _json["user"] = user.map((value) => (value).toJson()).toList(); | 7671 _json["user"] = user.map((value) => (value).toJson()).toList(); |
7482 } | 7672 } |
7483 return _json; | 7673 return _json; |
7484 } | 7674 } |
7485 } | 7675 } |
OLD | NEW |