Class: Google::Apis::AndroiddeviceprovisioningV1::DevicesLongRunningOperationMetadata

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

Overview

Tracks the status of a long-running operation to asynchronously update a batch of reseller metadata attached to devices. To learn more, read Long‑running batch operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DevicesLongRunningOperationMetadata

Returns a new instance of DevicesLongRunningOperationMetadata.



766
767
768
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 766

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

Instance Attribute Details

#devices_countFixnum

The number of metadata updates in the operation. This might be different from the number of updates in the request if the API can't parse some of the updates. Corresponds to the JSON property devicesCount

Returns:

  • (Fixnum)


752
753
754
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 752

def devices_count
  @devices_count
end

#processing_statusString

The processing status of the operation. Corresponds to the JSON property processingStatus

Returns:

  • (String)


757
758
759
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 757

def processing_status
  @processing_status
end

#progressFixnum

The processing progress of the operation. Measured as a number from 0 to 100. A value of 10O doesn't always mean the operation completed—check for the inclusion of a done field. Corresponds to the JSON property progress

Returns:

  • (Fixnum)


764
765
766
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 764

def progress
  @progress
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



771
772
773
774
775
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 771

def update!(**args)
  @devices_count = args[:devices_count] if args.key?(:devices_count)
  @processing_status = args[:processing_status] if args.key?(:processing_status)
  @progress = args[:progress] if args.key?(:progress)
end