Class: DatadogAPIClient::V2::SecurityFilterUpdateAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::SecurityFilterUpdateAttributes
- Defined in:
- lib/datadog_api_client/v2/models/security_filter_update_attributes.rb
Overview
The security filters properties to be updated.
Instance Attribute Summary collapse
-
#exclusion_filters ⇒ Object
Exclusion filters to exclude some logs from the security filter.
-
#filtered_data_type ⇒ Object
Returns the value of attribute filtered_data_type.
-
#is_enabled ⇒ Object
Whether the security filter is enabled.
-
#name ⇒ Object
The name of the security filter.
-
#query ⇒ Object
The query of the security filter.
-
#version ⇒ Object
The version of the security filter to update.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SecurityFilterUpdateAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SecurityFilterUpdateAttributes
Initializes the object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/datadog_api_client/v2/models/security_filter_update_attributes.rb', line 84 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateAttributes` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'exclusion_filters') if (value = attributes[:'exclusion_filters']).is_a?(Array) self.exclusion_filters = value end end if attributes.key?(:'filtered_data_type') self.filtered_data_type = attributes[:'filtered_data_type'] end if attributes.key?(:'is_enabled') self.is_enabled = attributes[:'is_enabled'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'query') self.query = attributes[:'query'] end if attributes.key?(:'version') self.version = attributes[:'version'] end end |
Instance Attribute Details
#exclusion_filters ⇒ Object
Exclusion filters to exclude some logs from the security filter.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/security_filter_update_attributes.rb', line 27 def exclusion_filters @exclusion_filters end |
#filtered_data_type ⇒ Object
Returns the value of attribute filtered_data_type.
29 30 31 |
# File 'lib/datadog_api_client/v2/models/security_filter_update_attributes.rb', line 29 def filtered_data_type @filtered_data_type end |
#is_enabled ⇒ Object
Whether the security filter is enabled.
32 33 34 |
# File 'lib/datadog_api_client/v2/models/security_filter_update_attributes.rb', line 32 def is_enabled @is_enabled end |
#name ⇒ Object
The name of the security filter.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/security_filter_update_attributes.rb', line 35 def name @name end |
#query ⇒ Object
The query of the security filter.
38 39 40 |
# File 'lib/datadog_api_client/v2/models/security_filter_update_attributes.rb', line 38 def query @query end |
#version ⇒ Object
The version of the security filter to update.
41 42 43 |
# File 'lib/datadog_api_client/v2/models/security_filter_update_attributes.rb', line 41 def version @version end |