Class DevicesResource.GetStateRequest
Retrieves 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.GetStateRequest
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class DevicesResource.GetStateRequest : AndroidEnterpriseBaseServiceRequest<DeviceState>, IClientServiceRequest<DeviceState>, IClientServiceRequest
Constructors
GetStateRequest(IClientService, string, string, string)
Constructs a new GetState request.
Declaration
public GetStateRequest(IClientService service, string enterpriseId, string userId, string deviceId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
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
InitParameters()
Initializes GetState parameter list.
Declaration
protected override void InitParameters()