class Google::Apis::AndroidenterpriseV1::NewDeviceEvent

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

Attributes

device_id[RW]

The Android ID of the device. This field will always be present. Corresponds to the JSON property `deviceId` @return [String]

dpc_package_name[RW]

Policy app on the device. Corresponds to the JSON property `dpcPackageName` @return [String]

management_type[RW]

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` @return [String]

user_id[RW]

The ID of the user. This field will always be present. Corresponds to the JSON property `userId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/androidenterprise_v1/classes.rb, line 1569
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidenterprise_v1/classes.rb, line 1574
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