Class: Google::Apis::AndroidmanagementV1::BlockAction
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::BlockAction
- 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
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
-
#block_after_days ⇒ Fixnum
Number of days the policy is non-compliant before the device or work profile is blocked.
-
#block_scope ⇒ String
Specifies the scope of this BlockAction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BlockAction
constructor
A new instance of BlockAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BlockAction
Returns a new instance of BlockAction.
839 840 841 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 839 def initialize(**args) update!(**args) end |
Instance Attribute Details
#block_after_days ⇒ Fixnum
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
831 832 833 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 831 def block_after_days @block_after_days end |
#block_scope ⇒ String
Specifies the scope of this BlockAction. Only applicable to devices that are
company-owned.
Corresponds to the JSON property blockScope
837 838 839 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 837 def block_scope @block_scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
844 845 846 847 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 844 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 |