Skip to content

Commit 68852b1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0f24b8e of spec repo
1 parent b1b4144 commit 68852b1

16 files changed

+617
-4
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "dc49df4",
3-
"generated": "2025-07-18 13:57:41.438"
2+
"spec_repo_commit": "0f24b8e",
3+
"generated": "2025-07-18 16:53:18.934"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,11 +2016,13 @@ components:
20162016
description: The definition of `ActionConnectionIntegration` object.
20172017
oneOf:
20182018
- $ref: '#/components/schemas/AWSIntegration'
2019+
- $ref: '#/components/schemas/DatadogIntegration'
20192020
- $ref: '#/components/schemas/HTTPIntegration'
20202021
ActionConnectionIntegrationUpdate:
20212022
description: The definition of `ActionConnectionIntegrationUpdate` object.
20222023
oneOf:
20232024
- $ref: '#/components/schemas/AWSIntegrationUpdate'
2025+
- $ref: '#/components/schemas/DatadogIntegrationUpdate'
20242026
- $ref: '#/components/schemas/HTTPIntegrationUpdate'
20252027
ActionQuery:
20262028
description: An action query. This query type is used to trigger an action,
@@ -12378,6 +12380,103 @@ components:
1237812380
required:
1237912381
- databaseMonitoringTrigger
1238012382
type: object
12383+
DatadogAPIKey:
12384+
description: The definition of the `DatadogAPIKey` object.
12385+
properties:
12386+
api_key:
12387+
description: The `DatadogAPIKey` `api_key`.
12388+
example: ''
12389+
type: string
12390+
app_key:
12391+
description: The `DatadogAPIKey` `app_key`.
12392+
example: ''
12393+
type: string
12394+
datacenter:
12395+
description: The `DatadogAPIKey` `datacenter`.
12396+
example: ''
12397+
type: string
12398+
subdomain:
12399+
description: Custom subdomain used for Datadog URLs generated with this
12400+
Connection. For example, if this org uses `https://acme.datadoghq.com`
12401+
to access Datadog, set this field to `acme`. If this field is omitted,
12402+
generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)).
12403+
type: string
12404+
type:
12405+
$ref: '#/components/schemas/DatadogAPIKeyType'
12406+
required:
12407+
- type
12408+
- datacenter
12409+
- api_key
12410+
- app_key
12411+
type: object
12412+
DatadogAPIKeyType:
12413+
description: The definition of the `DatadogAPIKey` object.
12414+
enum:
12415+
- DatadogAPIKey
12416+
example: DatadogAPIKey
12417+
type: string
12418+
x-enum-varnames:
12419+
- DATADOGAPIKEY
12420+
DatadogAPIKeyUpdate:
12421+
description: The definition of the `DatadogAPIKey` object.
12422+
properties:
12423+
api_key:
12424+
description: The `DatadogAPIKeyUpdate` `api_key`.
12425+
type: string
12426+
app_key:
12427+
description: The `DatadogAPIKeyUpdate` `app_key`.
12428+
type: string
12429+
datacenter:
12430+
description: The `DatadogAPIKeyUpdate` `datacenter`.
12431+
type: string
12432+
subdomain:
12433+
description: Custom subdomain used for Datadog URLs generated with this
12434+
Connection. For example, if this org uses `https://acme.datadoghq.com`
12435+
to access Datadog, set this field to `acme`. If this field is omitted,
12436+
generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)).
12437+
type: string
12438+
type:
12439+
$ref: '#/components/schemas/DatadogAPIKeyType'
12440+
required:
12441+
- type
12442+
type: object
12443+
DatadogCredentials:
12444+
description: The definition of the `DatadogCredentials` object.
12445+
oneOf:
12446+
- $ref: '#/components/schemas/DatadogAPIKey'
12447+
DatadogCredentialsUpdate:
12448+
description: The definition of the `DatadogCredentialsUpdate` object.
12449+
oneOf:
12450+
- $ref: '#/components/schemas/DatadogAPIKeyUpdate'
12451+
DatadogIntegration:
12452+
description: The definition of the `DatadogIntegration` object.
12453+
properties:
12454+
credentials:
12455+
$ref: '#/components/schemas/DatadogCredentials'
12456+
type:
12457+
$ref: '#/components/schemas/DatadogIntegrationType'
12458+
required:
12459+
- type
12460+
- credentials
12461+
type: object
12462+
DatadogIntegrationType:
12463+
description: The definition of the `DatadogIntegrationType` object.
12464+
enum:
12465+
- Datadog
12466+
example: Datadog
12467+
type: string
12468+
x-enum-varnames:
12469+
- DATADOG
12470+
DatadogIntegrationUpdate:
12471+
description: The definition of the `DatadogIntegrationUpdate` object.
12472+
properties:
12473+
credentials:
12474+
$ref: '#/components/schemas/DatadogCredentialsUpdate'
12475+
type:
12476+
$ref: '#/components/schemas/DatadogIntegrationType'
12477+
required:
12478+
- type
12479+
type: object
1238112480
Dataset:
1238212481
description: Dataset object.
1238312482
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4750,6 +4750,62 @@ datadog\_api\_client.v2.model.database\_monitoring\_trigger\_wrapper module
47504750
:members:
47514751
:show-inheritance:
47524752

4753+
datadog\_api\_client.v2.model.datadog\_api\_key module
4754+
------------------------------------------------------
4755+
4756+
.. automodule:: datadog_api_client.v2.model.datadog_api_key
4757+
:members:
4758+
:show-inheritance:
4759+
4760+
datadog\_api\_client.v2.model.datadog\_api\_key\_type module
4761+
------------------------------------------------------------
4762+
4763+
.. automodule:: datadog_api_client.v2.model.datadog_api_key_type
4764+
:members:
4765+
:show-inheritance:
4766+
4767+
datadog\_api\_client.v2.model.datadog\_api\_key\_update module
4768+
--------------------------------------------------------------
4769+
4770+
.. automodule:: datadog_api_client.v2.model.datadog_api_key_update
4771+
:members:
4772+
:show-inheritance:
4773+
4774+
datadog\_api\_client.v2.model.datadog\_credentials module
4775+
---------------------------------------------------------
4776+
4777+
.. automodule:: datadog_api_client.v2.model.datadog_credentials
4778+
:members:
4779+
:show-inheritance:
4780+
4781+
datadog\_api\_client.v2.model.datadog\_credentials\_update module
4782+
-----------------------------------------------------------------
4783+
4784+
.. automodule:: datadog_api_client.v2.model.datadog_credentials_update
4785+
:members:
4786+
:show-inheritance:
4787+
4788+
datadog\_api\_client.v2.model.datadog\_integration module
4789+
---------------------------------------------------------
4790+
4791+
.. automodule:: datadog_api_client.v2.model.datadog_integration
4792+
:members:
4793+
:show-inheritance:
4794+
4795+
datadog\_api\_client.v2.model.datadog\_integration\_type module
4796+
---------------------------------------------------------------
4797+
4798+
.. automodule:: datadog_api_client.v2.model.datadog_integration_type
4799+
:members:
4800+
:show-inheritance:
4801+
4802+
datadog\_api\_client.v2.model.datadog\_integration\_update module
4803+
-----------------------------------------------------------------
4804+
4805+
.. automodule:: datadog_api_client.v2.model.datadog_integration_update
4806+
:members:
4807+
:show-inheritance:
4808+
47534809
datadog\_api\_client.v2.model.dataset module
47544810
--------------------------------------------
47554811

src/datadog_api_client/v2/model/action_connection_attributes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
if TYPE_CHECKING:
1515
from datadog_api_client.v2.model.action_connection_integration import ActionConnectionIntegration
1616
from datadog_api_client.v2.model.aws_integration import AWSIntegration
17+
from datadog_api_client.v2.model.datadog_integration import DatadogIntegration
1718
from datadog_api_client.v2.model.http_integration import HTTPIntegration
1819

1920

@@ -33,7 +34,10 @@ def openapi_types(_):
3334
}
3435

3536
def __init__(
36-
self_, integration: Union[ActionConnectionIntegration, AWSIntegration, HTTPIntegration], name: str, **kwargs
37+
self_,
38+
integration: Union[ActionConnectionIntegration, AWSIntegration, DatadogIntegration, HTTPIntegration],
39+
name: str,
40+
**kwargs,
3741
):
3842
"""
3943
The definition of ``ActionConnectionAttributes`` object.

src/datadog_api_client/v2/model/action_connection_attributes_update.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.action_connection_integration_update import ActionConnectionIntegrationUpdate
1818
from datadog_api_client.v2.model.aws_integration_update import AWSIntegrationUpdate
19+
from datadog_api_client.v2.model.datadog_integration_update import DatadogIntegrationUpdate
1920
from datadog_api_client.v2.model.http_integration_update import HTTPIntegrationUpdate
2021

2122

@@ -37,7 +38,11 @@ def openapi_types(_):
3738
def __init__(
3839
self_,
3940
integration: Union[
40-
ActionConnectionIntegrationUpdate, AWSIntegrationUpdate, HTTPIntegrationUpdate, UnsetType
41+
ActionConnectionIntegrationUpdate,
42+
AWSIntegrationUpdate,
43+
DatadogIntegrationUpdate,
44+
HTTPIntegrationUpdate,
45+
UnsetType,
4146
] = unset,
4247
name: Union[str, UnsetType] = unset,
4348
**kwargs,

src/datadog_api_client/v2/model/action_connection_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ def _composed_schemas(_):
3636
# classes don't exist yet because their module has not finished
3737
# loading
3838
from datadog_api_client.v2.model.aws_integration import AWSIntegration
39+
from datadog_api_client.v2.model.datadog_integration import DatadogIntegration
3940
from datadog_api_client.v2.model.http_integration import HTTPIntegration
4041

4142
return {
4243
"oneOf": [
4344
AWSIntegration,
45+
DatadogIntegration,
4446
HTTPIntegration,
4547
],
4648
}

src/datadog_api_client/v2/model/action_connection_integration_update.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ def _composed_schemas(_):
3636
# classes don't exist yet because their module has not finished
3737
# loading
3838
from datadog_api_client.v2.model.aws_integration_update import AWSIntegrationUpdate
39+
from datadog_api_client.v2.model.datadog_integration_update import DatadogIntegrationUpdate
3940
from datadog_api_client.v2.model.http_integration_update import HTTPIntegrationUpdate
4041

4142
return {
4243
"oneOf": [
4344
AWSIntegrationUpdate,
45+
DatadogIntegrationUpdate,
4446
HTTPIntegrationUpdate,
4547
],
4648
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.datadog_api_key_type import DatadogAPIKeyType
18+
19+
20+
class DatadogAPIKey(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.datadog_api_key_type import DatadogAPIKeyType
24+
25+
return {
26+
"api_key": (str,),
27+
"app_key": (str,),
28+
"datacenter": (str,),
29+
"subdomain": (str,),
30+
"type": (DatadogAPIKeyType,),
31+
}
32+
33+
attribute_map = {
34+
"api_key": "api_key",
35+
"app_key": "app_key",
36+
"datacenter": "datacenter",
37+
"subdomain": "subdomain",
38+
"type": "type",
39+
}
40+
41+
def __init__(
42+
self_,
43+
api_key: str,
44+
app_key: str,
45+
datacenter: str,
46+
type: DatadogAPIKeyType,
47+
subdomain: Union[str, UnsetType] = unset,
48+
**kwargs,
49+
):
50+
"""
51+
The definition of the ``DatadogAPIKey`` object.
52+
53+
:param api_key: The ``DatadogAPIKey`` ``api_key``.
54+
:type api_key: str
55+
56+
:param app_key: The ``DatadogAPIKey`` ``app_key``.
57+
:type app_key: str
58+
59+
:param datacenter: The ``DatadogAPIKey`` ``datacenter``.
60+
:type datacenter: str
61+
62+
:param subdomain: Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses ``https://acme.datadoghq.com`` to access Datadog, set this field to ``acme``. If this field is omitted, generated URLs will use the default site URL for its datacenter (see `https://docs.datadoghq.com/getting_started/site <https://docs.datadoghq.com/getting_started/site>`_ ).
63+
:type subdomain: str, optional
64+
65+
:param type: The definition of the ``DatadogAPIKey`` object.
66+
:type type: DatadogAPIKeyType
67+
"""
68+
if subdomain is not unset:
69+
kwargs["subdomain"] = subdomain
70+
super().__init__(kwargs)
71+
72+
self_.api_key = api_key
73+
self_.app_key = app_key
74+
self_.datacenter = datacenter
75+
self_.type = type
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class DatadogAPIKeyType(ModelSimple):
16+
"""
17+
The definition of the `DatadogAPIKey` object.
18+
19+
:param value: If omitted defaults to "DatadogAPIKey". Must be one of ["DatadogAPIKey"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"DatadogAPIKey",
25+
}
26+
DATADOGAPIKEY: ClassVar["DatadogAPIKeyType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
DatadogAPIKeyType.DATADOGAPIKEY = DatadogAPIKeyType("DatadogAPIKey")

0 commit comments

Comments
 (0)