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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeviceIdentifier
Returns a new instance of DeviceIdentifier
598 599 600 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 598 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
578 579 580 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 578 def manufacturer @manufacturer end |
#meid ⇒ String
The device’s MEID number.
Corresponds to the JSON property meid
583 584 585 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 583 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
590 591 592 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 590 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
596 597 598 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 596 def serial_number @serial_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
603 604 605 606 607 608 609 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 603 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 |