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



1140
1141
1142
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1140

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

Instance Attribute Details

#claimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerClaim

Identifies one claim request. Corresponds to the JSON property claim



1123
1124
1125
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1123

def claim
  @claim
end

#resultGoogle::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch

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



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

def result
  @result
end

#unclaimGoogle::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim

Identifies one unclaim request. Corresponds to the JSON property unclaim



1133
1134
1135
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1133

def unclaim
  @unclaim
end

#update_metadataGoogle::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments

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



1138
1139
1140
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1138

def 
  @update_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1145
1146
1147
1148
1149
1150
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1145

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