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.
-
#imei2 ⇒ String
The device’s second IMEI number.
-
#manufacturer ⇒ String
The device manufacturer’s name.
-
#meid ⇒ String
The device’s MEID number.
-
#meid2 ⇒ String
The device’s second 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.
696 697 698 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 696 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
649 650 651 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 649 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
654 655 656 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 654 def device_type @device_type end |
#imei ⇒ String
The device’s IMEI number. Validated on input.
Corresponds to the JSON property imei
659 660 661 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 659 def imei @imei end |
#imei2 ⇒ String
The device’s second IMEI number.
Corresponds to the JSON property imei2
664 665 666 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 664 def imei2 @imei2 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
671 672 673 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 671 def manufacturer @manufacturer end |
#meid ⇒ String
The device’s MEID number.
Corresponds to the JSON property meid
676 677 678 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 676 def meid @meid end |
#meid2 ⇒ String
The device’s second MEID number.
Corresponds to the JSON property meid2
681 682 683 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 681 def meid2 @meid2 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
688 689 690 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 688 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
694 695 696 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 694 def serial_number @serial_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
701 702 703 704 705 706 707 708 709 710 711 |
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 701 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) @imei2 = args[:imei2] if args.key?(:imei2) @manufacturer = args[:manufacturer] if args.key?(:manufacturer) @meid = args[:meid] if args.key?(:meid) @meid2 = args[:meid2] if args.key?(:meid2) @model = args[:model] if args.key?(:model) @serial_number = args[:serial_number] if args.key?(:serial_number) end |