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
Inherited Members
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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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=<field1>,<field2>,...
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
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()