Class: Google::Apis::AndroidmanagementV1::BlockAction

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

Overview

An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a device or work profile to displays a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified.

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) ⇒ BlockAction

Returns a new instance of BlockAction.



449
450
451
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 449

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

Instance Attribute Details

#block_after_daysFixnum

Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays. Corresponds to the JSON property blockAfterDays

Returns:

  • (Fixnum)


447
448
449
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 447

def block_after_days
  @block_after_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



454
455
456
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 454

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