Class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier
- Inherits:
-
Object
- Object
- Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier
- 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
Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read Identifiers.
Instance Attribute Summary collapse
-
#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.
597 598 599 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 597 def initialize(**args) update!(**args) end |
Instance Attribute Details
#imei ⇒ String
The device’s IMEI number. Validated on input.
Corresponds to the JSON property imei
570 571 572 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 570 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
manufacturers.
Corresponds to the JSON property manufacturer
577 578 579 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 577 def manufacturer @manufacturer end |
#meid ⇒ String
The device’s MEID number.
Corresponds to the JSON property meid
582 583 584 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 582 def meid @meid end |
#model ⇒ String
The device model's name. Matches the device's built-in value returned from
android.os.Build.MODEL
. Allowed values are listed in models.
Corresponds to the JSON property model
589 590 591 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 589 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
595 596 597 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 595 def serial_number @serial_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
602 603 604 605 606 607 608 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 602 def update!(**args) @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 |