Class: Google::Apis::AndroidmanagementV1::PolicyEnforcementRule

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

A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyEnforcementRule

Returns a new instance of PolicyEnforcementRule.



2994
2995
2996
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2994

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

Instance Attribute Details

#block_actionGoogle::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



2981
2982
2983
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2981

def block_action
  @block_action
end

#setting_nameString

The top-level policy to enforce. For example, applications or passwordPolicies. Corresponds to the JSON property settingName

Returns:

  • (String)


2986
2987
2988
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2986

def setting_name
  @setting_name
end

#wipe_actionGoogle::Apis::AndroidmanagementV1::WipeAction

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



2992
2993
2994
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2992

def wipe_action
  @wipe_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2999
3000
3001
3002
3003
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2999

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