Class: Google::Apis::AndroidenterpriseV1::NewDeviceEvent
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidenterpriseV1::NewDeviceEvent
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidenterprise_v1/classes.rb,
 generated/google/apis/androidenterprise_v1/representations.rb,
 generated/google/apis/androidenterprise_v1/representations.rb
Overview
An event generated when a new device is ready to be managed.
Instance Attribute Summary collapse
- 
  
    
      #device_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Android ID of the device. 
- 
  
    
      #dpc_package_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Policy app on the device. 
- 
  
    
      #management_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. 
- 
  
    
      #user_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the user. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ NewDeviceEvent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of NewDeviceEvent. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NewDeviceEvent
Returns a new instance of NewDeviceEvent
| 1376 1377 1378 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1376 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#device_id ⇒ String
The Android ID of the device. This field will always be present.
Corresponds to the JSON property deviceId
| 1355 1356 1357 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1355 def device_id @device_id end | 
#dpc_package_name ⇒ String
Policy app on the device.
Corresponds to the JSON property dpcPackageName
| 1360 1361 1362 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1360 def dpc_package_name @dpc_package_name end | 
#management_type ⇒ String
Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. Possible values include:
- "managedDevice", a device where the DPC is set as device owner,
- "managedProfile", a device where the DPC is set as profile owner.
Corresponds to the JSON property managementType
| 1369 1370 1371 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1369 def management_type @management_type end | 
#user_id ⇒ String
The ID of the user. This field will always be present.
Corresponds to the JSON property userId
| 1374 1375 1376 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1374 def user_id @user_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1381 1382 1383 1384 1385 1386 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1381 def update!(**args) @device_id = args[:device_id] if args.key?(:device_id) @dpc_package_name = args[:dpc_package_name] if args.key?(:dpc_package_name) @management_type = args[:management_type] if args.key?(:management_type) @user_id = args[:user_id] if args.key?(:user_id) end |