Class: Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse
- Inherits:
-
Object
- Object
- Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse
- 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
-
#device_id ⇒ Fixnum
The device ID of the claimed device.
-
#device_name ⇒ String
The resource name of the device in the format
partners/[PARTNER_ID]/devices/[ DEVICE_ID]
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClaimDeviceResponse
constructor
A new instance of ClaimDeviceResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ Fixnum
The device ID of the claimed device.
Corresponds to the JSON property deviceId
97 98 99 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 97 def device_id @device_id end |
#device_name ⇒ String
The resource name of the device in the format partners/[PARTNER_ID]/devices/[
DEVICE_ID]
.
Corresponds to the JSON property deviceName
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 |