Class: Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest

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

Request to claim devices asynchronously in batch. Claiming a device adds the device to zero-touch enrollment and shows the device in the customer's view of the portal.

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

Returns a new instance of ClaimDevicesRequest



102
103
104
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 102

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

Instance Attribute Details

#claimsArray<Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim>

Required. A list of device claims. Corresponds to the JSON property claims



100
101
102
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 100

def claims
  @claims
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



107
108
109
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 107

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