Show / Hide Table of Contents

Class DevicesResource.UpdateRequest

Updates the device policy. To ensure the policy is properly enforced, you need to prevent unmanaged accounts from accessing Google Play by setting the allowed_accounts in the managed configuration for the Google Play package. See restrict accounts in Google Play. When provisioning a new device, you should set the device policy using this method before adding the managed Google Play Account to the device, otherwise the policy will not be applied for a short period of time after adding the account to the device.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Device>
AndroidEnterpriseBaseServiceRequest<Device>
DevicesResource.UpdateRequest
Implements
IClientServiceRequest<Device>
IClientServiceRequest
Inherited Members
AndroidEnterpriseBaseServiceRequest<Device>.Xgafv
AndroidEnterpriseBaseServiceRequest<Device>.AccessToken
AndroidEnterpriseBaseServiceRequest<Device>.Alt
AndroidEnterpriseBaseServiceRequest<Device>.Callback
AndroidEnterpriseBaseServiceRequest<Device>.Fields
AndroidEnterpriseBaseServiceRequest<Device>.Key
AndroidEnterpriseBaseServiceRequest<Device>.OauthToken
AndroidEnterpriseBaseServiceRequest<Device>.PrettyPrint
AndroidEnterpriseBaseServiceRequest<Device>.QuotaUser
AndroidEnterpriseBaseServiceRequest<Device>.UploadType
AndroidEnterpriseBaseServiceRequest<Device>.UploadProtocol
ClientServiceRequest<Device>.Execute()
ClientServiceRequest<Device>.ExecuteAsStream()
ClientServiceRequest<Device>.ExecuteAsync()
ClientServiceRequest<Device>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Device>.ExecuteAsStreamAsync()
ClientServiceRequest<Device>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Device>.CreateRequest(bool?)
ClientServiceRequest<Device>.GenerateRequestUri()
ClientServiceRequest<Device>.GetDefaultETagAction(string)
ClientServiceRequest<Device>.ETagAction
ClientServiceRequest<Device>.ModifyRequest
ClientServiceRequest<Device>.ValidateParameters
ClientServiceRequest<Device>.ApiVersion
ClientServiceRequest<Device>.RequestParameters
ClientServiceRequest<Device>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class DevicesResource.UpdateRequest : AndroidEnterpriseBaseServiceRequest<Device>, IClientServiceRequest<Device>, IClientServiceRequest

Constructors

UpdateRequest(IClientService, Device, string, string, string)

Constructs a new Update request.

Declaration
public UpdateRequest(IClientService service, Device body, string enterpriseId, string userId, string deviceId)
Parameters
Type Name Description
IClientService service
Device body
string enterpriseId
string userId
string deviceId

Properties

DeviceId

The ID of the device.

Declaration
[RequestParameter("deviceId", RequestParameterType.Path)]
public virtual string DeviceId { get; }
Property Value
Type Description
string

EnterpriseId

The ID of the enterprise.

Declaration
[RequestParameter("enterpriseId", RequestParameterType.Path)]
public virtual string EnterpriseId { get; }
Property Value
Type Description
string

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Device>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Device>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Device>.RestPath

UpdateMask

Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=&lt;field1&gt;,&lt;field2&gt;,...

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual string UpdateMask { get; set; }
Property Value
Type Description
string

UserId

The ID of the user.

Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
Type Description
string

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Device>.GetBody()

InitParameters()

Initializes Update parameter list.

Declaration
protected override void InitParameters()
Overrides
AndroidEnterpriseBaseServiceRequest<Device>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX