1<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 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="#generateSignupUrl">generateSignupUrl(callbackUrl=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Generates a sign-up URL.</p> 95<p class="toc_element"> 96 <code><a href="#get">get(enterpriseId, x__xgafv=None)</a></code></p> 97<p class="firstline">Retrieves the name and domain of an enterprise.</p> 98<p class="toc_element"> 99 <code><a href="#getServiceAccount">getServiceAccount(enterpriseId, keyType=None, x__xgafv=None)</a></code></p> 100<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.</p> 101<p class="toc_element"> 102 <code><a href="#getStoreLayout">getStoreLayout(enterpriseId, x__xgafv=None)</a></code></p> 103<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> 104<p class="toc_element"> 105 <code><a href="#list">list(domain, x__xgafv=None)</a></code></p> 106<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> 107<p class="toc_element"> 108 <code><a href="#pullNotificationSet">pullNotificationSet(requestMode=None, x__xgafv=None)</a></code></p> 109<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> 110<p class="toc_element"> 111 <code><a href="#sendTestPushNotification">sendTestPushNotification(enterpriseId, x__xgafv=None)</a></code></p> 112<p class="firstline">Sends a test notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.</p> 113<p class="toc_element"> 114 <code><a href="#setAccount">setAccount(enterpriseId, body=None, x__xgafv=None)</a></code></p> 115<p class="firstline">Sets the account that will be used to authenticate to the API as the enterprise.</p> 116<p class="toc_element"> 117 <code><a href="#setStoreLayout">setStoreLayout(enterpriseId, body=None, x__xgafv=None)</a></code></p> 118<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> 119<p class="toc_element"> 120 <code><a href="#unenroll">unenroll(enterpriseId, x__xgafv=None)</a></code></p> 121<p class="firstline">Unenrolls an enterprise from the calling EMM.</p> 122<h3>Method Details</h3> 123<div class="method"> 124 <code class="details" id="acknowledgeNotificationSet">acknowledgeNotificationSet(notificationSetId=None, x__xgafv=None)</code> 125 <pre>Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications. 126 127Args: 128 notificationSetId: string, The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided. 129 x__xgafv: string, V1 error format. 130 Allowed values 131 1 - v1 error format 132 2 - v2 error format 133</pre> 134</div> 135 136<div class="method"> 137 <code class="details" id="close">close()</code> 138 <pre>Close httplib2 connections.</pre> 139</div> 140 141<div class="method"> 142 <code class="details" id="completeSignup">completeSignup(completionToken=None, enterpriseToken=None, x__xgafv=None)</code> 143 <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. 144 145Args: 146 completionToken: string, The Completion token initially returned by GenerateSignupUrl. 147 enterpriseToken: string, The Enterprise token appended to the Callback URL. 148 x__xgafv: string, V1 error format. 149 Allowed values 150 1 - v1 error format 151 2 - v2 error format 152 153Returns: 154 An object of the form: 155 156 { # 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. 157 "administrator": [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow. 158 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store. 159 "email": "A String", # The admin's email address. 160 }, 161 ], 162 "id": "A String", # The unique ID for the enterprise. 163 "name": "A String", # The name of the enterprise, for example, "Example, Inc". 164 "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". 165}</pre> 166</div> 167 168<div class="method"> 169 <code class="details" id="createWebToken">createWebToken(enterpriseId, body=None, x__xgafv=None)</code> 170 <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. 171 172Args: 173 enterpriseId: string, The ID of the enterprise. (required) 174 body: object, The request body. 175 The object takes the form of: 176 177{ # 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. 178 "managedConfigurations": { # Options for displaying the Managed Configuration page. 179 "enabled": True or False, # Whether the Managed Configuration page is displayed. Default is true. 180 }, 181 "parent": "A String", # 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. 182 "permission": [ # Deprecated. Use PlaySearch.approveApps. 183 "A String", 184 ], 185 "playSearch": { # Options for displaying the managed Play Search apps page. 186 "approveApps": True or False, # Allow access to the iframe in approve mode. Default is false. 187 "enabled": True or False, # Whether the managed Play Search apps page is displayed. Default is true. 188 }, 189 "privateApps": { # Options for displaying the Private Apps page. 190 "enabled": True or False, # Whether the Private Apps page is displayed. Default is true. 191 }, 192 "storeBuilder": { # Options for displaying the Organize apps page. 193 "enabled": True or False, # Whether the Organize apps page is displayed. Default is true. 194 }, 195 "webApps": { # Options for displaying the Web Apps page. 196 "enabled": True or False, # Whether the Web Apps page is displayed. Default is true. 197 }, 198 "zeroTouch": { # Options for displaying the Zero Touch page. 199 "enabled": 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. 200 }, 201} 202 203 x__xgafv: string, V1 error format. 204 Allowed values 205 1 - v1 error format 206 2 - v2 error format 207 208Returns: 209 An object of the form: 210 211 { # A token authorizing an admin to access an iframe. 212 "token": "A String", # An opaque token to be passed to the Play front-end to generate an iframe. 213}</pre> 214</div> 215 216<div class="method"> 217 <code class="details" id="enroll">enroll(token, body=None, x__xgafv=None)</code> 218 <pre>Enrolls an enterprise with the calling EMM. 219 220Args: 221 token: string, Required. The token provided by the enterprise to register the EMM. (required) 222 body: object, The request body. 223 The object takes the form of: 224 225{ # 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. 226 "administrator": [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow. 227 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store. 228 "email": "A String", # The admin's email address. 229 }, 230 ], 231 "id": "A String", # The unique ID for the enterprise. 232 "name": "A String", # The name of the enterprise, for example, "Example, Inc". 233 "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". 234} 235 236 x__xgafv: string, V1 error format. 237 Allowed values 238 1 - v1 error format 239 2 - v2 error format 240 241Returns: 242 An object of the form: 243 244 { # 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. 245 "administrator": [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow. 246 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store. 247 "email": "A String", # The admin's email address. 248 }, 249 ], 250 "id": "A String", # The unique ID for the enterprise. 251 "name": "A String", # The name of the enterprise, for example, "Example, Inc". 252 "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". 253}</pre> 254</div> 255 256<div class="method"> 257 <code class="details" id="generateSignupUrl">generateSignupUrl(callbackUrl=None, x__xgafv=None)</code> 258 <pre>Generates a sign-up URL. 259 260Args: 261 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 "enterpriseToken" 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. 262 x__xgafv: string, V1 error format. 263 Allowed values 264 1 - v1 error format 265 2 - v2 error format 266 267Returns: 268 An object of the form: 269 270 { # A resource returned by the GenerateSignupUrl API, which contains the Signup URL and Completion Token. 271 "completionToken": "A String", # An opaque token that will be required, along with the Enterprise Token, for obtaining the enterprise resource from CompleteSignup. 272 "kind": "A String", # Deprecated. 273 "url": "A String", # A URL under which the Admin can sign up for an enterprise. The page pointed to cannot be rendered in an iframe. 274}</pre> 275</div> 276 277<div class="method"> 278 <code class="details" id="get">get(enterpriseId, x__xgafv=None)</code> 279 <pre>Retrieves the name and domain of an enterprise. 280 281Args: 282 enterpriseId: string, The ID of the enterprise. (required) 283 x__xgafv: string, V1 error format. 284 Allowed values 285 1 - v1 error format 286 2 - v2 error format 287 288Returns: 289 An object of the form: 290 291 { # 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. 292 "administrator": [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow. 293 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store. 294 "email": "A String", # The admin's email address. 295 }, 296 ], 297 "id": "A String", # The unique ID for the enterprise. 298 "name": "A String", # The name of the enterprise, for example, "Example, Inc". 299 "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". 300}</pre> 301</div> 302 303<div class="method"> 304 <code class="details" id="getServiceAccount">getServiceAccount(enterpriseId, keyType=None, x__xgafv=None)</code> 305 <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. 306 307Args: 308 enterpriseId: string, The ID of the enterprise. (required) 309 keyType: string, The type of credential to return with the service account. Required. 310 Allowed values 311 googleCredentials - Google Credentials File format. 312 pkcs12 - PKCS12 format. The password for the PKCS12 file is 'notasecret'. 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. 313 x__xgafv: string, V1 error format. 314 Allowed values 315 1 - v1 error format 316 2 - v2 error format 317 318Returns: 319 An object of the form: 320 321 { # A service account identity, including the name and credentials that can be used to authenticate as the service account. 322 "key": { # Credentials that can be used to authenticate as a service account. # Credentials that can be used to authenticate as this ServiceAccount. 323 "data": "A String", # 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. 324 "id": "A String", # An opaque, unique identifier for this ServiceAccountKey. Assigned by the server. 325 "publicData": "A String", # 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. 326 "type": "A String", # The file format of the generated key data. 327 }, 328 "name": "A String", # The account name of the service account, in the form of an email address. Assigned by the server. 329}</pre> 330</div> 331 332<div class="method"> 333 <code class="details" id="getStoreLayout">getStoreLayout(enterpriseId, x__xgafv=None)</code> 334 <pre>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. 335 336Args: 337 enterpriseId: string, The ID of the enterprise. (required) 338 x__xgafv: string, V1 error format. 339 Allowed values 340 1 - v1 error format 341 2 - v2 error format 342 343Returns: 344 An object of the form: 345 346 { # General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened. 347 "homepageId": "A String", # 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 "basic". 348 "storeLayoutType": "A String", # The store layout type. By default, this value is set to "basic" if the homepageId field is not set, and to "custom" otherwise. If set to "basic", the layout will consist of all approved apps that have been whitelisted for the user. 349}</pre> 350</div> 351 352<div class="method"> 353 <code class="details" id="list">list(domain, x__xgafv=None)</code> 354 <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. 355 356Args: 357 domain: string, Required. The exact primary domain name of the enterprise to look up. (required) 358 x__xgafv: string, V1 error format. 359 Allowed values 360 1 - v1 error format 361 2 - v2 error format 362 363Returns: 364 An object of the form: 365 366 { 367 "enterprise": [ # An enterprise. 368 { # 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. 369 "administrator": [ # Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow. 370 { # This represents an enterprise admin who can manage the enterprise in the managed Google Play store. 371 "email": "A String", # The admin's email address. 372 }, 373 ], 374 "id": "A String", # The unique ID for the enterprise. 375 "name": "A String", # The name of the enterprise, for example, "Example, Inc". 376 "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". 377 }, 378 ], 379}</pre> 380</div> 381 382<div class="method"> 383 <code class="details" id="pullNotificationSet">pullNotificationSet(requestMode=None, x__xgafv=None)</code> 384 <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. 385 386Args: 387 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. Speciying 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. 388 Allowed values 389 waitForNotifications - Wait until one or more notifications are present. 390 returnImmediately - Returns immediately whether notifications are present or not. 391 x__xgafv: string, V1 error format. 392 Allowed values 393 1 - v1 error format 394 2 - v2 error format 395 396Returns: 397 An object of the form: 398 399 { # A resource returned by the PullNotificationSet API, which contains a collection of notifications for enterprises associated with the service account authenticated for the request. 400 "notification": [ # The notifications received, or empty if no notifications are present. 401 { # A notification of one event relating to an enterprise. 402 "appRestrictionsSchemaChangeEvent": { # 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. 403 "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the app restriction schema changed. This field will always be present. 404 }, 405 "appUpdateEvent": { # 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. 406 "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") that was updated. This field will always be present. 407 }, 408 "deviceReportUpdateEvent": { # An event generated when an updated device report is available. # Notifications about device report updates. 409 "deviceId": "A String", # The Android ID of the device. This field will always be present. 410 "report": { # 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. 411 "appState": [ # List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. 412 { # List of states set by the app. 413 "keyedAppState": [ # List of keyed app states. This field will always be present. 414 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. 415 "data": "A String", # 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. 416 "key": "A String", # Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. 417 "message": "A String", # 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. 418 "severity": "A String", # Severity of the app state. This field will always be present. 419 "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. 420 }, 421 ], 422 "packageName": "A String", # The package name of the app. This field will always be present. 423 }, 424 ], 425 "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. 426 }, 427 "userId": "A String", # The ID of the user. This field will always be present. 428 }, 429 "enterpriseId": "A String", # The ID of the enterprise for which the notification is sent. This will always be present. 430 "installFailureEvent": { # An event generated when an app installation failed on a device # Notifications about an app installation failure. 431 "deviceId": "A String", # The Android ID of the device. This field will always be present. 432 "failureDetails": "A String", # Additional details on the failure if applicable. 433 "failureReason": "A String", # The reason for the installation failure. This field will always be present. 434 "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the install failure event occured. This field will always be present. 435 "userId": "A String", # The ID of the user. This field will always be present. 436 }, 437 "newDeviceEvent": { # An event generated when a new device is ready to be managed. # Notifications about new devices. 438 "deviceId": "A String", # The Android ID of the device. This field will always be present. 439 "dpcPackageName": "A String", # Policy app on the device. 440 "managementType": "A String", # Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. Possible values include: - "managedDevice", a device where the DPC is set as device owner, - "managedProfile", a device where the DPC is set as profile owner. 441 "userId": "A String", # The ID of the user. This field will always be present. 442 }, 443 "newPermissionsEvent": { # An event generated when new permissions are added to an app. # Notifications about new app permissions. 444 "approvedPermissions": [ # 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. 445 "A String", 446 ], 447 "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which new permissions were added. This field will always be present. 448 "requestedPermissions": [ # The set of permissions that the app is currently requesting. Use Permissions.Get on the EMM API to retrieve details about these permissions. 449 "A String", 450 ], 451 }, 452 "notificationType": "A String", # Type of the notification. 453 "productApprovalEvent": { # An event generated when a product's approval status is changed. # Notifications about changes to a product's approval status. 454 "approved": "A String", # Whether the product was approved or unapproved. This field will always be present. 455 "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the approval status has changed. This field will always be present. 456 }, 457 "productAvailabilityChangeEvent": { # An event generated whenever a product's availability changes. # Notifications about product availability changes. 458 "availabilityStatus": "A String", # The new state of the product. This field will always be present. 459 "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the product availability changed. This field will always be present. 460 }, 461 "timestampMillis": "A String", # The time when the notification was published in milliseconds since 1970-01-01T00:00:00Z. This will always be present. 462 }, 463 ], 464 "notificationSetId": "A String", # 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. 465}</pre> 466</div> 467 468<div class="method"> 469 <code class="details" id="sendTestPushNotification">sendTestPushNotification(enterpriseId, x__xgafv=None)</code> 470 <pre>Sends a test notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise. 471 472Args: 473 enterpriseId: string, The ID of the enterprise. (required) 474 x__xgafv: string, V1 error format. 475 Allowed values 476 1 - v1 error format 477 2 - v2 error format 478 479Returns: 480 An object of the form: 481 482 { 483 "messageId": "A String", # The message ID of the test push notification that was sent. 484 "topicName": "A String", # The name of the Cloud Pub/Sub topic to which notifications for this enterprise's enrolled account will be sent. 485}</pre> 486</div> 487 488<div class="method"> 489 <code class="details" id="setAccount">setAccount(enterpriseId, body=None, x__xgafv=None)</code> 490 <pre>Sets the account that will be used to authenticate to the API as the enterprise. 491 492Args: 493 enterpriseId: string, The ID of the enterprise. (required) 494 body: object, The request body. 495 The object takes the form of: 496 497{ # A service account that can be used to authenticate as the enterprise to API calls that require such authentication. 498 "accountEmail": "A String", # The email address of the service account. 499} 500 501 x__xgafv: string, V1 error format. 502 Allowed values 503 1 - v1 error format 504 2 - v2 error format 505 506Returns: 507 An object of the form: 508 509 { # A service account that can be used to authenticate as the enterprise to API calls that require such authentication. 510 "accountEmail": "A String", # The email address of the service account. 511}</pre> 512</div> 513 514<div class="method"> 515 <code class="details" id="setStoreLayout">setStoreLayout(enterpriseId, body=None, x__xgafv=None)</code> 516 <pre>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. 517 518Args: 519 enterpriseId: string, The ID of the enterprise. (required) 520 body: object, The request body. 521 The object takes the form of: 522 523{ # General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened. 524 "homepageId": "A String", # 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 "basic". 525 "storeLayoutType": "A String", # The store layout type. By default, this value is set to "basic" if the homepageId field is not set, and to "custom" otherwise. If set to "basic", the layout will consist of all approved apps that have been whitelisted for the user. 526} 527 528 x__xgafv: string, V1 error format. 529 Allowed values 530 1 - v1 error format 531 2 - v2 error format 532 533Returns: 534 An object of the form: 535 536 { # General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened. 537 "homepageId": "A String", # 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 "basic". 538 "storeLayoutType": "A String", # The store layout type. By default, this value is set to "basic" if the homepageId field is not set, and to "custom" otherwise. If set to "basic", the layout will consist of all approved apps that have been whitelisted for the user. 539}</pre> 540</div> 541 542<div class="method"> 543 <code class="details" id="unenroll">unenroll(enterpriseId, x__xgafv=None)</code> 544 <pre>Unenrolls an enterprise from the calling EMM. 545 546Args: 547 enterpriseId: string, The ID of the enterprise. (required) 548 x__xgafv: string, V1 error format. 549 Allowed values 550 1 - v1 error format 551 2 - v2 error format 552</pre> 553</div> 554 555</body></html>