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



753
754
755
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 753

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)


736
737
738
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 736

def device_id
  @device_id
end

#error_identifierString

Error identifier. Corresponds to the JSON property errorIdentifier

Returns:

  • (String)


741
742
743
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 741

def error_identifier
  @error_identifier
end

#error_messageString

Error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


746
747
748
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 746

def error_message
  @error_message
end

#statusString

Process result. Corresponds to the JSON property status

Returns:

  • (String)


751
752
753
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 751

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



758
759
760
761
762
763
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 758

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