Class: Google::Apis::AndroidmanagementV1::RemoteLockEvent

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

Overview

The device or profile has been remotely locked via the LOCK command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RemoteLockEvent

Returns a new instance of RemoteLockEvent.



5231
5232
5233
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5231

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

Instance Attribute Details

#admin_package_nameString

Package name of the admin app requesting the change. Corresponds to the JSON property adminPackageName

Returns:

  • (String)


5219
5220
5221
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5219

def admin_package_name
  @admin_package_name
end

#admin_user_idFixnum

User ID of the admin app from the which the change was requested. Corresponds to the JSON property adminUserId

Returns:

  • (Fixnum)


5224
5225
5226
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5224

def admin_user_id
  @admin_user_id
end

#target_user_idFixnum

User ID in which the change was requested in. Corresponds to the JSON property targetUserId

Returns:

  • (Fixnum)


5229
5230
5231
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5229

def target_user_id
  @target_user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5236
5237
5238
5239
5240
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5236

def update!(**args)
  @admin_package_name = args[:admin_package_name] if args.key?(:admin_package_name)
  @admin_user_id = args[:admin_user_id] if args.key?(:admin_user_id)
  @target_user_id = args[:target_user_id] if args.key?(:target_user_id)
end