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.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +59 -6
- data/.generator/schemas/v2/openapi.yaml +1093 -69
- data/.generator/src/generator/formatter.py +2 -2
- data/.generator/src/generator/openapi.py +1 -1
- data/.github/workflows/release.yml +1 -1
- data/CHANGELOG.md +36 -0
- data/Gemfile +1 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +35 -0
- data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
- data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
- data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -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/on-call/GetTeamOnCallUsers.rb +11 -0
- data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
- data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
- data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
- 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 -2
- data/lib/datadog_api_client/inflector.rb +42 -6
- data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
- data/lib/datadog_api_client/v1/models/monitor_draft_status.rb +32 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +79 -15
- data/lib/datadog_api_client/v2/api/on_call_api.rb +67 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +13 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +221 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
- data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
- data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → add_member_team_request.rb} +5 -5
- 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 +33 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +165 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +37 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +57 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +57 -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/dora_deployment_request_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
- data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
- data/lib/datadog_api_client/v2/models/dora_failure_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships_responders.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
- data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
- data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
- data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
- data/lib/datadog_api_client/v2/models/kind_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/list_kind_catalog_response.rb +117 -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/v2/models/team_on_call_responders.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
- data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/repository.datadog.yaml +8 -0
- metadata +57 -7
data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb
CHANGED
@@ -21,9 +21,18 @@ module DatadogAPIClient::V2
|
|
21
21
|
class CloudWorkloadSecurityAgentRuleCreateAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# The array of actions the rule can perform if triggered
|
25
|
+
attr_accessor :actions
|
26
|
+
|
27
|
+
# The blocking policies that the rule belongs to
|
28
|
+
attr_accessor :blocking
|
29
|
+
|
24
30
|
# The description of the Agent rule.
|
25
31
|
attr_accessor :description
|
26
32
|
|
33
|
+
# The disabled policies that the rule belongs to
|
34
|
+
attr_accessor :disabled
|
35
|
+
|
27
36
|
# Whether the Agent rule is enabled
|
28
37
|
attr_accessor :enabled
|
29
38
|
|
@@ -33,6 +42,9 @@ module DatadogAPIClient::V2
|
|
33
42
|
# The platforms the Agent rule is supported on
|
34
43
|
attr_accessor :filters
|
35
44
|
|
45
|
+
# The monitoring policies that the rule belongs to
|
46
|
+
attr_accessor :monitoring
|
47
|
+
|
36
48
|
# The name of the Agent rule.
|
37
49
|
attr_reader :name
|
38
50
|
|
@@ -48,10 +60,14 @@ module DatadogAPIClient::V2
|
|
48
60
|
# @!visibility private
|
49
61
|
def self.attribute_map
|
50
62
|
{
|
63
|
+
:'actions' => :'actions',
|
64
|
+
:'blocking' => :'blocking',
|
51
65
|
:'description' => :'description',
|
66
|
+
:'disabled' => :'disabled',
|
52
67
|
:'enabled' => :'enabled',
|
53
68
|
:'expression' => :'expression',
|
54
69
|
:'filters' => :'filters',
|
70
|
+
:'monitoring' => :'monitoring',
|
55
71
|
:'name' => :'name',
|
56
72
|
:'policy_id' => :'policy_id',
|
57
73
|
:'product_tags' => :'product_tags'
|
@@ -62,16 +78,28 @@ module DatadogAPIClient::V2
|
|
62
78
|
# @!visibility private
|
63
79
|
def self.openapi_types
|
64
80
|
{
|
81
|
+
:'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
|
82
|
+
:'blocking' => :'Array<String>',
|
65
83
|
:'description' => :'String',
|
84
|
+
:'disabled' => :'Array<String>',
|
66
85
|
:'enabled' => :'Boolean',
|
67
86
|
:'expression' => :'String',
|
68
87
|
:'filters' => :'Array<String>',
|
88
|
+
:'monitoring' => :'Array<String>',
|
69
89
|
:'name' => :'String',
|
70
90
|
:'policy_id' => :'String',
|
71
91
|
:'product_tags' => :'Array<String>'
|
72
92
|
}
|
73
93
|
end
|
74
94
|
|
95
|
+
# List of attributes with nullable: true
|
96
|
+
# @!visibility private
|
97
|
+
def self.openapi_nullable
|
98
|
+
Set.new([
|
99
|
+
:'actions',
|
100
|
+
])
|
101
|
+
end
|
102
|
+
|
75
103
|
# Initializes the object
|
76
104
|
# @param attributes [Hash] Model attributes in the form of hash
|
77
105
|
# @!visibility private
|
@@ -90,10 +118,28 @@ module DatadogAPIClient::V2
|
|
90
118
|
end
|
91
119
|
}
|
92
120
|
|
121
|
+
if attributes.key?(:'actions')
|
122
|
+
if (value = attributes[:'actions']).is_a?(Array)
|
123
|
+
self.actions = value
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.key?(:'blocking')
|
128
|
+
if (value = attributes[:'blocking']).is_a?(Array)
|
129
|
+
self.blocking = value
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
93
133
|
if attributes.key?(:'description')
|
94
134
|
self.description = attributes[:'description']
|
95
135
|
end
|
96
136
|
|
137
|
+
if attributes.key?(:'disabled')
|
138
|
+
if (value = attributes[:'disabled']).is_a?(Array)
|
139
|
+
self.disabled = value
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
97
143
|
if attributes.key?(:'enabled')
|
98
144
|
self.enabled = attributes[:'enabled']
|
99
145
|
end
|
@@ -108,6 +154,12 @@ module DatadogAPIClient::V2
|
|
108
154
|
end
|
109
155
|
end
|
110
156
|
|
157
|
+
if attributes.key?(:'monitoring')
|
158
|
+
if (value = attributes[:'monitoring']).is_a?(Array)
|
159
|
+
self.monitoring = value
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
111
163
|
if attributes.key?(:'name')
|
112
164
|
self.name = attributes[:'name']
|
113
165
|
end
|
@@ -178,10 +230,14 @@ module DatadogAPIClient::V2
|
|
178
230
|
def ==(o)
|
179
231
|
return true if self.equal?(o)
|
180
232
|
self.class == o.class &&
|
233
|
+
actions == o.actions &&
|
234
|
+
blocking == o.blocking &&
|
181
235
|
description == o.description &&
|
236
|
+
disabled == o.disabled &&
|
182
237
|
enabled == o.enabled &&
|
183
238
|
expression == o.expression &&
|
184
239
|
filters == o.filters &&
|
240
|
+
monitoring == o.monitoring &&
|
185
241
|
name == o.name &&
|
186
242
|
policy_id == o.policy_id &&
|
187
243
|
product_tags == o.product_tags &&
|
@@ -192,7 +248,7 @@ module DatadogAPIClient::V2
|
|
192
248
|
# @return [Integer] Hash code
|
193
249
|
# @!visibility private
|
194
250
|
def hash
|
195
|
-
[description, enabled, expression, filters, name, policy_id, product_tags, additional_properties].hash
|
251
|
+
[actions, blocking, description, disabled, enabled, expression, filters, monitoring, name, policy_id, product_tags, additional_properties].hash
|
196
252
|
end
|
197
253
|
end
|
198
254
|
end
|
data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb
CHANGED
@@ -21,15 +21,27 @@ module DatadogAPIClient::V2
|
|
21
21
|
class CloudWorkloadSecurityAgentRuleUpdateAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# The array of actions the rule can perform if triggered
|
25
|
+
attr_accessor :actions
|
26
|
+
|
27
|
+
# The blocking policies that the rule belongs to
|
28
|
+
attr_accessor :blocking
|
29
|
+
|
24
30
|
# The description of the Agent rule
|
25
31
|
attr_accessor :description
|
26
32
|
|
33
|
+
# The disabled policies that the rule belongs to
|
34
|
+
attr_accessor :disabled
|
35
|
+
|
27
36
|
# Whether the Agent rule is enabled
|
28
37
|
attr_accessor :enabled
|
29
38
|
|
30
39
|
# The SECL expression of the Agent rule
|
31
40
|
attr_accessor :expression
|
32
41
|
|
42
|
+
# The monitoring policies that the rule belongs to
|
43
|
+
attr_accessor :monitoring
|
44
|
+
|
33
45
|
# The ID of the policy where the Agent rule is saved
|
34
46
|
attr_accessor :policy_id
|
35
47
|
|
@@ -42,9 +54,13 @@ module DatadogAPIClient::V2
|
|
42
54
|
# @!visibility private
|
43
55
|
def self.attribute_map
|
44
56
|
{
|
57
|
+
:'actions' => :'actions',
|
58
|
+
:'blocking' => :'blocking',
|
45
59
|
:'description' => :'description',
|
60
|
+
:'disabled' => :'disabled',
|
46
61
|
:'enabled' => :'enabled',
|
47
62
|
:'expression' => :'expression',
|
63
|
+
:'monitoring' => :'monitoring',
|
48
64
|
:'policy_id' => :'policy_id',
|
49
65
|
:'product_tags' => :'product_tags'
|
50
66
|
}
|
@@ -54,14 +70,26 @@ module DatadogAPIClient::V2
|
|
54
70
|
# @!visibility private
|
55
71
|
def self.openapi_types
|
56
72
|
{
|
73
|
+
:'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
|
74
|
+
:'blocking' => :'Array<String>',
|
57
75
|
:'description' => :'String',
|
76
|
+
:'disabled' => :'Array<String>',
|
58
77
|
:'enabled' => :'Boolean',
|
59
78
|
:'expression' => :'String',
|
79
|
+
:'monitoring' => :'Array<String>',
|
60
80
|
:'policy_id' => :'String',
|
61
81
|
:'product_tags' => :'Array<String>'
|
62
82
|
}
|
63
83
|
end
|
64
84
|
|
85
|
+
# List of attributes with nullable: true
|
86
|
+
# @!visibility private
|
87
|
+
def self.openapi_nullable
|
88
|
+
Set.new([
|
89
|
+
:'actions',
|
90
|
+
])
|
91
|
+
end
|
92
|
+
|
65
93
|
# Initializes the object
|
66
94
|
# @param attributes [Hash] Model attributes in the form of hash
|
67
95
|
# @!visibility private
|
@@ -80,10 +108,28 @@ module DatadogAPIClient::V2
|
|
80
108
|
end
|
81
109
|
}
|
82
110
|
|
111
|
+
if attributes.key?(:'actions')
|
112
|
+
if (value = attributes[:'actions']).is_a?(Array)
|
113
|
+
self.actions = value
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'blocking')
|
118
|
+
if (value = attributes[:'blocking']).is_a?(Array)
|
119
|
+
self.blocking = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
83
123
|
if attributes.key?(:'description')
|
84
124
|
self.description = attributes[:'description']
|
85
125
|
end
|
86
126
|
|
127
|
+
if attributes.key?(:'disabled')
|
128
|
+
if (value = attributes[:'disabled']).is_a?(Array)
|
129
|
+
self.disabled = value
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
87
133
|
if attributes.key?(:'enabled')
|
88
134
|
self.enabled = attributes[:'enabled']
|
89
135
|
end
|
@@ -92,6 +138,12 @@ module DatadogAPIClient::V2
|
|
92
138
|
self.expression = attributes[:'expression']
|
93
139
|
end
|
94
140
|
|
141
|
+
if attributes.key?(:'monitoring')
|
142
|
+
if (value = attributes[:'monitoring']).is_a?(Array)
|
143
|
+
self.monitoring = value
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
95
147
|
if attributes.key?(:'policy_id')
|
96
148
|
self.policy_id = attributes[:'policy_id']
|
97
149
|
end
|
@@ -129,9 +181,13 @@ module DatadogAPIClient::V2
|
|
129
181
|
def ==(o)
|
130
182
|
return true if self.equal?(o)
|
131
183
|
self.class == o.class &&
|
184
|
+
actions == o.actions &&
|
185
|
+
blocking == o.blocking &&
|
132
186
|
description == o.description &&
|
187
|
+
disabled == o.disabled &&
|
133
188
|
enabled == o.enabled &&
|
134
189
|
expression == o.expression &&
|
190
|
+
monitoring == o.monitoring &&
|
135
191
|
policy_id == o.policy_id &&
|
136
192
|
product_tags == o.product_tags &&
|
137
193
|
additional_properties == o.additional_properties
|
@@ -141,7 +197,7 @@ module DatadogAPIClient::V2
|
|
141
197
|
# @return [Integer] Hash code
|
142
198
|
# @!visibility private
|
143
199
|
def hash
|
144
|
-
[description, enabled, expression, policy_id, product_tags, additional_properties].hash
|
200
|
+
[actions, blocking, description, disabled, enabled, expression, monitoring, policy_id, product_tags, additional_properties].hash
|
145
201
|
end
|
146
202
|
end
|
147
203
|
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
|
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
|