target.apidocs.com.google.api.services.androidenterprise.model.Install.html Maven / Gradle / Ivy
The newest version!
Install (Google Play EMM API v1-rev20241113-2.0.0)
com.google.api.services.androidenterprise.model
Class Install
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidenterprise.model.Install
-
public final class Install
extends com.google.api.client.json.GenericJson
The existence of an Installs resource indicates that an app is installed on a particular device
(or that an install is pending). The API can be used to create an install resource using the
update method. This triggers the actual install of the app on the device. If the user does not
already have an entitlement for the app, then an attempt is made to create one. If this fails
(for example, because the app is not free and there is no available license), then the creation
of the install fails. The API can also be used to update an installed app. If the update method
is used on an existing install, then the app will be updated to the latest available version.
Note that it is not possible to force the installation of a specific version of an app: the
version code is read-only. If a user installs an app themselves (as permitted by the enterprise),
then again an install resource and possibly an entitlement resource are automatically created.
The API can also be used to delete an install resource, which triggers the removal of the app
from the device. Note that deleting an install does not automatically remove the corresponding
entitlement, even if there are no remaining installs. The install resource will also be deleted
if the user uninstalls the app themselves.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Google Play EMM API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Install()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Install
clone()
String
getInstallState()
Install state.
String
getProductId()
The ID of the product that the install is for.
Integer
getVersionCode()
The version of the installed product.
Install
set(String fieldName,
Object value)
Install
setInstallState(String installState)
Install state.
Install
setProductId(String productId)
The ID of the product that the install is for.
Install
setVersionCode(Integer versionCode)
The version of the installed product.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getInstallState
public String getInstallState()
Install state. The state "installPending" means that an install request has recently been made
and download to the device is in progress. The state "installed" means that the app has been
installed. This field is read-only.
- Returns:
- value or
null
for none
-
setInstallState
public Install setInstallState(String installState)
Install state. The state "installPending" means that an install request has recently been made
and download to the device is in progress. The state "installed" means that the app has been
installed. This field is read-only.
- Parameters:
installState
- installState or null
for none
-
getProductId
public String getProductId()
The ID of the product that the install is for. For example, "app:com.google.android.gm".
- Returns:
- value or
null
for none
-
setProductId
public Install setProductId(String productId)
The ID of the product that the install is for. For example, "app:com.google.android.gm".
- Parameters:
productId
- productId or null
for none
-
getVersionCode
public Integer getVersionCode()
The version of the installed product. Guaranteed to be set only if the install state is
"installed".
- Returns:
- value or
null
for none
-
setVersionCode
public Install setVersionCode(Integer versionCode)
The version of the installed product. Guaranteed to be set only if the install state is
"installed".
- Parameters:
versionCode
- versionCode or null
for none
-
set
public Install set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Install clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy