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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#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)


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

def manufacturer
  @manufacturer
end

#meidString

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

Returns:

  • (String)


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

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)


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

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)


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