Class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier
- Inherits:
-
Object
- Object
- Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier
- 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
Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read Identifiers.
Instance Attribute Summary collapse
-
#chrome_os_attested_device_id ⇒ String
An identifier provided by OEMs, carried through the production and sales process.
-
#device_type ⇒ String
The type of the device Corresponds to the JSON property
deviceType. -
#imei ⇒ String
The device’s IMEI number.
-
#manufacturer ⇒ String
The device manufacturer’s name.
-
#meid ⇒ String
The device’s MEID number.
-
#model ⇒ String
The device model's name.
-
#serial_number ⇒ String
The manufacturer's serial number for the device.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceIdentifier
constructor
A new instance of DeviceIdentifier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceIdentifier
Returns a new instance of DeviceIdentifier.
671 672 673 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 671 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chrome_os_attested_device_id ⇒ String
An identifier provided by OEMs, carried through the production and sales
process. Only applicable to Chrome OS devices.
Corresponds to the JSON property chromeOsAttestedDeviceId
634 635 636 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 634 def chrome_os_attested_device_id @chrome_os_attested_device_id end |
#device_type ⇒ String
The type of the device
Corresponds to the JSON property deviceType
639 640 641 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 639 def device_type @device_type end |
#imei ⇒ String
The device’s IMEI number. Validated on input.
Corresponds to the JSON property imei
644 645 646 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 644 def imei @imei end |
#manufacturer ⇒ String
The device manufacturer’s name. Matches the device's built-in value returned
from android.os.Build.MANUFACTURER. Allowed values are listed in Android
manufacturers.
Corresponds to the JSON property manufacturer
651 652 653 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 651 def manufacturer @manufacturer end |
#meid ⇒ String
The device’s MEID number.
Corresponds to the JSON property meid
656 657 658 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 656 def meid @meid end |
#model ⇒ String
The device model's name. Allowed values are listed in Android models and Chrome OS models.
Corresponds to the JSON property model
663 664 665 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 663 def model @model end |
#serial_number ⇒ String
The manufacturer's serial number for the device. This value might not be
unique across different device models.
Corresponds to the JSON property serialNumber
669 670 671 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 669 def serial_number @serial_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
676 677 678 679 680 681 682 683 684 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 676 def update!(**args) @chrome_os_attested_device_id = args[:chrome_os_attested_device_id] if args.key?(:chrome_os_attested_device_id) @device_type = args[:device_type] if args.key?(:device_type) @imei = args[:imei] if args.key?(:imei) @manufacturer = args[:manufacturer] if args.key?(:manufacturer) @meid = args[:meid] if args.key?(:meid) @model = args[:model] if args.key?(:model) @serial_number = args[:serial_number] if args.key?(:serial_number) end |