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

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

Instance Method Summary collapse

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_idString

An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. Corresponds to the JSON property chromeOsAttestedDeviceId

Returns:

  • (String)


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_typeString

The type of the device Corresponds to the JSON property deviceType

Returns:

  • (String)


654
655
656
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 654

def device_type
  @device_type
end

#imeiString

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

Returns:

  • (String)


659
660
661
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 659

def imei
  @imei
end

#imei2String

The device’s second IMEI number. Corresponds to the JSON property imei2

Returns:

  • (String)


664
665
666
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 664

def imei2
  @imei2
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 Android manufacturers. Corresponds to the JSON property manufacturer

Returns:

  • (String)


671
672
673
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 671

def manufacturer
  @manufacturer
end

#meidString

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

Returns:

  • (String)


676
677
678
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 676

def meid
  @meid
end

#meid2String

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

Returns:

  • (String)


681
682
683
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 681

def meid2
  @meid2
end

#modelString

The device model's name. Allowed values are listed in Android models and Chrome OS models. Corresponds to the JSON property model

Returns:

  • (String)


688
689
690
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 688

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)


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