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.



1121
1122
1123
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1121

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

Instance Attribute Details

#claimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerClaim

Identifies one claim request. Corresponds to the JSON property claim



1104
1105
1106
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1104

def claim
  @claim
end

#resultGoogle::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch

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



1109
1110
1111
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1109

def result
  @result
end

#unclaimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim

Identifies one unclaim request. Corresponds to the JSON property unclaim



1114
1115
1116
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1114

def unclaim
  @unclaim
end

#update_metadataGoogle::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments

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



1119
1120
1121
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1119

def 
  @update_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1126
1127
1128
1129
1130
1131
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1126

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