Class: Google::Apis::AndroidmanagementV1::PolicyEnforcementRule
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::PolicyEnforcementRule
- 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
A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. In the case of multiple matching or multiple triggered enforcement rules, a merge will occur with the most severe action being taken. However, all triggered rules are still kept track of: this includes initial trigger time and all associated non-compliance details. In the situation where the most severe enforcement rule is satisfied, the next most appropriate action is applied.
Instance Attribute Summary collapse
-
#block_action ⇒ Google::Apis::AndroidmanagementV1::BlockAction
An action to block access to apps and data on a fully managed device or in a work profile.
-
#setting_name ⇒ String
The top-level policy to enforce.
-
#wipe_action ⇒ Google::Apis::AndroidmanagementV1::WipeAction
An action to reset a company owned device or delete a work profile.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyEnforcementRule
constructor
A new instance of PolicyEnforcementRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyEnforcementRule
Returns a new instance of PolicyEnforcementRule.
5023 5024 5025 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5023 def initialize(**args) update!(**args) end |
Instance Attribute Details
#block_action ⇒ 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.
Corresponds to the JSON property blockAction
5010 5011 5012 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5010 def block_action @block_action end |
#setting_name ⇒ String
The top-level policy to enforce. For example, applications or passwordPolicies.
Corresponds to the JSON property settingName
5015 5016 5017 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5015 def setting_name @setting_name end |
#wipe_action ⇒ Google::Apis::AndroidmanagementV1::WipeAction
An action to reset a company owned device or delete a work profile. Note:
blockAction must also be specified.
Corresponds to the JSON property wipeAction
5021 5022 5023 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5021 def wipe_action @wipe_action end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5028 5029 5030 5031 5032 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5028 def update!(**args) @block_action = args[:block_action] if args.key?(:block_action) @setting_name = args[:setting_name] if args.key?(:setting_name) @wipe_action = args[:wipe_action] if args.key?(:wipe_action) end |