datadog_api_client 2.34.0 → 2.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +59 -6
  4. data/.generator/schemas/v2/openapi.yaml +1093 -69
  5. data/.generator/src/generator/formatter.py +2 -2
  6. data/.generator/src/generator/openapi.py +1 -1
  7. data/.github/workflows/release.yml +1 -1
  8. data/CHANGELOG.md +36 -0
  9. data/Gemfile +1 -0
  10. data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
  11. data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
  12. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
  13. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +35 -0
  14. data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
  15. data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
  16. data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
  17. data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -0
  18. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
  19. data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
  20. data/examples/v2/on-call/GetTeamOnCallUsers.rb +11 -0
  21. data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
  22. data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
  23. data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
  24. data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
  25. data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
  26. data/examples/v2/teams/AddMemberTeam.rb +15 -0
  27. data/examples/v2/teams/ListMemberTeams.rb +8 -0
  28. data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
  29. data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
  30. data/lib/datadog_api_client/configuration.rb +3 -2
  31. data/lib/datadog_api_client/inflector.rb +42 -6
  32. data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
  33. data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
  34. data/lib/datadog_api_client/v1/models/monitor_draft_status.rb +32 -0
  35. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  36. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
  37. data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
  38. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
  39. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
  40. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +79 -15
  41. data/lib/datadog_api_client/v2/api/on_call_api.rb +67 -0
  42. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
  43. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +13 -0
  44. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +221 -0
  45. data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
  46. data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
  47. data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → add_member_team_request.rb} +5 -5
  48. data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
  49. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
  50. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +33 -3
  51. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
  52. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +165 -0
  53. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +37 -1
  54. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +57 -1
  55. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +57 -1
  56. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
  57. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
  58. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
  59. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
  60. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
  61. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
  62. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +21 -1
  63. data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
  64. data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
  65. data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
  66. data/lib/datadog_api_client/v2/models/dora_failure_response.rb +123 -0
  67. data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
  68. data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
  69. data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
  70. data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
  71. data/lib/datadog_api_client/v2/models/escalation_relationships_responders.rb +107 -0
  72. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items.rb +144 -0
  73. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items_type.rb +26 -0
  74. data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
  75. data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
  76. data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
  77. data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
  78. data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
  79. data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
  80. data/lib/datadog_api_client/v2/models/kind_response_meta.rb +105 -0
  81. data/lib/datadog_api_client/v2/models/list_kind_catalog_response.rb +117 -0
  82. data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
  83. data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
  84. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
  85. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  86. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
  87. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
  88. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
  89. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
  90. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
  91. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  92. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
  93. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
  94. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
  95. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
  96. data/lib/datadog_api_client/v2/models/team_on_call_responders.rb +117 -0
  97. data/lib/datadog_api_client/v2/models/team_on_call_responders_data.rb +143 -0
  98. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
  99. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
  100. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
  101. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
  102. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
  103. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items.rb +144 -0
  104. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
  105. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
  106. data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
  107. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
  108. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
  109. data/lib/datadog_api_client/version.rb +1 -1
  110. data/repository.datadog.yaml +8 -0
  111. metadata +57 -7
@@ -17,11 +17,11 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Response after receiving a DORA incident event.
21
- class DORAIncidentResponse
20
+ # Request to add a member team to super team's hierarchy
21
+ class AddMemberTeamRequest
22
22
  include BaseGenericModel
23
23
 
24
- # Response after receiving a DORA incident event.
24
+ # A member team
25
25
  attr_reader :data
26
26
 
27
27
  attr_accessor :additional_properties
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
38
38
  # @!visibility private
39
39
  def self.openapi_types
40
40
  {
41
- :'data' => :'DORAIncidentResponseData'
41
+ :'data' => :'MemberTeam'
42
42
  }
43
43
  end
44
44
 
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  # @!visibility private
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentResponse` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AddMemberTeamRequest` initialize method"
51
51
  end
52
52
 
53
53
  self.additional_properties = {}
@@ -23,5 +23,7 @@ module DatadogAPIClient::V2
23
23
 
24
24
  USER = "user".freeze
25
25
  SYSTEM = "system".freeze
26
+ API = "api".freeze
27
+ AUTOMATION = "automation".freeze
26
28
  end
27
29
  end
@@ -28,6 +28,12 @@ module DatadogAPIClient::V2
28
28
  # How to generate compliance signals. Useful for cloud_configuration rules only.
29
29
  attr_reader :compliance_signal_options
30
30
 
31
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
32
+ attr_accessor :custom_message
33
+
34
+ # Custom/Overridden name of the rule (used in case of Default rule update).
35
+ attr_accessor :custom_name
36
+
31
37
  # Additional queries to filter matched events before they are processed.
32
38
  attr_accessor :filters
33
39
 
@@ -57,6 +63,8 @@ module DatadogAPIClient::V2
57
63
  {
58
64
  :'cases' => :'cases',
59
65
  :'compliance_signal_options' => :'complianceSignalOptions',
66
+ :'custom_message' => :'customMessage',
67
+ :'custom_name' => :'customName',
60
68
  :'filters' => :'filters',
61
69
  :'is_enabled' => :'isEnabled',
62
70
  :'message' => :'message',
@@ -73,6 +81,8 @@ module DatadogAPIClient::V2
73
81
  {
74
82
  :'cases' => :'Array<CloudConfigurationRuleCaseCreate>',
75
83
  :'compliance_signal_options' => :'CloudConfigurationRuleComplianceSignalOptions',
84
+ :'custom_message' => :'String',
85
+ :'custom_name' => :'String',
76
86
  :'filters' => :'Array<SecurityMonitoringFilter>',
77
87
  :'is_enabled' => :'Boolean',
78
88
  :'message' => :'String',
@@ -111,6 +121,14 @@ module DatadogAPIClient::V2
111
121
  self.compliance_signal_options = attributes[:'compliance_signal_options']
112
122
  end
113
123
 
124
+ if attributes.key?(:'custom_message')
125
+ self.custom_message = attributes[:'custom_message']
126
+ end
127
+
128
+ if attributes.key?(:'custom_name')
129
+ self.custom_name = attributes[:'custom_name']
130
+ end
131
+
114
132
  if attributes.key?(:'filters')
115
133
  if (value = attributes[:'filters']).is_a?(Array)
116
134
  self.filters = value
@@ -245,6 +263,8 @@ module DatadogAPIClient::V2
245
263
  self.class == o.class &&
246
264
  cases == o.cases &&
247
265
  compliance_signal_options == o.compliance_signal_options &&
266
+ custom_message == o.custom_message &&
267
+ custom_name == o.custom_name &&
248
268
  filters == o.filters &&
249
269
  is_enabled == o.is_enabled &&
250
270
  message == o.message &&
@@ -259,7 +279,7 @@ module DatadogAPIClient::V2
259
279
  # @return [Integer] Hash code
260
280
  # @!visibility private
261
281
  def hash
262
- [cases, compliance_signal_options, filters, is_enabled, message, name, options, tags, type, additional_properties].hash
282
+ [cases, compliance_signal_options, custom_message, custom_name, filters, is_enabled, message, name, options, tags, type, additional_properties].hash
263
283
  end
264
284
  end
265
285
  end
@@ -24,9 +24,18 @@ module DatadogAPIClient::V2
24
24
  # SECL expression used to target the container to apply the action on
25
25
  attr_accessor :filter
26
26
 
27
+ # An empty object indicating the hash action
28
+ attr_accessor :_hash
29
+
27
30
  # Kill system call applied on the container matching the rule
28
31
  attr_accessor :kill
29
32
 
33
+ # The metadata action applied on the scope matching the rule
34
+ attr_accessor :metadata
35
+
36
+ # The set action applied on the scope matching the rule
37
+ attr_accessor :set
38
+
30
39
  attr_accessor :additional_properties
31
40
 
32
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +43,10 @@ module DatadogAPIClient::V2
34
43
  def self.attribute_map
35
44
  {
36
45
  :'filter' => :'filter',
37
- :'kill' => :'kill'
46
+ :'_hash' => :'hash',
47
+ :'kill' => :'kill',
48
+ :'metadata' => :'metadata',
49
+ :'set' => :'set'
38
50
  }
39
51
  end
40
52
 
@@ -43,7 +55,10 @@ module DatadogAPIClient::V2
43
55
  def self.openapi_types
44
56
  {
45
57
  :'filter' => :'String',
46
- :'kill' => :'CloudWorkloadSecurityAgentRuleKill'
58
+ :'_hash' => :'Hash<String, Object>',
59
+ :'kill' => :'CloudWorkloadSecurityAgentRuleKill',
60
+ :'metadata' => :'CloudWorkloadSecurityAgentRuleActionMetadata',
61
+ :'set' => :'CloudWorkloadSecurityAgentRuleActionSet'
47
62
  }
48
63
  end
49
64
 
@@ -69,9 +84,21 @@ module DatadogAPIClient::V2
69
84
  self.filter = attributes[:'filter']
70
85
  end
71
86
 
87
+ if attributes.key?(:'_hash')
88
+ self._hash = attributes[:'_hash']
89
+ end
90
+
72
91
  if attributes.key?(:'kill')
73
92
  self.kill = attributes[:'kill']
74
93
  end
94
+
95
+ if attributes.key?(:'metadata')
96
+ self.metadata = attributes[:'metadata']
97
+ end
98
+
99
+ if attributes.key?(:'set')
100
+ self.set = attributes[:'set']
101
+ end
75
102
  end
76
103
 
77
104
  # Returns the object in the form of hash, with additionalProperties support.
@@ -101,7 +128,10 @@ module DatadogAPIClient::V2
101
128
  return true if self.equal?(o)
102
129
  self.class == o.class &&
103
130
  filter == o.filter &&
131
+ _hash == o._hash &&
104
132
  kill == o.kill &&
133
+ metadata == o.metadata &&
134
+ set == o.set &&
105
135
  additional_properties == o.additional_properties
106
136
  end
107
137
 
@@ -109,7 +139,7 @@ module DatadogAPIClient::V2
109
139
  # @return [Integer] Hash code
110
140
  # @!visibility private
111
141
  def hash
112
- [filter, kill, additional_properties].hash
142
+ [filter, _hash, kill, metadata, set, additional_properties].hash
113
143
  end
114
144
  end
115
145
  end
@@ -0,0 +1,125 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The metadata action applied on the scope matching the rule
21
+ class CloudWorkloadSecurityAgentRuleActionMetadata
22
+ include BaseGenericModel
23
+
24
+ # The image tag of the metadata action
25
+ attr_accessor :image_tag
26
+
27
+ # The service of the metadata action
28
+ attr_accessor :service
29
+
30
+ # The short image of the metadata action
31
+ attr_accessor :short_image
32
+
33
+ attr_accessor :additional_properties
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ # @!visibility private
37
+ def self.attribute_map
38
+ {
39
+ :'image_tag' => :'image_tag',
40
+ :'service' => :'service',
41
+ :'short_image' => :'short_image'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'image_tag' => :'String',
50
+ :'service' => :'String',
51
+ :'short_image' => :'String'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param attributes [Hash] Model attributes in the form of hash
57
+ # @!visibility private
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionMetadata` initialize method"
61
+ end
62
+
63
+ self.additional_properties = {}
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ self.additional_properties[k.to_sym] = v
68
+ else
69
+ h[k.to_sym] = v
70
+ end
71
+ }
72
+
73
+ if attributes.key?(:'image_tag')
74
+ self.image_tag = attributes[:'image_tag']
75
+ end
76
+
77
+ if attributes.key?(:'service')
78
+ self.service = attributes[:'service']
79
+ end
80
+
81
+ if attributes.key?(:'short_image')
82
+ self.short_image = attributes[:'short_image']
83
+ end
84
+ end
85
+
86
+ # Returns the object in the form of hash, with additionalProperties support.
87
+ # @return [Hash] Returns the object in the form of hash
88
+ # @!visibility private
89
+ def to_hash
90
+ hash = {}
91
+ self.class.attribute_map.each_pair do |attr, param|
92
+ value = self.send(attr)
93
+ if value.nil?
94
+ is_nullable = self.class.openapi_nullable.include?(attr)
95
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
+ end
97
+
98
+ hash[param] = _to_hash(value)
99
+ end
100
+ self.additional_properties.each_pair do |attr, value|
101
+ hash[attr] = value
102
+ end
103
+ hash
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param o [Object] Object to be compared
108
+ # @!visibility private
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ image_tag == o.image_tag &&
113
+ service == o.service &&
114
+ short_image == o.short_image &&
115
+ additional_properties == o.additional_properties
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ # @!visibility private
121
+ def hash
122
+ [image_tag, service, short_image, additional_properties].hash
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,165 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The set action applied on the scope matching the rule
21
+ class CloudWorkloadSecurityAgentRuleActionSet
22
+ include BaseGenericModel
23
+
24
+ # Whether the value should be appended to the field
25
+ attr_accessor :append
26
+
27
+ # The field of the set action
28
+ attr_accessor :field
29
+
30
+ # The name of the set action
31
+ attr_accessor :name
32
+
33
+ # The scope of the set action
34
+ attr_accessor :scope
35
+
36
+ # The size of the set action
37
+ attr_accessor :size
38
+
39
+ # The time to live of the set action
40
+ attr_accessor :ttl
41
+
42
+ # The value of the set action
43
+ attr_accessor :value
44
+
45
+ attr_accessor :additional_properties
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ # @!visibility private
49
+ def self.attribute_map
50
+ {
51
+ :'append' => :'append',
52
+ :'field' => :'field',
53
+ :'name' => :'name',
54
+ :'scope' => :'scope',
55
+ :'size' => :'size',
56
+ :'ttl' => :'ttl',
57
+ :'value' => :'value'
58
+ }
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ # @!visibility private
63
+ def self.openapi_types
64
+ {
65
+ :'append' => :'Boolean',
66
+ :'field' => :'String',
67
+ :'name' => :'String',
68
+ :'scope' => :'String',
69
+ :'size' => :'Integer',
70
+ :'ttl' => :'Integer',
71
+ :'value' => :'String'
72
+ }
73
+ end
74
+
75
+ # Initializes the object
76
+ # @param attributes [Hash] Model attributes in the form of hash
77
+ # @!visibility private
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionSet` initialize method"
81
+ end
82
+
83
+ self.additional_properties = {}
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!self.class.attribute_map.key?(k.to_sym))
87
+ self.additional_properties[k.to_sym] = v
88
+ else
89
+ h[k.to_sym] = v
90
+ end
91
+ }
92
+
93
+ if attributes.key?(:'append')
94
+ self.append = attributes[:'append']
95
+ end
96
+
97
+ if attributes.key?(:'field')
98
+ self.field = attributes[:'field']
99
+ end
100
+
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
105
+ if attributes.key?(:'scope')
106
+ self.scope = attributes[:'scope']
107
+ end
108
+
109
+ if attributes.key?(:'size')
110
+ self.size = attributes[:'size']
111
+ end
112
+
113
+ if attributes.key?(:'ttl')
114
+ self.ttl = attributes[:'ttl']
115
+ end
116
+
117
+ if attributes.key?(:'value')
118
+ self.value = attributes[:'value']
119
+ end
120
+ end
121
+
122
+ # Returns the object in the form of hash, with additionalProperties support.
123
+ # @return [Hash] Returns the object in the form of hash
124
+ # @!visibility private
125
+ def to_hash
126
+ hash = {}
127
+ self.class.attribute_map.each_pair do |attr, param|
128
+ value = self.send(attr)
129
+ if value.nil?
130
+ is_nullable = self.class.openapi_nullable.include?(attr)
131
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
132
+ end
133
+
134
+ hash[param] = _to_hash(value)
135
+ end
136
+ self.additional_properties.each_pair do |attr, value|
137
+ hash[attr] = value
138
+ end
139
+ hash
140
+ end
141
+
142
+ # Checks equality by comparing each attribute.
143
+ # @param o [Object] Object to be compared
144
+ # @!visibility private
145
+ def ==(o)
146
+ return true if self.equal?(o)
147
+ self.class == o.class &&
148
+ append == o.append &&
149
+ field == o.field &&
150
+ name == o.name &&
151
+ scope == o.scope &&
152
+ size == o.size &&
153
+ ttl == o.ttl &&
154
+ value == o.value &&
155
+ additional_properties == o.additional_properties
156
+ end
157
+
158
+ # Calculates hash code according to all attributes.
159
+ # @return [Integer] Hash code
160
+ # @!visibility private
161
+ def hash
162
+ [append, field, name, scope, size, ttl, value, additional_properties].hash
163
+ end
164
+ end
165
+ end
@@ -27,6 +27,9 @@ module DatadogAPIClient::V2
27
27
  # The version of the Agent
28
28
  attr_accessor :agent_constraint
29
29
 
30
+ # The blocking policies that the rule belongs to
31
+ attr_accessor :blocking
32
+
30
33
  # The category of the Agent rule
31
34
  attr_accessor :category
32
35
 
@@ -45,6 +48,9 @@ module DatadogAPIClient::V2
45
48
  # The description of the Agent rule
46
49
  attr_accessor :description
47
50
 
51
+ # The disabled policies that the rule belongs to
52
+ attr_accessor :disabled
53
+
48
54
  # Whether the Agent rule is enabled
49
55
  attr_accessor :enabled
50
56
 
@@ -54,6 +60,9 @@ module DatadogAPIClient::V2
54
60
  # The platforms the Agent rule is supported on
55
61
  attr_accessor :filters
56
62
 
63
+ # The monitoring policies that the rule belongs to
64
+ attr_accessor :monitoring
65
+
57
66
  # The name of the Agent rule
58
67
  attr_accessor :name
59
68
 
@@ -83,15 +92,18 @@ module DatadogAPIClient::V2
83
92
  {
84
93
  :'actions' => :'actions',
85
94
  :'agent_constraint' => :'agentConstraint',
95
+ :'blocking' => :'blocking',
86
96
  :'category' => :'category',
87
97
  :'creation_author_uu_id' => :'creationAuthorUuId',
88
98
  :'creation_date' => :'creationDate',
89
99
  :'creator' => :'creator',
90
100
  :'default_rule' => :'defaultRule',
91
101
  :'description' => :'description',
102
+ :'disabled' => :'disabled',
92
103
  :'enabled' => :'enabled',
93
104
  :'expression' => :'expression',
94
105
  :'filters' => :'filters',
106
+ :'monitoring' => :'monitoring',
95
107
  :'name' => :'name',
96
108
  :'product_tags' => :'product_tags',
97
109
  :'update_author_uu_id' => :'updateAuthorUuId',
@@ -108,15 +120,18 @@ module DatadogAPIClient::V2
108
120
  {
109
121
  :'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
110
122
  :'agent_constraint' => :'String',
123
+ :'blocking' => :'Array<String>',
111
124
  :'category' => :'String',
112
125
  :'creation_author_uu_id' => :'String',
113
126
  :'creation_date' => :'Integer',
114
127
  :'creator' => :'CloudWorkloadSecurityAgentRuleCreatorAttributes',
115
128
  :'default_rule' => :'Boolean',
116
129
  :'description' => :'String',
130
+ :'disabled' => :'Array<String>',
117
131
  :'enabled' => :'Boolean',
118
132
  :'expression' => :'String',
119
133
  :'filters' => :'Array<String>',
134
+ :'monitoring' => :'Array<String>',
120
135
  :'name' => :'String',
121
136
  :'product_tags' => :'Array<String>',
122
137
  :'update_author_uu_id' => :'String',
@@ -163,6 +178,12 @@ module DatadogAPIClient::V2
163
178
  self.agent_constraint = attributes[:'agent_constraint']
164
179
  end
165
180
 
181
+ if attributes.key?(:'blocking')
182
+ if (value = attributes[:'blocking']).is_a?(Array)
183
+ self.blocking = value
184
+ end
185
+ end
186
+
166
187
  if attributes.key?(:'category')
167
188
  self.category = attributes[:'category']
168
189
  end
@@ -187,6 +208,12 @@ module DatadogAPIClient::V2
187
208
  self.description = attributes[:'description']
188
209
  end
189
210
 
211
+ if attributes.key?(:'disabled')
212
+ if (value = attributes[:'disabled']).is_a?(Array)
213
+ self.disabled = value
214
+ end
215
+ end
216
+
190
217
  if attributes.key?(:'enabled')
191
218
  self.enabled = attributes[:'enabled']
192
219
  end
@@ -201,6 +228,12 @@ module DatadogAPIClient::V2
201
228
  end
202
229
  end
203
230
 
231
+ if attributes.key?(:'monitoring')
232
+ if (value = attributes[:'monitoring']).is_a?(Array)
233
+ self.monitoring = value
234
+ end
235
+ end
236
+
204
237
  if attributes.key?(:'name')
205
238
  self.name = attributes[:'name']
206
239
  end
@@ -260,15 +293,18 @@ module DatadogAPIClient::V2
260
293
  self.class == o.class &&
261
294
  actions == o.actions &&
262
295
  agent_constraint == o.agent_constraint &&
296
+ blocking == o.blocking &&
263
297
  category == o.category &&
264
298
  creation_author_uu_id == o.creation_author_uu_id &&
265
299
  creation_date == o.creation_date &&
266
300
  creator == o.creator &&
267
301
  default_rule == o.default_rule &&
268
302
  description == o.description &&
303
+ disabled == o.disabled &&
269
304
  enabled == o.enabled &&
270
305
  expression == o.expression &&
271
306
  filters == o.filters &&
307
+ monitoring == o.monitoring &&
272
308
  name == o.name &&
273
309
  product_tags == o.product_tags &&
274
310
  update_author_uu_id == o.update_author_uu_id &&
@@ -283,7 +319,7 @@ module DatadogAPIClient::V2
283
319
  # @return [Integer] Hash code
284
320
  # @!visibility private
285
321
  def hash
286
- [actions, agent_constraint, category, creation_author_uu_id, creation_date, creator, default_rule, description, enabled, expression, filters, name, product_tags, update_author_uu_id, update_date, updated_at, updater, version, additional_properties].hash
322
+ [actions, agent_constraint, blocking, category, creation_author_uu_id, creation_date, creator, default_rule, description, disabled, enabled, expression, filters, monitoring, name, product_tags, update_author_uu_id, update_date, updated_at, updater, version, additional_properties].hash
287
323
  end
288
324
  end
289
325
  end