Skip to content

Commit 1aa8c31

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d3bc2b1 of spec repo
1 parent 68aa745 commit 1aa8c31

14 files changed

+458
-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": "d93d991",
3-
"generated": "2025-07-15 09:31:55.997"
2+
"spec_repo_commit": "d3bc2b1",
3+
"generated": "2025-07-16 14:17:11.349"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 73 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,
@@ -12186,6 +12188,77 @@ components:
1218612188
required:
1218712189
- databaseMonitoringTrigger
1218812190
type: object
12191+
DatadogCredentials:
12192+
description: The definition of `DatadogCredentials` object.
12193+
oneOf:
12194+
- $ref: '#/components/schemas/DatadogDatadogAPIKey'
12195+
DatadogDatadogAPIKey:
12196+
description: The definition of `DatadogDatadogAPIKey` object.
12197+
properties:
12198+
api_key:
12199+
description: The `DatadogDatadogAPIKey` `api_key`.
12200+
example: ''
12201+
type: string
12202+
app_key:
12203+
description: The `DatadogDatadogAPIKey` `app_key`.
12204+
example: ''
12205+
type: string
12206+
datacenter:
12207+
description: The `DatadogDatadogAPIKey` `datacenter`.
12208+
example: ''
12209+
type: string
12210+
subdomain:
12211+
description: Custom subdomain used for Datadog URLs generated with this
12212+
Connection. For example, if this org uses https://acme.datadoghq.com to
12213+
access Datadog, set this field to `acme`. If this field is omitted, generated
12214+
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)).
12215+
type: string
12216+
type:
12217+
$ref: '#/components/schemas/DatadogDatadogAPIKeyType'
12218+
required:
12219+
- type
12220+
- datacenter
12221+
- api_key
12222+
- app_key
12223+
type: object
12224+
DatadogDatadogAPIKeyType:
12225+
description: The credential type
12226+
enum:
12227+
- DATADOG_APP_API_KEY
12228+
example: DATADOG_APP_API_KEY
12229+
type: string
12230+
x-enum-varnames:
12231+
- DATADOG_APP_API_KEY
12232+
DatadogIntegration:
12233+
description: The definition of `DatadogIntegration` object.
12234+
properties:
12235+
credentials:
12236+
$ref: '#/components/schemas/DatadogCredentials'
12237+
type:
12238+
$ref: '#/components/schemas/DatadogIntegrationType'
12239+
required:
12240+
- type
12241+
- credentials
12242+
type: object
12243+
DatadogIntegrationType:
12244+
description: The definition of `DatadogIntegrationType` object.
12245+
enum:
12246+
- Datadog
12247+
example: Datadog
12248+
type: string
12249+
x-enum-varnames:
12250+
- DATADOG
12251+
DatadogIntegrationUpdate:
12252+
description: The definition of `DatadogIntegrationUpdate` object.
12253+
properties:
12254+
credentials:
12255+
$ref: '#/components/schemas/DatadogCredentials'
12256+
deleted:
12257+
description: Whether the integration should be deleted
12258+
type: boolean
12259+
type:
12260+
$ref: '#/components/schemas/DatadogIntegrationType'
12261+
type: object
1218912262
Dataset:
1219012263
description: Dataset object.
1219112264
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4666,6 +4666,48 @@ datadog\_api\_client.v2.model.database\_monitoring\_trigger\_wrapper module
46664666
:members:
46674667
:show-inheritance:
46684668

4669+
datadog\_api\_client.v2.model.datadog\_credentials module
4670+
---------------------------------------------------------
4671+
4672+
.. automodule:: datadog_api_client.v2.model.datadog_credentials
4673+
:members:
4674+
:show-inheritance:
4675+
4676+
datadog\_api\_client.v2.model.datadog\_datadog\_api\_key module
4677+
---------------------------------------------------------------
4678+
4679+
.. automodule:: datadog_api_client.v2.model.datadog_datadog_api_key
4680+
:members:
4681+
:show-inheritance:
4682+
4683+
datadog\_api\_client.v2.model.datadog\_datadog\_api\_key\_type module
4684+
---------------------------------------------------------------------
4685+
4686+
.. automodule:: datadog_api_client.v2.model.datadog_datadog_api_key_type
4687+
:members:
4688+
:show-inheritance:
4689+
4690+
datadog\_api\_client.v2.model.datadog\_integration module
4691+
---------------------------------------------------------
4692+
4693+
.. automodule:: datadog_api_client.v2.model.datadog_integration
4694+
:members:
4695+
:show-inheritance:
4696+
4697+
datadog\_api\_client.v2.model.datadog\_integration\_type module
4698+
---------------------------------------------------------------
4699+
4700+
.. automodule:: datadog_api_client.v2.model.datadog_integration_type
4701+
:members:
4702+
:show-inheritance:
4703+
4704+
datadog\_api\_client.v2.model.datadog\_integration\_update module
4705+
-----------------------------------------------------------------
4706+
4707+
.. automodule:: datadog_api_client.v2.model.datadog_integration_update
4708+
:members:
4709+
:show-inheritance:
4710+
46694711
datadog\_api\_client.v2.model.dataset module
46704712
--------------------------------------------
46714713

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def __init__(self, **kwargs):
2121
:param type: The definition of `AWSIntegrationType` object.
2222
:type type: AWSIntegrationType
2323
24+
:param deleted: Whether the integration should be deleted
25+
:type deleted: bool, optional
26+
2427
:param base_url: Base HTTP url for the integration
2528
:type base_url: str, optional
2629
"""
@@ -36,11 +39,13 @@ def _composed_schemas(_):
3639
# classes don't exist yet because their module has not finished
3740
# loading
3841
from datadog_api_client.v2.model.aws_integration_update import AWSIntegrationUpdate
42+
from datadog_api_client.v2.model.datadog_integration_update import DatadogIntegrationUpdate
3943
from datadog_api_client.v2.model.http_integration_update import HTTPIntegrationUpdate
4044

4145
return {
4246
"oneOf": [
4347
AWSIntegrationUpdate,
48+
DatadogIntegrationUpdate,
4449
HTTPIntegrationUpdate,
4550
],
4651
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
ModelComposed,
9+
cached_property,
10+
)
11+
12+
13+
class DatadogCredentials(ModelComposed):
14+
def __init__(self, **kwargs):
15+
"""
16+
The definition of ``DatadogCredentials`` object.
17+
18+
:param api_key: The `DatadogDatadogAPIKey` `api_key`.
19+
:type api_key: str
20+
21+
:param app_key: The `DatadogDatadogAPIKey` `app_key`.
22+
:type app_key: str
23+
24+
:param datacenter: The `DatadogDatadogAPIKey` `datacenter`.
25+
:type datacenter: str
26+
27+
: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)).
28+
:type subdomain: str, optional
29+
30+
:param type: The credential type
31+
:type type: DatadogDatadogAPIKeyType
32+
"""
33+
super().__init__(kwargs)
34+
35+
@cached_property
36+
def _composed_schemas(_):
37+
# we need this here to make our import statements work
38+
# we must store _composed_schemas in here so the code is only run
39+
# when we invoke this method. If we kept this at the class
40+
# level we would get an error because the class level
41+
# code would be run when this module is imported, and these composed
42+
# classes don't exist yet because their module has not finished
43+
# loading
44+
from datadog_api_client.v2.model.datadog_datadog_api_key import DatadogDatadogAPIKey
45+
46+
return {
47+
"oneOf": [
48+
DatadogDatadogAPIKey,
49+
],
50+
}
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_datadog_api_key_type import DatadogDatadogAPIKeyType
18+
19+
20+
class DatadogDatadogAPIKey(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.datadog_datadog_api_key_type import DatadogDatadogAPIKeyType
24+
25+
return {
26+
"api_key": (str,),
27+
"app_key": (str,),
28+
"datacenter": (str,),
29+
"subdomain": (str,),
30+
"type": (DatadogDatadogAPIKeyType,),
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: DatadogDatadogAPIKeyType,
47+
subdomain: Union[str, UnsetType] = unset,
48+
**kwargs,
49+
):
50+
"""
51+
The definition of ``DatadogDatadogAPIKey`` object.
52+
53+
:param api_key: The ``DatadogDatadogAPIKey`` ``api_key``.
54+
:type api_key: str
55+
56+
:param app_key: The ``DatadogDatadogAPIKey`` ``app_key``.
57+
:type app_key: str
58+
59+
:param datacenter: The ``DatadogDatadogAPIKey`` ``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 credential type
66+
:type type: DatadogDatadogAPIKeyType
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 DatadogDatadogAPIKeyType(ModelSimple):
16+
"""
17+
The credential type
18+
19+
:param value: If omitted defaults to "DATADOG_APP_API_KEY". Must be one of ["DATADOG_APP_API_KEY"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"DATADOG_APP_API_KEY",
25+
}
26+
DATADOG_APP_API_KEY: ClassVar["DatadogDatadogAPIKeyType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
DatadogDatadogAPIKeyType.DATADOG_APP_API_KEY = DatadogDatadogAPIKeyType("DATADOG_APP_API_KEY")

0 commit comments

Comments
 (0)