Class: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb

Overview

A Cloud Workload Security Agent rule returned by the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CloudWorkloadSecurityAgentRuleAttributes

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 108

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes` 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::CloudWorkloadSecurityAgentRuleAttributes`. 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?(:'category')
    self.category = attributes[:'category']
  end

  if attributes.key?(:'creation_date')
    self.creation_date = attributes[:'creation_date']
  end

  if attributes.key?(:'creator')
    self.creator = attributes[:'creator']
  end

  if attributes.key?(:'default_rule')
    self.default_rule = attributes[:'default_rule']
  end

  if attributes.key?(:'description')
    self.description = attributes[:'description']
  end

  if attributes.key?(:'enabled')
    self.enabled = attributes[:'enabled']
  end

  if attributes.key?(:'expression')
    self.expression = attributes[:'expression']
  end

  if attributes.key?(:'name')
    self.name = attributes[:'name']
  end

  if attributes.key?(:'updated_at')
    self.updated_at = attributes[:'updated_at']
  end

  if attributes.key?(:'updater')
    self.updater = attributes[:'updater']
  end

  if attributes.key?(:'version')
    self.version = attributes[:'version']
  end
end

Instance Attribute Details

#categoryObject

The category of the Agent rule.



27
28
29
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 27

def category
  @category
end

#creation_dateObject

When the Agent rule was created, timestamp in milliseconds.



30
31
32
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 30

def creation_date
  @creation_date
end

#creatorObject

Returns the value of attribute creator.



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

def creator
  @creator
end

#default_ruleObject

Whether the rule is included by default.



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

def default_rule
  @default_rule
end

#descriptionObject

The description of the Agent rule.



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

def description
  @description
end

#enabledObject

Whether the Agent rule is enabled.



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

def enabled
  @enabled
end

#expressionObject

The SECL expression of the Agent rule.



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

def expression
  @expression
end

#nameObject

The name of the Agent rule.



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

def name
  @name
end

#updated_atObject

When the Agent rule was last updated, timestamp in milliseconds.



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

def updated_at
  @updated_at
end

#updaterObject

Returns the value of attribute updater.



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

def updater
  @updater
end

#versionObject

The version of the Agent rule.



55
56
57
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 55

def version
  @version
end