Class: Google::Apis::AndroiddeviceprovisioningV1::DevicesLongRunningOperationResponse

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

Tracks the status of a long-running operation to claim, unclaim, or attach metadata to devices. To learn more, read Long‑running batch operations.

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

Returns a new instance of DevicesLongRunningOperationResponse.


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

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

Instance Attribute Details

#per_device_statusArray<Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice>

The processing status for each device in the operation. One PerDeviceStatus per device. The list order matches the items in the original request. Corresponds to the JSON property perDeviceStatus


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

def per_device_status
  @per_device_status
end

#success_countFixnum

A summary of how many items in the operation the server processed successfully. Updated as the operation progresses. Corresponds to the JSON property successCount

Returns:

  • (Fixnum)

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

def success_count
  @success_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


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

def update!(**args)
  @per_device_status = args[:per_device_status] if args.key?(:per_device_status)
  @success_count = args[:success_count] if args.key?(:success_count)
end