Class DevicesResource.SetStateRequest
Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
Inheritance
DevicesResource.SetStateRequest
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class DevicesResource.SetStateRequest : AndroidEnterpriseBaseServiceRequest<DeviceState>, IClientServiceRequest<DeviceState>, IClientServiceRequest
Constructors
SetStateRequest(IClientService, DeviceState, string, string, string)
Constructs a new SetState request.
Declaration
public SetStateRequest(IClientService service, DeviceState body, string enterpriseId, string userId, string deviceId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
DeviceState | 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
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 SetState parameter list.
Declaration
protected override void InitParameters()