Skip to content

Commit 1136b57

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit af216d4e of spec repo
1 parent d40de63 commit 1136b57

13 files changed

+488
-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-07-08 19:08:06.138597",
8-
"spec_repo_commit": "7b042e12"
7+
"regenerated": "2025-07-09 07:40:24.133880",
8+
"spec_repo_commit": "af216d4e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-08 19:08:06.154349",
13-
"spec_repo_commit": "7b042e12"
12+
"regenerated": "2025-07-09 07:40:24.150616",
13+
"spec_repo_commit": "af216d4e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10668,6 +10668,7 @@ components:
1066810668
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
1066910669
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
1067010670
- $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
10671+
- $ref: '#/components/schemas/CustomDestinationForwardDestinationGoogleSecurityOperations'
1067110672
CustomDestinationForwardDestinationElasticsearch:
1067210673
description: The Elasticsearch destination.
1067310674
properties:
@@ -10725,6 +10726,42 @@ components:
1072510726
type: string
1072610727
x-enum-varnames:
1072710728
- ELASTICSEARCH
10729+
CustomDestinationForwardDestinationGoogleSecurityOperations:
10730+
description: The Google Security Operations destination.
10731+
properties:
10732+
auth:
10733+
$ref: '#/components/schemas/CustomDestinationGoogleSecurityOperationsDestinationAuth'
10734+
customer_id:
10735+
description: The customer ID of the Google Security Operations account.
10736+
example: 123-456-7890
10737+
type: string
10738+
namespace:
10739+
description: The namespace of the Google Security Operations account.
10740+
example: google-security-operations-namespace
10741+
type: string
10742+
regional_endpoint:
10743+
description: The `CustomDestinationForwardDestinationGoogleSecurityOperations`
10744+
`regional_endpoint`.
10745+
example: https://malachiteingestion-pa.googleapis.com
10746+
type: string
10747+
type:
10748+
$ref: '#/components/schemas/CustomDestinationForwardDestinationGoogleSecurityOperationsType'
10749+
required:
10750+
- type
10751+
- customer_id
10752+
- regional_endpoint
10753+
- namespace
10754+
- auth
10755+
type: object
10756+
CustomDestinationForwardDestinationGoogleSecurityOperationsType:
10757+
default: google_security_operations
10758+
description: Type of the Google Security Operations destination.
10759+
enum:
10760+
- google_security_operations
10761+
example: google_security_operations
10762+
type: string
10763+
x-enum-varnames:
10764+
- GOOGLE_SECURITY_OPERATIONS
1072810765
CustomDestinationForwardDestinationHttp:
1072910766
description: The HTTP destination.
1073010767
properties:
@@ -10826,6 +10863,55 @@ components:
1082610863
type: string
1082710864
x-enum-varnames:
1082810865
- SPLUNK_HEC
10866+
CustomDestinationGoogleSecurityOperationsDestinationAuth:
10867+
description: Google Security Operations destination authentication.
10868+
properties:
10869+
client_email:
10870+
description: The Google Security Operations client email address.
10871+
10872+
type: string
10873+
client_id:
10874+
description: The Google Security Operations client ID. This field is not
10875+
returned by the API.
10876+
example: def123456
10877+
type: string
10878+
writeOnly: true
10879+
private_key:
10880+
description: The Google Security Operations private key. This field is not
10881+
returned by the API.
10882+
example: '-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBK...\n-----END
10883+
PRIVATE KEY-----\n'
10884+
type: string
10885+
writeOnly: true
10886+
private_key_id:
10887+
description: The Google Security Operations private key ID. This field is
10888+
not returned by the API.
10889+
example: abc12345678
10890+
type: string
10891+
writeOnly: true
10892+
project_id:
10893+
description: The Google Security Operations project ID.
10894+
example: gcp-project
10895+
type: string
10896+
type:
10897+
$ref: '#/components/schemas/CustomDestinationGoogleSecurityOperationsDestinationAuthType'
10898+
required:
10899+
- type
10900+
- project_id
10901+
- private_key_id
10902+
- client_email
10903+
- client_id
10904+
- private_key
10905+
type: object
10906+
CustomDestinationGoogleSecurityOperationsDestinationAuthType:
10907+
default: gcp_private_key
10908+
description: Type of the Google Security Operations destination authentication.
10909+
enum:
10910+
- gcp_private_key
10911+
example: gcp_private_key
10912+
type: string
10913+
x-enum-varnames:
10914+
- GCP_PRIVATE_KEY
1082910915
CustomDestinationHttpDestinationAuth:
1083010916
description: Authentication method of the HTTP requests.
1083110917
oneOf:

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4211,6 +4211,20 @@ datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_elastic
42114211
:members:
42124212
:show-inheritance:
42134213

4214+
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_google\_security\_operations module
4215+
------------------------------------------------------------------------------------------------------------
4216+
4217+
.. automodule:: datadog_api_client.v2.model.custom_destination_forward_destination_google_security_operations
4218+
:members:
4219+
:show-inheritance:
4220+
4221+
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_google\_security\_operations\_type module
4222+
------------------------------------------------------------------------------------------------------------------
4223+
4224+
.. automodule:: datadog_api_client.v2.model.custom_destination_forward_destination_google_security_operations_type
4225+
:members:
4226+
:show-inheritance:
4227+
42144228
datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_http module
42154229
------------------------------------------------------------------------------------
42164230

@@ -4253,6 +4267,20 @@ datadog\_api\_client.v2.model.custom\_destination\_forward\_destination\_splunk\
42534267
:members:
42544268
:show-inheritance:
42554269

4270+
datadog\_api\_client.v2.model.custom\_destination\_google\_security\_operations\_destination\_auth module
4271+
---------------------------------------------------------------------------------------------------------
4272+
4273+
.. automodule:: datadog_api_client.v2.model.custom_destination_google_security_operations_destination_auth
4274+
:members:
4275+
:show-inheritance:
4276+
4277+
datadog\_api\_client.v2.model.custom\_destination\_google\_security\_operations\_destination\_auth\_type module
4278+
---------------------------------------------------------------------------------------------------------------
4279+
4280+
.. automodule:: datadog_api_client.v2.model.custom_destination_google_security_operations_destination_auth_type
4281+
:members:
4282+
:show-inheritance:
4283+
42564284
datadog\_api\_client.v2.model.custom\_destination\_http\_destination\_auth module
42574285
---------------------------------------------------------------------------------
42584286

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
"""
2+
Create a Google Security Operations 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_google_security_operations import (
18+
CustomDestinationForwardDestinationGoogleSecurityOperations,
19+
)
20+
from datadog_api_client.v2.model.custom_destination_forward_destination_google_security_operations_type import (
21+
CustomDestinationForwardDestinationGoogleSecurityOperationsType,
22+
)
23+
from datadog_api_client.v2.model.custom_destination_google_security_operations_destination_auth import (
24+
CustomDestinationGoogleSecurityOperationsDestinationAuth,
25+
)
26+
from datadog_api_client.v2.model.custom_destination_google_security_operations_destination_auth_type import (
27+
CustomDestinationGoogleSecurityOperationsDestinationAuthType,
28+
)
29+
from datadog_api_client.v2.model.custom_destination_type import CustomDestinationType
30+
31+
body = CustomDestinationCreateRequest(
32+
data=CustomDestinationCreateRequestDefinition(
33+
attributes=CustomDestinationCreateRequestAttributes(
34+
enabled=False,
35+
forward_tags=False,
36+
forward_tags_restriction_list=[
37+
"datacenter",
38+
"host",
39+
],
40+
forward_tags_restriction_list_type=CustomDestinationAttributeTagsRestrictionListType.ALLOW_LIST,
41+
forwarder_destination=CustomDestinationForwardDestinationGoogleSecurityOperations(
42+
type=CustomDestinationForwardDestinationGoogleSecurityOperationsType.GOOGLE_SECURITY_OPERATIONS,
43+
customer_id="123-456-7890",
44+
regional_endpoint="https://malachiteingestion-pa.googleapis.com",
45+
namespace="google-security-operations-namespace",
46+
auth=CustomDestinationGoogleSecurityOperationsDestinationAuth(
47+
type=CustomDestinationGoogleSecurityOperationsDestinationAuthType.GCP_PRIVATE_KEY,
48+
project_id="gcp-project",
49+
private_key_id="abc12345678",
50+
client_email="[email protected]",
51+
client_id="def123456",
52+
private_key="-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBK...\n-----END PRIVATE KEY-----\n",
53+
),
54+
),
55+
name="Nginx logs",
56+
query="source:nginx",
57+
),
58+
type=CustomDestinationType.CUSTOM_DESTINATION,
59+
),
60+
)
61+
62+
configuration = Configuration()
63+
with ApiClient(configuration) as api_client:
64+
api_instance = LogsCustomDestinationsApi(api_client)
65+
response = api_instance.create_logs_custom_destination(body=body)
66+
67+
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
@@ -30,6 +30,9 @@
3030
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel import (
3131
CustomDestinationForwardDestinationMicrosoftSentinel,
3232
)
33+
from datadog_api_client.v2.model.custom_destination_forward_destination_google_security_operations import (
34+
CustomDestinationForwardDestinationGoogleSecurityOperations,
35+
)
3336

3437

3538
class CustomDestinationCreateRequestAttributes(ModelNormal):
@@ -77,6 +80,7 @@ def __init__(
7780
CustomDestinationForwardDestinationSplunk,
7881
CustomDestinationForwardDestinationElasticsearch,
7982
CustomDestinationForwardDestinationMicrosoftSentinel,
83+
CustomDestinationForwardDestinationGoogleSecurityOperations,
8084
],
8185
name: str,
8286
enabled: Union[bool, UnsetType] = unset,

src/datadog_api_client/v2/model/custom_destination_forward_destination.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ def __init__(self, **kwargs):
5757
5858
:param tenant_id: Tenant ID from the Datadog Azure integration.
5959
:type tenant_id: str
60+
61+
:param customer_id: The customer ID of the Google Security Operations account.
62+
:type customer_id: str
63+
64+
:param namespace: The namespace of the Google Security Operations account.
65+
:type namespace: str
66+
67+
:param regional_endpoint: The `CustomDestinationForwardDestinationGoogleSecurityOperations` `regional_endpoint`.
68+
:type regional_endpoint: str
6069
"""
6170
super().__init__(kwargs)
6271

@@ -81,12 +90,16 @@ def _composed_schemas(_):
8190
from datadog_api_client.v2.model.custom_destination_forward_destination_microsoft_sentinel import (
8291
CustomDestinationForwardDestinationMicrosoftSentinel,
8392
)
93+
from datadog_api_client.v2.model.custom_destination_forward_destination_google_security_operations import (
94+
CustomDestinationForwardDestinationGoogleSecurityOperations,
95+
)
8496

8597
return {
8698
"oneOf": [
8799
CustomDestinationForwardDestinationHttp,
88100
CustomDestinationForwardDestinationSplunk,
89101
CustomDestinationForwardDestinationElasticsearch,
90102
CustomDestinationForwardDestinationMicrosoftSentinel,
103+
CustomDestinationForwardDestinationGoogleSecurityOperations,
91104
],
92105
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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_google_security_operations_destination_auth import (
16+
CustomDestinationGoogleSecurityOperationsDestinationAuth,
17+
)
18+
from datadog_api_client.v2.model.custom_destination_forward_destination_google_security_operations_type import (
19+
CustomDestinationForwardDestinationGoogleSecurityOperationsType,
20+
)
21+
22+
23+
class CustomDestinationForwardDestinationGoogleSecurityOperations(ModelNormal):
24+
@cached_property
25+
def openapi_types(_):
26+
from datadog_api_client.v2.model.custom_destination_google_security_operations_destination_auth import (
27+
CustomDestinationGoogleSecurityOperationsDestinationAuth,
28+
)
29+
from datadog_api_client.v2.model.custom_destination_forward_destination_google_security_operations_type import (
30+
CustomDestinationForwardDestinationGoogleSecurityOperationsType,
31+
)
32+
33+
return {
34+
"auth": (CustomDestinationGoogleSecurityOperationsDestinationAuth,),
35+
"customer_id": (str,),
36+
"namespace": (str,),
37+
"regional_endpoint": (str,),
38+
"type": (CustomDestinationForwardDestinationGoogleSecurityOperationsType,),
39+
}
40+
41+
attribute_map = {
42+
"auth": "auth",
43+
"customer_id": "customer_id",
44+
"namespace": "namespace",
45+
"regional_endpoint": "regional_endpoint",
46+
"type": "type",
47+
}
48+
49+
def __init__(
50+
self_,
51+
auth: CustomDestinationGoogleSecurityOperationsDestinationAuth,
52+
customer_id: str,
53+
namespace: str,
54+
regional_endpoint: str,
55+
type: CustomDestinationForwardDestinationGoogleSecurityOperationsType,
56+
**kwargs,
57+
):
58+
"""
59+
The Google Security Operations destination.
60+
61+
:param auth: Google Security Operations destination authentication.
62+
:type auth: CustomDestinationGoogleSecurityOperationsDestinationAuth
63+
64+
:param customer_id: The customer ID of the Google Security Operations account.
65+
:type customer_id: str
66+
67+
:param namespace: The namespace of the Google Security Operations account.
68+
:type namespace: str
69+
70+
:param regional_endpoint: The ``CustomDestinationForwardDestinationGoogleSecurityOperations`` ``regional_endpoint``.
71+
:type regional_endpoint: str
72+
73+
:param type: Type of the Google Security Operations destination.
74+
:type type: CustomDestinationForwardDestinationGoogleSecurityOperationsType
75+
"""
76+
super().__init__(kwargs)
77+
78+
self_.auth = auth
79+
self_.customer_id = customer_id
80+
self_.namespace = namespace
81+
self_.regional_endpoint = regional_endpoint
82+
self_.type = type

0 commit comments

Comments
 (0)