Skip to content

Commit 2604b3f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a18fdf5e of spec repo
1 parent 1f28eee commit 2604b3f

15 files changed

+504
-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-17 18:21:59.760405",
8-
"spec_repo_commit": "b1a1c000"
7+
"regenerated": "2025-06-18 09:01:48.776407",
8+
"spec_repo_commit": "a18fdf5e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-17 18:21:59.775701",
13-
"spec_repo_commit": "b1a1c000"
12+
"regenerated": "2025-06-18 09:01:48.794807",
13+
"spec_repo_commit": "a18fdf5e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10468,6 +10468,7 @@ components:
1046810468
- $ref: '#/components/schemas/CustomDestinationForwardDestinationHttp'
1046910469
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
1047010470
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
10471+
- $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
1047110472
CustomDestinationForwardDestinationElasticsearch:
1047210473
description: The Elasticsearch destination.
1047310474
properties:
@@ -10552,6 +10553,49 @@ components:
1055210553
type: string
1055310554
x-enum-varnames:
1055410555
- HTTP
10556+
CustomDestinationForwardDestinationMicrosoftSentinel:
10557+
description: The Microsoft Sentinel destination.
10558+
properties:
10559+
client_id:
10560+
description: Client ID from the Datadog Azure Integration.
10561+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10562+
type: string
10563+
data_collection_endpoint:
10564+
description: Azure Data Collection Endpoint.
10565+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10566+
type: string
10567+
data_collection_rule_id:
10568+
description: Azure Data Collection Rule ID.
10569+
example: dcr-000a00a000a00000a000000aa000a0aa
10570+
type: string
10571+
stream_name:
10572+
description: Azure stream name.
10573+
example: Custom-MyTable
10574+
type: string
10575+
writeOnly: true
10576+
tenant_id:
10577+
description: Tenant ID from the Datadog Azure Integration.
10578+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10579+
type: string
10580+
type:
10581+
$ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinelType'
10582+
required:
10583+
- type
10584+
- tenant_id
10585+
- client_id
10586+
- data_collection_endpoint
10587+
- data_collection_rule_id
10588+
- stream_name
10589+
type: object
10590+
CustomDestinationForwardDestinationMicrosoftSentinelType:
10591+
default: microsoft_sentinel
10592+
description: Type of the Microsoft Sentinel destination.
10593+
enum:
10594+
- microsoft_sentinel
10595+
example: microsoft_sentinel
10596+
type: string
10597+
x-enum-varnames:
10598+
- MICROSOFT_SENTINEL
1055510599
CustomDestinationForwardDestinationSplunk:
1055610600
description: The Splunk HTTP Event Collector (HEC) destination.
1055710601
properties:
@@ -10727,6 +10771,7 @@ components:
1072710771
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationHttp'
1072810772
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
1072910773
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
10774+
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinel'
1073010775
CustomDestinationResponseForwardDestinationElasticsearch:
1073110776
description: The Elasticsearch destination.
1073210777
properties:
@@ -10811,6 +10856,49 @@ components:
1081110856
type: string
1081210857
x-enum-varnames:
1081310858
- HTTP
10859+
CustomDestinationResponseForwardDestinationMicrosoftSentinel:
10860+
description: The Microsoft Sentinel destination.
10861+
properties:
10862+
client_id:
10863+
description: Client ID from the Datadog Azure Integration.
10864+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10865+
type: string
10866+
data_collection_endpoint:
10867+
description: Azure Data Collection Endpoint.
10868+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10869+
type: string
10870+
data_collection_rule_id:
10871+
description: Azure Data Collection Rule ID.
10872+
example: dcr-000a00a000a00000a000000aa000a0aa
10873+
type: string
10874+
stream_name:
10875+
description: Azure stream name.
10876+
example: Custom-MyTable
10877+
type: string
10878+
writeOnly: true
10879+
tenant_id:
10880+
description: Tenant ID from the Datadog Azure Integration.
10881+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10882+
type: string
10883+
type:
10884+
$ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinelType'
10885+
required:
10886+
- type
10887+
- tenant_id
10888+
- client_id
10889+
- data_collection_endpoint
10890+
- data_collection_rule_id
10891+
- stream_name
10892+
type: object
10893+
CustomDestinationResponseForwardDestinationMicrosoftSentinelType:
10894+
default: microsoft_sentinel
10895+
description: Type of the Microsoft Sentinel destination.
10896+
enum:
10897+
- microsoft_sentinel
10898+
example: microsoft_sentinel
10899+
type: string
10900+
x-enum-varnames:
10901+
- MICROSOFT_SENTINEL
1081410902
CustomDestinationResponseForwardDestinationSplunk:
1081510903
description: The Splunk HTTP Event Collector (HEC) destination.
1081610904
properties:

docs/datadog_api_client.v2.model.rst

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

4137+
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_microsoft\_sentinel module
4138+
---------------------------------------------------------------------------------------------------
4139+
4140+
.. automodule:: datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel
4141+
:members:
4142+
:show-inheritance:
4143+
4144+
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_microsoft\_sentinel\_type module
4145+
---------------------------------------------------------------------------------------------------------
4146+
4147+
.. automodule:: datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel_type
4148+
:members:
4149+
:show-inheritance:
4150+
41374151
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_splunk module
41384152
--------------------------------------------------------------------------------------
41394153

@@ -4246,6 +4260,20 @@ datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destinatio
42464260
:members:
42474261
:show-inheritance:
42484262

4263+
datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destination\_microsoft\_sentinel module
4264+
-------------------------------------------------------------------------------------------------------------
4265+
4266+
.. automodule:: datadog_api_client.v2.model.custom_destination_response_forward_destination_microsoft_sentinel
4267+
:members:
4268+
:show-inheritance:
4269+
4270+
datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destination\_microsoft\_sentinel\_type module
4271+
-------------------------------------------------------------------------------------------------------------------
4272+
4273+
.. automodule:: datadog_api_client.v2.model.custom_destination_response_forward_destination_microsoft_sentinel_type
4274+
:members:
4275+
:show-inheritance:
4276+
42494277
datadog\_api\_client.v2.model.custom\_destination\_response\_forward\_destination\_splunk module
42504278
------------------------------------------------------------------------------------------------
42514279

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)