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

Constructor Details

#initialize(**args) ⇒ OperationPerDevice

Returns a new instance of OperationPerDevice.



1100
1101
1102
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1100

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

Instance Attribute Details

#claimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerClaim

Identifies one claim request. Corresponds to the JSON property claim



1083
1084
1085
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1083

def claim
  @claim
end

#resultGoogle::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch

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



1088
1089
1090
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1088

def result
  @result
end

#unclaimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim

Identifies one unclaim request. Corresponds to the JSON property unclaim



1093
1094
1095
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1093

def unclaim
  @unclaim
end

#update_metadataGoogle::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments

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



1098
1099
1100
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1098

def 
  @update_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1105
1106
1107
1108
1109
1110
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1105

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