public class AndroidEnterprise.Devices.Patch extends AndroidEnterpriseRequest<Device>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Patch(String enterpriseId,
String userId,
String deviceId,
Device content)
Updates the device policy.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDeviceId()
The ID of the device.
|
String |
getEnterpriseId()
The ID of the enterprise.
|
String |
getUpdateMask()
Mask that identifies which fields to update.
|
String |
getUserId()
The ID of the user.
|
AndroidEnterprise.Devices.Patch |
set(String parameterName,
Object value) |
AndroidEnterprise.Devices.Patch |
setAlt(String alt)
Data format for the response.
|
AndroidEnterprise.Devices.Patch |
setDeviceId(String deviceId)
The ID of the device.
|
AndroidEnterprise.Devices.Patch |
setEnterpriseId(String enterpriseId)
The ID of the enterprise.
|
AndroidEnterprise.Devices.Patch |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
AndroidEnterprise.Devices.Patch |
setKey(String key)
API key.
|
AndroidEnterprise.Devices.Patch |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
AndroidEnterprise.Devices.Patch |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
AndroidEnterprise.Devices.Patch |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
AndroidEnterprise.Devices.Patch |
setUpdateMask(String updateMask)
Mask that identifies which fields to update.
|
AndroidEnterprise.Devices.Patch |
setUserId(String userId)
The ID of the user.
|
AndroidEnterprise.Devices.Patch |
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 Patch(String enterpriseId, String userId, String deviceId, Device 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.deviceId - The ID of the device.content - the Devicepublic AndroidEnterprise.Devices.Patch setAlt(String alt)
AndroidEnterpriseRequestsetAlt in class AndroidEnterpriseRequest<Device>public AndroidEnterprise.Devices.Patch setFields(String fields)
AndroidEnterpriseRequestsetFields in class AndroidEnterpriseRequest<Device>public AndroidEnterprise.Devices.Patch setKey(String key)
AndroidEnterpriseRequestsetKey in class AndroidEnterpriseRequest<Device>public AndroidEnterprise.Devices.Patch setOauthToken(String oauthToken)
AndroidEnterpriseRequestsetOauthToken in class AndroidEnterpriseRequest<Device>public AndroidEnterprise.Devices.Patch setPrettyPrint(Boolean prettyPrint)
AndroidEnterpriseRequestsetPrettyPrint in class AndroidEnterpriseRequest<Device>public AndroidEnterprise.Devices.Patch setQuotaUser(String quotaUser)
AndroidEnterpriseRequestsetQuotaUser in class AndroidEnterpriseRequest<Device>public AndroidEnterprise.Devices.Patch setUserIp(String userIp)
AndroidEnterpriseRequestsetUserIp in class AndroidEnterpriseRequest<Device>public String getEnterpriseId()
public AndroidEnterprise.Devices.Patch setEnterpriseId(String enterpriseId)
public String getUserId()
public AndroidEnterprise.Devices.Patch setUserId(String userId)
public String getDeviceId()
public AndroidEnterprise.Devices.Patch setDeviceId(String deviceId)
public String getUpdateMask()
public AndroidEnterprise.Devices.Patch setUpdateMask(String updateMask)
public AndroidEnterprise.Devices.Patch set(String parameterName, Object value)
set in class AndroidEnterpriseRequest<Device>Copyright © 2011–2018 Google. All rights reserved.