Class DevicesResource.SetStateRequest
Sets whether a device's access to Google services (including Google Play) is enabled or disabled for the specified user. Setting the state to "enabled" allows the Google Account to access Google services, while "disabled" blocks access by preventing OAuth token issuance. Preconditions for Enforcement: 1. This setting is only effective for Google-managed users. 2. The enterprise must be linked to a Google Managed Domain. 3. Enforcement requires third-party Android mobile management to be enabled within the Google Admin Console for the user's Organizational Unit. If these preconditions are not met, changes to this state may be ignored.
Inheritance
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()