blob: 3a1bfdc9284fb7138673dbf7a848e68eac5df4e5 [file] [log] [blame]
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Nathaniel Manista4f877e52015-06-15 16:44:50 +000075<h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.grouplicenses.html">grouplicenses</a></h1>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(enterpriseId, groupLicenseId)</a></code></p>
79<p class="firstline">Retrieves details of an enterprise's group license for a product.</p>
80<p class="toc_element">
81 <code><a href="#list">list(enterpriseId)</a></code></p>
82<p class="firstline">Retrieves IDs of all products for which the enterprise has a group license.</p>
83<h3>Method Details</h3>
84<div class="method">
85 <code class="details" id="get">get(enterpriseId, groupLicenseId)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -070086 <pre>Retrieves details of an enterprise&#x27;s group license for a product.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000087
88Args:
89 enterpriseId: string, The ID of the enterprise. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -070090 groupLicenseId: string, The ID of the product the group license is for, e.g. &quot;app:com.google.android.gm&quot;. (required)
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000091
92Returns:
93 An object of the form:
94
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095 { # Group license objects allow you to keep track of licenses (called entitlements) for both free and paid apps. For a free app, a group license is created when an enterprise admin first approves the product in Google Play or when the first entitlement for the product is created for a user via the API. For a paid app, a group license object is only created when an enterprise admin purchases the product in Google Play for the first time.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000096 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097 # Use the API to query group licenses. A Grouplicenses resource includes the total number of licenses purchased (paid apps only) and the total number of licenses currently in use. In other words, the total number of Entitlements that exist for the product.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000098 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099 # Only one group license object is created per product and group license objects are never deleted. If a product is unapproved, its group license remains. This allows enterprise admins to keep track of any remaining entitlements for the product.
Bu Sun Kim65020912020-05-20 12:08:20 -0700100 &quot;acquisitionKind&quot;: &quot;A String&quot;, # How this group license was acquired. &quot;bulkPurchase&quot; means that this Grouplicenses resource was created because the enterprise purchased licenses for this product; otherwise, the value is &quot;free&quot; (for free products).
101 &quot;approval&quot;: &quot;A String&quot;, # Whether the product to which this group license relates is currently approved by the enterprise. Products are approved when a group license is first created, but this approval may be revoked by an enterprise admin via Google Play. Unapproved products will not be visible to end users in collections, and new entitlements to them should not normally be created.
102 &quot;kind&quot;: &quot;androidenterprise#groupLicense&quot;,
103 &quot;numProvisioned&quot;: 42, # The total number of provisioned licenses for this product. Returned by read operations, but ignored in write operations.
104 &quot;numPurchased&quot;: 42, # The number of purchased licenses (possibly in multiple purchases). If this field is omitted, then there is no limit on the number of licenses that can be provisioned (for example, if the acquisition kind is &quot;free&quot;).
105 &quot;permissions&quot;: &quot;A String&quot;, # The permission approval status of the product. This field is only set if the product is approved. Possible states are:
106 # - &quot;currentApproved&quot;, the current set of permissions is approved, but additional permissions will require the administrator to reapprove the product (If the product was approved without specifying the approved permissions setting, then this is the default behavior.),
107 # - &quot;needsReapproval&quot;, the product has unapproved permissions. No additional product licenses can be assigned until the product is reapproved,
108 # - &quot;allCurrentAndFutureApproved&quot;, the current permissions are approved and any future permission updates will be automatically approved without administrator review.
109 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the license is for. For example, &quot;app:com.google.android.gm&quot;.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000110 }</pre>
111</div>
112
113<div class="method">
114 <code class="details" id="list">list(enterpriseId)</code>
115 <pre>Retrieves IDs of all products for which the enterprise has a group license.
116
117Args:
118 enterpriseId: string, The ID of the enterprise. (required)
119
120Returns:
121 An object of the form:
122
123 { # The grouplicense resources for the enterprise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;groupLicense&quot;: [ # A group license for a product approved for use in the enterprise.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 { # Group license objects allow you to keep track of licenses (called entitlements) for both free and paid apps. For a free app, a group license is created when an enterprise admin first approves the product in Google Play or when the first entitlement for the product is created for a user via the API. For a paid app, a group license object is only created when an enterprise admin purchases the product in Google Play for the first time.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000126 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 # Use the API to query group licenses. A Grouplicenses resource includes the total number of licenses purchased (paid apps only) and the total number of licenses currently in use. In other words, the total number of Entitlements that exist for the product.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000128 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129 # Only one group license object is created per product and group license objects are never deleted. If a product is unapproved, its group license remains. This allows enterprise admins to keep track of any remaining entitlements for the product.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;acquisitionKind&quot;: &quot;A String&quot;, # How this group license was acquired. &quot;bulkPurchase&quot; means that this Grouplicenses resource was created because the enterprise purchased licenses for this product; otherwise, the value is &quot;free&quot; (for free products).
131 &quot;approval&quot;: &quot;A String&quot;, # Whether the product to which this group license relates is currently approved by the enterprise. Products are approved when a group license is first created, but this approval may be revoked by an enterprise admin via Google Play. Unapproved products will not be visible to end users in collections, and new entitlements to them should not normally be created.
132 &quot;kind&quot;: &quot;androidenterprise#groupLicense&quot;,
133 &quot;numProvisioned&quot;: 42, # The total number of provisioned licenses for this product. Returned by read operations, but ignored in write operations.
134 &quot;numPurchased&quot;: 42, # The number of purchased licenses (possibly in multiple purchases). If this field is omitted, then there is no limit on the number of licenses that can be provisioned (for example, if the acquisition kind is &quot;free&quot;).
135 &quot;permissions&quot;: &quot;A String&quot;, # The permission approval status of the product. This field is only set if the product is approved. Possible states are:
136 # - &quot;currentApproved&quot;, the current set of permissions is approved, but additional permissions will require the administrator to reapprove the product (If the product was approved without specifying the approved permissions setting, then this is the default behavior.),
137 # - &quot;needsReapproval&quot;, the product has unapproved permissions. No additional product licenses can be assigned until the product is reapproved,
138 # - &quot;allCurrentAndFutureApproved&quot;, the current permissions are approved and any future permission updates will be automatically approved without administrator review.
139 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the license is for. For example, &quot;app:com.google.android.gm&quot;.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000140 },
141 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;kind&quot;: &quot;androidenterprise#groupLicensesListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;androidenterprise#groupLicensesListResponse&quot;.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000143 }</pre>
144</div>
145
146</body></html>