class Google::Apis::AndroidmanagementV1::Command
A command.
Attributes
The timestamp at which the command was created. The timestamp is automatically generated by the server. Corresponds to the JSON property `createTime` @return [String]
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]
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]
For commands of type RESET_PASSWORD, optionally specifies the new password. Corresponds to the JSON property `newPassword` @return [String]
For commands of type RESET_PASSWORD, optionally specifies flags. Corresponds to the JSON property `resetPasswordFlags` @return [Array<String>]
The type of the command. Corresponds to the JSON property `type` @return [String]
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
# File lib/google/apis/androidmanagement_v1/classes.rb, line 614 def initialize(**args) update!(**args) end
Public Instance Methods
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