Class: Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice

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

A task for each device in the operation. Corresponds to each device change in the request.

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

Returns a new instance of OperationPerDevice



1011
1012
1013
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1011

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

Instance Attribute Details

#claimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerClaim

Identifies one claim request. Corresponds to the JSON property claim



994
995
996
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 994

def claim
  @claim
end

#resultGoogle::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch

Captures the processing status for each device in the operation. Corresponds to the JSON property result



999
1000
1001
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 999

def result
  @result
end

#unclaimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim

Identifies one unclaim request. Corresponds to the JSON property unclaim



1004
1005
1006
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1004

def unclaim
  @unclaim
end

#update_metadataGoogle::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments

Identifies metdata updates to one device. Corresponds to the JSON property updateMetadata



1009
1010
1011
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1009

def 
  @update_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1016
1017
1018
1019
1020
1021
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1016

def update!(**args)
  @claim = args[:claim] if args.key?(:claim)
  @result = args[:result] if args.key?(:result)
  @unclaim = args[:unclaim] if args.key?(:unclaim)
  @update_metadata = args[:update_metadata] if args.key?(:update_metadata)
end