Skip to content

Commit 56e7f24

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit dd1589d4 of spec repo
1 parent 2467f44 commit 56e7f24

17 files changed

+545
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-19 12:11:27.987573",
8-
"spec_repo_commit": "a171e0a8"
7+
"regenerated": "2025-06-20 20:02:44.945151",
8+
"spec_repo_commit": "dd1589d4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-19 12:11:28.060491",
13-
"spec_repo_commit": "a171e0a8"
12+
"regenerated": "2025-06-20 20:02:44.963843",
13+
"spec_repo_commit": "dd1589d4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10586,6 +10586,7 @@ components:
1058610586
- $ref: '#/components/schemas/CustomDestinationForwardDestinationHttp'
1058710587
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
1058810588
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
10589+
- $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
1058910590
CustomDestinationForwardDestinationElasticsearch:
1059010591
description: The Elasticsearch destination.
1059110592
properties:
@@ -10670,6 +10671,49 @@ components:
1067010671
type: string
1067110672
x-enum-varnames:
1067210673
- HTTP
10674+
CustomDestinationForwardDestinationMicrosoftSentinel:
10675+
description: The Microsoft Sentinel destination.
10676+
properties:
10677+
client_id:
10678+
description: Client ID from the Datadog Azure integration.
10679+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10680+
type: string
10681+
data_collection_endpoint:
10682+
description: Azure data collection endpoint.
10683+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10684+
type: string
10685+
data_collection_rule_id:
10686+
description: Azure data collection rule ID.
10687+
example: dcr-000a00a000a00000a000000aa000a0aa
10688+
type: string
10689+
stream_name:
10690+
description: Azure stream name.
10691+
example: Custom-MyTable
10692+
type: string
10693+
writeOnly: true
10694+
tenant_id:
10695+
description: Tenant ID from the Datadog Azure integration.
10696+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10697+
type: string
10698+
type:
10699+
$ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinelType'
10700+
required:
10701+
- type
10702+
- tenant_id
10703+
- client_id
10704+
- data_collection_endpoint
10705+
- data_collection_rule_id
10706+
- stream_name
10707+
type: object
10708+
CustomDestinationForwardDestinationMicrosoftSentinelType:
10709+
default: microsoft_sentinel
10710+
description: Type of the Microsoft Sentinel destination.
10711+
enum:
10712+
- microsoft_sentinel
10713+
example: microsoft_sentinel
10714+
type: string
10715+
x-enum-varnames:
10716+
- MICROSOFT_SENTINEL
1067310717
CustomDestinationForwardDestinationSplunk:
1067410718
description: The Splunk HTTP Event Collector (HEC) destination.
1067510719
properties:
@@ -10845,6 +10889,7 @@ components:
1084510889
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationHttp'
1084610890
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
1084710891
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
10892+
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinel'
1084810893
CustomDestinationResponseForwardDestinationElasticsearch:
1084910894
description: The Elasticsearch destination.
1085010895
properties:
@@ -10929,6 +10974,49 @@ components:
1092910974
type: string
1093010975
x-enum-varnames:
1093110976
- HTTP
10977+
CustomDestinationResponseForwardDestinationMicrosoftSentinel:
10978+
description: The Microsoft Sentinel destination.
10979+
properties:
10980+
client_id:
10981+
description: Client ID from the Datadog Azure integration.
10982+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10983+
type: string
10984+
data_collection_endpoint:
10985+
description: Azure data collection endpoint.
10986+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10987+
type: string
10988+
data_collection_rule_id:
10989+
description: Azure data collection rule ID.
10990+
example: dcr-000a00a000a00000a000000aa000a0aa
10991+
type: string
10992+
stream_name:
10993+
description: Azure stream name.
10994+
example: Custom-MyTable
10995+
type: string
10996+
writeOnly: true
10997+
tenant_id:
10998+
description: Tenant ID from the Datadog Azure integration.
10999+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
11000+
type: string
11001+
type:
11002+
$ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinelType'
11003+
required:
11004+
- type
11005+
- tenant_id
11006+
- client_id
11007+
- data_collection_endpoint
11008+
- data_collection_rule_id
11009+
- stream_name
11010+
type: object
11011+
CustomDestinationResponseForwardDestinationMicrosoftSentinelType:
11012+
default: microsoft_sentinel
11013+
description: Type of the Microsoft Sentinel destination.
11014+
enum:
11015+
- microsoft_sentinel
11016+
example: microsoft_sentinel
11017+
type: string
11018+
x-enum-varnames:
11019+
- MICROSOFT_SENTINEL
1093211020
CustomDestinationResponseForwardDestinationSplunk:
1093311021
description: The Splunk HTTP Event Collector (HEC) destination.
1093411022
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4183,6 +4183,20 @@ datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_http\_t
41834183
:members:
41844184
:show-inheritance:
41854185

4186+
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_microsoft\_sentinel module
4187+
---------------------------------------------------------------------------------------------------
4188+
4189+
.. automodule:: datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel
4190+
:members:
4191+
:show-inheritance:
4192+
4193+
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_microsoft\_sentinel\_type module
4194+
---------------------------------------------------------------------------------------------------------
4195+
4196+
.. automodule:: datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel_type
4197+
:members:
4198+
:show-inheritance:
4199+
41864200
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_splunk module
41874201
--------------------------------------------------------------------------------------
41884202

@@ -4295,6 +4309,20 @@ datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destinatio
42954309
:members:
42964310
:show-inheritance:
42974311

4312+
datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destination\_microsoft\_sentinel module
4313+
-------------------------------------------------------------------------------------------------------------
4314+
4315+
.. automodule:: datadog_api_client.v2.model.custom_destination_response_forward_destination_microsoft_sentinel
4316+
:members:
4317+
:show-inheritance:
4318+
4319+
datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destination\_microsoft\_sentinel\_type module
4320+
-------------------------------------------------------------------------------------------------------------------
4321+
4322+
.. automodule:: datadog_api_client.v2.model.custom_destination_response_forward_destination_microsoft_sentinel_type
4323+
:members:
4324+
:show-inheritance:
4325+
42984326
datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destination\_splunk module
42994327
------------------------------------------------------------------------------------------------
43004328

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
"""
2+
Create a Microsoft Sentinel custom destination returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.logs_custom_destinations_api import LogsCustomDestinationsApi
7+
from datadog_api_client.v2.model.custom_destination_attribute_tags_restriction_list_type import (
8+
CustomDestinationAttributeTagsRestrictionListType,
9+
)
10+
from datadog_api_client.v2.model.custom_destination_create_request import CustomDestinationCreateRequest
11+
from datadog_api_client.v2.model.custom_destination_create_request_attributes import (
12+
CustomDestinationCreateRequestAttributes,
13+
)
14+
from datadog_api_client.v2.model.custom_destination_create_request_definition import (
15+
CustomDestinationCreateRequestDefinition,
16+
)
17+
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel import (
18+
CustomDestinationForwardDestinationMicrosoftSentinel,
19+
)
20+
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel_type import (
21+
CustomDestinationForwardDestinationMicrosoftSentinelType,
22+
)
23+
from datadog_api_client.v2.model.custom_destination_type import CustomDestinationType
24+
25+
body = CustomDestinationCreateRequest(
26+
data=CustomDestinationCreateRequestDefinition(
27+
attributes=CustomDestinationCreateRequestAttributes(
28+
enabled=False,
29+
forward_tags=False,
30+
forward_tags_restriction_list=[
31+
"datacenter",
32+
"host",
33+
],
34+
forward_tags_restriction_list_type=CustomDestinationAttributeTagsRestrictionListType.ALLOW_LIST,
35+
forwarder_destination=CustomDestinationForwardDestinationMicrosoftSentinel(
36+
type=CustomDestinationForwardDestinationMicrosoftSentinelType.MICROSOFT_SENTINEL,
37+
tenant_id="f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2",
38+
client_id="9a2f4d83-2b5e-429e-a35a-2b3c4182db71",
39+
data_collection_endpoint="https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com",
40+
data_collection_rule_id="dcr-000a00a000a00000a000000aa000a0aa",
41+
stream_name="Custom-MyTable",
42+
),
43+
name="Nginx logs",
44+
query="source:nginx",
45+
),
46+
type=CustomDestinationType.CUSTOM_DESTINATION,
47+
),
48+
)
49+
50+
configuration = Configuration()
51+
with ApiClient(configuration) as api_client:
52+
api_instance = LogsCustomDestinationsApi(api_client)
53+
response = api_instance.create_logs_custom_destination(body=body)
54+
55+
print(response)

src/datadog_api_client/v2/model/custom_destination_create_request_attributes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
from datadog_api_client.v2.model.custom_destination_forward_destination_elasticsearch import (
2828
CustomDestinationForwardDestinationElasticsearch,
2929
)
30+
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel import (
31+
CustomDestinationForwardDestinationMicrosoftSentinel,
32+
)
3033

3134

3235
class CustomDestinationCreateRequestAttributes(ModelNormal):
@@ -73,6 +76,7 @@ def __init__(
7376
CustomDestinationForwardDestinationHttp,
7477
CustomDestinationForwardDestinationSplunk,
7578
CustomDestinationForwardDestinationElasticsearch,
79+
CustomDestinationForwardDestinationMicrosoftSentinel,
7680
],
7781
name: str,
7882
enabled: Union[bool, UnsetType] = unset,

src/datadog_api_client/v2/model/custom_destination_forward_destination.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,21 @@ def __init__(self, **kwargs):
4242
If this field is missing or is blank, it means that the index name will always be the same
4343
(that is, no rotation).
4444
:type index_rotation: str, optional
45+
46+
:param client_id: Client ID from the Datadog Azure integration.
47+
:type client_id: str
48+
49+
:param data_collection_endpoint: Azure data collection endpoint.
50+
:type data_collection_endpoint: str
51+
52+
:param data_collection_rule_id: Azure data collection rule ID.
53+
:type data_collection_rule_id: str
54+
55+
:param stream_name: Azure stream name.
56+
:type stream_name: str
57+
58+
:param tenant_id: Tenant ID from the Datadog Azure integration.
59+
:type tenant_id: str
4560
"""
4661
super().__init__(kwargs)
4762

@@ -63,11 +78,15 @@ def _composed_schemas(_):
6378
from datadog_api_client.v2.model.custom_destination_forward_destination_elasticsearch import (
6479
CustomDestinationForwardDestinationElasticsearch,
6580
)
81+
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel import (
82+
CustomDestinationForwardDestinationMicrosoftSentinel,
83+
)
6684

6785
return {
6886
"oneOf": [
6987
CustomDestinationForwardDestinationHttp,
7088
CustomDestinationForwardDestinationSplunk,
7189
CustomDestinationForwardDestinationElasticsearch,
90+
CustomDestinationForwardDestinationMicrosoftSentinel,
7291
],
7392
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel_type import (
16+
CustomDestinationForwardDestinationMicrosoftSentinelType,
17+
)
18+
19+
20+
class CustomDestinationForwardDestinationMicrosoftSentinel(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel_type import (
24+
CustomDestinationForwardDestinationMicrosoftSentinelType,
25+
)
26+
27+
return {
28+
"client_id": (str,),
29+
"data_collection_endpoint": (str,),
30+
"data_collection_rule_id": (str,),
31+
"stream_name": (str,),
32+
"tenant_id": (str,),
33+
"type": (CustomDestinationForwardDestinationMicrosoftSentinelType,),
34+
}
35+
36+
attribute_map = {
37+
"client_id": "client_id",
38+
"data_collection_endpoint": "data_collection_endpoint",
39+
"data_collection_rule_id": "data_collection_rule_id",
40+
"stream_name": "stream_name",
41+
"tenant_id": "tenant_id",
42+
"type": "type",
43+
}
44+
45+
def __init__(
46+
self_,
47+
client_id: str,
48+
data_collection_endpoint: str,
49+
data_collection_rule_id: str,
50+
stream_name: str,
51+
tenant_id: str,
52+
type: CustomDestinationForwardDestinationMicrosoftSentinelType,
53+
**kwargs,
54+
):
55+
"""
56+
The Microsoft Sentinel destination.
57+
58+
:param client_id: Client ID from the Datadog Azure integration.
59+
:type client_id: str
60+
61+
:param data_collection_endpoint: Azure data collection endpoint.
62+
:type data_collection_endpoint: str
63+
64+
:param data_collection_rule_id: Azure data collection rule ID.
65+
:type data_collection_rule_id: str
66+
67+
:param stream_name: Azure stream name.
68+
:type stream_name: str
69+
70+
:param tenant_id: Tenant ID from the Datadog Azure integration.
71+
:type tenant_id: str
72+
73+
:param type: Type of the Microsoft Sentinel destination.
74+
:type type: CustomDestinationForwardDestinationMicrosoftSentinelType
75+
"""
76+
super().__init__(kwargs)
77+
78+
self_.client_id = client_id
79+
self_.data_collection_endpoint = data_collection_endpoint
80+
self_.data_collection_rule_id = data_collection_rule_id
81+
self_.stream_name = stream_name
82+
self_.tenant_id = tenant_id
83+
self_.type = type

0 commit comments

Comments
 (0)