Class: Google::Apis::AndroidenterpriseV1::NewDeviceEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb

Overview

An event generated when a new device is ready to be managed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NewDeviceEvent

Returns a new instance of NewDeviceEvent.



1690
1691
1692
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1690

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#device_idString

The Android ID of the device. This field will always be present. Corresponds to the JSON property deviceId

Returns:

  • (String)


1670
1671
1672
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1670

def device_id
  @device_id
end

#dpc_package_nameString

Policy app on the device. Corresponds to the JSON property dpcPackageName

Returns:

  • (String)


1675
1676
1677
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1675

def dpc_package_name
  @dpc_package_name
end

#management_typeString

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

Returns:

  • (String)


1683
1684
1685
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1683

def management_type
  @management_type
end

#user_idString

The ID of the user. This field will always be present. Corresponds to the JSON property userId

Returns:

  • (String)


1688
1689
1690
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1688

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1695
1696
1697
1698
1699
1700
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1695

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