Class: Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch

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

Overview

Captures the processing status for each device in the operation.

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

Returns a new instance of PerDeviceStatusInBatch



1250
1251
1252
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1250

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

Instance Attribute Details

#device_idFixnum

If processing succeeds, the device ID of the device. Corresponds to the JSON property deviceId

Returns:

  • (Fixnum)


1233
1234
1235
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1233

def device_id
  @device_id
end

#error_identifierString

If processing fails, the error type. Corresponds to the JSON property errorIdentifier

Returns:

  • (String)


1238
1239
1240
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1238

def error_identifier
  @error_identifier
end

#error_messageString

If processing fails, a developer message explaining what went wrong. Corresponds to the JSON property errorMessage

Returns:

  • (String)


1243
1244
1245
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1243

def error_message
  @error_message
end

#statusString

The result status of the device after processing. Corresponds to the JSON property status

Returns:

  • (String)


1248
1249
1250
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1248

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1255
1256
1257
1258
1259
1260
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1255

def update!(**args)
  @device_id = args[:device_id] if args.key?(:device_id)
  @error_identifier = args[:error_identifier] if args.key?(:error_identifier)
  @error_message = args[:error_message] if args.key?(:error_message)
  @status = args[:status] if args.key?(:status)
end