Class: Google::Apis::AndroiddeviceprovisioningV1::Device
- Inherits:
-
Object
- Object
- Google::Apis::AndroiddeviceprovisioningV1::Device
- 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
An Android device registered for zero-touch enrollment.
Instance Attribute Summary collapse
-
#claims ⇒ Array<Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim>
Output only.
-
#configuration ⇒ String
Not available to resellers.
-
#device_id ⇒ Fixnum
Output only.
-
#device_identifier ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier
Encapsulates hardware and product IDs to identify a manufactured device.
-
#device_metadata ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata
Metadata entries that can be attached to a
Device
. -
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Device
constructor
A new instance of Device.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Device
Returns a new instance of Device
492 493 494 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 492 def initialize(**args) update!(**args) end |
Instance Attribute Details
#claims ⇒ Array<Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim>
Output only. The provisioning claims for a device. Devices claimed for
zero-touch enrollment have a claim with the type SECTION_TYPE_ZERO_TOUCH
.
Call
partners.devices.unclaim
or
partners.devices.unclaimAsync
to remove the device from zero-touch enrollment.
Corresponds to the JSON property claims
462 463 464 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 462 def claims @claims end |
#configuration ⇒ String
Not available to resellers.
Corresponds to the JSON property configuration
467 468 469 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 467 def configuration @configuration end |
#device_id ⇒ Fixnum
Output only. The ID of the device. Assigned by the server.
Corresponds to the JSON property deviceId
472 473 474 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 472 def device_id @device_id end |
#device_identifier ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier
Encapsulates hardware and product IDs to identify a manufactured device. To
learn more, read Identifiers.
Corresponds to the JSON property deviceIdentifier
478 479 480 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 478 def device_identifier @device_identifier end |
#device_metadata ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata
Metadata entries that can be attached to a Device
. To learn more, read
Device metadata.
Corresponds to the JSON property deviceMetadata
484 485 486 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 484 def @device_metadata end |
#name ⇒ String
Output only. The API resource name in the format
partners/[PARTNER_ID]/devices/[DEVICE_ID]
. Assigned by the server.
Corresponds to the JSON property name
490 491 492 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 490 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
497 498 499 500 501 502 503 504 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 497 def update!(**args) @claims = args[:claims] if args.key?(:claims) @configuration = args[:configuration] if args.key?(:configuration) @device_id = args[:device_id] if args.key?(:device_id) @device_identifier = args[:device_identifier] if args.key?(:device_identifier) @device_metadata = args[:device_metadata] if args.key?(:device_metadata) @name = args[:name] if args.key?(:name) end |