class Google::Apis::AndroidmanagementV1::Command

A command.

Attributes

create_time[RW]

The timestamp at which the command was created. The timestamp is automatically generated by the server. Corresponds to the JSON property `createTime` @return [String]

duration[RW]

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. Corresponds to the JSON property `duration` @return [String]

error_code[RW]

If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. Corresponds to the JSON property `errorCode` @return [String]

new_password[RW]

For commands of type RESET_PASSWORD, optionally specifies the new password. Corresponds to the JSON property `newPassword` @return [String]

reset_password_flags[RW]

For commands of type RESET_PASSWORD, optionally specifies flags. Corresponds to the JSON property `resetPasswordFlags` @return [Array<String>]

type[RW]

The type of the command. Corresponds to the JSON property `type` @return [String]

user_name[RW]

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. Corresponds to the JSON property `userName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/androidmanagement_v1/classes.rb, line 614
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidmanagement_v1/classes.rb, line 619
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @duration = args[:duration] if args.key?(:duration)
  @error_code = args[:error_code] if args.key?(:error_code)
  @new_password = args[:new_password] if args.key?(:new_password)
  @reset_password_flags = args[:reset_password_flags] if args.key?(:reset_password_flags)
  @type = args[:type] if args.key?(:type)
  @user_name = args[:user_name] if args.key?(:user_name)
end