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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb

Overview

A command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Command

Returns a new instance of Command.



1130
1131
1132
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1130

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

Instance Attribute Details

#clear_apps_data_paramsGoogle::Apis::AndroidmanagementV1::ClearAppsDataParams

Parameters associated with the CLEAR_APP_DATA command to clear the data of specified apps from the device. Corresponds to the JSON property clearAppsDataParams



1058
1059
1060
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1058

def clear_apps_data_params
  @clear_apps_data_params
end

#clear_apps_data_statusGoogle::Apis::AndroidmanagementV1::ClearAppsDataStatus

Status of the CLEAR_APP_DATA command to clear the data of specified apps from the device. Corresponds to the JSON property clearAppsDataStatus



1064
1065
1066
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1064

def clear_apps_data_status
  @clear_apps_data_status
end

#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)


1070
1071
1072
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1070

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)


1077
1078
1079
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1077

def duration
  @duration
end

#error_codeString

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

Returns:

  • (String)


1083
1084
1085
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1083

def error_code
  @error_code
end

#new_passwordString

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

Returns:

  • (String)


1088
1089
1090
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1088

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>)


1093
1094
1095
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1093

def reset_password_flags
  @reset_password_flags
end

#start_lost_mode_paramsGoogle::Apis::AndroidmanagementV1::StartLostModeParams

Parameters associated with the START_LOST_MODE command to put the device into lost mode. At least one of the parameters, not including the organization name, must be provided in order for the device to be put into lost mode. Corresponds to the JSON property startLostModeParams



1100
1101
1102
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1100

def start_lost_mode_params
  @start_lost_mode_params
end

#start_lost_mode_statusGoogle::Apis::AndroidmanagementV1::StartLostModeStatus

Status of the START_LOST_MODE command to put the device into lost mode. Corresponds to the JSON property startLostModeStatus



1105
1106
1107
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1105

def start_lost_mode_status
  @start_lost_mode_status
end

#stop_lost_mode_paramsGoogle::Apis::AndroidmanagementV1::StopLostModeParams

Parameters associated with the STOP_LOST_MODE command to take the device out of lost mode. Corresponds to the JSON property stopLostModeParams



1111
1112
1113
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1111

def stop_lost_mode_params
  @stop_lost_mode_params
end

#stop_lost_mode_statusGoogle::Apis::AndroidmanagementV1::StopLostModeStatus

Status of the STOP_LOST_MODE command to take the device out of lost mode. Corresponds to the JSON property stopLostModeStatus



1116
1117
1118
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1116

def stop_lost_mode_status
  @stop_lost_mode_status
end

#typeString

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

Returns:

  • (String)


1121
1122
1123
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1121

def type
  @type
end

#user_nameString

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

Returns:

  • (String)


1128
1129
1130
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1128

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1135

def update!(**args)
  @clear_apps_data_params = args[:clear_apps_data_params] if args.key?(:clear_apps_data_params)
  @clear_apps_data_status = args[:clear_apps_data_status] if args.key?(:clear_apps_data_status)
  @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)
  @start_lost_mode_params = args[:start_lost_mode_params] if args.key?(:start_lost_mode_params)
  @start_lost_mode_status = args[:start_lost_mode_status] if args.key?(:start_lost_mode_status)
  @stop_lost_mode_params = args[:stop_lost_mode_params] if args.key?(:stop_lost_mode_params)
  @stop_lost_mode_status = args[:stop_lost_mode_status] if args.key?(:stop_lost_mode_status)
  @type = args[:type] if args.key?(:type)
  @user_name = args[:user_name] if args.key?(:user_name)
end