Class: Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androiddeviceprovisioning_v1/classes.rb,
lib/google/apis/androiddeviceprovisioning_v1/representations.rb,
lib/google/apis/androiddeviceprovisioning_v1/representations.rb

Overview

Response message containing device id of the claim.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClaimDeviceResponse

Returns a new instance of ClaimDeviceResponse.



105
106
107
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 105

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

Instance Attribute Details

#device_idFixnum

The device ID of the claimed device. Corresponds to the JSON property deviceId

Returns:

  • (Fixnum)


97
98
99
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 97

def device_id
  @device_id
end

#device_nameString

The resource name of the device in the format partners/[PARTNER_ID]/devices/[ DEVICE_ID]. Corresponds to the JSON property deviceName

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 103

def device_name
  @device_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



110
111
112
113
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 110

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