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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 "POST", | 391 "POST", |
392 body: _body, | 392 body: _body, |
393 queryParams: _queryParams, | 393 queryParams: _queryParams, |
394 uploadOptions: _uploadOptions, | 394 uploadOptions: _uploadOptions, |
395 uploadMedia: _uploadMedia, | 395 uploadMedia: _uploadMedia, |
396 downloadOptions: _downloadOptions); | 396 downloadOptions: _downloadOptions); |
397 return _response.then((data) => new AdministratorWebToken.fromJson(data)); | 397 return _response.then((data) => new AdministratorWebToken.fromJson(data)); |
398 } | 398 } |
399 | 399 |
400 /** | 400 /** |
401 * Deletes the binding between the EMM and enterprise. This is now deprecated; | 401 * Deletes the binding between the EMM and enterprise. This is now deprecated. |
402 * use this to unenroll customers that were previously enrolled with the | 402 * Use this method only to unenroll customers that were previously enrolled |
403 * 'insert' call, then enroll them again with the 'enroll' call. | 403 * with the insert call, then enroll them again with the enroll call. |
404 * | 404 * |
405 * Request parameters: | 405 * Request parameters: |
406 * | 406 * |
407 * [enterpriseId] - The ID of the enterprise. | 407 * [enterpriseId] - The ID of the enterprise. |
408 * | 408 * |
409 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 409 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
410 * error. | 410 * error. |
411 * | 411 * |
412 * If the used [http.Client] completes with an error when making a REST call, | 412 * If the used [http.Client] completes with an error when making a REST call, |
413 * this method will complete with the same error. | 413 * this method will complete with the same error. |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 uploadMedia: _uploadMedia, | 759 uploadMedia: _uploadMedia, |
760 downloadOptions: _downloadOptions); | 760 downloadOptions: _downloadOptions); |
761 return _response.then((data) => new EnterprisesListResponse.fromJson(data)); | 761 return _response.then((data) => new EnterprisesListResponse.fromJson(data)); |
762 } | 762 } |
763 | 763 |
764 /** | 764 /** |
765 * Pulls and returns a notification set for the enterprises associated with | 765 * Pulls and returns a notification set for the enterprises associated with |
766 * the service account authenticated for the request. The notification set may | 766 * the service account authenticated for the request. The notification set may |
767 * be empty if no notification are pending. | 767 * be empty if no notification are pending. |
768 * A notification set returned needs to be acknowledged within 20 seconds by | 768 * A notification set returned needs to be acknowledged within 20 seconds by |
769 * calling Enterprises.AcknowledgeNotificationSet, unless the notification | 769 * calling Enterprises.AcknowledgeNotificationSet, unless the notification set |
770 * set is empty. | 770 * is empty. |
771 * Notifications that are not acknowledged within the 20 seconds will | 771 * Notifications that are not acknowledged within the 20 seconds will |
772 * eventually be included again in the response to another PullNotificationSet | 772 * eventually be included again in the response to another PullNotificationSet |
773 * request, and those that are never acknowledged will ultimately be deleted | 773 * request, and those that are never acknowledged will ultimately be deleted |
774 * according to the Google Cloud Platform Pub/Sub system policy. | 774 * according to the Google Cloud Platform Pub/Sub system policy. |
775 * Multiple requests might be performed concurrently to retrieve | 775 * Multiple requests might be performed concurrently to retrieve |
776 * notifications, in which case the pending notifications (if any) will be | 776 * notifications, in which case the pending notifications (if any) will be |
777 * split among each caller, if any are pending. | 777 * split among each caller, if any are pending. |
778 * If no notifications are present, an empty notification list is returned. | 778 * If no notifications are present, an empty notification list is returned. |
779 * Subsequent requests may return more notifications once they become | 779 * Subsequent requests may return more notifications once they become |
780 * available. | 780 * available. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 "POST", | 859 "POST", |
860 body: _body, | 860 body: _body, |
861 queryParams: _queryParams, | 861 queryParams: _queryParams, |
862 uploadOptions: _uploadOptions, | 862 uploadOptions: _uploadOptions, |
863 uploadMedia: _uploadMedia, | 863 uploadMedia: _uploadMedia, |
864 downloadOptions: _downloadOptions); | 864 downloadOptions: _downloadOptions); |
865 return _response.then((data) => new EnterprisesSendTestPushNotificationRespo
nse.fromJson(data)); | 865 return _response.then((data) => new EnterprisesSendTestPushNotificationRespo
nse.fromJson(data)); |
866 } | 866 } |
867 | 867 |
868 /** | 868 /** |
869 * Set the account that will be used to authenticate to the API as the | 869 * Sets the account that will be used to authenticate to the API as the |
870 * enterprise. | 870 * enterprise. |
871 * | 871 * |
872 * [request] - The metadata request object. | 872 * [request] - The metadata request object. |
873 * | 873 * |
874 * Request parameters: | 874 * Request parameters: |
875 * | 875 * |
876 * [enterpriseId] - The ID of the enterprise. | 876 * [enterpriseId] - The ID of the enterprise. |
877 * | 877 * |
878 * Completes with a [EnterpriseAccount]. | 878 * Completes with a [EnterpriseAccount]. |
879 * | 879 * |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 } | 1002 } |
1003 | 1003 |
1004 | 1004 |
1005 class EntitlementsResourceApi { | 1005 class EntitlementsResourceApi { |
1006 final commons.ApiRequester _requester; | 1006 final commons.ApiRequester _requester; |
1007 | 1007 |
1008 EntitlementsResourceApi(commons.ApiRequester client) : | 1008 EntitlementsResourceApi(commons.ApiRequester client) : |
1009 _requester = client; | 1009 _requester = client; |
1010 | 1010 |
1011 /** | 1011 /** |
1012 * Removes an entitlement to an app for a user and uninstalls it. | 1012 * Removes an entitlement to an app for a user. |
1013 * | 1013 * |
1014 * Request parameters: | 1014 * Request parameters: |
1015 * | 1015 * |
1016 * [enterpriseId] - The ID of the enterprise. | 1016 * [enterpriseId] - The ID of the enterprise. |
1017 * | 1017 * |
1018 * [userId] - The ID of the user. | 1018 * [userId] - The ID of the user. |
1019 * | 1019 * |
1020 * [entitlementId] - The ID of the entitlement (a product ID), e.g. | 1020 * [entitlementId] - The ID of the entitlement (a product ID), e.g. |
1021 * "app:com.google.android.gm". | 1021 * "app:com.google.android.gm". |
1022 * | 1022 * |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 "GET", | 1102 "GET", |
1103 body: _body, | 1103 body: _body, |
1104 queryParams: _queryParams, | 1104 queryParams: _queryParams, |
1105 uploadOptions: _uploadOptions, | 1105 uploadOptions: _uploadOptions, |
1106 uploadMedia: _uploadMedia, | 1106 uploadMedia: _uploadMedia, |
1107 downloadOptions: _downloadOptions); | 1107 downloadOptions: _downloadOptions); |
1108 return _response.then((data) => new Entitlement.fromJson(data)); | 1108 return _response.then((data) => new Entitlement.fromJson(data)); |
1109 } | 1109 } |
1110 | 1110 |
1111 /** | 1111 /** |
1112 * List of all entitlements for the specified user. Only the ID is set. | 1112 * Lists all entitlements for the specified user. Only the ID is set. |
1113 * | 1113 * |
1114 * Request parameters: | 1114 * Request parameters: |
1115 * | 1115 * |
1116 * [enterpriseId] - The ID of the enterprise. | 1116 * [enterpriseId] - The ID of the enterprise. |
1117 * | 1117 * |
1118 * [userId] - The ID of the user. | 1118 * [userId] - The ID of the user. |
1119 * | 1119 * |
1120 * Completes with a [EntitlementsListResponse]. | 1120 * Completes with a [EntitlementsListResponse]. |
1121 * | 1121 * |
1122 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1122 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1591 body: _body, | 1591 body: _body, |
1592 queryParams: _queryParams, | 1592 queryParams: _queryParams, |
1593 uploadOptions: _uploadOptions, | 1593 uploadOptions: _uploadOptions, |
1594 uploadMedia: _uploadMedia, | 1594 uploadMedia: _uploadMedia, |
1595 downloadOptions: _downloadOptions); | 1595 downloadOptions: _downloadOptions); |
1596 return _response.then((data) => new InstallsListResponse.fromJson(data)); | 1596 return _response.then((data) => new InstallsListResponse.fromJson(data)); |
1597 } | 1597 } |
1598 | 1598 |
1599 /** | 1599 /** |
1600 * Requests to install the latest version of an app to a device. If the app is | 1600 * Requests to install the latest version of an app to a device. If the app is |
1601 * already installed then it is updated to the latest version if necessary. | 1601 * already installed, then it is updated to the latest version if necessary. |
1602 * This method supports patch semantics. | 1602 * This method supports patch semantics. |
1603 * | 1603 * |
1604 * [request] - The metadata request object. | 1604 * [request] - The metadata request object. |
1605 * | 1605 * |
1606 * Request parameters: | 1606 * Request parameters: |
1607 * | 1607 * |
1608 * [enterpriseId] - The ID of the enterprise. | 1608 * [enterpriseId] - The ID of the enterprise. |
1609 * | 1609 * |
1610 * [userId] - The ID of the user. | 1610 * [userId] - The ID of the user. |
1611 * | 1611 * |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 body: _body, | 1653 body: _body, |
1654 queryParams: _queryParams, | 1654 queryParams: _queryParams, |
1655 uploadOptions: _uploadOptions, | 1655 uploadOptions: _uploadOptions, |
1656 uploadMedia: _uploadMedia, | 1656 uploadMedia: _uploadMedia, |
1657 downloadOptions: _downloadOptions); | 1657 downloadOptions: _downloadOptions); |
1658 return _response.then((data) => new Install.fromJson(data)); | 1658 return _response.then((data) => new Install.fromJson(data)); |
1659 } | 1659 } |
1660 | 1660 |
1661 /** | 1661 /** |
1662 * Requests to install the latest version of an app to a device. If the app is | 1662 * Requests to install the latest version of an app to a device. If the app is |
1663 * already installed then it is updated to the latest version if necessary. | 1663 * already installed, then it is updated to the latest version if necessary. |
1664 * | 1664 * |
1665 * [request] - The metadata request object. | 1665 * [request] - The metadata request object. |
1666 * | 1666 * |
1667 * Request parameters: | 1667 * Request parameters: |
1668 * | 1668 * |
1669 * [enterpriseId] - The ID of the enterprise. | 1669 * [enterpriseId] - The ID of the enterprise. |
1670 * | 1670 * |
1671 * [userId] - The ID of the user. | 1671 * [userId] - The ID of the user. |
1672 * | 1672 * |
1673 * [deviceId] - The Android ID of the device. | 1673 * [deviceId] - The Android ID of the device. |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 * | 2622 * |
2623 * [maxResults] - Specifies the maximum number of products that can be | 2623 * [maxResults] - Specifies the maximum number of products that can be |
2624 * returned per request. If not specified, uses a default value of 100, which | 2624 * returned per request. If not specified, uses a default value of 100, which |
2625 * is also the maximum retrievable within a single response. | 2625 * is also the maximum retrievable within a single response. |
2626 * | 2626 * |
2627 * [query] - The search query as typed in the Google Play store search box. If | 2627 * [query] - The search query as typed in the Google Play store search box. If |
2628 * omitted, all approved apps will be returned (using the pagination | 2628 * omitted, all approved apps will be returned (using the pagination |
2629 * parameters), including apps that are not available in the store (e.g. | 2629 * parameters), including apps that are not available in the store (e.g. |
2630 * unpublished apps). | 2630 * unpublished apps). |
2631 * | 2631 * |
2632 * [token] - A pagination token is contained in a requests response when | 2632 * [token] - A pagination token is contained in a request''s response when |
2633 * there are more products. The token can be used in a subsequent request to | 2633 * there are more products. The token can be used in a subsequent request to |
2634 * obtain more products, and so forth. This parameter cannot be used in the | 2634 * obtain more products, and so forth. This parameter cannot be used in the |
2635 * initial request. | 2635 * initial request. |
2636 * | 2636 * |
2637 * Completes with a [ProductsListResponse]. | 2637 * Completes with a [ProductsListResponse]. |
2638 * | 2638 * |
2639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2640 * error. | 2640 * error. |
2641 * | 2641 * |
2642 * If the used [http.Client] completes with an error when making a REST call, | 2642 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4476 _json["kind"] = kind; | 4476 _json["kind"] = kind; |
4477 } | 4477 } |
4478 if (token != null) { | 4478 if (token != null) { |
4479 _json["token"] = token; | 4479 _json["token"] = token; |
4480 } | 4480 } |
4481 return _json; | 4481 return _json; |
4482 } | 4482 } |
4483 } | 4483 } |
4484 | 4484 |
4485 /** | 4485 /** |
4486 * A device resource represents a mobile device managed by the EMM and belonging | 4486 * A Devices resource represents a mobile device managed by the EMM and |
4487 * to a specific enterprise user. | 4487 * belonging to a specific enterprise user. |
4488 * | 4488 * |
4489 * This collection cannot be modified via the API; it is automatically populated | 4489 * This collection cannot be modified via the API. It is automatically populated |
4490 * as devices are set up to be managed. | 4490 * as devices are set up to be managed. |
4491 */ | 4491 */ |
4492 class Device { | 4492 class Device { |
4493 /** | 4493 /** |
4494 * The Google Play Services Android ID for the device encoded as a lowercase | 4494 * The Google Play Services Android ID for the device encoded as a lowercase |
4495 * hex string, e.g. "123456789abcdef0". | 4495 * hex string. For example, "123456789abcdef0". |
4496 */ | 4496 */ |
4497 core.String androidId; | 4497 core.String androidId; |
4498 /** | 4498 /** |
4499 * Identifies what kind of resource this is. Value: the fixed string | 4499 * Identifies what kind of resource this is. Value: the fixed string |
4500 * "androidenterprise#device". | 4500 * "androidenterprise#device". |
4501 */ | 4501 */ |
4502 core.String kind; | 4502 core.String kind; |
4503 /** | 4503 /** |
4504 * Identifies the extent to which the device is controlled by a managed Google | 4504 * Identifies the extent to which the device is controlled by a managed Google |
4505 * Play EMM in various deployment configurations. | 4505 * Play EMM in various deployment configurations. |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4789 _json["messageId"] = messageId; | 4789 _json["messageId"] = messageId; |
4790 } | 4790 } |
4791 if (topicName != null) { | 4791 if (topicName != null) { |
4792 _json["topicName"] = topicName; | 4792 _json["topicName"] = topicName; |
4793 } | 4793 } |
4794 return _json; | 4794 return _json; |
4795 } | 4795 } |
4796 } | 4796 } |
4797 | 4797 |
4798 /** | 4798 /** |
4799 * The existence of an entitlement resource means that a user has the right to | 4799 * The presence of an Entitlements resource indicates that a user has the right |
4800 * use a particular app on any of their devices. This might be because the app | 4800 * to use a particular app. Entitlements are user specific, not device specific. |
4801 * is free or because they have been allocated a license to the app from a group | 4801 * This allows a user with an entitlement to an app to install the app on all |
4802 * license purchased by the enterprise. | 4802 * their devices. It's also possible for a user to hold an entitlement to an app |
| 4803 * without installing the app on any device. |
4803 * | 4804 * |
4804 * It should always be true that a user has an app installed on one of their | 4805 * The API can be used to create an entitlement. As an option, you can also use |
4805 * devices only if they have an entitlement to it. So if an entitlement is | 4806 * the API to trigger the installation of an app on all a user's managed devices |
4806 * deleted, the app will be uninstalled from all devices. Similarly if the user | 4807 * at the same time the entitlement is created. |
4807 * installs an app (and is permitted to do so), or the EMM triggers an install | |
4808 * of the app, an entitlement to that app is automatically created. If this is | |
4809 * impossible - e.g. the enterprise has not purchased sufficient licenses - then | |
4810 * installation fails. | |
4811 * | 4808 * |
4812 * Note that entitlements are always user specific, not device specific; a user | 4809 * If the app is free, creating the entitlement also creates a group license for |
4813 * may have an entitlement even though they have not installed the app anywhere. | 4810 * that app. For paid apps, creating the entitlement consumes one license, and |
4814 * Once they have an entitlement they can install the app on multiple devices. | 4811 * that license remains consumed until the entitlement is removed. If the |
| 4812 * enterprise hasn't purchased enough licenses, then no entitlement is created |
| 4813 * and the installation fails. An entitlement is also not created for an app if |
| 4814 * the app requires permissions that the enterprise hasn't accepted. |
4815 * | 4815 * |
4816 * The API can be used to create an entitlement. If the app is a free app, a | 4816 * If an entitlement is deleted, the app may be uninstalled from a user's |
4817 * group license for that app is created. If it's a paid app, creating the | 4817 * device. As a best practice, uninstall the app by calling Installs.delete() |
4818 * entitlement consumes one license; it remains consumed until the entitlement | 4818 * before deleting the entitlement. |
4819 * is removed. Optionally an installation of the app on all the user's managed | |
4820 * devices can be triggered at the time the entitlement is created. An | |
4821 * entitlement cannot be created for an app if the app requires permissions that | |
4822 * the enterprise has not yet accepted. | |
4823 * | 4819 * |
4824 * Entitlements for paid apps that are due to purchases by the user on a | 4820 * Entitlements for apps that a user pays for on an unmanaged profile have |
4825 * non-managed profile will have "userPurchase" as entitlement reason; those | 4821 * "userPurchase" as the entitlement reason. These entitlements cannot be |
4826 * entitlements cannot be removed via the API. | 4822 * removed via the API. |
4827 */ | 4823 */ |
4828 class Entitlement { | 4824 class Entitlement { |
4829 /** | 4825 /** |
4830 * Identifies what kind of resource this is. Value: the fixed string | 4826 * Identifies what kind of resource this is. Value: the fixed string |
4831 * "androidenterprise#entitlement". | 4827 * "androidenterprise#entitlement". |
4832 */ | 4828 */ |
4833 core.String kind; | 4829 core.String kind; |
4834 /** | 4830 /** |
4835 * The ID of the product that the entitlement is for, e.g. | 4831 * The ID of the product that the entitlement is for. For example, |
4836 * "app:com.google.android.gm". | 4832 * "app:com.google.android.gm". |
4837 */ | 4833 */ |
4838 core.String productId; | 4834 core.String productId; |
4839 /** | 4835 /** |
4840 * The reason for the entitlement, e.g. "free" for free apps. This is | 4836 * The reason for the entitlement. For example, "free" for free apps. This |
4841 * temporary, it will be replaced by the acquisition kind field of group | 4837 * property is temporary: it will be replaced by the acquisition kind field of |
4842 * licenses. | 4838 * group licenses. |
4843 */ | 4839 */ |
4844 core.String reason; | 4840 core.String reason; |
4845 | 4841 |
4846 Entitlement(); | 4842 Entitlement(); |
4847 | 4843 |
4848 Entitlement.fromJson(core.Map _json) { | 4844 Entitlement.fromJson(core.Map _json) { |
4849 if (_json.containsKey("kind")) { | 4845 if (_json.containsKey("kind")) { |
4850 kind = _json["kind"]; | 4846 kind = _json["kind"]; |
4851 } | 4847 } |
4852 if (_json.containsKey("productId")) { | 4848 if (_json.containsKey("productId")) { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4925 * number of user entitlements in existence for the product. | 4921 * number of user entitlements in existence for the product. |
4926 * | 4922 * |
4927 * Group license objects are never deleted. If, for example, a free app is added | 4923 * Group license objects are never deleted. If, for example, a free app is added |
4928 * to a collection and then removed, the group license will remain, allowing the | 4924 * to a collection and then removed, the group license will remain, allowing the |
4929 * enterprise admin to keep track of any remaining entitlements. An enterprise | 4925 * enterprise admin to keep track of any remaining entitlements. An enterprise |
4930 * admin may indicate they are no longer interested in the group license by | 4926 * admin may indicate they are no longer interested in the group license by |
4931 * marking it as unapproved in Google Play. | 4927 * marking it as unapproved in Google Play. |
4932 */ | 4928 */ |
4933 class GroupLicense { | 4929 class GroupLicense { |
4934 /** | 4930 /** |
4935 * How this group license was acquired. "bulkPurchase" means that this group | 4931 * How this group license was acquired. "bulkPurchase" means that this |
4936 * license object was created because the enterprise purchased licenses for | 4932 * Grouplicenses resource was created because the enterprise purchased |
4937 * this product; this is "free" otherwise (for free products). | 4933 * licenses for this product; otherwise, the value is "free" (for free |
| 4934 * products). |
4938 */ | 4935 */ |
4939 core.String acquisitionKind; | 4936 core.String acquisitionKind; |
4940 /** | 4937 /** |
4941 * Whether the product to which this group license relates is currently | 4938 * Whether the product to which this group license relates is currently |
4942 * approved by the enterprise, as either "approved" or "unapproved". Products | 4939 * approved by the enterprise. Products are approved when a group license is |
4943 * are approved when a group license is first created, but this approval may | 4940 * first created, but this approval may be revoked by an enterprise admin via |
4944 * be revoked by an enterprise admin via Google Play. Unapproved products will | 4941 * Google Play. Unapproved products will not be visible to end users in |
4945 * not be visible to end users in collections and new entitlements to them | 4942 * collections, and new entitlements to them should not normally be created. |
4946 * should not normally be created. | |
4947 */ | 4943 */ |
4948 core.String approval; | 4944 core.String approval; |
4949 /** | 4945 /** |
4950 * Identifies what kind of resource this is. Value: the fixed string | 4946 * Identifies what kind of resource this is. Value: the fixed string |
4951 * "androidenterprise#groupLicense". | 4947 * "androidenterprise#groupLicense". |
4952 */ | 4948 */ |
4953 core.String kind; | 4949 core.String kind; |
4954 /** | 4950 /** |
4955 * The total number of provisioned licenses for this product. Returned by read | 4951 * The total number of provisioned licenses for this product. Returned by read |
4956 * operations, but ignored in write operations. | 4952 * operations, but ignored in write operations. |
4957 */ | 4953 */ |
4958 core.int numProvisioned; | 4954 core.int numProvisioned; |
4959 /** | 4955 /** |
4960 * The number of purchased licenses (possibly in multiple purchases). If this | 4956 * The number of purchased licenses (possibly in multiple purchases). If this |
4961 * field is omitted then there is no limit on the number of licenses that can | 4957 * field is omitted, then there is no limit on the number of licenses that can |
4962 * be provisioned (e.g. if the acquisition kind is "free"). | 4958 * be provisioned (for example, if the acquisition kind is "free"). |
4963 */ | 4959 */ |
4964 core.int numPurchased; | 4960 core.int numPurchased; |
4965 /** | 4961 /** |
4966 * The ID of the product that the license is for, e.g. | 4962 * The ID of the product that the license is for. For example, |
4967 * "app:com.google.android.gm". | 4963 * "app:com.google.android.gm". |
4968 */ | 4964 */ |
4969 core.String productId; | 4965 core.String productId; |
4970 | 4966 |
4971 GroupLicense(); | 4967 GroupLicense(); |
4972 | 4968 |
4973 GroupLicense.fromJson(core.Map _json) { | 4969 GroupLicense.fromJson(core.Map _json) { |
4974 if (_json.containsKey("acquisitionKind")) { | 4970 if (_json.containsKey("acquisitionKind")) { |
4975 acquisitionKind = _json["acquisitionKind"]; | 4971 acquisitionKind = _json["acquisitionKind"]; |
4976 } | 4972 } |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5075 _json["groupLicense"] = groupLicense.map((value) => (value).toJson()).toLi
st(); | 5071 _json["groupLicense"] = groupLicense.map((value) => (value).toJson()).toLi
st(); |
5076 } | 5072 } |
5077 if (kind != null) { | 5073 if (kind != null) { |
5078 _json["kind"] = kind; | 5074 _json["kind"] = kind; |
5079 } | 5075 } |
5080 return _json; | 5076 return _json; |
5081 } | 5077 } |
5082 } | 5078 } |
5083 | 5079 |
5084 /** | 5080 /** |
5085 * The existence of an install resource indicates that an app is installed on a | 5081 * The existence of an Installs resource indicates that an app is installed on a |
5086 * particular device (or that an install is pending). | 5082 * particular device (or that an install is pending). |
5087 * | 5083 * |
5088 * The API can be used to create an install resource using the update method. | 5084 * The API can be used to create an install resource using the update method. |
5089 * This triggers the actual install of the app on the device. If the user does | 5085 * This triggers the actual install of the app on the device. If the user does |
5090 * not already have an entitlement for the app then an attempt is made to create | 5086 * not already have an entitlement for the app, then an attempt is made to |
5091 * one. If this fails (e.g. because the app is not free and there is no | 5087 * create one. If this fails (for example, because the app is not free and there |
5092 * available license) then the creation of the install fails. | 5088 * is no available license), then the creation of the install fails. |
5093 * | 5089 * |
5094 * The API can also be used to update an installed app. If the update method is | 5090 * The API can also be used to update an installed app. If the update method is |
5095 * used on an existing install then the app will be updated to the latest | 5091 * used on an existing install, then the app will be updated to the latest |
5096 * available version. | 5092 * available version. |
5097 * | 5093 * |
5098 * Note that it is not possible to force the installation of a specific version | 5094 * Note that it is not possible to force the installation of a specific version |
5099 * of an app; the version code is read-only. | 5095 * of an app: the version code is read-only. |
5100 * | 5096 * |
5101 * If a user installs an app themselves (as permitted by the enterprise), then | 5097 * If a user installs an app themselves (as permitted by the enterprise), then |
5102 * again an install resource and possibly an entitlement resource are | 5098 * again an install resource and possibly an entitlement resource are |
5103 * automatically created. | 5099 * automatically created. |
5104 * | 5100 * |
5105 * The API can also be used to delete an install resource, which triggers the | 5101 * The API can also be used to delete an install resource, which triggers the |
5106 * removal of the app from the device. Note that deleting an install does not | 5102 * removal of the app from the device. Note that deleting an install does not |
5107 * automatically remove the corresponding entitlement, even if there are no | 5103 * automatically remove the corresponding entitlement, even if there are no |
5108 * remaining installs. The install resource will also be deleted if the user | 5104 * remaining installs. The install resource will also be deleted if the user |
5109 * uninstalls the app themselves. | 5105 * uninstalls the app themselves. |
5110 */ | 5106 */ |
5111 class Install { | 5107 class Install { |
5112 /** | 5108 /** |
5113 * Install state. The state "installPending" means that an install request has | 5109 * Install state. The state "installPending" means that an install request has |
5114 * recently been made and download to the device is in progress. The state | 5110 * recently been made and download to the device is in progress. The state |
5115 * "installed" means that the app has been installed. This field is read-only. | 5111 * "installed" means that the app has been installed. This field is read-only. |
5116 */ | 5112 */ |
5117 core.String installState; | 5113 core.String installState; |
5118 /** | 5114 /** |
5119 * Identifies what kind of resource this is. Value: the fixed string | 5115 * Identifies what kind of resource this is. Value: the fixed string |
5120 * "androidenterprise#install". | 5116 * "androidenterprise#install". |
5121 */ | 5117 */ |
5122 core.String kind; | 5118 core.String kind; |
5123 /** | 5119 /** |
5124 * The ID of the product that the install is for, e.g. | 5120 * The ID of the product that the install is for. For example, |
5125 * "app:com.google.android.gm". | 5121 * "app:com.google.android.gm". |
5126 */ | 5122 */ |
5127 core.String productId; | 5123 core.String productId; |
5128 /** | 5124 /** |
5129 * The version of the installed product. Guaranteed to be set only if the | 5125 * The version of the installed product. Guaranteed to be set only if the |
5130 * install state is "installed". | 5126 * install state is "installed". |
5131 */ | 5127 */ |
5132 core.int versionCode; | 5128 core.int versionCode; |
5133 | 5129 |
5134 Install(); | 5130 Install(); |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5518 } | 5514 } |
5519 return _json; | 5515 return _json; |
5520 } | 5516 } |
5521 } | 5517 } |
5522 | 5518 |
5523 /** An event generated when a new device is ready to be managed. */ | 5519 /** An event generated when a new device is ready to be managed. */ |
5524 class NewDeviceEvent { | 5520 class NewDeviceEvent { |
5525 /** The Android ID of the device. This field will always be present. */ | 5521 /** The Android ID of the device. This field will always be present. */ |
5526 core.String deviceId; | 5522 core.String deviceId; |
5527 /** | 5523 /** |
5528 * Identifies the extent to which the device is controlled by an Android for | 5524 * Identifies the extent to which the device is controlled by an Android EMM |
5529 * Work EMM in various deployment configurations. | 5525 * in various deployment configurations. |
5530 * | 5526 * |
5531 * Possible values include: | 5527 * Possible values include: |
5532 * - "managedDevice", a device that has the EMM's device policy controller | 5528 * - "managedDevice", a device where the DPC is set as device owner, |
5533 * (DPC) as the device owner, | 5529 * - "managedProfile", a device where the DPC is set as profile owner. |
5534 * - "managedProfile", a device that has a work profile managed by the DPC | |
5535 * (DPC is profile owner) in addition to a separate, personal profile that is | |
5536 * unavailable to the DPC, | |
5537 */ | 5530 */ |
5538 core.String managementType; | 5531 core.String managementType; |
5539 /** The ID of the user. This field will always be present. */ | 5532 /** The ID of the user. This field will always be present. */ |
5540 core.String userId; | 5533 core.String userId; |
5541 | 5534 |
5542 NewDeviceEvent(); | 5535 NewDeviceEvent(); |
5543 | 5536 |
5544 NewDeviceEvent.fromJson(core.Map _json) { | 5537 NewDeviceEvent.fromJson(core.Map _json) { |
5545 if (_json.containsKey("deviceId")) { | 5538 if (_json.containsKey("deviceId")) { |
5546 deviceId = _json["deviceId"]; | 5539 deviceId = _json["deviceId"]; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5785 _json["startIndex"] = startIndex; | 5778 _json["startIndex"] = startIndex; |
5786 } | 5779 } |
5787 if (totalResults != null) { | 5780 if (totalResults != null) { |
5788 _json["totalResults"] = totalResults; | 5781 _json["totalResults"] = totalResults; |
5789 } | 5782 } |
5790 return _json; | 5783 return _json; |
5791 } | 5784 } |
5792 } | 5785 } |
5793 | 5786 |
5794 /** | 5787 /** |
5795 * A permission represents some extra capability, to be granted to an Android | 5788 * A Permissions resource represents some extra capability, to be granted to an |
5796 * app, which requires explicit consent. An enterprise admin must consent to | 5789 * Android app, which requires explicit consent. An enterprise admin must |
5797 * these permissions on behalf of their users before an entitlement for the app | 5790 * consent to these permissions on behalf of their users before an entitlement |
5798 * can be created. | 5791 * for the app can be created. |
5799 * | 5792 * |
5800 * The permissions collection is read-only. The information provided for each | 5793 * The permissions collection is read-only. The information provided for each |
5801 * permission (localized name and description) is intended to be used in the EMM | 5794 * permission (localized name and description) is intended to be used in the MDM |
5802 * user interface when obtaining consent from the enterprise. | 5795 * user interface when obtaining consent from the enterprise. |
5803 */ | 5796 */ |
5804 class Permission { | 5797 class Permission { |
5805 /** | 5798 /** |
5806 * A longer description of the permissions giving more details of what it | 5799 * A longer description of the Permissions resource, giving more details of |
5807 * affects. | 5800 * what it affects. |
5808 */ | 5801 */ |
5809 core.String description; | 5802 core.String description; |
5810 /** | 5803 /** |
5811 * Identifies what kind of resource this is. Value: the fixed string | 5804 * Identifies what kind of resource this is. Value: the fixed string |
5812 * "androidenterprise#permission". | 5805 * "androidenterprise#permission". |
5813 */ | 5806 */ |
5814 core.String kind; | 5807 core.String kind; |
5815 /** The name of the permission. */ | 5808 /** The name of the permission. */ |
5816 core.String name; | 5809 core.String name; |
5817 /** An opaque string uniquely identifying the permission. */ | 5810 /** An opaque string uniquely identifying the permission. */ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5861 * The information provided for each product (localized name, icon, link to the | 5854 * The information provided for each product (localized name, icon, link to the |
5862 * full Google Play details page) is intended to allow a basic representation of | 5855 * full Google Play details page) is intended to allow a basic representation of |
5863 * the product within an EMM user interface. | 5856 * the product within an EMM user interface. |
5864 */ | 5857 */ |
5865 class Product { | 5858 class Product { |
5866 /** | 5859 /** |
5867 * App versions currently available for this product. The returned list | 5860 * App versions currently available for this product. The returned list |
5868 * contains only public versions. Alpha and beta versions are not included. | 5861 * contains only public versions. Alpha and beta versions are not included. |
5869 */ | 5862 */ |
5870 core.List<AppVersion> appVersion; | 5863 core.List<AppVersion> appVersion; |
5871 /** The name of the author of the product (e.g. the app developer). */ | 5864 /** |
| 5865 * The name of the author of the product (for example, the app developer). |
| 5866 */ |
5872 core.String authorName; | 5867 core.String authorName; |
5873 /** A link to the (consumer) Google Play details page for the product. */ | 5868 /** A link to the (consumer) Google Play details page for the product. */ |
5874 core.String detailsUrl; | 5869 core.String detailsUrl; |
5875 /** | 5870 /** |
5876 * How and to whom the package is made available. The value publicGoogleHosted | 5871 * How and to whom the package is made available. The value publicGoogleHosted |
5877 * means that the package is available through the Play store and not | 5872 * means that the package is available through the Play store and not |
5878 * restricted to a specific enterprise. The value privateGoogleHosted means | 5873 * restricted to a specific enterprise. The value privateGoogleHosted means |
5879 * that the package is a private app (restricted to an enterprise) but hosted | 5874 * that the package is a private app (restricted to an enterprise) but hosted |
5880 * by Google. The value privateSelfHosted means that the package is a private | 5875 * by Google. The value privateSelfHosted means that the package is a private |
5881 * app (restricted to an enterprise) and is privately hosted. | 5876 * app (restricted to an enterprise) and is privately hosted. |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6982 var _json = new core.Map(); | 6977 var _json = new core.Map(); |
6983 if (kind != null) { | 6978 if (kind != null) { |
6984 _json["kind"] = kind; | 6979 _json["kind"] = kind; |
6985 } | 6980 } |
6986 if (user != null) { | 6981 if (user != null) { |
6987 _json["user"] = user.map((value) => (value).toJson()).toList(); | 6982 _json["user"] = user.map((value) => (value).toJson()).toList(); |
6988 } | 6983 } |
6989 return _json; | 6984 return _json; |
6990 } | 6985 } |
6991 } | 6986 } |
OLD | NEW |