Class Command
A command.
Implements
Inherited Members
Namespace: Google.Apis.AndroidManagement.v1.Data
Assembly: Google.Apis.AndroidManagement.v1.dll
Syntax
public class Command : IDirectResponseSchema
Properties
ClearAppsDataParams
Parameters for the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to CLEAR_APP_DATA. It is also acceptable to explicitly set type to CLEAR_APP_DATA.
Declaration
[JsonProperty("clearAppsDataParams")]
public virtual ClearAppsDataParams ClearAppsDataParams { get; set; }
Property Value
Type | Description |
---|---|
ClearAppsDataParams |
ClearAppsDataStatus
Output only. Status of the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataStatus.
Declaration
[JsonProperty("clearAppsDataStatus")]
public virtual ClearAppsDataStatus ClearAppsDataStatus { get; set; }
Property Value
Type | Description |
---|---|
ClearAppsDataStatus |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
The timestamp at which the command was created. The timestamp is automatically generated by the server.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Duration
The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration.
Declaration
[JsonProperty("duration")]
public virtual object Duration { get; set; }
Property Value
Type | Description |
---|---|
object |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ErrorCode
If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.
Declaration
[JsonProperty("errorCode")]
public virtual string ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
string |
NewPassword
For commands of type RESET_PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command will fail with INVALID_VALUE.
Declaration
[JsonProperty("newPassword")]
public virtual string NewPassword { get; set; }
Property Value
Type | Description |
---|---|
string |
ResetPasswordFlags
For commands of type RESET_PASSWORD, optionally specifies flags.
Declaration
[JsonProperty("resetPasswordFlags")]
public virtual IList<string> ResetPasswordFlags { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
StartLostModeParams
Parameters for the START_LOST_MODE command to put the device into lost mode. See StartLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to START_LOST_MODE. It is also acceptable to explicitly set type to START_LOST_MODE.
Declaration
[JsonProperty("startLostModeParams")]
public virtual StartLostModeParams StartLostModeParams { get; set; }
Property Value
Type | Description |
---|---|
StartLostModeParams |
StartLostModeStatus
Output only. Status of the START_LOST_MODE command to put the device into lost mode. See StartLostModeStatus.
Declaration
[JsonProperty("startLostModeStatus")]
public virtual StartLostModeStatus StartLostModeStatus { get; set; }
Property Value
Type | Description |
---|---|
StartLostModeStatus |
StopLostModeParams
Parameters for the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to STOP_LOST_MODE. It is also acceptable to explicitly set type to STOP_LOST_MODE.
Declaration
[JsonProperty("stopLostModeParams")]
public virtual StopLostModeParams StopLostModeParams { get; set; }
Property Value
Type | Description |
---|---|
StopLostModeParams |
StopLostModeStatus
Output only. Status of the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeStatus.
Declaration
[JsonProperty("stopLostModeStatus")]
public virtual StopLostModeStatus StopLostModeStatus { get; set; }
Property Value
Type | Description |
---|---|
StopLostModeStatus |
Type
The type of the command.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
UserName
The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to.
Declaration
[JsonProperty("userName")]
public virtual string UserName { get; set; }
Property Value
Type | Description |
---|---|
string |