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.products.html">products</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="#approve">approve(enterpriseId, productId, body=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline"><p>Approves the specified product and the relevant app permissions, if any.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 81 | <code><a href="#generateApprovalUrl">generateApprovalUrl(enterpriseId, productId, languageCode=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Generates a URL that can be rendered in an iframe to display the</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 84 | <code><a href="#get">get(enterpriseId, productId, language=None, x__xgafv=None)</a></code></p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 85 | <p class="firstline">Retrieves details of a product for display to an enterprise admin.</p> |
| 86 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 87 | <code><a href="#getAppRestrictionsSchema">getAppRestrictionsSchema(enterpriseId, productId, language=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Retrieves the schema that defines the configurable properties for this</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="#getPermissions">getPermissions(enterpriseId, productId, x__xgafv=None)</a></code></p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 91 | <p class="firstline">Retrieves the Android app permissions required by this app.</p> |
| 92 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 93 | <code><a href="#list">list(enterpriseId, maxResults=None, language=None, approved=None, token=None, query=None, x__xgafv=None)</a></code></p> |
| 94 | <p class="firstline">Finds approved products that match a query, or all approved products</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 95 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 96 | <code><a href="#unapprove">unapprove(enterpriseId, productId, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 97 | <p class="firstline">Unapproves the specified product (and the relevant app permissions, if any)</p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 100 | <code class="details" id="approve">approve(enterpriseId, productId, body=None, x__xgafv=None)</code> |
| 101 | <pre><p>Approves the specified product and the relevant app permissions, if any. |
| 102 | The maximum number of products that you can approve per enterprise customer |
| 103 | is 1,000.</p> |
| 104 | <p>To learn how to use managed Google Play to design and create a store |
| 105 | layout to display approved products to your users, |
| 106 | see <a href="/android/work/play/emm-api/store-layout">Store Layout |
| 107 | Design</a>.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 108 | |
| 109 | Args: |
| 110 | enterpriseId: string, The ID of the enterprise. (required) |
| 111 | productId: string, The ID of the product. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 112 | body: object, The request body. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 113 | The object takes the form of: |
| 114 | |
| 115 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 116 | "approvalUrlInfo": { # Information on an approval URL. # The approval URL that was shown to the user. Only the permissions shown |
| 117 | # to the user with that URL will be accepted, which may not be |
| 118 | # the product's entire set of permissions. For example, the URL may only |
| 119 | # display new permissions from an update after the product was approved, |
| 120 | # or not include new permissions if the product was updated since the URL |
| 121 | # was generated. |
| 122 | "approvalUrl": "A String", # A URL that displays a product's permissions and that can also be used to |
| 123 | # approve the product with the <code>Products.approve</code> call. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 124 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 125 | "approvedPermissions": "A String", # Sets how new permission requests for the product are handled. |
| 126 | # "allPermissions" automatically approves all current and future |
| 127 | # permissions for the product. "currentPermissionsOnly" approves the |
| 128 | # current set of permissions for the product, but any future permissions |
| 129 | # added through updates will require manual reapproval. If not specified, |
| 130 | # only the current set of permissions will be approved. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 131 | } |
| 132 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 133 | x__xgafv: string, V1 error format. |
| 134 | Allowed values |
| 135 | 1 - v1 error format |
| 136 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 137 | </pre> |
| 138 | </div> |
| 139 | |
| 140 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 141 | <code class="details" id="generateApprovalUrl">generateApprovalUrl(enterpriseId, productId, languageCode=None, x__xgafv=None)</code> |
| 142 | <pre>Generates a URL that can be rendered in an iframe to display the |
| 143 | permissions (if any) of a product. An enterprise admin must view these |
| 144 | permissions and accept them on behalf of their organization in order to |
| 145 | approve that product. <br><br> |
| 146 | Admins should accept the displayed permissions by |
| 147 | interacting with a separate UI element in the EMM console, which in turn |
| 148 | should trigger the use of this URL as the |
| 149 | <code>approvalUrlInfo.approvalUrl</code> property in a |
| 150 | <code>Products.approve</code> call to approve the product. |
| 151 | This URL can only be used to display permissions for up to 1 day. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 152 | |
| 153 | Args: |
| 154 | enterpriseId: string, The ID of the enterprise. (required) |
| 155 | productId: string, The ID of the product. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 156 | languageCode: string, The BCP 47 language code used for permission names and descriptions in |
| 157 | the returned iframe, for instance "en-US". |
| 158 | x__xgafv: string, V1 error format. |
| 159 | Allowed values |
| 160 | 1 - v1 error format |
| 161 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 162 | |
| 163 | Returns: |
| 164 | An object of the form: |
| 165 | |
| 166 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 167 | "url": "A String", # A URL that can be rendered in an iframe to display the permissions (if |
| 168 | # any) of a product. |
| 169 | # This URL can be used to approve the product only once and only within 24 |
| 170 | # hours of being generated, using the <code>Products.approve</code> call. |
| 171 | # If the product is currently unapproved and has no permissions, this |
| 172 | # URL will point to an empty page. |
| 173 | # If the product is currently approved, a URL will only be generated if |
| 174 | # that product has added permissions since it was last approved, and the |
| 175 | # URL will only display those new permissions that have not yet been |
| 176 | # accepted. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 177 | }</pre> |
| 178 | </div> |
| 179 | |
| 180 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 181 | <code class="details" id="get">get(enterpriseId, productId, language=None, x__xgafv=None)</code> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 182 | <pre>Retrieves details of a product for display to an enterprise admin. |
| 183 | |
| 184 | Args: |
| 185 | enterpriseId: string, The ID of the enterprise. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 186 | productId: string, The ID of the product, e.g. "app:com.google.android.gm". (required) |
| 187 | language: string, The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 188 | x__xgafv: string, V1 error format. |
| 189 | Allowed values |
| 190 | 1 - v1 error format |
| 191 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 192 | |
| 193 | Returns: |
| 194 | An object of the form: |
| 195 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 196 | { # A Products resource represents an app in the Google Play store that is |
| 197 | # available to at least some users in the enterprise. (Some apps are restricted |
| 198 | # to a single enterprise, and no information about them is made available |
| 199 | # outside that enterprise.) |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 200 | # |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 201 | # The information provided for each product (localized name, icon, link |
| 202 | # to the full Google Play details page) is intended to allow a basic |
| 203 | # representation of the product within an EMM user interface. |
| 204 | "smallIconUrl": "A String", # A link to a smaller image that can be used as an icon for the product. |
| 205 | # This image is suitable for use at up to 128px x 128px. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 206 | "category": "A String", # The app category (e.g. RACING, SOCIAL, etc.) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 207 | "distributionChannel": "A String", # How and to whom the package is made available. |
| 208 | # The value <code>publicGoogleHosted</code> means that the package is |
| 209 | # available through the Play store and not restricted to a specific |
| 210 | # enterprise. The value <code>privateGoogleHosted</code> means that the |
| 211 | # package is a private app (restricted to an enterprise) but hosted by |
| 212 | # Google. The value <code>privateSelfHosted</code> means that the package is |
| 213 | # a private app (restricted to an enterprise) and is privately hosted. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 214 | "permissions": [ # A list of permissions required by the app. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 215 | { # A product permissions resource represents the set of permissions |
| 216 | # required by a specific app and whether or not they have been accepted |
| 217 | # by an enterprise admin. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 218 | # |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 219 | # The API can be used to read the set of permissions, and also to update |
| 220 | # the set to indicate that permissions have been accepted. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 221 | "permissionId": "A String", # An opaque string uniquely identifying the permission. |
| 222 | "state": "A String", # Whether the permission has been accepted or not. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 223 | }, |
| 224 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 225 | "recentChanges": "A String", # A description of the recent changes made to the app. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 226 | "minAndroidSdkVersion": 42, # The minimum Android SDK necessary to run the app. |
| 227 | "availableCountries": [ # The countries which this app is available in. |
| 228 | "A String", |
| 229 | ], |
| 230 | "title": "A String", # The name of the product. |
| 231 | "appVersion": [ # App versions currently available for this product. |
| 232 | { # This represents a single version of the app. |
| 233 | "track": "A String", # Deprecated, use <code>trackId</code> instead. |
| 234 | "versionString": "A String", # The string used in the Play store by the app developer to identify |
| 235 | # the version. |
| 236 | # The string is not necessarily unique or localized (for example, the string |
| 237 | # could be "1.4"). |
| 238 | "versionCode": 42, # Unique increasing identifier for the app version. |
| 239 | "trackId": [ # Track ids that the app version is published in. Replaces the |
| 240 | # <code>track</code> field (deprecated), but doesn't include the production |
| 241 | # track (see <code>isProduction</code> instead). |
| 242 | "A String", |
| 243 | ], |
| 244 | "isProduction": True or False, # True if this version is a production APK. |
| 245 | }, |
| 246 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 247 | "screenshotUrls": [ # A list of screenshot links representing the app. |
| 248 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 249 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 250 | "features": [ # Noteworthy features (if any) of this product. |
| 251 | "A String", |
| 252 | ], |
| 253 | "authorName": "A String", # The name of the author of the product (for example, the app developer). |
| 254 | "appTracks": [ # The tracks visible to the enterprise. |
| 255 | { # Id to name association of a track. |
| 256 | "trackId": "A String", # Unmodifiable, unique track identifier. This identifier is the |
| 257 | # releaseTrackId in the url of the play developer console page that displays |
| 258 | # the track information. |
| 259 | "trackAlias": "A String", # A modifiable name for a track. This is the visible name in the play |
| 260 | # developer console. |
| 261 | }, |
| 262 | ], |
| 263 | "lastUpdatedTimestampMillis": "A String", # The approximate time (within 7 days) the app was last published, expressed |
| 264 | # in milliseconds since epoch. |
| 265 | "availableTracks": [ # Deprecated, use <code>appTracks</code> instead. |
| 266 | "A String", |
| 267 | ], |
| 268 | "detailsUrl": "A String", # A link to the (consumer) Google Play details page for the product. |
| 269 | "iconUrl": "A String", # A link to an image that can be used as an icon for the product. |
| 270 | # This image is suitable for use at up to 512px x 512px. |
| 271 | "requiresContainerApp": True or False, # Deprecated. |
| 272 | "productPricing": "A String", # Whether this product is free, free with in-app purchases, or paid. |
| 273 | # If the pricing is unknown, this means the product is not generally |
| 274 | # available anymore (even though it might still be available to |
| 275 | # people who own it). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 276 | "signingCertificate": { # The certificate used to sign this product. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 277 | "certificateHashSha256": "A String", # The base64 urlsafe encoded SHA2-256 hash of the certificate. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 278 | "certificateHashSha1": "A String", # The base64 urlsafe encoded SHA1 hash of the certificate. (This field is |
| 279 | # deprecated in favor of SHA2-256. It should not be used and may be |
| 280 | # removed at any time.) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 281 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 282 | "contentRating": "A String", # The content rating for this app. |
| 283 | "workDetailsUrl": "A String", # A link to the managed Google Play details page for the product, |
| 284 | # for use by an Enterprise admin. |
| 285 | "productId": "A String", # A string of the form <code><em>app:&lt;package name&gt;</em></code>. For |
| 286 | # example, <code>app:com.google.android.gm</code> represents the Gmail app. |
| 287 | "description": "A String", # The localized promotional description, if available. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 288 | }</pre> |
| 289 | </div> |
| 290 | |
| 291 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 292 | <code class="details" id="getAppRestrictionsSchema">getAppRestrictionsSchema(enterpriseId, productId, language=None, x__xgafv=None)</code> |
| 293 | <pre>Retrieves the schema that defines the configurable properties for this |
| 294 | product. All products have a schema, but this schema may be empty if no |
| 295 | managed configurations have been defined. This schema can be used to |
| 296 | populate a UI that allows an admin to configure the product. |
| 297 | To apply a managed configuration based on the schema obtained using this |
| 298 | API, see |
| 299 | <a href="/android/work/play/emm-api/managed-configurations">Managed |
| 300 | Configurations through Play</a>. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 301 | |
| 302 | Args: |
| 303 | enterpriseId: string, The ID of the enterprise. (required) |
| 304 | productId: string, The ID of the product. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 305 | language: string, The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 306 | x__xgafv: string, V1 error format. |
| 307 | Allowed values |
| 308 | 1 - v1 error format |
| 309 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 310 | |
| 311 | Returns: |
| 312 | An object of the form: |
| 313 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 314 | { # Represents the list of app restrictions available to be pre-configured for |
| 315 | # the product. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 316 | "kind": "A String", # Deprecated. |
| 317 | "restrictions": [ # The set of restrictions that make up this schema. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 318 | { # A restriction in the App Restriction Schema represents a piece of |
| 319 | # configuration that may be pre-applied. |
| 320 | "key": "A String", # The unique key that the product uses to identify the restriction, |
| 321 | # e.g. "com.google.android.gm.fieldname". |
| 322 | "nestedRestriction": [ # For <code>bundle</code> or <code>bundleArray</code> restrictions, the list |
| 323 | # of nested restrictions. A <code>bundle</code> restriction is always nested |
| 324 | # within a <code>bundleArray</code> restriction, and a |
| 325 | # <code>bundleArray</code> restriction is at most two levels deep. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 326 | # Object with schema name: AppRestrictionsSchemaRestriction |
| 327 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 328 | "restrictionType": "A String", # The type of the restriction. |
| 329 | "title": "A String", # The name of the restriction. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 330 | "description": "A String", # A longer description of the restriction, giving more detail of what it |
| 331 | # affects. |
| 332 | "defaultValue": { # A typed value for the restriction. # The default value of the restriction. <code>bundle</code> and |
| 333 | # <code>bundleArray</code> restrictions never have a default value. |
| 334 | "valueString": "A String", # The string value - this will be present for types string, choice and |
| 335 | # hidden. |
| 336 | "valueInteger": 42, # The integer value - this will only be present if type is integer. |
| 337 | "valueMultiselect": [ # The list of string values - this will only be present if type is |
| 338 | # multiselect. |
| 339 | "A String", |
| 340 | ], |
| 341 | "valueBool": True or False, # The boolean value - this will only be present if type is bool. |
| 342 | "type": "A String", # The type of the value being provided. |
| 343 | }, |
| 344 | "entryValue": [ # For <code>choice</code> or <code>multiselect</code> restrictions, the list |
| 345 | # of possible entries' machine-readable values. These values should be used |
| 346 | # in the configuration, either as a single <code>string</code> value for a |
| 347 | # <code>choice</code> restriction or in a <code>stringArray</code> for a |
| 348 | # <code>multiselect</code> restriction. |
| 349 | "A String", |
| 350 | ], |
| 351 | "entry": [ # For <code>choice</code> or <code>multiselect</code> restrictions, the list |
| 352 | # of possible entries' human-readable names. |
| 353 | "A String", |
| 354 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 355 | }, |
| 356 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 357 | }</pre> |
| 358 | </div> |
| 359 | |
| 360 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 361 | <code class="details" id="getPermissions">getPermissions(enterpriseId, productId, x__xgafv=None)</code> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 362 | <pre>Retrieves the Android app permissions required by this app. |
| 363 | |
| 364 | Args: |
| 365 | enterpriseId: string, The ID of the enterprise. (required) |
| 366 | productId: string, The ID of the product. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 367 | x__xgafv: string, V1 error format. |
| 368 | Allowed values |
| 369 | 1 - v1 error format |
| 370 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 371 | |
| 372 | Returns: |
| 373 | An object of the form: |
| 374 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 375 | { # Information about the permissions required by a specific app and |
| 376 | # whether they have been accepted by the enterprise. |
| 377 | "productId": "A String", # The ID of the app that the permissions relate to, e.g. |
| 378 | # "app:com.google.android.gm". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 379 | "permission": [ # The permissions required by the app. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 380 | { # A product permissions resource represents the set of permissions |
| 381 | # required by a specific app and whether or not they have been accepted |
| 382 | # by an enterprise admin. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 383 | # |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 384 | # The API can be used to read the set of permissions, and also to update |
| 385 | # the set to indicate that permissions have been accepted. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 386 | "permissionId": "A String", # An opaque string uniquely identifying the permission. |
| 387 | "state": "A String", # Whether the permission has been accepted or not. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 388 | }, |
| 389 | ], |
| 390 | }</pre> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 391 | </div> |
| 392 | |
| 393 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 394 | <code class="details" id="list">list(enterpriseId, maxResults=None, language=None, approved=None, token=None, query=None, x__xgafv=None)</code> |
| 395 | <pre>Finds approved products that match a query, or all approved products |
| 396 | if there is no query. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 397 | |
| 398 | Args: |
| 399 | enterpriseId: string, The ID of the enterprise. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 400 | maxResults: integer, Defines how many results the list operation should return. |
| 401 | The default number depends on the resource collection. |
| 402 | language: string, The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). |
| 403 | Results are returned in the language best matching the preferred |
| 404 | language. |
| 405 | approved: boolean, Specifies whether to search among all products (false) or among |
| 406 | only products that have been approved (true). Only "true" is |
| 407 | supported, and should be specified. |
| 408 | token: string, Defines the token of the page to return, usually taken from |
| 409 | TokenPagination. |
| 410 | This can only be used if token paging is enabled. |
| 411 | query: string, The search query as typed in the Google Play store search box. |
| 412 | If omitted, all approved apps will be returned (using the pagination |
| 413 | parameters), including apps that are not available in the store |
| 414 | (e.g. unpublished apps). |
| 415 | x__xgafv: string, V1 error format. |
| 416 | Allowed values |
| 417 | 1 - v1 error format |
| 418 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 419 | |
| 420 | Returns: |
| 421 | An object of the form: |
| 422 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 423 | { |
| 424 | "pageInfo": { # Information about the current page. # General pagination information. |
| 425 | # |
| 426 | # List operations that supports paging return only one "page" of results. This |
| 427 | # protocol buffer message describes the page that has been returned. |
| 428 | "totalResults": 42, # Total number of results available on the backend |
| 429 | # ! The total number of results in the result set. |
| 430 | "startIndex": 42, # Index of the first result returned in the current page. |
| 431 | "resultPerPage": 42, # Maximum number of results returned in one page. |
| 432 | # ! The number of results included in the API response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 433 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 434 | "product": [ # Information about a product (e.g. an app) in the Google Play store, for |
| 435 | # display to an enterprise admin. |
| 436 | { # A Products resource represents an app in the Google Play store that is |
| 437 | # available to at least some users in the enterprise. (Some apps are restricted |
| 438 | # to a single enterprise, and no information about them is made available |
| 439 | # outside that enterprise.) |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 440 | # |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 441 | # The information provided for each product (localized name, icon, link |
| 442 | # to the full Google Play details page) is intended to allow a basic |
| 443 | # representation of the product within an EMM user interface. |
| 444 | "smallIconUrl": "A String", # A link to a smaller image that can be used as an icon for the product. |
| 445 | # This image is suitable for use at up to 128px x 128px. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 446 | "category": "A String", # The app category (e.g. RACING, SOCIAL, etc.) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 447 | "distributionChannel": "A String", # How and to whom the package is made available. |
| 448 | # The value <code>publicGoogleHosted</code> means that the package is |
| 449 | # available through the Play store and not restricted to a specific |
| 450 | # enterprise. The value <code>privateGoogleHosted</code> means that the |
| 451 | # package is a private app (restricted to an enterprise) but hosted by |
| 452 | # Google. The value <code>privateSelfHosted</code> means that the package is |
| 453 | # a private app (restricted to an enterprise) and is privately hosted. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 454 | "permissions": [ # A list of permissions required by the app. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 455 | { # A product permissions resource represents the set of permissions |
| 456 | # required by a specific app and whether or not they have been accepted |
| 457 | # by an enterprise admin. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 458 | # |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 459 | # The API can be used to read the set of permissions, and also to update |
| 460 | # the set to indicate that permissions have been accepted. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 461 | "permissionId": "A String", # An opaque string uniquely identifying the permission. |
| 462 | "state": "A String", # Whether the permission has been accepted or not. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 463 | }, |
| 464 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 465 | "recentChanges": "A String", # A description of the recent changes made to the app. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 466 | "minAndroidSdkVersion": 42, # The minimum Android SDK necessary to run the app. |
| 467 | "availableCountries": [ # The countries which this app is available in. |
| 468 | "A String", |
| 469 | ], |
| 470 | "title": "A String", # The name of the product. |
| 471 | "appVersion": [ # App versions currently available for this product. |
| 472 | { # This represents a single version of the app. |
| 473 | "track": "A String", # Deprecated, use <code>trackId</code> instead. |
| 474 | "versionString": "A String", # The string used in the Play store by the app developer to identify |
| 475 | # the version. |
| 476 | # The string is not necessarily unique or localized (for example, the string |
| 477 | # could be "1.4"). |
| 478 | "versionCode": 42, # Unique increasing identifier for the app version. |
| 479 | "trackId": [ # Track ids that the app version is published in. Replaces the |
| 480 | # <code>track</code> field (deprecated), but doesn't include the production |
| 481 | # track (see <code>isProduction</code> instead). |
| 482 | "A String", |
| 483 | ], |
| 484 | "isProduction": True or False, # True if this version is a production APK. |
| 485 | }, |
| 486 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 487 | "screenshotUrls": [ # A list of screenshot links representing the app. |
| 488 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 489 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 490 | "features": [ # Noteworthy features (if any) of this product. |
| 491 | "A String", |
| 492 | ], |
| 493 | "authorName": "A String", # The name of the author of the product (for example, the app developer). |
| 494 | "appTracks": [ # The tracks visible to the enterprise. |
| 495 | { # Id to name association of a track. |
| 496 | "trackId": "A String", # Unmodifiable, unique track identifier. This identifier is the |
| 497 | # releaseTrackId in the url of the play developer console page that displays |
| 498 | # the track information. |
| 499 | "trackAlias": "A String", # A modifiable name for a track. This is the visible name in the play |
| 500 | # developer console. |
| 501 | }, |
| 502 | ], |
| 503 | "lastUpdatedTimestampMillis": "A String", # The approximate time (within 7 days) the app was last published, expressed |
| 504 | # in milliseconds since epoch. |
| 505 | "availableTracks": [ # Deprecated, use <code>appTracks</code> instead. |
| 506 | "A String", |
| 507 | ], |
| 508 | "detailsUrl": "A String", # A link to the (consumer) Google Play details page for the product. |
| 509 | "iconUrl": "A String", # A link to an image that can be used as an icon for the product. |
| 510 | # This image is suitable for use at up to 512px x 512px. |
| 511 | "requiresContainerApp": True or False, # Deprecated. |
| 512 | "productPricing": "A String", # Whether this product is free, free with in-app purchases, or paid. |
| 513 | # If the pricing is unknown, this means the product is not generally |
| 514 | # available anymore (even though it might still be available to |
| 515 | # people who own it). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 516 | "signingCertificate": { # The certificate used to sign this product. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 517 | "certificateHashSha256": "A String", # The base64 urlsafe encoded SHA2-256 hash of the certificate. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 518 | "certificateHashSha1": "A String", # The base64 urlsafe encoded SHA1 hash of the certificate. (This field is |
| 519 | # deprecated in favor of SHA2-256. It should not be used and may be |
| 520 | # removed at any time.) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 521 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 522 | "contentRating": "A String", # The content rating for this app. |
| 523 | "workDetailsUrl": "A String", # A link to the managed Google Play details page for the product, |
| 524 | # for use by an Enterprise admin. |
| 525 | "productId": "A String", # A string of the form <code><em>app:&lt;package name&gt;</em></code>. For |
| 526 | # example, <code>app:com.google.android.gm</code> represents the Gmail app. |
| 527 | "description": "A String", # The localized promotional description, if available. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 528 | }, |
| 529 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 530 | "tokenPagination": { # Pagination information returned by a List operation when token pagination # Pagination information for token pagination. |
| 531 | # is enabled. |
| 532 | # |
| 533 | # List operations that supports paging return only one "page" of results. This |
| 534 | # protocol buffer message describes the page that has been returned. |
| 535 | # |
| 536 | # When using token pagination, clients should use the next/previous token |
| 537 | # to get another page of the result. The presence or absence of next/previous |
| 538 | # token indicates whether a next/previous page is available and provides a |
| 539 | # mean of accessing this page. ListRequest.page_token should be set to either |
| 540 | # next_page_token or previous_page_token to access another page. |
| 541 | "nextPageToken": "A String", # Tokens to pass to the standard list field 'page_token'. Whenever available, |
| 542 | # tokens are preferred over manipulating start_index. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 543 | "previousPageToken": "A String", |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 544 | }, |
| 545 | }</pre> |
| 546 | </div> |
| 547 | |
| 548 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 549 | <code class="details" id="unapprove">unapprove(enterpriseId, productId, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 550 | <pre>Unapproves the specified product (and the relevant app permissions, if any) |
| 551 | |
| 552 | Args: |
| 553 | enterpriseId: string, The ID of the enterprise. (required) |
| 554 | productId: string, The ID of the product. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 555 | x__xgafv: string, V1 error format. |
| 556 | Allowed values |
| 557 | 1 - v1 error format |
| 558 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 559 | </pre> |
| 560 | </div> |
| 561 | |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 562 | </body></html> |