datadog_api_client 2.35.0 → 2.37.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +3 -3
  4. data/.generator/schemas/v2/openapi.yaml +357 -0
  5. data/CHANGELOG.md +26 -0
  6. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -0
  7. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
  8. data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
  9. data/examples/v2/teams/AddMemberTeam.rb +15 -0
  10. data/examples/v2/teams/ListMemberTeams.rb +8 -0
  11. data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
  12. data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
  13. data/lib/datadog_api_client/configuration.rb +7 -0
  14. data/lib/datadog_api_client/inflector.rb +8 -0
  15. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
  16. data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
  17. data/lib/datadog_api_client/v2/models/add_member_team_request.rb +123 -0
  18. data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
  19. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
  20. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +11 -1
  21. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
  22. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
  23. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
  24. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
  25. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
  26. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
  27. data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
  28. data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
  29. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
  30. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  31. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
  32. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
  33. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
  34. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
  35. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
  36. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  37. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
  38. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
  39. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
  40. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
  41. data/lib/datadog_api_client/version.rb +1 -1
  42. metadata +14 -1
@@ -24,6 +24,9 @@ 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
 
@@ -40,6 +43,7 @@ module DatadogAPIClient::V2
40
43
  def self.attribute_map
41
44
  {
42
45
  :'filter' => :'filter',
46
+ :'_hash' => :'hash',
43
47
  :'kill' => :'kill',
44
48
  :'metadata' => :'metadata',
45
49
  :'set' => :'set'
@@ -51,6 +55,7 @@ module DatadogAPIClient::V2
51
55
  def self.openapi_types
52
56
  {
53
57
  :'filter' => :'String',
58
+ :'_hash' => :'Hash<String, Object>',
54
59
  :'kill' => :'CloudWorkloadSecurityAgentRuleKill',
55
60
  :'metadata' => :'CloudWorkloadSecurityAgentRuleActionMetadata',
56
61
  :'set' => :'CloudWorkloadSecurityAgentRuleActionSet'
@@ -79,6 +84,10 @@ module DatadogAPIClient::V2
79
84
  self.filter = attributes[:'filter']
80
85
  end
81
86
 
87
+ if attributes.key?(:'_hash')
88
+ self._hash = attributes[:'_hash']
89
+ end
90
+
82
91
  if attributes.key?(:'kill')
83
92
  self.kill = attributes[:'kill']
84
93
  end
@@ -119,6 +128,7 @@ module DatadogAPIClient::V2
119
128
  return true if self.equal?(o)
120
129
  self.class == o.class &&
121
130
  filter == o.filter &&
131
+ _hash == o._hash &&
122
132
  kill == o.kill &&
123
133
  metadata == o.metadata &&
124
134
  set == o.set &&
@@ -129,7 +139,7 @@ module DatadogAPIClient::V2
129
139
  # @return [Integer] Hash code
130
140
  # @!visibility private
131
141
  def hash
132
- [filter, kill, metadata, set, additional_properties].hash
142
+ [filter, _hash, kill, metadata, set, additional_properties].hash
133
143
  end
134
144
  end
135
145
  end
@@ -28,7 +28,8 @@ module DatadogAPIClient::V2
28
28
  [
29
29
  :'CustomDestinationForwardDestinationHttp',
30
30
  :'CustomDestinationForwardDestinationSplunk',
31
- :'CustomDestinationForwardDestinationElasticsearch'
31
+ :'CustomDestinationForwardDestinationElasticsearch',
32
+ :'CustomDestinationForwardDestinationMicrosoftSentinel'
32
33
  ]
33
34
  end
34
35
  # Builds the object
@@ -0,0 +1,228 @@
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 Microsoft Sentinel destination.
21
+ class CustomDestinationForwardDestinationMicrosoftSentinel
22
+ include BaseGenericModel
23
+
24
+ # Client ID from the Datadog Azure integration.
25
+ attr_reader :client_id
26
+
27
+ # Azure data collection endpoint.
28
+ attr_reader :data_collection_endpoint
29
+
30
+ # Azure data collection rule ID.
31
+ attr_reader :data_collection_rule_id
32
+
33
+ # Azure stream name.
34
+ attr_reader :stream_name
35
+
36
+ # Tenant ID from the Datadog Azure integration.
37
+ attr_reader :tenant_id
38
+
39
+ # Type of the Microsoft Sentinel destination.
40
+ attr_reader :type
41
+
42
+ attr_accessor :additional_properties
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ # @!visibility private
46
+ def self.attribute_map
47
+ {
48
+ :'client_id' => :'client_id',
49
+ :'data_collection_endpoint' => :'data_collection_endpoint',
50
+ :'data_collection_rule_id' => :'data_collection_rule_id',
51
+ :'stream_name' => :'stream_name',
52
+ :'tenant_id' => :'tenant_id',
53
+ :'type' => :'type'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ # @!visibility private
59
+ def self.openapi_types
60
+ {
61
+ :'client_id' => :'String',
62
+ :'data_collection_endpoint' => :'String',
63
+ :'data_collection_rule_id' => :'String',
64
+ :'stream_name' => :'String',
65
+ :'tenant_id' => :'String',
66
+ :'type' => :'CustomDestinationForwardDestinationMicrosoftSentinelType'
67
+ }
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param attributes [Hash] Model attributes in the form of hash
72
+ # @!visibility private
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationForwardDestinationMicrosoftSentinel` initialize method"
76
+ end
77
+
78
+ self.additional_properties = {}
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!self.class.attribute_map.key?(k.to_sym))
82
+ self.additional_properties[k.to_sym] = v
83
+ else
84
+ h[k.to_sym] = v
85
+ end
86
+ }
87
+
88
+ if attributes.key?(:'client_id')
89
+ self.client_id = attributes[:'client_id']
90
+ end
91
+
92
+ if attributes.key?(:'data_collection_endpoint')
93
+ self.data_collection_endpoint = attributes[:'data_collection_endpoint']
94
+ end
95
+
96
+ if attributes.key?(:'data_collection_rule_id')
97
+ self.data_collection_rule_id = attributes[:'data_collection_rule_id']
98
+ end
99
+
100
+ if attributes.key?(:'stream_name')
101
+ self.stream_name = attributes[:'stream_name']
102
+ end
103
+
104
+ if attributes.key?(:'tenant_id')
105
+ self.tenant_id = attributes[:'tenant_id']
106
+ end
107
+
108
+ if attributes.key?(:'type')
109
+ self.type = attributes[:'type']
110
+ end
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ # @!visibility private
116
+ def valid?
117
+ return false if @client_id.nil?
118
+ return false if @data_collection_endpoint.nil?
119
+ return false if @data_collection_rule_id.nil?
120
+ return false if @stream_name.nil?
121
+ return false if @tenant_id.nil?
122
+ return false if @type.nil?
123
+ true
124
+ end
125
+
126
+ # Custom attribute writer method with validation
127
+ # @param client_id [Object] Object to be assigned
128
+ # @!visibility private
129
+ def client_id=(client_id)
130
+ if client_id.nil?
131
+ fail ArgumentError, 'invalid value for "client_id", client_id cannot be nil.'
132
+ end
133
+ @client_id = client_id
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param data_collection_endpoint [Object] Object to be assigned
138
+ # @!visibility private
139
+ def data_collection_endpoint=(data_collection_endpoint)
140
+ if data_collection_endpoint.nil?
141
+ fail ArgumentError, 'invalid value for "data_collection_endpoint", data_collection_endpoint cannot be nil.'
142
+ end
143
+ @data_collection_endpoint = data_collection_endpoint
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param data_collection_rule_id [Object] Object to be assigned
148
+ # @!visibility private
149
+ def data_collection_rule_id=(data_collection_rule_id)
150
+ if data_collection_rule_id.nil?
151
+ fail ArgumentError, 'invalid value for "data_collection_rule_id", data_collection_rule_id cannot be nil.'
152
+ end
153
+ @data_collection_rule_id = data_collection_rule_id
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param stream_name [Object] Object to be assigned
158
+ # @!visibility private
159
+ def stream_name=(stream_name)
160
+ if stream_name.nil?
161
+ fail ArgumentError, 'invalid value for "stream_name", stream_name cannot be nil.'
162
+ end
163
+ @stream_name = stream_name
164
+ end
165
+
166
+ # Custom attribute writer method with validation
167
+ # @param tenant_id [Object] Object to be assigned
168
+ # @!visibility private
169
+ def tenant_id=(tenant_id)
170
+ if tenant_id.nil?
171
+ fail ArgumentError, 'invalid value for "tenant_id", tenant_id cannot be nil.'
172
+ end
173
+ @tenant_id = tenant_id
174
+ end
175
+
176
+ # Custom attribute writer method with validation
177
+ # @param type [Object] Object to be assigned
178
+ # @!visibility private
179
+ def type=(type)
180
+ if type.nil?
181
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
182
+ end
183
+ @type = type
184
+ end
185
+
186
+ # Returns the object in the form of hash, with additionalProperties support.
187
+ # @return [Hash] Returns the object in the form of hash
188
+ # @!visibility private
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ self.additional_properties.each_pair do |attr, value|
201
+ hash[attr] = value
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Checks equality by comparing each attribute.
207
+ # @param o [Object] Object to be compared
208
+ # @!visibility private
209
+ def ==(o)
210
+ return true if self.equal?(o)
211
+ self.class == o.class &&
212
+ client_id == o.client_id &&
213
+ data_collection_endpoint == o.data_collection_endpoint &&
214
+ data_collection_rule_id == o.data_collection_rule_id &&
215
+ stream_name == o.stream_name &&
216
+ tenant_id == o.tenant_id &&
217
+ type == o.type &&
218
+ additional_properties == o.additional_properties
219
+ end
220
+
221
+ # Calculates hash code according to all attributes.
222
+ # @return [Integer] Hash code
223
+ # @!visibility private
224
+ def hash
225
+ [client_id, data_collection_endpoint, data_collection_rule_id, stream_name, tenant_id, type, additional_properties].hash
226
+ end
227
+ end
228
+ end
@@ -0,0 +1,26 @@
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
+ # Type of the Microsoft Sentinel destination.
21
+ class CustomDestinationForwardDestinationMicrosoftSentinelType
22
+ include BaseEnumModel
23
+
24
+ MICROSOFT_SENTINEL = "microsoft_sentinel".freeze
25
+ end
26
+ end
@@ -28,7 +28,8 @@ module DatadogAPIClient::V2
28
28
  [
29
29
  :'CustomDestinationResponseForwardDestinationHttp',
30
30
  :'CustomDestinationResponseForwardDestinationSplunk',
31
- :'CustomDestinationResponseForwardDestinationElasticsearch'
31
+ :'CustomDestinationResponseForwardDestinationElasticsearch',
32
+ :'CustomDestinationResponseForwardDestinationMicrosoftSentinel'
32
33
  ]
33
34
  end
34
35
  # Builds the object
@@ -0,0 +1,228 @@
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 Microsoft Sentinel destination.
21
+ class CustomDestinationResponseForwardDestinationMicrosoftSentinel
22
+ include BaseGenericModel
23
+
24
+ # Client ID from the Datadog Azure integration.
25
+ attr_reader :client_id
26
+
27
+ # Azure data collection endpoint.
28
+ attr_reader :data_collection_endpoint
29
+
30
+ # Azure data collection rule ID.
31
+ attr_reader :data_collection_rule_id
32
+
33
+ # Azure stream name.
34
+ attr_reader :stream_name
35
+
36
+ # Tenant ID from the Datadog Azure integration.
37
+ attr_reader :tenant_id
38
+
39
+ # Type of the Microsoft Sentinel destination.
40
+ attr_reader :type
41
+
42
+ attr_accessor :additional_properties
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ # @!visibility private
46
+ def self.attribute_map
47
+ {
48
+ :'client_id' => :'client_id',
49
+ :'data_collection_endpoint' => :'data_collection_endpoint',
50
+ :'data_collection_rule_id' => :'data_collection_rule_id',
51
+ :'stream_name' => :'stream_name',
52
+ :'tenant_id' => :'tenant_id',
53
+ :'type' => :'type'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ # @!visibility private
59
+ def self.openapi_types
60
+ {
61
+ :'client_id' => :'String',
62
+ :'data_collection_endpoint' => :'String',
63
+ :'data_collection_rule_id' => :'String',
64
+ :'stream_name' => :'String',
65
+ :'tenant_id' => :'String',
66
+ :'type' => :'CustomDestinationResponseForwardDestinationMicrosoftSentinelType'
67
+ }
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param attributes [Hash] Model attributes in the form of hash
72
+ # @!visibility private
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationMicrosoftSentinel` initialize method"
76
+ end
77
+
78
+ self.additional_properties = {}
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!self.class.attribute_map.key?(k.to_sym))
82
+ self.additional_properties[k.to_sym] = v
83
+ else
84
+ h[k.to_sym] = v
85
+ end
86
+ }
87
+
88
+ if attributes.key?(:'client_id')
89
+ self.client_id = attributes[:'client_id']
90
+ end
91
+
92
+ if attributes.key?(:'data_collection_endpoint')
93
+ self.data_collection_endpoint = attributes[:'data_collection_endpoint']
94
+ end
95
+
96
+ if attributes.key?(:'data_collection_rule_id')
97
+ self.data_collection_rule_id = attributes[:'data_collection_rule_id']
98
+ end
99
+
100
+ if attributes.key?(:'stream_name')
101
+ self.stream_name = attributes[:'stream_name']
102
+ end
103
+
104
+ if attributes.key?(:'tenant_id')
105
+ self.tenant_id = attributes[:'tenant_id']
106
+ end
107
+
108
+ if attributes.key?(:'type')
109
+ self.type = attributes[:'type']
110
+ end
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ # @!visibility private
116
+ def valid?
117
+ return false if @client_id.nil?
118
+ return false if @data_collection_endpoint.nil?
119
+ return false if @data_collection_rule_id.nil?
120
+ return false if @stream_name.nil?
121
+ return false if @tenant_id.nil?
122
+ return false if @type.nil?
123
+ true
124
+ end
125
+
126
+ # Custom attribute writer method with validation
127
+ # @param client_id [Object] Object to be assigned
128
+ # @!visibility private
129
+ def client_id=(client_id)
130
+ if client_id.nil?
131
+ fail ArgumentError, 'invalid value for "client_id", client_id cannot be nil.'
132
+ end
133
+ @client_id = client_id
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param data_collection_endpoint [Object] Object to be assigned
138
+ # @!visibility private
139
+ def data_collection_endpoint=(data_collection_endpoint)
140
+ if data_collection_endpoint.nil?
141
+ fail ArgumentError, 'invalid value for "data_collection_endpoint", data_collection_endpoint cannot be nil.'
142
+ end
143
+ @data_collection_endpoint = data_collection_endpoint
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param data_collection_rule_id [Object] Object to be assigned
148
+ # @!visibility private
149
+ def data_collection_rule_id=(data_collection_rule_id)
150
+ if data_collection_rule_id.nil?
151
+ fail ArgumentError, 'invalid value for "data_collection_rule_id", data_collection_rule_id cannot be nil.'
152
+ end
153
+ @data_collection_rule_id = data_collection_rule_id
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param stream_name [Object] Object to be assigned
158
+ # @!visibility private
159
+ def stream_name=(stream_name)
160
+ if stream_name.nil?
161
+ fail ArgumentError, 'invalid value for "stream_name", stream_name cannot be nil.'
162
+ end
163
+ @stream_name = stream_name
164
+ end
165
+
166
+ # Custom attribute writer method with validation
167
+ # @param tenant_id [Object] Object to be assigned
168
+ # @!visibility private
169
+ def tenant_id=(tenant_id)
170
+ if tenant_id.nil?
171
+ fail ArgumentError, 'invalid value for "tenant_id", tenant_id cannot be nil.'
172
+ end
173
+ @tenant_id = tenant_id
174
+ end
175
+
176
+ # Custom attribute writer method with validation
177
+ # @param type [Object] Object to be assigned
178
+ # @!visibility private
179
+ def type=(type)
180
+ if type.nil?
181
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
182
+ end
183
+ @type = type
184
+ end
185
+
186
+ # Returns the object in the form of hash, with additionalProperties support.
187
+ # @return [Hash] Returns the object in the form of hash
188
+ # @!visibility private
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ self.additional_properties.each_pair do |attr, value|
201
+ hash[attr] = value
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Checks equality by comparing each attribute.
207
+ # @param o [Object] Object to be compared
208
+ # @!visibility private
209
+ def ==(o)
210
+ return true if self.equal?(o)
211
+ self.class == o.class &&
212
+ client_id == o.client_id &&
213
+ data_collection_endpoint == o.data_collection_endpoint &&
214
+ data_collection_rule_id == o.data_collection_rule_id &&
215
+ stream_name == o.stream_name &&
216
+ tenant_id == o.tenant_id &&
217
+ type == o.type &&
218
+ additional_properties == o.additional_properties
219
+ end
220
+
221
+ # Calculates hash code according to all attributes.
222
+ # @return [Integer] Hash code
223
+ # @!visibility private
224
+ def hash
225
+ [client_id, data_collection_endpoint, data_collection_rule_id, stream_name, tenant_id, type, additional_properties].hash
226
+ end
227
+ end
228
+ end
@@ -0,0 +1,26 @@
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
+ # Type of the Microsoft Sentinel destination.
21
+ class CustomDestinationResponseForwardDestinationMicrosoftSentinelType
22
+ include BaseEnumModel
23
+
24
+ MICROSOFT_SENTINEL = "microsoft_sentinel".freeze
25
+ end
26
+ end