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

Stores the processing result for each device.

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



732
733
734
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 732

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

Instance Attribute Details

#device_idFixnum

Device ID of the device if process succeeds. Corresponds to the JSON property deviceId

Returns:

  • (Fixnum)


715
716
717
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 715

def device_id
  @device_id
end

#error_identifierString

Error identifier. Corresponds to the JSON property errorIdentifier

Returns:

  • (String)


720
721
722
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 720

def error_identifier
  @error_identifier
end

#error_messageString

Error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


725
726
727
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 725

def error_message
  @error_message
end

#statusString

Process result. Corresponds to the JSON property status

Returns:

  • (String)


730
731
732
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 730

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



737
738
739
740
741
742
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 737

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