datadog_api_client 2.35.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.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +0 -3
- data/.generator/schemas/v2/openapi.yaml +355 -0
- data/CHANGELOG.md +17 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
- data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
- data/examples/v2/teams/AddMemberTeam.rb +15 -0
- data/examples/v2/teams/ListMemberTeams.rb +8 -0
- data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
- data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +8 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
- data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
- data/lib/datadog_api_client/v2/models/add_member_team_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +11 -1
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +14 -1
data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb
ADDED
@@ -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
|
@@ -0,0 +1,144 @@
|
|
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
|
+
# A member team
|
21
|
+
class MemberTeam
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The member team's identifier
|
25
|
+
attr_reader :id
|
26
|
+
|
27
|
+
# Member team type
|
28
|
+
attr_reader :type
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'id' => :'id',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'id' => :'String',
|
46
|
+
:'type' => :'MemberTeamType'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MemberTeam` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'id')
|
69
|
+
self.id = attributes[:'id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @id.nil?
|
82
|
+
return false if @type.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param id [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def id=(id)
|
90
|
+
if id.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
92
|
+
end
|
93
|
+
@id = id
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param type [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def type=(type)
|
100
|
+
if type.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
102
|
+
end
|
103
|
+
@type = type
|
104
|
+
end
|
105
|
+
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
108
|
+
# @!visibility private
|
109
|
+
def to_hash
|
110
|
+
hash = {}
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
112
|
+
value = self.send(attr)
|
113
|
+
if value.nil?
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
116
|
+
end
|
117
|
+
|
118
|
+
hash[param] = _to_hash(value)
|
119
|
+
end
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
121
|
+
hash[attr] = value
|
122
|
+
end
|
123
|
+
hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param o [Object] Object to be compared
|
128
|
+
# @!visibility private
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
id == o.id &&
|
133
|
+
type == o.type &&
|
134
|
+
additional_properties == o.additional_properties
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
# @!visibility private
|
140
|
+
def hash
|
141
|
+
[id, type, additional_properties].hash
|
142
|
+
end
|
143
|
+
end
|
144
|
+
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
|
+
# Member team type
|
21
|
+
class MemberTeamType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
MEMBER_TEAMS = "member_teams".freeze
|
25
|
+
end
|
26
|
+
end
|