public class AndroidEnterprise.Entitlements.Update extends AndroidEnterpriseRequest<Entitlement>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Update(String enterpriseId,
String userId,
String entitlementId,
Entitlement content)
Adds or updates an entitlement to an app for a user.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEnterpriseId()
The ID of the enterprise.
|
String |
getEntitlementId()
The ID of the entitlement (a product ID), e.g.
|
Boolean |
getInstall()
Set to true to also install the product on all the user's devices where possible.
|
String |
getUserId()
The ID of the user.
|
AndroidEnterprise.Entitlements.Update |
set(String parameterName,
Object value) |
AndroidEnterprise.Entitlements.Update |
setAlt(String alt)
Data format for the response.
|
AndroidEnterprise.Entitlements.Update |
setEnterpriseId(String enterpriseId)
The ID of the enterprise.
|
AndroidEnterprise.Entitlements.Update |
setEntitlementId(String entitlementId)
The ID of the entitlement (a product ID), e.g.
|
AndroidEnterprise.Entitlements.Update |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
AndroidEnterprise.Entitlements.Update |
setInstall(Boolean install)
Set to true to also install the product on all the user's devices where possible.
|
AndroidEnterprise.Entitlements.Update |
setKey(String key)
API key.
|
AndroidEnterprise.Entitlements.Update |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
AndroidEnterprise.Entitlements.Update |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
AndroidEnterprise.Entitlements.Update |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
AndroidEnterprise.Entitlements.Update |
setUserId(String userId)
The ID of the user.
|
AndroidEnterprise.Entitlements.Update |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Update(String enterpriseId, String userId, String entitlementId, Entitlement content)
AbstractGoogleClientRequest.execute() method to invoke the remote
operation. AndroidEnterprise.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
enterpriseId - The ID of the enterprise.userId - The ID of the user.entitlementId - The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".content - the Entitlementpublic AndroidEnterprise.Entitlements.Update setAlt(String alt)
AndroidEnterpriseRequestsetAlt in class AndroidEnterpriseRequest<Entitlement>public AndroidEnterprise.Entitlements.Update setFields(String fields)
AndroidEnterpriseRequestsetFields in class AndroidEnterpriseRequest<Entitlement>public AndroidEnterprise.Entitlements.Update setKey(String key)
AndroidEnterpriseRequestsetKey in class AndroidEnterpriseRequest<Entitlement>public AndroidEnterprise.Entitlements.Update setOauthToken(String oauthToken)
AndroidEnterpriseRequestsetOauthToken in class AndroidEnterpriseRequest<Entitlement>public AndroidEnterprise.Entitlements.Update setPrettyPrint(Boolean prettyPrint)
AndroidEnterpriseRequestsetPrettyPrint in class AndroidEnterpriseRequest<Entitlement>public AndroidEnterprise.Entitlements.Update setQuotaUser(String quotaUser)
AndroidEnterpriseRequestsetQuotaUser in class AndroidEnterpriseRequest<Entitlement>public AndroidEnterprise.Entitlements.Update setUserIp(String userIp)
AndroidEnterpriseRequestsetUserIp in class AndroidEnterpriseRequest<Entitlement>public String getEnterpriseId()
public AndroidEnterprise.Entitlements.Update setEnterpriseId(String enterpriseId)
public String getUserId()
public AndroidEnterprise.Entitlements.Update setUserId(String userId)
public String getEntitlementId()
public AndroidEnterprise.Entitlements.Update setEntitlementId(String entitlementId)
public Boolean getInstall()
public AndroidEnterprise.Entitlements.Update setInstall(Boolean install)
public AndroidEnterprise.Entitlements.Update set(String parameterName, Object value)
set in class AndroidEnterpriseRequest<Entitlement>Copyright © 2011–2018 Google. All rights reserved.