Class: DatadogAPIClient::V2::ExecutionPolicyWriteAttributes

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/execution_policy_write_attributes.rb

Overview

Attributes used to create or update an execution policy.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#action_patternObject

The set of actions this policy applies to.



25
26
27
# File 'lib/datadog_api_client/v2/models/execution_policy_write_attributes.rb', line 25

def action_pattern
  @action_pattern
end

#additional_propertiesObject

Returns the value of attribute additional_properties.



41
42
43
# File 'lib/datadog_api_client/v2/models/execution_policy_write_attributes.rb', line 41

def additional_properties
  @additional_properties
end

#effectObject

Whether the policy allows or denies matching actions.



28
29
30
# File 'lib/datadog_api_client/v2/models/execution_policy_write_attributes.rb', line 28

def effect
  @effect
end

#nameObject

The name of the execution policy.



31
32
33
# File 'lib/datadog_api_client/v2/models/execution_policy_write_attributes.rb', line 31

def name
  @name
end

#scopeObject

Restricts where the policy applies. At most one of kubernetes, scripts, or remote_action_rshell can be set. An empty object means the policy has no scope restriction.



36
37
38
# File 'lib/datadog_api_client/v2/models/execution_policy_write_attributes.rb', line 36

def scope
  @scope
end

#targetsObject

The targets this policy applies to.



39
40
41
# File 'lib/datadog_api_client/v2/models/execution_policy_write_attributes.rb', line 39

def targets
  @targets
end