Class: Google::Apis::AndroidmanagementV1::Command

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Command

Returns a new instance of Command



214
215
216
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 214

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

The timestamp at which the command was created. The timestamp is automatically generated by the server. Corresponds to the JSON property createTime

Returns:

  • (String)


190
191
192
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 190

def create_time
  @create_time
end

#durationString

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

Returns:

  • (String)


197
198
199
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 197

def duration
  @duration
end

#new_passwordString

For commands of type RESET_PASSWORD, optionally specifies the new password. Corresponds to the JSON property newPassword

Returns:

  • (String)


202
203
204
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 202

def new_password
  @new_password
end

#reset_password_flagsArray<String>

For commands of type RESET_PASSWORD, optionally specifies flags. Corresponds to the JSON property resetPasswordFlags

Returns:

  • (Array<String>)


207
208
209
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 207

def reset_password_flags
  @reset_password_flags
end

#typeString

The type of the command. Corresponds to the JSON property type

Returns:

  • (String)


212
213
214
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 212

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



219
220
221
222
223
224
225
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 219

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