Class: DatadogAPIClient::V2::ApplicationSecurityPolicyCreateAttributes

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

Overview

Create a new WAF policy.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



52
53
54
# File 'lib/datadog_api_client/v2/models/application_security_policy_create_attributes.rb', line 52

def additional_properties
  @additional_properties
end

#based_onObject

When creating a new policy, clone the policy indicated by this identifier.



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

def based_on
  @based_on
end

#descriptionObject

Description of the WAF policy.



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

def description
  @description
end

#is_defaultObject

Make this policy the default policy. The default policy is applied to every service not specifically assigned to another policy.



32
33
34
# File 'lib/datadog_api_client/v2/models/application_security_policy_create_attributes.rb', line 32

def is_default
  @is_default
end

#nameObject

The name of the WAF policy.



35
36
37
# File 'lib/datadog_api_client/v2/models/application_security_policy_create_attributes.rb', line 35

def name
  @name
end

#protection_presetsObject

Presets enabled on this policy.



38
39
40
# File 'lib/datadog_api_client/v2/models/application_security_policy_create_attributes.rb', line 38

def protection_presets
  @protection_presets
end

#rulesObject

Rule overrides applied by the policy.



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

def rules
  @rules
end

#rulesetsObject

Deprecated: Ruleset overrides. Use protectionPresets instead.



44
45
46
# File 'lib/datadog_api_client/v2/models/application_security_policy_create_attributes.rb', line 44

def rulesets
  @rulesets
end

#scopeObject

The scope of the WAF policy.



47
48
49
# File 'lib/datadog_api_client/v2/models/application_security_policy_create_attributes.rb', line 47

def scope
  @scope
end

#versionObject

Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.



50
51
52
# File 'lib/datadog_api_client/v2/models/application_security_policy_create_attributes.rb', line 50

def version
  @version
end