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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NewDeviceEvent

Returns a new instance of NewDeviceEvent



1189
1190
1191
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1189

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)


1173
1174
1175
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1173

def device_id
  @device_id
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)


1182
1183
1184
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1182

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)


1187
1188
1189
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1187

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1194
1195
1196
1197
1198
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1194

def update!(**args)
  @device_id = args[:device_id] if args.key?(:device_id)
  @management_type = args[:management_type] if args.key?(:management_type)
  @user_id = args[:user_id] if args.key?(:user_id)
end