Class: Google::Apis::AndroiddeviceprovisioningV1::DeviceReference
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroiddeviceprovisioningV1::DeviceReference
 
 
- 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
A DeviceReference is an API abstraction that lets you supply a device
argument to a method using one of the following identifier types:
- A numeric API resource ID.
 - Real-world hardware IDs, such as IMEI number, belonging to the manufactured
device.
Methods that operate on devices take a 
DeviceReferenceas a parameter type because it's more flexible for the caller. To learn more about device identifiers, read Identifiers. 
Instance Attribute Summary collapse
- 
  
    
      #device_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The ID of the device.
 - 
  
    
      #device_identifier  ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Encapsulates hardware and product IDs to identify a manufactured device.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DeviceReference 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DeviceReference.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeviceReference
Returns a new instance of DeviceReference
      648 649 650  | 
    
      # File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 648 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#device_id ⇒ Fixnum
The ID of the device.
Corresponds to the JSON property deviceId
      639 640 641  | 
    
      # File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 639 def device_id @device_id end  | 
  
#device_identifier ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier
Encapsulates hardware and product IDs to identify a manufactured device.
To understand requirements on identifier sets, read
Identifiers.
Corresponds to the JSON property deviceIdentifier
      646 647 648  | 
    
      # File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 646 def device_identifier @device_identifier end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      653 654 655 656  | 
    
      # File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 653 def update!(**args) @device_id = args[:device_id] if args.key?(:device_id) @device_identifier = args[:device_identifier] if args.key?(:device_identifier) end  |