public class AndroidEnterprise.Entitlements.Update extends AndroidEnterpriseRequest<Entitlement>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Update(java.lang.String enterpriseId,
java.lang.String userId,
java.lang.String entitlementId,
Entitlement content)
Adds or updates an entitlement to an app for a user.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEnterpriseId()
The ID of the enterprise.
|
java.lang.String |
getEntitlementId()
The ID of the entitlement (a product ID), e.g.
|
java.lang.Boolean |
getInstall()
Set to true to also install the product on all the user's devices where possible.
|
java.lang.String |
getUserId()
The ID of the user.
|
AndroidEnterprise.Entitlements.Update |
set(java.lang.String parameterName,
java.lang.Object value) |
AndroidEnterprise.Entitlements.Update |
setAlt(java.lang.String alt)
Data format for the response.
|
AndroidEnterprise.Entitlements.Update |
setEnterpriseId(java.lang.String enterpriseId)
The ID of the enterprise.
|
AndroidEnterprise.Entitlements.Update |
setEntitlementId(java.lang.String entitlementId)
The ID of the entitlement (a product ID), e.g.
|
AndroidEnterprise.Entitlements.Update |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
AndroidEnterprise.Entitlements.Update |
setInstall(java.lang.Boolean install)
Set to true to also install the product on all the user's devices where possible.
|
AndroidEnterprise.Entitlements.Update |
setKey(java.lang.String key)
API key.
|
AndroidEnterprise.Entitlements.Update |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
AndroidEnterprise.Entitlements.Update |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
AndroidEnterprise.Entitlements.Update |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
AndroidEnterprise.Entitlements.Update |
setUserId(java.lang.String userId)
The ID of the user.
|
AndroidEnterprise.Entitlements.Update |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Update(java.lang.String enterpriseId, java.lang.String userId, java.lang.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 Entitlement
public AndroidEnterprise.Entitlements.Update setAlt(java.lang.String alt)
AndroidEnterpriseRequest
setAlt
in class AndroidEnterpriseRequest<Entitlement>
public AndroidEnterprise.Entitlements.Update setFields(java.lang.String fields)
AndroidEnterpriseRequest
setFields
in class AndroidEnterpriseRequest<Entitlement>
public AndroidEnterprise.Entitlements.Update setKey(java.lang.String key)
AndroidEnterpriseRequest
setKey
in class AndroidEnterpriseRequest<Entitlement>
public AndroidEnterprise.Entitlements.Update setOauthToken(java.lang.String oauthToken)
AndroidEnterpriseRequest
setOauthToken
in class AndroidEnterpriseRequest<Entitlement>
public AndroidEnterprise.Entitlements.Update setPrettyPrint(java.lang.Boolean prettyPrint)
AndroidEnterpriseRequest
setPrettyPrint
in class AndroidEnterpriseRequest<Entitlement>
public AndroidEnterprise.Entitlements.Update setQuotaUser(java.lang.String quotaUser)
AndroidEnterpriseRequest
setQuotaUser
in class AndroidEnterpriseRequest<Entitlement>
public AndroidEnterprise.Entitlements.Update setUserIp(java.lang.String userIp)
AndroidEnterpriseRequest
setUserIp
in class AndroidEnterpriseRequest<Entitlement>
public java.lang.String getEnterpriseId()
public AndroidEnterprise.Entitlements.Update setEnterpriseId(java.lang.String enterpriseId)
public java.lang.String getUserId()
public AndroidEnterprise.Entitlements.Update setUserId(java.lang.String userId)
public java.lang.String getEntitlementId()
public AndroidEnterprise.Entitlements.Update setEntitlementId(java.lang.String entitlementId)
public java.lang.Boolean getInstall()
public AndroidEnterprise.Entitlements.Update setInstall(java.lang.Boolean install)
public AndroidEnterprise.Entitlements.Update set(java.lang.String parameterName, java.lang.Object value)
set
in class AndroidEnterpriseRequest<Entitlement>