Class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#imeiString

The device’s IMEI number. Validated on input. Corresponds to the JSON property imei

Returns:

  • (String)


570
571
572
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 570

def imei
  @imei
end

#manufacturerString

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

Returns:

  • (String)


577
578
579
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 577

def manufacturer
  @manufacturer
end

#meidString

The device’s MEID number. Corresponds to the JSON property meid

Returns:

  • (String)


582
583
584
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 582

def meid
  @meid
end

#modelString

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

Returns:

  • (String)


589
590
591
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 589

def model
  @model
end

#serial_numberString

The manufacturer's serial number for the device. This value might not be unique across different device models. Corresponds to the JSON property serialNumber

Returns:

  • (String)


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