GoogleApi.AndroidManagement.V1.Model.Command (google_api_android_management v0.30.0) View Source

A command.

Attributes

  • createTime (type: DateTime.t, default: nil) - The timestamp at which the command was created. The timestamp is automatically generated by the server.
  • duration (type: String.t, default: nil) - 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.
  • errorCode (type: String.t, default: nil) - If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.
  • newPassword (type: String.t, default: nil) - For commands of type RESET_PASSWORD, optionally specifies the new password.
  • resetPasswordFlags (type: list(String.t), default: nil) - For commands of type RESET_PASSWORD, optionally specifies flags.
  • type (type: String.t, default: nil) - The type of the command.
  • userName (type: String.t, default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.AndroidManagement.V1.Model.Command{
  createTime: DateTime.t(),
  duration: String.t(),
  errorCode: String.t(),
  newPassword: String.t(),
  resetPasswordFlags: [String.t()],
  type: String.t(),
  userName: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.