Class DevicesResource.GetStateRequest
Checks if a device can access Google apps and services for a user. Returns whether access is "enabled" or "disabled". A "disabled" state prevents the user's Managed Google Account on the device from successfully authenticating with Google. This blocks access to most Google applications and services, including Google Play, as the device cannot prove its entitlement to access them. New devices default to "disabled". Important: Enforcement of this state depends on the following conditions: * The user must be a managed google account. * The enterprise must be a managed google domain. * Third-party Android mobile management must be active in the Google Admin Console for the user's Organizational Unit. If these conditions aren't met, access may still be possible even in a "disabled" state.
Inheritance
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()