Class: Google::Apis::AndroiddeviceprovisioningV1::Device

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

An Android or Chrome OS device registered for zero-touch enrollment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Device

Returns a new instance of Device.



564
565
566
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 564

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

Instance Attribute Details

#claimsArray<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



533
534
535
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 533

def claims
  @claims
end

#configurationString

Not available to resellers. Corresponds to the JSON property configuration

Returns:

  • (String)


538
539
540
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 538

def configuration
  @configuration
end

#device_idFixnum

Output only. The ID of the device. Assigned by the server. Corresponds to the JSON property deviceId

Returns:

  • (Fixnum)


543
544
545
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 543

def device_id
  @device_id
end

#device_identifierGoogle::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier

Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read Identifiers. Corresponds to the JSON property deviceIdentifier



550
551
552
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 550

def device_identifier
  @device_identifier
end

#device_metadataGoogle::Apis::AndroiddeviceprovisioningV1::DeviceMetadata

Metadata entries that can be attached to a Device. To learn more, read Device metadata. Corresponds to the JSON property deviceMetadata



556
557
558
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 556

def 
  @device_metadata
end

#nameString

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

Returns:

  • (String)


562
563
564
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 562

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



569
570
571
572
573
574
575
576
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 569

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