class Google::Apis::AndroidmanagementV1::BlockAction
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.
Attributes
block_after_days[RW]
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` @return [Fixnum]
block_scope[RW]
Specifies the scope of this BlockAction
. Only applicable to devices that are company-owned. Corresponds to the JSON property `blockScope` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/androidmanagement_v1/classes.rb, line 502 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/androidmanagement_v1/classes.rb, line 507 def update!(**args) @block_after_days = args[:block_after_days] if args.key?(:block_after_days) @block_scope = args[:block_scope] if args.key?(:block_scope) end