Debian Codegraph @

docs/dyn/androidenterprise_v1.enterprises.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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
75 <h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.enterprises.html">enterprises</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#acknowledgeNotificationSet">acknowledgeNotificationSet(notificationSetId=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#completeSignup">completeSignup(completionToken=None, enterpriseToken=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.</p>
86 <p class="toc_element">
87 <code><a href="#createWebToken">createWebToken(enterpriseId, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the JavaScript API documentation for further information.</p>
89 <p class="toc_element">
90 <code><a href="#enroll">enroll(token, body=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Enrolls an enterprise with the calling EMM.</p>
92 <p class="toc_element">
93 <code><a href="#generateEnterpriseUpgradeUrl">generateEnterpriseUpgradeUrl(enterpriseId, adminEmail=None, allowedDomains=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. See the guide to upgrading an enterprise for more details.</p>
95 <p class="toc_element">
96 <code><a href="#generateSignupUrl">generateSignupUrl(adminEmail=None, allowedDomains=None, callbackUrl=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Generates a sign-up URL.</p>
98 <p class="toc_element">
99 <code><a href="#get">get(enterpriseId, x__xgafv=None)</a></code></p>
100 <p class="firstline">Retrieves the name and domain of an enterprise.</p>
101 <p class="toc_element">
102 <code><a href="#getServiceAccount">getServiceAccount(enterpriseId, keyType=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource. *Note:* After you create a key, you might need to wait for 60 seconds or more before you perform another operation with the key. If you try to perform an operation with the key immediately after you create the key, and you receive an error, you can retry the request with exponential backoff .</p>
104 <p class="toc_element">
105 <code><a href="#getStoreLayout">getStoreLayout(enterpriseId, x__xgafv=None)</a></code></p>
106 <p class="firstline">Returns the store layout for the enterprise. If the store layout has not been set, returns "basic" as the store layout type and no homepage.</p>
107 <p class="toc_element">
108 <code><a href="#list">list(domain, x__xgafv=None)</a></code></p>
109 <p class="firstline">Looks up an enterprise by domain name. This is only supported for enterprises created via the Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the Enterprises.generateSignupUrl call.</p>
110 <p class="toc_element">
111 <code><a href="#pullNotificationSet">pullNotificationSet(requestMode=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.</p>
113 <p class="toc_element">
114 <code><a href="#sendTestPushNotification">sendTestPushNotification(enterpriseId, x__xgafv=None)</a></code></p>
115 <p class="firstline">Sends a test notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.</p>
116 <p class="toc_element">
117 <code><a href="#setAccount">setAccount(enterpriseId, body=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Sets the account that will be used to authenticate to the API as the enterprise.</p>
119 <p class="toc_element">
120 <code><a href="#setStoreLayout">setStoreLayout(enterpriseId, body=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Sets the store layout for the enterprise. By default, storeLayoutType is set to "basic" and the basic store layout is enabled. The basic layout only contains apps approved by the admin, and that have been added to the available product set for a user (using the setAvailableProductSet call). Apps on the page are sorted in order of their product ID value. If you create a custom store layout (by setting storeLayoutType = "custom" and setting a homepage), the basic store layout is disabled.</p>
122 <p class="toc_element">
123 <code><a href="#unenroll">unenroll(enterpriseId, x__xgafv=None)</a></code></p>
124 <p class="firstline">Unenrolls an enterprise from the calling EMM.</p>
125 <h3>Method Details</h3>
126 <div class="method">
127 <code class="details" id="acknowledgeNotificationSet">acknowledgeNotificationSet(notificationSetId=None, x__xgafv=None)</code>
128 <pre>Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.
129
130 Args:
131 notificationSetId: string, The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided.
132 x__xgafv: string, V1 error format.
133 Allowed values
134 1 - v1 error format
135 2 - v2 error format
136 </pre>
137 </div>
138
139 <div class="method">
140 <code class="details" id="close">close()</code>
141 <pre>Close httplib2 connections.</pre>
142 </div>
143
144 <div class="method">
145 <code class="details" id="completeSignup">completeSignup(completionToken=None, enterpriseToken=None, x__xgafv=None)</code>
146 <pre>Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.
147
148 Args:
149 completionToken: string, The Completion token initially returned by GenerateSignupUrl.
150 enterpriseToken: string, The Enterprise token appended to the Callback URL.
151 x__xgafv: string, V1 error format.
152 Allowed values
153 1 - v1 error format
154 2 - v2 error format
155
156 Returns:
157 An object of the form:
158
159 { # An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.
160 &quot;administrator&quot;: [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow.
161 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store.
162 &quot;email&quot;: &quot;A String&quot;, # The admin&#x27;s email address.
163 },
164 ],
165 &quot;enterpriseType&quot;: &quot;A String&quot;, # The type of the enterprise.
166 &quot;googleAuthenticationSettings&quot;: { # Contains settings for Google-provided user authentication. # Output only. Settings for Google-provided user authentication.
167 &quot;dedicatedDevicesAllowed&quot;: &quot;A String&quot;, # Whether dedicated devices are allowed.
168 &quot;googleAuthenticationRequired&quot;: &quot;A String&quot;, # Whether Google authentication is required.
169 },
170 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the enterprise.
171 &quot;managedGoogleDomainType&quot;: &quot;A String&quot;, # The type of managed Google domain
172 &quot;name&quot;: &quot;A String&quot;, # The name of the enterprise, for example, &quot;Example, Inc&quot;.
173 &quot;primaryDomain&quot;: &quot;A String&quot;, # The enterprise&#x27;s primary domain, such as &quot;example.com&quot;.
174 }</pre>
175 </div>
176
177 <div class="method">
178 <code class="details" id="createWebToken">createWebToken(enterpriseId, body=None, x__xgafv=None)</code>
179 <pre>Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the JavaScript API documentation for further information.
180
181 Args:
182 enterpriseId: string, The ID of the enterprise. (required)
183 body: object, The request body.
184 The object takes the form of:
185
186 { # Specification for a token used to generate iframes. The token specifies what data the admin is allowed to modify and the URI the iframe is allowed to communiate with.
187 &quot;managedConfigurations&quot;: { # Options for displaying the Managed Configuration page.
188 &quot;enabled&quot;: True or False, # Whether the Managed Configuration page is displayed. Default is true.
189 },
190 &quot;parent&quot;: &quot;A String&quot;, # The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https. Use whitespaces to separate multiple parent URIs.
191 &quot;permission&quot;: [ # Deprecated. Use PlaySearch.approveApps.
192 &quot;A String&quot;,
193 ],
194 &quot;playSearch&quot;: { # Options for displaying the managed Play Search apps page.
195 &quot;approveApps&quot;: True or False, # Allow access to the iframe in approve mode. Default is false.
196 &quot;enabled&quot;: True or False, # Whether the managed Play Search apps page is displayed. Default is true.
197 },
198 &quot;privateApps&quot;: { # Options for displaying the Private Apps page.
199 &quot;enabled&quot;: True or False, # Whether the Private Apps page is displayed. Default is true.
200 },
201 &quot;storeBuilder&quot;: { # Options for displaying the Organize apps page.
202 &quot;enabled&quot;: True or False, # Whether the Organize apps page is displayed. Default is true.
203 },
204 &quot;webApps&quot;: { # Options for displaying the Web Apps page.
205 &quot;enabled&quot;: True or False, # Whether the Web Apps page is displayed. Default is true.
206 },
207 &quot;zeroTouch&quot;: { # Options for displaying the Zero Touch page.
208 &quot;enabled&quot;: True or False, # Whether zero-touch embedded UI is usable with this token. If enabled, the admin can link zero-touch customers to this enterprise.
209 },
210 }
211
212 x__xgafv: string, V1 error format.
213 Allowed values
214 1 - v1 error format
215 2 - v2 error format
216
217 Returns:
218 An object of the form:
219
220 { # A token authorizing an admin to access an iframe.
221 &quot;token&quot;: &quot;A String&quot;, # An opaque token to be passed to the Play front-end to generate an iframe.
222 }</pre>
223 </div>
224
225 <div class="method">
226 <code class="details" id="enroll">enroll(token, body=None, x__xgafv=None)</code>
227 <pre>Enrolls an enterprise with the calling EMM.
228
229 Args:
230 token: string, Required. The token provided by the enterprise to register the EMM. (required)
231 body: object, The request body.
232 The object takes the form of:
233
234 { # An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.
235 &quot;administrator&quot;: [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow.
236 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store.
237 &quot;email&quot;: &quot;A String&quot;, # The admin&#x27;s email address.
238 },
239 ],
240 &quot;enterpriseType&quot;: &quot;A String&quot;, # The type of the enterprise.
241 &quot;googleAuthenticationSettings&quot;: { # Contains settings for Google-provided user authentication. # Output only. Settings for Google-provided user authentication.
242 &quot;dedicatedDevicesAllowed&quot;: &quot;A String&quot;, # Whether dedicated devices are allowed.
243 &quot;googleAuthenticationRequired&quot;: &quot;A String&quot;, # Whether Google authentication is required.
244 },
245 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the enterprise.
246 &quot;managedGoogleDomainType&quot;: &quot;A String&quot;, # The type of managed Google domain
247 &quot;name&quot;: &quot;A String&quot;, # The name of the enterprise, for example, &quot;Example, Inc&quot;.
248 &quot;primaryDomain&quot;: &quot;A String&quot;, # The enterprise&#x27;s primary domain, such as &quot;example.com&quot;.
249 }
250
251 x__xgafv: string, V1 error format.
252 Allowed values
253 1 - v1 error format
254 2 - v2 error format
255
256 Returns:
257 An object of the form:
258
259 { # An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.
260 &quot;administrator&quot;: [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow.
261 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store.
262 &quot;email&quot;: &quot;A String&quot;, # The admin&#x27;s email address.
263 },
264 ],
265 &quot;enterpriseType&quot;: &quot;A String&quot;, # The type of the enterprise.
266 &quot;googleAuthenticationSettings&quot;: { # Contains settings for Google-provided user authentication. # Output only. Settings for Google-provided user authentication.
267 &quot;dedicatedDevicesAllowed&quot;: &quot;A String&quot;, # Whether dedicated devices are allowed.
268 &quot;googleAuthenticationRequired&quot;: &quot;A String&quot;, # Whether Google authentication is required.
269 },
270 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the enterprise.
271 &quot;managedGoogleDomainType&quot;: &quot;A String&quot;, # The type of managed Google domain
272 &quot;name&quot;: &quot;A String&quot;, # The name of the enterprise, for example, &quot;Example, Inc&quot;.
273 &quot;primaryDomain&quot;: &quot;A String&quot;, # The enterprise&#x27;s primary domain, such as &quot;example.com&quot;.
274 }</pre>
275 </div>
276
277 <div class="method">
278 <code class="details" id="generateEnterpriseUpgradeUrl">generateEnterpriseUpgradeUrl(enterpriseId, adminEmail=None, allowedDomains=None, x__xgafv=None)</code>
279 <pre>Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. See the guide to upgrading an enterprise for more details.
280
281 Args:
282 enterpriseId: string, Required. The ID of the enterprise. (required)
283 adminEmail: string, Optional. Email address used to prefill the admin field of the enterprise signup form as part of the upgrade process. This value is a hint only and can be altered by the user. Personal email addresses are not allowed. If `allowedDomains` is non-empty then this must belong to one of the `allowedDomains`.
284 allowedDomains: string, Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has `*.` prefixed to the domain name (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are not allowed. (repeated)
285 x__xgafv: string, V1 error format.
286 Allowed values
287 1 - v1 error format
288 2 - v2 error format
289
290 Returns:
291 An object of the form:
292
293 { # Response message for generating a URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain.
294 &quot;url&quot;: &quot;A String&quot;, # A URL for an enterprise admin to upgrade their enterprise. The page can&#x27;t be rendered in an iframe.
295 }</pre>
296 </div>
297
298 <div class="method">
299 <code class="details" id="generateSignupUrl">generateSignupUrl(adminEmail=None, allowedDomains=None, callbackUrl=None, x__xgafv=None)</code>
300 <pre>Generates a sign-up URL.
301
302 Args:
303 adminEmail: string, Optional. Email address used to prefill the admin field of the enterprise signup form. This value is a hint only and can be altered by the user. If `allowedDomains` is non-empty then this must belong to one of the `allowedDomains`.
304 allowedDomains: string, Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has `*.` prefixed to the domain name (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are always allowed, but will result in the creation of a managed Google Play Accounts enterprise. (repeated)
305 callbackUrl: string, The callback URL to which the Admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a single query parameter to this URL named &quot;enterpriseToken&quot; which will contain an opaque token to be used for the CompleteSignup request. Beware that this means that the URL will be parsed, the parameter added and then a new URL formatted, i.e. there may be some minor formatting changes and, more importantly, the URL must be well-formed so that it can be parsed.
306 x__xgafv: string, V1 error format.
307 Allowed values
308 1 - v1 error format
309 2 - v2 error format
310
311 Returns:
312 An object of the form:
313
314 { # A resource returned by the GenerateSignupUrl API, which contains the Signup URL and Completion Token.
315 &quot;completionToken&quot;: &quot;A String&quot;, # An opaque token that will be required, along with the Enterprise Token, for obtaining the enterprise resource from CompleteSignup.
316 &quot;kind&quot;: &quot;A String&quot;, # Deprecated.
317 &quot;url&quot;: &quot;A String&quot;, # A URL under which the Admin can sign up for an enterprise. The page pointed to cannot be rendered in an iframe.
318 }</pre>
319 </div>
320
321 <div class="method">
322 <code class="details" id="get">get(enterpriseId, x__xgafv=None)</code>
323 <pre>Retrieves the name and domain of an enterprise.
324
325 Args:
326 enterpriseId: string, The ID of the enterprise. (required)
327 x__xgafv: string, V1 error format.
328 Allowed values
329 1 - v1 error format
330 2 - v2 error format
331
332 Returns:
333 An object of the form:
334
335 { # An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.
336 &quot;administrator&quot;: [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow.
337 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store.
338 &quot;email&quot;: &quot;A String&quot;, # The admin&#x27;s email address.
339 },
340 ],
341 &quot;enterpriseType&quot;: &quot;A String&quot;, # The type of the enterprise.
342 &quot;googleAuthenticationSettings&quot;: { # Contains settings for Google-provided user authentication. # Output only. Settings for Google-provided user authentication.
343 &quot;dedicatedDevicesAllowed&quot;: &quot;A String&quot;, # Whether dedicated devices are allowed.
344 &quot;googleAuthenticationRequired&quot;: &quot;A String&quot;, # Whether Google authentication is required.
345 },
346 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the enterprise.
347 &quot;managedGoogleDomainType&quot;: &quot;A String&quot;, # The type of managed Google domain
348 &quot;name&quot;: &quot;A String&quot;, # The name of the enterprise, for example, &quot;Example, Inc&quot;.
349 &quot;primaryDomain&quot;: &quot;A String&quot;, # The enterprise&#x27;s primary domain, such as &quot;example.com&quot;.
350 }</pre>
351 </div>
352
353 <div class="method">
354 <code class="details" id="getServiceAccount">getServiceAccount(enterpriseId, keyType=None, x__xgafv=None)</code>
355 <pre>Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource. *Note:* After you create a key, you might need to wait for 60 seconds or more before you perform another operation with the key. If you try to perform an operation with the key immediately after you create the key, and you receive an error, you can retry the request with exponential backoff .
356
357 Args:
358 enterpriseId: string, The ID of the enterprise. (required)
359 keyType: string, The type of credential to return with the service account. Required.
360 Allowed values
361 googleCredentials - Google Credentials File format.
362 pkcs12 - PKCS12 format. The password for the PKCS12 file is &#x27;notasecret&#x27;. For more information, see https://tools.ietf.org/html/rfc7292. The data for keys of this type are base64 encoded according to RFC 4648 Section 4. See http://tools.ietf.org/html/rfc4648#section-4.
363 x__xgafv: string, V1 error format.
364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
367
368 Returns:
369 An object of the form:
370
371 { # A service account identity, including the name and credentials that can be used to authenticate as the service account.
372 &quot;key&quot;: { # *Deprecated:* New integrations cannot use this method and can refer to our new recommendations # Credentials that can be used to authenticate as this ServiceAccount.
373 &quot;data&quot;: &quot;A String&quot;, # The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google. When type is &quot;pkcs12&quot;, the contents of the data field is base64 encoded and has the password &quot;notasecret&quot;.
374 &quot;id&quot;: &quot;A String&quot;, # An opaque, unique identifier for this ServiceAccountKey. Assigned by the server.
375 &quot;publicData&quot;: &quot;A String&quot;, # Public key data for the credentials file. This is an X.509 cert. If you are using the googleCredentials key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file.
376 &quot;type&quot;: &quot;A String&quot;, # The file format of the generated key data.
377 },
378 &quot;name&quot;: &quot;A String&quot;, # The account name of the service account, in the form of an email address. Assigned by the server.
379 }</pre>
380 </div>
381
382 <div class="method">
383 <code class="details" id="getStoreLayout">getStoreLayout(enterpriseId, x__xgafv=None)</code>
384 <pre>Returns the store layout for the enterprise. If the store layout has not been set, returns &quot;basic&quot; as the store layout type and no homepage.
385
386 Args:
387 enterpriseId: string, The ID of the enterprise. (required)
388 x__xgafv: string, V1 error format.
389 Allowed values
390 1 - v1 error format
391 2 - v2 error format
392
393 Returns:
394 An object of the form:
395
396 { # General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened.
397 &quot;homepageId&quot;: &quot;A String&quot;, # The ID of the store page to be used as the homepage. The homepage is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to &quot;basic&quot;.
398 &quot;storeLayoutType&quot;: &quot;A String&quot;, # The store layout type. By default, this value is set to &quot;basic&quot; if the homepageId field is not set, and to &quot;custom&quot; otherwise. If set to &quot;basic&quot;, the layout will consist of all approved apps that have been whitelisted for the user.
399 }</pre>
400 </div>
401
402 <div class="method">
403 <code class="details" id="list">list(domain, x__xgafv=None)</code>
404 <pre>Looks up an enterprise by domain name. This is only supported for enterprises created via the Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the Enterprises.generateSignupUrl call.
405
406 Args:
407 domain: string, Required. The exact primary domain name of the enterprise to look up. (required)
408 x__xgafv: string, V1 error format.
409 Allowed values
410 1 - v1 error format
411 2 - v2 error format
412
413 Returns:
414 An object of the form:
415
416 {
417 &quot;enterprise&quot;: [ # An enterprise.
418 { # An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.
419 &quot;administrator&quot;: [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow.
420 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store.
421 &quot;email&quot;: &quot;A String&quot;, # The admin&#x27;s email address.
422 },
423 ],
424 &quot;enterpriseType&quot;: &quot;A String&quot;, # The type of the enterprise.
425 &quot;googleAuthenticationSettings&quot;: { # Contains settings for Google-provided user authentication. # Output only. Settings for Google-provided user authentication.
426 &quot;dedicatedDevicesAllowed&quot;: &quot;A String&quot;, # Whether dedicated devices are allowed.
427 &quot;googleAuthenticationRequired&quot;: &quot;A String&quot;, # Whether Google authentication is required.
428 },
429 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the enterprise.
430 &quot;managedGoogleDomainType&quot;: &quot;A String&quot;, # The type of managed Google domain
431 &quot;name&quot;: &quot;A String&quot;, # The name of the enterprise, for example, &quot;Example, Inc&quot;.
432 &quot;primaryDomain&quot;: &quot;A String&quot;, # The enterprise&#x27;s primary domain, such as &quot;example.com&quot;.
433 },
434 ],
435 }</pre>
436 </div>
437
438 <div class="method">
439 <code class="details" id="pullNotificationSet">pullNotificationSet(requestMode=None, x__xgafv=None)</code>
440 <pre>Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.
441
442 Args:
443 requestMode: string, The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Specifying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.
444 Allowed values
445 waitForNotifications - Wait until one or more notifications are present.
446 returnImmediately - Returns immediately whether notifications are present or not.
447 x__xgafv: string, V1 error format.
448 Allowed values
449 1 - v1 error format
450 2 - v2 error format
451
452 Returns:
453 An object of the form:
454
455 { # A resource returned by the PullNotificationSet API, which contains a collection of notifications for enterprises associated with the service account authenticated for the request.
456 &quot;notification&quot;: [ # The notifications received, or empty if no notifications are present.
457 { # A notification of one event relating to an enterprise.
458 &quot;appRestrictionsSchemaChangeEvent&quot;: { # An event generated when a new app version is uploaded to Google Play and its app restrictions schema changed. To fetch the app restrictions schema for an app, use Products.getAppRestrictionsSchema on the EMM API. # Notifications about new app restrictions schema changes.
459 &quot;productId&quot;: &quot;A String&quot;, # The id of the product (e.g. &quot;app:com.google.android.gm&quot;) for which the app restriction schema changed. This field will always be present.
460 },
461 &quot;appUpdateEvent&quot;: { # An event generated when a new version of an app is uploaded to Google Play. Notifications are sent for new public versions only: alpha, beta, or canary versions do not generate this event. To fetch up-to-date version history for an app, use Products.Get on the EMM API. # Notifications about app updates.
462 &quot;productId&quot;: &quot;A String&quot;, # The id of the product (e.g. &quot;app:com.google.android.gm&quot;) that was updated. This field will always be present.
463 },
464 &quot;deviceReportUpdateEvent&quot;: { # An event generated when an updated device report is available. # Notifications about device report updates.
465 &quot;deviceId&quot;: &quot;A String&quot;, # The Android ID of the device. This field will always be present.
466 &quot;report&quot;: { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. This field will always be present.
467 &quot;appState&quot;: [ # List of app states set by managed apps on the device. App states are defined by the app&#x27;s developers. This field will always be present.
468 { # List of states set by the app.
469 &quot;keyedAppState&quot;: [ # List of keyed app states. This field will always be present.
470 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
471 &quot;data&quot;: &quot;A String&quot;, # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
472 &quot;key&quot;: &quot;A String&quot;, # Key indicating what the app is providing a state for. The content of the key is set by the app&#x27;s developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
473 &quot;message&quot;: &quot;A String&quot;, # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
474 &quot;severity&quot;: &quot;A String&quot;, # Severity of the app state. This field will always be present.
475 &quot;stateTimestampMillis&quot;: &quot;A String&quot;, # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
476 },
477 ],
478 &quot;packageName&quot;: &quot;A String&quot;, # The package name of the app. This field will always be present.
479 },
480 ],
481 &quot;lastUpdatedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp of the last report update in milliseconds since epoch. This field will always be present.
482 },
483 &quot;userId&quot;: &quot;A String&quot;, # The ID of the user. This field will always be present.
484 },
485 &quot;enterpriseId&quot;: &quot;A String&quot;, # The ID of the enterprise for which the notification is sent. This will always be present.
486 &quot;enterpriseUpgradeEvent&quot;: { # An event generated when an enterprise is upgraded. # Notifications about enterprise upgrade.
487 &quot;upgradeState&quot;: &quot;A String&quot;, # The upgrade state.
488 },
489 &quot;installFailureEvent&quot;: { # An event generated when an app installation failed on a device # Notifications about an app installation failure.
490 &quot;deviceId&quot;: &quot;A String&quot;, # The Android ID of the device. This field will always be present.
491 &quot;failureDetails&quot;: &quot;A String&quot;, # Additional details on the failure if applicable.
492 &quot;failureReason&quot;: &quot;A String&quot;, # The reason for the installation failure. This field will always be present.
493 &quot;productId&quot;: &quot;A String&quot;, # The id of the product (e.g. &quot;app:com.google.android.gm&quot;) for which the install failure event occured. This field will always be present.
494 &quot;userId&quot;: &quot;A String&quot;, # The ID of the user. This field will always be present.
495 },
496 &quot;newDeviceEvent&quot;: { # An event generated when a new device is ready to be managed. # Notifications about new devices.
497 &quot;deviceId&quot;: &quot;A String&quot;, # The Android ID of the device. This field will always be present.
498 &quot;dpcPackageName&quot;: &quot;A String&quot;, # Policy app on the device.
499 &quot;managementType&quot;: &quot;A String&quot;, # Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. Possible values include: - &quot;managedDevice&quot;, a device where the DPC is set as device owner, - &quot;managedProfile&quot;, a device where the DPC is set as profile owner.
500 &quot;userId&quot;: &quot;A String&quot;, # The ID of the user. This field will always be present.
501 },
502 &quot;newPermissionsEvent&quot;: { # An event generated when new permissions are added to an app. # Notifications about new app permissions.
503 &quot;approvedPermissions&quot;: [ # The set of permissions that the enterprise admin has already approved for this application. Use Permissions.Get on the EMM API to retrieve details about these permissions.
504 &quot;A String&quot;,
505 ],
506 &quot;productId&quot;: &quot;A String&quot;, # The id of the product (e.g. &quot;app:com.google.android.gm&quot;) for which new permissions were added. This field will always be present.
507 &quot;requestedPermissions&quot;: [ # The set of permissions that the app is currently requesting. Use Permissions.Get on the EMM API to retrieve details about these permissions.
508 &quot;A String&quot;,
509 ],
510 },
511 &quot;notificationType&quot;: &quot;A String&quot;, # Type of the notification.
512 &quot;productApprovalEvent&quot;: { # An event generated when a product&#x27;s approval status is changed. # Notifications about changes to a product&#x27;s approval status.
513 &quot;approved&quot;: &quot;A String&quot;, # Whether the product was approved or unapproved. This field will always be present.
514 &quot;productId&quot;: &quot;A String&quot;, # The id of the product (e.g. &quot;app:com.google.android.gm&quot;) for which the approval status has changed. This field will always be present.
515 },
516 &quot;productAvailabilityChangeEvent&quot;: { # An event generated whenever a product&#x27;s availability changes. # Notifications about product availability changes.
517 &quot;availabilityStatus&quot;: &quot;A String&quot;, # The new state of the product. This field will always be present.
518 &quot;productId&quot;: &quot;A String&quot;, # The id of the product (e.g. &quot;app:com.google.android.gm&quot;) for which the product availability changed. This field will always be present.
519 },
520 &quot;timestampMillis&quot;: &quot;A String&quot;, # The time when the notification was published in milliseconds since 1970-01-01T00:00:00Z. This will always be present.
521 },
522 ],
523 &quot;notificationSetId&quot;: &quot;A String&quot;, # The notification set ID, required to mark the notification as received with the Enterprises.AcknowledgeNotification API. This will be omitted if no notifications are present.
524 }</pre>
525 </div>
526
527 <div class="method">
528 <code class="details" id="sendTestPushNotification">sendTestPushNotification(enterpriseId, x__xgafv=None)</code>
529 <pre>Sends a test notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.
530
531 Args:
532 enterpriseId: string, The ID of the enterprise. (required)
533 x__xgafv: string, V1 error format.
534 Allowed values
535 1 - v1 error format
536 2 - v2 error format
537
538 Returns:
539 An object of the form:
540
541 {
542 &quot;messageId&quot;: &quot;A String&quot;, # The message ID of the test push notification that was sent.
543 &quot;topicName&quot;: &quot;A String&quot;, # The name of the Cloud Pub/Sub topic to which notifications for this enterprise&#x27;s enrolled account will be sent.
544 }</pre>
545 </div>
546
547 <div class="method">
548 <code class="details" id="setAccount">setAccount(enterpriseId, body=None, x__xgafv=None)</code>
549 <pre>Sets the account that will be used to authenticate to the API as the enterprise.
550
551 Args:
552 enterpriseId: string, The ID of the enterprise. (required)
553 body: object, The request body.
554 The object takes the form of:
555
556 { # A service account that can be used to authenticate as the enterprise to API calls that require such authentication.
557 &quot;accountEmail&quot;: &quot;A String&quot;, # The email address of the service account.
558 }
559
560 x__xgafv: string, V1 error format.
561 Allowed values
562 1 - v1 error format
563 2 - v2 error format
564
565 Returns:
566 An object of the form:
567
568 { # A service account that can be used to authenticate as the enterprise to API calls that require such authentication.
569 &quot;accountEmail&quot;: &quot;A String&quot;, # The email address of the service account.
570 }</pre>
571 </div>
572
573 <div class="method">
574 <code class="details" id="setStoreLayout">setStoreLayout(enterpriseId, body=None, x__xgafv=None)</code>
575 <pre>Sets the store layout for the enterprise. By default, storeLayoutType is set to &quot;basic&quot; and the basic store layout is enabled. The basic layout only contains apps approved by the admin, and that have been added to the available product set for a user (using the setAvailableProductSet call). Apps on the page are sorted in order of their product ID value. If you create a custom store layout (by setting storeLayoutType = &quot;custom&quot; and setting a homepage), the basic store layout is disabled.
576
577 Args:
578 enterpriseId: string, The ID of the enterprise. (required)
579 body: object, The request body.
580 The object takes the form of:
581
582 { # General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened.
583 &quot;homepageId&quot;: &quot;A String&quot;, # The ID of the store page to be used as the homepage. The homepage is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to &quot;basic&quot;.
584 &quot;storeLayoutType&quot;: &quot;A String&quot;, # The store layout type. By default, this value is set to &quot;basic&quot; if the homepageId field is not set, and to &quot;custom&quot; otherwise. If set to &quot;basic&quot;, the layout will consist of all approved apps that have been whitelisted for the user.
585 }
586
587 x__xgafv: string, V1 error format.
588 Allowed values
589 1 - v1 error format
590 2 - v2 error format
591
592 Returns:
593 An object of the form:
594
595 { # General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened.
596 &quot;homepageId&quot;: &quot;A String&quot;, # The ID of the store page to be used as the homepage. The homepage is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to &quot;basic&quot;.
597 &quot;storeLayoutType&quot;: &quot;A String&quot;, # The store layout type. By default, this value is set to &quot;basic&quot; if the homepageId field is not set, and to &quot;custom&quot; otherwise. If set to &quot;basic&quot;, the layout will consist of all approved apps that have been whitelisted for the user.
598 }</pre>
599 </div>
600
601 <div class="method">
602 <code class="details" id="unenroll">unenroll(enterpriseId, x__xgafv=None)</code>
603 <pre>Unenrolls an enterprise from the calling EMM.
604
605 Args:
606 enterpriseId: string, The ID of the enterprise. (required)
607 x__xgafv: string, V1 error format.
608 Allowed values
609 1 - v1 error format
610 2 - v2 error format
611 </pre>
612 </div>
613
614 </body></html>