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



712
713
714
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 712

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)


695
696
697
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 695

def device_id
  @device_id
end

#error_identifierString

Error identifier. Corresponds to the JSON property errorIdentifier

Returns:

  • (String)


700
701
702
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 700

def error_identifier
  @error_identifier
end

#error_messageString

Error message Corresponds to the JSON property errorMessage

Returns:

  • (String)


705
706
707
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 705

def error_message
  @error_message
end

#statusString

Process result. Corresponds to the JSON property status

Returns:

  • (String)


710
711
712
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 710

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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