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

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

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.



80
81
82
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 80

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)


72
73
74
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 72

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)


78
79
80
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 78

def device_name
  @device_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



85
86
87
88
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 85

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