Class: Google::Apis::AndroidmanagementV1::Command
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::Command
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb
Overview
A command.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The timestamp at which the command was created.
-
#duration ⇒ String
The duration for which the command is valid.
-
#error_code ⇒ String
If the command failed, an error code explaining the failure.
-
#new_password ⇒ String
For commands of type RESET_PASSWORD, optionally specifies the new password.
-
#reset_password_flags ⇒ Array<String>
For commands of type RESET_PASSWORD, optionally specifies flags.
-
#type ⇒ String
The type of the command.
-
#user_name ⇒ String
The resource name of the user that owns the device in the form enterprises/
enterpriseId
/users/userId
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Command
constructor
A new instance of Command.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Command
Returns a new instance of Command.
571 572 573 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 571 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The timestamp at which the command was created. The timestamp is automatically
generated by the server.
Corresponds to the JSON property createTime
534 535 536 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 534 def create_time @create_time end |
#duration ⇒ 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
541 542 543 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 541 def duration @duration end |
#error_code ⇒ 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
547 548 549 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 547 def error_code @error_code end |
#new_password ⇒ String
For commands of type RESET_PASSWORD, optionally specifies the new password.
Corresponds to the JSON property newPassword
552 553 554 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 552 def new_password @new_password end |
#reset_password_flags ⇒ Array<String>
For commands of type RESET_PASSWORD, optionally specifies flags.
Corresponds to the JSON property resetPasswordFlags
557 558 559 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 557 def reset_password_flags @reset_password_flags end |
#type ⇒ String
The type of the command.
Corresponds to the JSON property type
562 563 564 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 562 def type @type end |
#user_name ⇒ 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
569 570 571 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 569 def user_name @user_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
576 577 578 579 580 581 582 583 584 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 576 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 |