Skip to content

Commit f4c44ea

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 764de5f0 of spec repo (#2465)
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 75c1c59 commit f4c44ea

16 files changed

+301
-31
lines changed

.apigentools-info

+4-4
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-03-20 15:01:19.638714",
8-
"spec_repo_commit": "0f5c928e"
7+
"regenerated": "2025-03-24 17:12:23.541972",
8+
"spec_repo_commit": "764de5f0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-20 15:01:19.653993",
13-
"spec_repo_commit": "0f5c928e"
12+
"regenerated": "2025-03-24 17:12:23.660221",
13+
"spec_repo_commit": "764de5f0"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+40-10
Original file line numberDiff line numberDiff line change
@@ -11936,9 +11936,15 @@ components:
1193611936
description: Incident ID.
1193711937
type: string
1193811938
type:
11939-
description: Incident description.
11940-
type: string
11939+
$ref: '#/components/schemas/EntityResponseIncludedIncidentType'
1194111940
type: object
11941+
EntityResponseIncludedIncidentType:
11942+
description: Incident description.
11943+
enum:
11944+
- incident
11945+
type: string
11946+
x-enum-varnames:
11947+
- INCIDENT
1194211948
EntityResponseIncludedOncall:
1194311949
description: Included oncall.
1194411950
properties:
@@ -11948,9 +11954,15 @@ components:
1194811954
description: Oncall ID.
1194911955
type: string
1195011956
type:
11951-
description: Oncall type.
11952-
type: string
11957+
$ref: '#/components/schemas/EntityResponseIncludedOncallType'
1195311958
type: object
11959+
EntityResponseIncludedOncallType:
11960+
description: Oncall type.
11961+
enum:
11962+
- oncall
11963+
type: string
11964+
x-enum-varnames:
11965+
- ONCALL
1195411966
EntityResponseIncludedRawSchema:
1195511967
description: Included raw schema.
1195611968
properties:
@@ -11960,8 +11972,7 @@ components:
1196011972
description: Raw schema ID.
1196111973
type: string
1196211974
type:
11963-
description: Raw schema type.
11964-
type: string
11975+
$ref: '#/components/schemas/EntityResponseIncludedRawSchemaType'
1196511976
type: object
1196611977
EntityResponseIncludedRawSchemaAttributes:
1196711978
description: Included raw schema attributes.
@@ -11970,6 +11981,13 @@ components:
1197011981
description: Schema from user input in base64 encoding.
1197111982
type: string
1197211983
type: object
11984+
EntityResponseIncludedRawSchemaType:
11985+
description: Raw schema type.
11986+
enum:
11987+
- rawSchema
11988+
type: string
11989+
x-enum-varnames:
11990+
- RAW_SCHEMA
1197311991
EntityResponseIncludedRelatedEntity:
1197411992
description: Included related entity.
1197511993
properties:
@@ -11981,8 +11999,7 @@ components:
1198111999
meta:
1198212000
$ref: '#/components/schemas/EntityResponseIncludedRelatedEntityMeta'
1198312001
type:
11984-
description: Related entity.
11985-
type: string
12002+
$ref: '#/components/schemas/EntityResponseIncludedRelatedEntityType'
1198612003
type: object
1198712004
EntityResponseIncludedRelatedEntityAttributes:
1198812005
description: Related entity attributes.
@@ -12018,6 +12035,13 @@ components:
1201812035
description: Entity relation source.
1201912036
type: string
1202012037
type: object
12038+
EntityResponseIncludedRelatedEntityType:
12039+
description: Related entity.
12040+
enum:
12041+
- relatedEntity
12042+
type: string
12043+
x-enum-varnames:
12044+
- RELATED_ENTITY
1202112045
EntityResponseIncludedRelatedIncidentAttributes:
1202212046
description: Incident attributes.
1202312047
properties:
@@ -12075,15 +12099,21 @@ components:
1207512099
description: Entity ID.
1207612100
type: string
1207712101
type:
12078-
description: Schema type.
12079-
type: string
12102+
$ref: '#/components/schemas/EntityResponseIncludedSchemaType'
1208012103
type: object
1208112104
EntityResponseIncludedSchemaAttributes:
1208212105
description: Included schema.
1208312106
properties:
1208412107
schema:
1208512108
$ref: '#/components/schemas/EntityV3'
1208612109
type: object
12110+
EntityResponseIncludedSchemaType:
12111+
description: Schema type.
12112+
enum:
12113+
- schema
12114+
type: string
12115+
x-enum-varnames:
12116+
- SCHEMA
1208712117
EntityResponseMeta:
1208812118
description: Entity metadata.
1208912119
properties:

docs/datadog_api_client.v2.model.rst

+35
Original file line numberDiff line numberDiff line change
@@ -4806,13 +4806,27 @@ datadog\_api\_client.v2.model.entity\_response\_included\_incident module
48064806
:members:
48074807
:show-inheritance:
48084808

4809+
datadog\_api\_client.v2.model.entity\_response\_included\_incident\_type module
4810+
-------------------------------------------------------------------------------
4811+
4812+
.. automodule:: datadog_api_client.v2.model.entity_response_included_incident_type
4813+
:members:
4814+
:show-inheritance:
4815+
48094816
datadog\_api\_client.v2.model.entity\_response\_included\_oncall module
48104817
-----------------------------------------------------------------------
48114818

48124819
.. automodule:: datadog_api_client.v2.model.entity_response_included_oncall
48134820
:members:
48144821
:show-inheritance:
48154822

4823+
datadog\_api\_client.v2.model.entity\_response\_included\_oncall\_type module
4824+
-----------------------------------------------------------------------------
4825+
4826+
.. automodule:: datadog_api_client.v2.model.entity_response_included_oncall_type
4827+
:members:
4828+
:show-inheritance:
4829+
48164830
datadog\_api\_client.v2.model.entity\_response\_included\_raw\_schema module
48174831
----------------------------------------------------------------------------
48184832

@@ -4827,6 +4841,13 @@ datadog\_api\_client.v2.model.entity\_response\_included\_raw\_schema\_attribute
48274841
:members:
48284842
:show-inheritance:
48294843

4844+
datadog\_api\_client.v2.model.entity\_response\_included\_raw\_schema\_type module
4845+
----------------------------------------------------------------------------------
4846+
4847+
.. automodule:: datadog_api_client.v2.model.entity_response_included_raw_schema_type
4848+
:members:
4849+
:show-inheritance:
4850+
48304851
datadog\_api\_client.v2.model.entity\_response\_included\_related\_entity module
48314852
--------------------------------------------------------------------------------
48324853

@@ -4848,6 +4869,13 @@ datadog\_api\_client.v2.model.entity\_response\_included\_related\_entity\_meta
48484869
:members:
48494870
:show-inheritance:
48504871

4872+
datadog\_api\_client.v2.model.entity\_response\_included\_related\_entity\_type module
4873+
--------------------------------------------------------------------------------------
4874+
4875+
.. automodule:: datadog_api_client.v2.model.entity_response_included_related_entity_type
4876+
:members:
4877+
:show-inheritance:
4878+
48514879
datadog\_api\_client.v2.model.entity\_response\_included\_related\_incident\_attributes module
48524880
----------------------------------------------------------------------------------------------
48534881

@@ -4883,6 +4911,13 @@ datadog\_api\_client.v2.model.entity\_response\_included\_schema\_attributes mod
48834911
:members:
48844912
:show-inheritance:
48854913

4914+
datadog\_api\_client.v2.model.entity\_response\_included\_schema\_type module
4915+
-----------------------------------------------------------------------------
4916+
4917+
.. automodule:: datadog_api_client.v2.model.entity_response_included_schema_type
4918+
:members:
4919+
:show-inheritance:
4920+
48864921
datadog\_api\_client.v2.model.entity\_response\_meta module
48874922
-----------------------------------------------------------
48884923

src/datadog_api_client/v2/model/entity_response_included_incident.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from datadog_api_client.v2.model.entity_response_included_related_incident_attributes import (
1818
EntityResponseIncludedRelatedIncidentAttributes,
1919
)
20+
from datadog_api_client.v2.model.entity_response_included_incident_type import EntityResponseIncludedIncidentType
2021

2122

2223
class EntityResponseIncludedIncident(ModelNormal):
@@ -25,11 +26,14 @@ def openapi_types(_):
2526
from datadog_api_client.v2.model.entity_response_included_related_incident_attributes import (
2627
EntityResponseIncludedRelatedIncidentAttributes,
2728
)
29+
from datadog_api_client.v2.model.entity_response_included_incident_type import (
30+
EntityResponseIncludedIncidentType,
31+
)
2832

2933
return {
3034
"attributes": (EntityResponseIncludedRelatedIncidentAttributes,),
3135
"id": (str,),
32-
"type": (str,),
36+
"type": (EntityResponseIncludedIncidentType,),
3337
}
3438

3539
attribute_map = {
@@ -42,7 +46,7 @@ def __init__(
4246
self_,
4347
attributes: Union[EntityResponseIncludedRelatedIncidentAttributes, UnsetType] = unset,
4448
id: Union[str, UnsetType] = unset,
45-
type: Union[str, UnsetType] = unset,
49+
type: Union[EntityResponseIncludedIncidentType, UnsetType] = unset,
4650
**kwargs,
4751
):
4852
"""
@@ -55,7 +59,7 @@ def __init__(
5559
:type id: str, optional
5660
5761
:param type: Incident description.
58-
:type type: str, optional
62+
:type type: EntityResponseIncludedIncidentType, optional
5963
"""
6064
if attributes is not unset:
6165
kwargs["attributes"] = attributes
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 EntityResponseIncludedIncidentType(ModelSimple):
16+
"""
17+
Incident description.
18+
19+
:param value: If omitted defaults to "incident". Must be one of ["incident"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"incident",
25+
}
26+
INCIDENT: ClassVar["EntityResponseIncludedIncidentType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
EntityResponseIncludedIncidentType.INCIDENT = EntityResponseIncludedIncidentType("incident")

src/datadog_api_client/v2/model/entity_response_included_oncall.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from datadog_api_client.v2.model.entity_response_included_related_oncall_attributes import (
1818
EntityResponseIncludedRelatedOncallAttributes,
1919
)
20+
from datadog_api_client.v2.model.entity_response_included_oncall_type import EntityResponseIncludedOncallType
2021

2122

2223
class EntityResponseIncludedOncall(ModelNormal):
@@ -25,11 +26,12 @@ def openapi_types(_):
2526
from datadog_api_client.v2.model.entity_response_included_related_oncall_attributes import (
2627
EntityResponseIncludedRelatedOncallAttributes,
2728
)
29+
from datadog_api_client.v2.model.entity_response_included_oncall_type import EntityResponseIncludedOncallType
2830

2931
return {
3032
"attributes": (EntityResponseIncludedRelatedOncallAttributes,),
3133
"id": (str,),
32-
"type": (str,),
34+
"type": (EntityResponseIncludedOncallType,),
3335
}
3436

3537
attribute_map = {
@@ -42,7 +44,7 @@ def __init__(
4244
self_,
4345
attributes: Union[EntityResponseIncludedRelatedOncallAttributes, UnsetType] = unset,
4446
id: Union[str, UnsetType] = unset,
45-
type: Union[str, UnsetType] = unset,
47+
type: Union[EntityResponseIncludedOncallType, UnsetType] = unset,
4648
**kwargs,
4749
):
4850
"""
@@ -55,7 +57,7 @@ def __init__(
5557
:type id: str, optional
5658
5759
:param type: Oncall type.
58-
:type type: str, optional
60+
:type type: EntityResponseIncludedOncallType, optional
5961
"""
6062
if attributes is not unset:
6163
kwargs["attributes"] = attributes
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 EntityResponseIncludedOncallType(ModelSimple):
16+
"""
17+
Oncall type.
18+
19+
:param value: If omitted defaults to "oncall". Must be one of ["oncall"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"oncall",
25+
}
26+
ONCALL: ClassVar["EntityResponseIncludedOncallType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
EntityResponseIncludedOncallType.ONCALL = EntityResponseIncludedOncallType("oncall")

src/datadog_api_client/v2/model/entity_response_included_raw_schema.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from datadog_api_client.v2.model.entity_response_included_raw_schema_attributes import (
1818
EntityResponseIncludedRawSchemaAttributes,
1919
)
20+
from datadog_api_client.v2.model.entity_response_included_raw_schema_type import EntityResponseIncludedRawSchemaType
2021

2122

2223
class EntityResponseIncludedRawSchema(ModelNormal):
@@ -25,11 +26,14 @@ def openapi_types(_):
2526
from datadog_api_client.v2.model.entity_response_included_raw_schema_attributes import (
2627
EntityResponseIncludedRawSchemaAttributes,
2728
)
29+
from datadog_api_client.v2.model.entity_response_included_raw_schema_type import (
30+
EntityResponseIncludedRawSchemaType,
31+
)
2832

2933
return {
3034
"attributes": (EntityResponseIncludedRawSchemaAttributes,),
3135
"id": (str,),
32-
"type": (str,),
36+
"type": (EntityResponseIncludedRawSchemaType,),
3337
}
3438

3539
attribute_map = {
@@ -42,7 +46,7 @@ def __init__(
4246
self_,
4347
attributes: Union[EntityResponseIncludedRawSchemaAttributes, UnsetType] = unset,
4448
id: Union[str, UnsetType] = unset,
45-
type: Union[str, UnsetType] = unset,
49+
type: Union[EntityResponseIncludedRawSchemaType, UnsetType] = unset,
4650
**kwargs,
4751
):
4852
"""
@@ -55,7 +59,7 @@ def __init__(
5559
:type id: str, optional
5660
5761
:param type: Raw schema type.
58-
:type type: str, optional
62+
:type type: EntityResponseIncludedRawSchemaType, optional
5963
"""
6064
if attributes is not unset:
6165
kwargs["attributes"] = attributes

0 commit comments

Comments
 (0)