class Google::Apis::AndroidmanagementV1::PolicyEnforcementRule
A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName.
Attributes
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` @return [Google::Apis::AndroidmanagementV1::BlockAction]
The top-level policy to enforce. For example, applications or passwordPolicies. Corresponds to the JSON property `settingName` @return [String]
An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. Corresponds to the JSON property `wipeAction` @return [Google::Apis::AndroidmanagementV1::WipeAction]
Public Class Methods
# File lib/google/apis/androidmanagement_v1/classes.rb, line 3265 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/androidmanagement_v1/classes.rb, line 3270 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