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.
-
#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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Command
constructor
A new instance of Command.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Command
Returns a new instance of Command
256 257 258 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 256 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
232 233 234 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 232 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
239 240 241 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 239 def duration @duration end |
#new_password ⇒ String
For commands of type RESET_PASSWORD, optionally specifies the new password.
Corresponds to the JSON property newPassword
244 245 246 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 244 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
249 250 251 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 249 def reset_password_flags @reset_password_flags end |
#type ⇒ String
The type of the command.
Corresponds to the JSON property type
254 255 256 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 254 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
261 262 263 264 265 266 267 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 261 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @duration = args[:duration] if args.key?(:duration) @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) end |