Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 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 | |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 75 | <h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.enterprises.html">enterprises</a></h1> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 78 | <code><a href="#acknowledgeNotificationSet">acknowledgeNotificationSet(notificationSetId=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Acknowledges notifications that were received from</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 81 | <code><a href="#completeSignup">completeSignup(completionToken=None, enterpriseToken=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Completes the signup flow, by specifying the Completion token and</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 84 | <code><a href="#createWebToken">createWebToken(enterpriseId, body=None, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Returns a unique token to access an embeddable UI. To generate a</p> |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 86 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 87 | <code><a href="#enroll">enroll(token, body=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 88 | <p class="firstline">Enrolls an enterprise with the calling EMM.</p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 89 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 90 | <code><a href="#generateSignupUrl">generateSignupUrl(callbackUrl=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 91 | <p class="firstline">Generates a sign-up URL.</p> |
| 92 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 93 | <code><a href="#get">get(enterpriseId, x__xgafv=None)</a></code></p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 94 | <p class="firstline">Retrieves the name and domain of an enterprise.</p> |
| 95 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 96 | <code><a href="#getServiceAccount">getServiceAccount(enterpriseId, keyType=None, x__xgafv=None)</a></code></p> |
| 97 | <p class="firstline">Returns a service account and credentials. The service account</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 99 | <code><a href="#getStoreLayout">getStoreLayout(enterpriseId, x__xgafv=None)</a></code></p> |
| 100 | <p class="firstline">Returns the store layout for the enterprise. If the store layout</p> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 101 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 102 | <code><a href="#list">list(domain, x__xgafv=None)</a></code></p> |
| 103 | <p class="firstline">Looks up an enterprise by domain name.</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 104 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 105 | <code><a href="#pullNotificationSet">pullNotificationSet(requestMode=None, x__xgafv=None)</a></code></p> |
| 106 | <p class="firstline">Pulls and returns a notification set for the enterprises associated with</p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 107 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 108 | <code><a href="#sendTestPushNotification">sendTestPushNotification(enterpriseId, x__xgafv=None)</a></code></p> |
| 109 | <p class="firstline">Sends a test notification to validate the EMM integration with</p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 110 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 111 | <code><a href="#setAccount">setAccount(enterpriseId, body=None, x__xgafv=None)</a></code></p> |
| 112 | <p class="firstline">Sets the account that will be used to authenticate to the API as the</p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 113 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 114 | <code><a href="#setStoreLayout">setStoreLayout(enterpriseId, body=None, x__xgafv=None)</a></code></p> |
| 115 | <p class="firstline">Sets the store layout for the enterprise. By default, storeLayoutType</p> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 116 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 117 | <code><a href="#unenroll">unenroll(enterpriseId, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 118 | <p class="firstline">Unenrolls an enterprise from the calling EMM.</p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 119 | <h3>Method Details</h3> |
| 120 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 121 | <code class="details" id="acknowledgeNotificationSet">acknowledgeNotificationSet(notificationSetId=None, x__xgafv=None)</code> |
| 122 | <pre>Acknowledges notifications that were received from |
| 123 | Enterprises.PullNotificationSet to prevent subsequent calls from returning |
| 124 | the same notifications. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 125 | |
| 126 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 127 | notificationSetId: string, The notification set ID as returned by Enterprises.PullNotificationSet. |
| 128 | This must be provided. |
| 129 | x__xgafv: string, V1 error format. |
| 130 | Allowed values |
| 131 | 1 - v1 error format |
| 132 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 133 | </pre> |
| 134 | </div> |
| 135 | |
| 136 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 137 | <code class="details" id="completeSignup">completeSignup(completionToken=None, enterpriseToken=None, x__xgafv=None)</code> |
| 138 | <pre>Completes the signup flow, by specifying the Completion token and |
| 139 | Enterprise token. |
| 140 | This request must not be called multiple times for a given Enterprise |
| 141 | Token. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 142 | |
| 143 | Args: |
| 144 | completionToken: string, The Completion token initially returned by GenerateSignupUrl. |
| 145 | enterpriseToken: string, The Enterprise token appended to the Callback URL. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 146 | x__xgafv: string, V1 error format. |
| 147 | Allowed values |
| 148 | 1 - v1 error format |
| 149 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 150 | |
| 151 | Returns: |
| 152 | An object of the form: |
| 153 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 154 | { # An Enterprises resource represents the binding between an EMM and a |
| 155 | # specific organization. That binding can be instantiated in one of two |
| 156 | # different ways using this API as follows: |
| 157 | # <ul><li>For Google managed domain customers, the process involves using |
| 158 | # <code>Enterprises.enroll</code> and <code>Enterprises.setAccount</code> (in |
| 159 | # conjunction with artifacts obtained from the Admin console and the Google |
| 160 | # API Console) and submitted to the EMM through a more-or-less manual |
| 161 | # process.</li> |
| 162 | # <li>For managed Google Play Accounts customers, the process involves using |
| 163 | # <code>Enterprises.generateSignupUrl</code> and |
| 164 | # <code>Enterprises.completeSignup</code> in conjunction with the managed |
| 165 | # Google Play sign-up UI (Google-provided mechanism) to create the binding |
| 166 | # without manual steps.</li></ul> As an EMM, you can support either or both |
| 167 | # approaches in your EMM console. See <a |
| 168 | # href="/android/work/play/emm-api/create-enterprise">Create an Enterprise</a> |
| 169 | # for details. |
| 170 | "administrator": [ # Admins of the enterprise. This is only supported for enterprises |
| 171 | # created via the EMM-initiated flow. |
| 172 | { # This represents an enterprise admin who can manage the enterprise |
| 173 | # in the managed Google Play store. |
| 174 | "email": "A String", # The admin's email address. |
| 175 | }, |
| 176 | ], |
| 177 | "name": "A String", # The name of the enterprise, for example, "Example, Inc". |
| 178 | "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". |
| 179 | "id": "A String", # The unique ID for the enterprise. |
| 180 | }</pre> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 181 | </div> |
| 182 | |
| 183 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 184 | <code class="details" id="createWebToken">createWebToken(enterpriseId, body=None, x__xgafv=None)</code> |
| 185 | <pre>Returns a unique token to access an embeddable UI. To generate a |
| 186 | web UI, pass the generated token into the managed Google Play javascript |
| 187 | API. Each token may only be used to start one UI session. See the |
| 188 | javascript API documentation for further information. |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 189 | |
| 190 | Args: |
| 191 | enterpriseId: string, The ID of the enterprise. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 192 | body: object, The request body. |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 193 | The object takes the form of: |
| 194 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 195 | { # Specification for a token used to generate iframes. The token specifies |
| 196 | # what data the admin is allowed to modify and the URI the iframe is |
| 197 | # allowed to communiate with. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 198 | "storeBuilder": { # Options for displaying the Organize apps page. |
| 199 | "enabled": True or False, # Whether the Organize apps page is displayed. Default is true. |
| 200 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 201 | "managedConfigurations": { # Options for displaying the Managed Configuration page. |
| 202 | "enabled": True or False, # Whether the Managed Configuration page is displayed. Default is true. |
| 203 | }, |
| 204 | "parent": "A String", # The URI of the parent frame hosting the iframe. To prevent XSS, the iframe |
| 205 | # may not be hosted at other URIs. This URI must be https. |
| 206 | # Use whitespaces to separate multiple parent URIs. |
| 207 | "privateApps": { # Options for displaying the Private Apps page. |
| 208 | "enabled": True or False, # Whether the Private Apps page is displayed. Default is true. |
| 209 | }, |
| 210 | "playSearch": { # Options for displaying the managed Play Search apps page. |
| 211 | "enabled": True or False, # Whether the managed Play Search apps page is displayed. Default is true. |
| 212 | "approveApps": True or False, # Allow access to the iframe in <a |
| 213 | # href="https://developers.google.com/android/work/play/emm-api/managed-play-iframe#render">approve |
| 214 | # mode</a>. Default is false. |
| 215 | }, |
| 216 | "permission": [ # Deprecated. Use <code>PlaySearch.approveApps</code>. |
| 217 | "A String", |
| 218 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 219 | "webApps": { # Options for displaying the Web Apps page. |
| 220 | "enabled": True or False, # Whether the Web Apps page is displayed. Default is true. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 221 | }, |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 222 | } |
| 223 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 224 | x__xgafv: string, V1 error format. |
| 225 | Allowed values |
| 226 | 1 - v1 error format |
| 227 | 2 - v2 error format |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 228 | |
| 229 | Returns: |
| 230 | An object of the form: |
| 231 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 232 | { # A token authorizing an admin to access an iframe. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 233 | "token": "A String", # An opaque token to be passed to the Play front-end to generate an iframe. |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 234 | }</pre> |
| 235 | </div> |
| 236 | |
| 237 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 238 | <code class="details" id="enroll">enroll(token, body=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 239 | <pre>Enrolls an enterprise with the calling EMM. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 240 | |
| 241 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 242 | token: string, Required. The token provided by the enterprise to register the EMM. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 243 | body: object, The request body. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 244 | The object takes the form of: |
| 245 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 246 | { # An Enterprises resource represents the binding between an EMM and a |
| 247 | # specific organization. That binding can be instantiated in one of two |
| 248 | # different ways using this API as follows: |
| 249 | # <ul><li>For Google managed domain customers, the process involves using |
| 250 | # <code>Enterprises.enroll</code> and <code>Enterprises.setAccount</code> (in |
| 251 | # conjunction with artifacts obtained from the Admin console and the Google |
| 252 | # API Console) and submitted to the EMM through a more-or-less manual |
| 253 | # process.</li> |
| 254 | # <li>For managed Google Play Accounts customers, the process involves using |
| 255 | # <code>Enterprises.generateSignupUrl</code> and |
| 256 | # <code>Enterprises.completeSignup</code> in conjunction with the managed |
| 257 | # Google Play sign-up UI (Google-provided mechanism) to create the binding |
| 258 | # without manual steps.</li></ul> As an EMM, you can support either or both |
| 259 | # approaches in your EMM console. See <a |
| 260 | # href="/android/work/play/emm-api/create-enterprise">Create an Enterprise</a> |
| 261 | # for details. |
| 262 | "administrator": [ # Admins of the enterprise. This is only supported for enterprises |
| 263 | # created via the EMM-initiated flow. |
| 264 | { # This represents an enterprise admin who can manage the enterprise |
| 265 | # in the managed Google Play store. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 266 | "email": "A String", # The admin's email address. |
| 267 | }, |
| 268 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 269 | "name": "A String", # The name of the enterprise, for example, "Example, Inc". |
| 270 | "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 271 | "id": "A String", # The unique ID for the enterprise. |
| 272 | } |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 273 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 274 | x__xgafv: string, V1 error format. |
| 275 | Allowed values |
| 276 | 1 - v1 error format |
| 277 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 278 | |
| 279 | Returns: |
| 280 | An object of the form: |
| 281 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 282 | { # An Enterprises resource represents the binding between an EMM and a |
| 283 | # specific organization. That binding can be instantiated in one of two |
| 284 | # different ways using this API as follows: |
| 285 | # <ul><li>For Google managed domain customers, the process involves using |
| 286 | # <code>Enterprises.enroll</code> and <code>Enterprises.setAccount</code> (in |
| 287 | # conjunction with artifacts obtained from the Admin console and the Google |
| 288 | # API Console) and submitted to the EMM through a more-or-less manual |
| 289 | # process.</li> |
| 290 | # <li>For managed Google Play Accounts customers, the process involves using |
| 291 | # <code>Enterprises.generateSignupUrl</code> and |
| 292 | # <code>Enterprises.completeSignup</code> in conjunction with the managed |
| 293 | # Google Play sign-up UI (Google-provided mechanism) to create the binding |
| 294 | # without manual steps.</li></ul> As an EMM, you can support either or both |
| 295 | # approaches in your EMM console. See <a |
| 296 | # href="/android/work/play/emm-api/create-enterprise">Create an Enterprise</a> |
| 297 | # for details. |
| 298 | "administrator": [ # Admins of the enterprise. This is only supported for enterprises |
| 299 | # created via the EMM-initiated flow. |
| 300 | { # This represents an enterprise admin who can manage the enterprise |
| 301 | # in the managed Google Play store. |
| 302 | "email": "A String", # The admin's email address. |
| 303 | }, |
| 304 | ], |
| 305 | "name": "A String", # The name of the enterprise, for example, "Example, Inc". |
| 306 | "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". |
| 307 | "id": "A String", # The unique ID for the enterprise. |
| 308 | }</pre> |
| 309 | </div> |
| 310 | |
| 311 | <div class="method"> |
| 312 | <code class="details" id="generateSignupUrl">generateSignupUrl(callbackUrl=None, x__xgafv=None)</code> |
| 313 | <pre>Generates a sign-up URL. |
| 314 | |
| 315 | Args: |
| 316 | callbackUrl: string, The callback URL to which the Admin will be redirected after successfully |
| 317 | creating an enterprise. Before redirecting there the system will add a |
| 318 | single query parameter to this URL named "enterpriseToken" which will |
| 319 | contain an opaque token to be used for the CompleteSignup request.<br> |
| 320 | Beware that this means that the URL will be parsed, the parameter added |
| 321 | and then a new URL formatted, i.e. there may be some minor formatting |
| 322 | changes and, more importantly, the URL must be well-formed so that it can |
| 323 | be parsed. |
| 324 | x__xgafv: string, V1 error format. |
| 325 | Allowed values |
| 326 | 1 - v1 error format |
| 327 | 2 - v2 error format |
| 328 | |
| 329 | Returns: |
| 330 | An object of the form: |
| 331 | |
| 332 | { # A resource returned by the GenerateSignupUrl API, which contains the |
| 333 | # Signup URL and Completion Token. |
| 334 | "url": "A String", # A URL under which the Admin can sign up for an enterprise. |
| 335 | # The page pointed to cannot be rendered in an iframe. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 336 | "kind": "A String", # Deprecated. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 337 | "completionToken": "A String", # An opaque token that will be required, along with the Enterprise Token, |
| 338 | # for obtaining the enterprise resource from CompleteSignup. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 339 | }</pre> |
| 340 | </div> |
| 341 | |
| 342 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 343 | <code class="details" id="get">get(enterpriseId, x__xgafv=None)</code> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 344 | <pre>Retrieves the name and domain of an enterprise. |
| 345 | |
| 346 | Args: |
| 347 | enterpriseId: string, The ID of the enterprise. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 348 | x__xgafv: string, V1 error format. |
| 349 | Allowed values |
| 350 | 1 - v1 error format |
| 351 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 352 | |
| 353 | Returns: |
| 354 | An object of the form: |
| 355 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 356 | { # An Enterprises resource represents the binding between an EMM and a |
| 357 | # specific organization. That binding can be instantiated in one of two |
| 358 | # different ways using this API as follows: |
| 359 | # <ul><li>For Google managed domain customers, the process involves using |
| 360 | # <code>Enterprises.enroll</code> and <code>Enterprises.setAccount</code> (in |
| 361 | # conjunction with artifacts obtained from the Admin console and the Google |
| 362 | # API Console) and submitted to the EMM through a more-or-less manual |
| 363 | # process.</li> |
| 364 | # <li>For managed Google Play Accounts customers, the process involves using |
| 365 | # <code>Enterprises.generateSignupUrl</code> and |
| 366 | # <code>Enterprises.completeSignup</code> in conjunction with the managed |
| 367 | # Google Play sign-up UI (Google-provided mechanism) to create the binding |
| 368 | # without manual steps.</li></ul> As an EMM, you can support either or both |
| 369 | # approaches in your EMM console. See <a |
| 370 | # href="/android/work/play/emm-api/create-enterprise">Create an Enterprise</a> |
| 371 | # for details. |
| 372 | "administrator": [ # Admins of the enterprise. This is only supported for enterprises |
| 373 | # created via the EMM-initiated flow. |
| 374 | { # This represents an enterprise admin who can manage the enterprise |
| 375 | # in the managed Google Play store. |
| 376 | "email": "A String", # The admin's email address. |
| 377 | }, |
| 378 | ], |
| 379 | "name": "A String", # The name of the enterprise, for example, "Example, Inc". |
| 380 | "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". |
| 381 | "id": "A String", # The unique ID for the enterprise. |
| 382 | }</pre> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 383 | </div> |
| 384 | |
| 385 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 386 | <code class="details" id="getServiceAccount">getServiceAccount(enterpriseId, keyType=None, x__xgafv=None)</code> |
| 387 | <pre>Returns a service account and credentials. The service account |
| 388 | can be bound to the enterprise by calling setAccount. The service account |
| 389 | is unique to this enterprise and EMM, and will be deleted if the enterprise |
| 390 | is unbound. The credentials contain private key data and are not stored |
| 391 | server-side. |
| 392 | <br> <br> |
| 393 | This method can only be called after calling |
| 394 | Enterprises.Enroll or Enterprises.CompleteSignup, and before |
| 395 | Enterprises.SetAccount; at other times it will return an error. |
| 396 | <br> <br> |
| 397 | Subsequent calls after the first will generate a new, unique set of |
| 398 | credentials, and invalidate the previously generated credentials. |
| 399 | <br> <br> |
| 400 | Once the service account is bound to the enterprise, it can be managed |
| 401 | using the serviceAccountKeys resource. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 402 | |
| 403 | Args: |
| 404 | enterpriseId: string, The ID of the enterprise. (required) |
| 405 | keyType: string, The type of credential to return with the service account. Required. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 406 | x__xgafv: string, V1 error format. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 407 | Allowed values |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 408 | 1 - v1 error format |
| 409 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 410 | |
| 411 | Returns: |
| 412 | An object of the form: |
| 413 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 414 | { # A service account identity, including the name and credentials that can be |
| 415 | # used to authenticate as the service account. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 416 | "key": { # Credentials that can be used to authenticate as a service account. # Credentials that can be used to authenticate as this ServiceAccount. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 417 | "data": "A String", # The body of the private key credentials file, in string format. This |
| 418 | # is only populated when the ServiceAccountKey is created, and is not stored |
| 419 | # by Google. |
| 420 | "publicData": "A String", # Public key data for the credentials file. This is an X.509 cert. If you are |
| 421 | # using the <code>googleCredentials</code> key type, this is identical to the |
| 422 | # cert that can be retrieved by using the X.509 cert url inside of the |
| 423 | # credentials file. |
| 424 | "id": "A String", # An opaque, unique identifier for this ServiceAccountKey. |
| 425 | # Assigned by the server. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 426 | "type": "A String", # The file format of the generated key data. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 427 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 428 | "name": "A String", # The account name of the service account, in the form of an email address. |
| 429 | # Assigned by the server. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 430 | }</pre> |
| 431 | </div> |
| 432 | |
| 433 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 434 | <code class="details" id="getStoreLayout">getStoreLayout(enterpriseId, x__xgafv=None)</code> |
| 435 | <pre>Returns the store layout for the enterprise. If the store layout |
| 436 | has not been set, returns "basic" as the store layout type and no |
| 437 | homepage. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 438 | |
| 439 | Args: |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 440 | enterpriseId: string, The ID of the enterprise. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 441 | x__xgafv: string, V1 error format. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 442 | Allowed values |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 443 | 1 - v1 error format |
| 444 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 445 | |
| 446 | Returns: |
| 447 | An object of the form: |
| 448 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 449 | { # General setting for the managed Google Play store layout, |
| 450 | # currently only specifying the page to display the first time |
| 451 | # the store is opened. |
| 452 | "homepageId": "A String", # The ID of the store page to be used as the homepage. The homepage is the |
| 453 | # first page shown in the managed Google Play Store. |
| 454 | # |
| 455 | # Not specifying a homepage is equivalent to setting the store layout |
| 456 | # type to "basic". |
| 457 | "storeLayoutType": "A String", # The store layout type. By default, this value is set to "basic" |
| 458 | # if the homepageId field is not set, and to "custom" otherwise. |
| 459 | # If set to "basic", the layout will consist of all approved apps that |
| 460 | # have been whitelisted for the user. |
| 461 | }</pre> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 462 | </div> |
| 463 | |
| 464 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 465 | <code class="details" id="list">list(domain, x__xgafv=None)</code> |
| 466 | <pre>Looks up an enterprise by domain name. |
| 467 | This is only supported for enterprises created via the Google-initiated |
| 468 | creation flow. Lookup of the id is not needed for enterprises created via |
| 469 | the EMM-initiated flow since the EMM learns the enterprise ID in the |
| 470 | callback specified in the Enterprises.generateSignupUrl call. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 471 | |
| 472 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 473 | domain: string, Required. The exact primary domain name of the enterprise to look up. (required) |
| 474 | x__xgafv: string, V1 error format. |
| 475 | Allowed values |
| 476 | 1 - v1 error format |
| 477 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 478 | |
| 479 | Returns: |
| 480 | An object of the form: |
| 481 | |
| 482 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 483 | "enterprise": [ # An enterprise. |
| 484 | { # An Enterprises resource represents the binding between an EMM and a |
| 485 | # specific organization. That binding can be instantiated in one of two |
| 486 | # different ways using this API as follows: |
| 487 | # <ul><li>For Google managed domain customers, the process involves using |
| 488 | # <code>Enterprises.enroll</code> and <code>Enterprises.setAccount</code> (in |
| 489 | # conjunction with artifacts obtained from the Admin console and the Google |
| 490 | # API Console) and submitted to the EMM through a more-or-less manual |
| 491 | # process.</li> |
| 492 | # <li>For managed Google Play Accounts customers, the process involves using |
| 493 | # <code>Enterprises.generateSignupUrl</code> and |
| 494 | # <code>Enterprises.completeSignup</code> in conjunction with the managed |
| 495 | # Google Play sign-up UI (Google-provided mechanism) to create the binding |
| 496 | # without manual steps.</li></ul> As an EMM, you can support either or both |
| 497 | # approaches in your EMM console. See <a |
| 498 | # href="/android/work/play/emm-api/create-enterprise">Create an Enterprise</a> |
| 499 | # for details. |
| 500 | "administrator": [ # Admins of the enterprise. This is only supported for enterprises |
| 501 | # created via the EMM-initiated flow. |
| 502 | { # This represents an enterprise admin who can manage the enterprise |
| 503 | # in the managed Google Play store. |
| 504 | "email": "A String", # The admin's email address. |
| 505 | }, |
| 506 | ], |
| 507 | "name": "A String", # The name of the enterprise, for example, "Example, Inc". |
| 508 | "primaryDomain": "A String", # The enterprise's primary domain, such as "example.com". |
| 509 | "id": "A String", # The unique ID for the enterprise. |
| 510 | }, |
| 511 | ], |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 512 | }</pre> |
| 513 | </div> |
| 514 | |
| 515 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 516 | <code class="details" id="pullNotificationSet">pullNotificationSet(requestMode=None, x__xgafv=None)</code> |
| 517 | <pre>Pulls and returns a notification set for the enterprises associated with |
| 518 | the service account authenticated for the request. The notification set may |
| 519 | be empty if no notification are pending. |
| 520 | <br> |
| 521 | A notification set returned needs to be acknowledged within 20 seconds |
| 522 | by calling Enterprises.AcknowledgeNotificationSet, unless the |
| 523 | notification set is empty. |
| 524 | <br> |
| 525 | Notifications that are not acknowledged within the 20 seconds will |
| 526 | eventually be included again in the response to another PullNotificationSet |
| 527 | request, and those that are never acknowledged will ultimately be deleted |
| 528 | according to the Google Cloud Platform Pub/Sub system policy. |
| 529 | <br> |
| 530 | Multiple requests might be performed concurrently to retrieve |
| 531 | notifications, in which case the pending notifications (if any) will be |
| 532 | split among each caller, if any are pending. |
| 533 | <br> |
| 534 | If no notifications are present, an empty notification list is returned. |
| 535 | Subsequent requests may return more notifications once they become |
| 536 | available. |
| 537 | |
| 538 | Args: |
| 539 | requestMode: string, The request mode for pulling notifications. |
| 540 | <br> |
| 541 | Specifying <code>waitForNotifications</code> will cause the request to |
| 542 | block and wait until one or more notifications are present, or return an |
| 543 | empty notification list if no notifications are present after some time. |
| 544 | <br> |
| 545 | Speciying <code>returnImmediately</code> will cause the request to |
| 546 | immediately return the pending notifications, or an empty list if no |
| 547 | notifications are present. |
| 548 | <br> |
| 549 | If omitted, defaults to <code>waitForNotifications</code>. |
| 550 | x__xgafv: string, V1 error format. |
| 551 | Allowed values |
| 552 | 1 - v1 error format |
| 553 | 2 - v2 error format |
| 554 | |
| 555 | Returns: |
| 556 | An object of the form: |
| 557 | |
| 558 | { # A resource returned by the PullNotificationSet API, which contains |
| 559 | # a collection of notifications for enterprises associated with the service |
| 560 | # account authenticated for the request. |
| 561 | "notificationSetId": "A String", # The notification set ID, required to mark the notification as |
| 562 | # received with the Enterprises.AcknowledgeNotification API. |
| 563 | # This will be omitted if no notifications are present. |
| 564 | "notification": [ # The notifications received, or empty if no notifications are present. |
| 565 | { # A notification of one event relating to an enterprise. |
| 566 | "appUpdateEvent": { # An event generated when a new version of an app is uploaded to Google Play. # Notifications about app updates. |
| 567 | # Notifications are sent for new public versions only: alpha, beta, or canary |
| 568 | # versions do not generate this event. To fetch up-to-date version history for |
| 569 | # an app, use Products.Get on the EMM API. |
| 570 | "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") that was updated. |
| 571 | # This field will always be present. |
| 572 | }, |
| 573 | "appRestrictionsSchemaChangeEvent": { # An event generated when a new app version is uploaded to Google Play and its # Notifications about new app restrictions schema changes. |
| 574 | # app restrictions schema changed. |
| 575 | # To fetch the app restrictions schema for an app, use |
| 576 | # Products.getAppRestrictionsSchema on the EMM API. |
| 577 | "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the |
| 578 | # app restriction schema changed. This field will always be present. |
| 579 | }, |
| 580 | "newDeviceEvent": { # An event generated when a new device is ready to be managed. # Notifications about new devices. |
| 581 | "deviceId": "A String", # The Android ID of the device. |
| 582 | # This field will always be present. |
| 583 | "managementType": "A String", # Identifies the extent to which the device is controlled by an Android |
| 584 | # EMM in various deployment configurations. <br><br> |
| 585 | # Possible values include: |
| 586 | # <ul><li>"<code>managedDevice</code>", a device where the DPC is set as |
| 587 | # device owner,</li> |
| 588 | # <li>"<code>managedProfile</code>", a device where the DPC is set as profile |
| 589 | # owner.</li></ul> |
| 590 | "dpcPackageName": "A String", # Policy app on the device. |
| 591 | "userId": "A String", # The ID of the user. |
| 592 | # This field will always be present. |
| 593 | }, |
| 594 | "productApprovalEvent": { # An event generated when a product's approval status is changed. # Notifications about changes to a product's approval status. |
| 595 | "approved": "A String", # Whether the product was approved or unapproved. |
| 596 | # This field will always be present. |
| 597 | "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the |
| 598 | # approval status has changed. This field will always be present. |
| 599 | }, |
| 600 | "timestampMillis": "A String", # The time when the notification was published in |
| 601 | # milliseconds since 1970-01-01T00:00:00Z. |
| 602 | # This will always be present. |
| 603 | "installFailureEvent": { # An event generated when an app installation failed on a device # Notifications about an app installation failure. |
| 604 | "deviceId": "A String", # The Android ID of the device. |
| 605 | # This field will always be present. |
| 606 | "failureReason": "A String", # The reason for the installation failure. |
| 607 | # This field will always be present. |
| 608 | "failureDetails": "A String", # Additional details on the failure if applicable. |
| 609 | "userId": "A String", # The ID of the user. |
| 610 | # This field will always be present. |
| 611 | "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the |
| 612 | # install failure event occured. This field will always be present. |
| 613 | }, |
| 614 | "newPermissionsEvent": { # An event generated when new permissions are added to an app. # Notifications about new app permissions. |
| 615 | "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which new |
| 616 | # permissions were added. This field will always be present. |
| 617 | "approvedPermissions": [ # The set of permissions that the enterprise admin has already approved for |
| 618 | # this application. |
| 619 | # Use Permissions.Get on the EMM API to retrieve details about these |
| 620 | # permissions. |
| 621 | "A String", |
| 622 | ], |
| 623 | "requestedPermissions": [ # The set of permissions that the app is currently requesting. |
| 624 | # Use Permissions.Get on the EMM API to retrieve details about these |
| 625 | # permissions. |
| 626 | "A String", |
| 627 | ], |
| 628 | }, |
| 629 | "deviceReportUpdateEvent": { # An event generated when an updated device report is available. # Notifications about device report updates. |
| 630 | "report": { # Device report updated with the latest app states for managed apps on the # The device report updated with the latest app states. |
| 631 | # This field will always be present. |
| 632 | # device. |
| 633 | "appState": [ # List of app states set by managed apps on the device. App states are |
| 634 | # defined by the app's developers. |
| 635 | # This field will always be present. |
| 636 | { # List of states set by the app. |
| 637 | "packageName": "A String", # The package name of the app. |
| 638 | # This field will always be present. |
| 639 | "keyedAppState": [ # List of keyed app states. |
| 640 | # This field will always be present. |
| 641 | { # Represents a keyed app state containing a key, timestamp, severity level, |
| 642 | # optional description, and optional data. |
| 643 | "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. |
| 644 | # This field will always be present. |
| 645 | "severity": "A String", # Severity of the app state. |
| 646 | # This field will always be present. |
| 647 | "message": "A String", # Free-form, human-readable message describing the app state. For example, |
| 648 | # an error message. To prevent XSS, we recommend removing any HTML from the |
| 649 | # message before displaying it. |
| 650 | "key": "A String", # Key indicating what the app is providing a state for. The content of the |
| 651 | # key is set by the app's developer. To prevent XSS, we recommend removing |
| 652 | # any HTML from the key before displaying it. |
| 653 | # This field will always be present. |
| 654 | "data": "A String", # Additional field intended for machine-readable data. For example, a number |
| 655 | # or JSON object. To prevent XSS, we recommend removing any HTML from the |
| 656 | # data before displaying it. |
| 657 | }, |
| 658 | ], |
| 659 | }, |
| 660 | ], |
| 661 | "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. |
| 662 | # This field will always be present. |
| 663 | }, |
| 664 | "deviceId": "A String", # The Android ID of the device. |
| 665 | # This field will always be present. |
| 666 | "userId": "A String", # The ID of the user. |
| 667 | # This field will always be present. |
| 668 | }, |
| 669 | "productAvailabilityChangeEvent": { # An event generated whenever a product's availability changes. # Notifications about product availability changes. |
| 670 | "productId": "A String", # The id of the product (e.g. "app:com.google.android.gm") for which the |
| 671 | # product availability changed. This field will always be present. |
| 672 | "availabilityStatus": "A String", # The new state of the product. |
| 673 | # This field will always be present. |
| 674 | }, |
| 675 | "notificationType": "A String", # Type of the notification. |
| 676 | "enterpriseId": "A String", # The ID of the enterprise for which the notification is sent. |
| 677 | # This will always be present. |
| 678 | }, |
| 679 | ], |
| 680 | }</pre> |
| 681 | </div> |
| 682 | |
| 683 | <div class="method"> |
| 684 | <code class="details" id="sendTestPushNotification">sendTestPushNotification(enterpriseId, x__xgafv=None)</code> |
| 685 | <pre>Sends a test notification to validate the EMM integration with |
| 686 | the Google Cloud Pub/Sub service for this enterprise. |
| 687 | |
| 688 | Args: |
| 689 | enterpriseId: string, The ID of the enterprise. (required) |
| 690 | x__xgafv: string, V1 error format. |
| 691 | Allowed values |
| 692 | 1 - v1 error format |
| 693 | 2 - v2 error format |
| 694 | |
| 695 | Returns: |
| 696 | An object of the form: |
| 697 | |
| 698 | { |
| 699 | "topicName": "A String", # The name of the Cloud Pub/Sub topic to which notifications for this |
| 700 | # enterprise's enrolled account will be sent. |
| 701 | "messageId": "A String", # The message ID of the test push notification that was sent. |
| 702 | }</pre> |
| 703 | </div> |
| 704 | |
| 705 | <div class="method"> |
| 706 | <code class="details" id="setAccount">setAccount(enterpriseId, body=None, x__xgafv=None)</code> |
| 707 | <pre>Sets the account that will be used to authenticate to the API as the |
| 708 | enterprise. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 709 | |
| 710 | Args: |
| 711 | enterpriseId: string, The ID of the enterprise. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 712 | body: object, The request body. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 713 | The object takes the form of: |
| 714 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 715 | { # A service account that can be used to authenticate as the enterprise to |
| 716 | # API calls that require such authentication. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 717 | "accountEmail": "A String", # The email address of the service account. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 718 | } |
| 719 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 720 | x__xgafv: string, V1 error format. |
| 721 | Allowed values |
| 722 | 1 - v1 error format |
| 723 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 724 | |
| 725 | Returns: |
| 726 | An object of the form: |
| 727 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 728 | { # A service account that can be used to authenticate as the enterprise to |
| 729 | # API calls that require such authentication. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 730 | "accountEmail": "A String", # The email address of the service account. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 731 | }</pre> |
| 732 | </div> |
| 733 | |
| 734 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 735 | <code class="details" id="setStoreLayout">setStoreLayout(enterpriseId, body=None, x__xgafv=None)</code> |
| 736 | <pre>Sets the store layout for the enterprise. By default, storeLayoutType |
| 737 | is set to "basic" and the basic store layout is enabled. The basic |
| 738 | layout only contains apps approved by the admin, and that have |
| 739 | been added to the available product set for a user (using the |
| 740 | <a href="/android/work/play/emm-api/v1/users/setAvailableProductSet"> |
| 741 | setAvailableProductSet</a> call). Apps on the page are sorted in order of |
| 742 | their product ID value. If you create a custom store layout (by setting |
| 743 | storeLayoutType = "custom" and setting a homepage), the basic store |
| 744 | layout is disabled. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 745 | |
| 746 | Args: |
| 747 | enterpriseId: string, The ID of the enterprise. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 748 | body: object, The request body. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 749 | The object takes the form of: |
| 750 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 751 | { # General setting for the managed Google Play store layout, |
| 752 | # currently only specifying the page to display the first time |
| 753 | # the store is opened. |
| 754 | "homepageId": "A String", # The ID of the store page to be used as the homepage. The homepage is the |
| 755 | # first page shown in the managed Google Play Store. |
| 756 | # |
| 757 | # Not specifying a homepage is equivalent to setting the store layout |
| 758 | # type to "basic". |
| 759 | "storeLayoutType": "A String", # The store layout type. By default, this value is set to "basic" |
| 760 | # if the homepageId field is not set, and to "custom" otherwise. |
| 761 | # If set to "basic", the layout will consist of all approved apps that |
| 762 | # have been whitelisted for the user. |
| 763 | } |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 764 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 765 | x__xgafv: string, V1 error format. |
| 766 | Allowed values |
| 767 | 1 - v1 error format |
| 768 | 2 - v2 error format |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 769 | |
| 770 | Returns: |
| 771 | An object of the form: |
| 772 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 773 | { # General setting for the managed Google Play store layout, |
| 774 | # currently only specifying the page to display the first time |
| 775 | # the store is opened. |
| 776 | "homepageId": "A String", # The ID of the store page to be used as the homepage. The homepage is the |
| 777 | # first page shown in the managed Google Play Store. |
| 778 | # |
| 779 | # Not specifying a homepage is equivalent to setting the store layout |
| 780 | # type to "basic". |
| 781 | "storeLayoutType": "A String", # The store layout type. By default, this value is set to "basic" |
| 782 | # if the homepageId field is not set, and to "custom" otherwise. |
| 783 | # If set to "basic", the layout will consist of all approved apps that |
| 784 | # have been whitelisted for the user. |
| 785 | }</pre> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 786 | </div> |
| 787 | |
| 788 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 789 | <code class="details" id="unenroll">unenroll(enterpriseId, x__xgafv=None)</code> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 790 | <pre>Unenrolls an enterprise from the calling EMM. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 791 | |
| 792 | Args: |
| 793 | enterpriseId: string, The ID of the enterprise. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 794 | x__xgafv: string, V1 error format. |
| 795 | Allowed values |
| 796 | 1 - v1 error format |
| 797 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 798 | </pre> |
| 799 | </div> |
| 800 | |
| 801 | </body></html> |