Skip to content

Commit 59ff455

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2bd58701 of spec repo
1 parent 4ea3e5e commit 59ff455

File tree

7 files changed

+135
-5
lines changed

7 files changed

+135
-5
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.5",
7-
"regenerated": "2023-07-13 21:23:39.298296",
8-
"spec_repo_commit": "70f8c389"
7+
"regenerated": "2023-07-14 13:32:03.152627",
8+
"spec_repo_commit": "2bd58701"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-13 21:23:39.311523",
13-
"spec_repo_commit": "70f8c389"
12+
"regenerated": "2023-07-14 13:32:03.246638",
13+
"spec_repo_commit": "2bd58701"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14217,6 +14217,9 @@ components:
1421714217
properties:
1421814218
attributes:
1421914219
$ref: '#/components/schemas/ServiceDefinitionDataAttributes'
14220+
id:
14221+
description: Service definition id.
14222+
type: string
1422014223
type:
1422114224
description: Service definition type.
1422214225
type: string
@@ -14250,6 +14253,30 @@ components:
1425014253
last-modified-time:
1425114254
description: Last modified time of the service definition.
1425214255
type: string
14256+
origin:
14257+
description: User defined origin of the service definition.
14258+
type: string
14259+
origin-detail:
14260+
description: User defined origin's detail of the service definition.
14261+
type: string
14262+
warnings:
14263+
description: A list of schema validation warnings.
14264+
items:
14265+
$ref: '#/components/schemas/ServiceDefinitionMetaWarnings'
14266+
type: array
14267+
type: object
14268+
ServiceDefinitionMetaWarnings:
14269+
description: Schema validation warnings.
14270+
properties:
14271+
instance-location:
14272+
description: The warning instance location.
14273+
type: string
14274+
keyword-location:
14275+
description: The warning keyword location.
14276+
type: string
14277+
message:
14278+
description: The warning message.
14279+
type: string
1425314280
type: object
1425414281
ServiceDefinitionRaw:
1425514282
description: Service Definition in raw JSON/YAML representation.

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6413,6 +6413,13 @@ service\_definition\_meta
64136413
:members:
64146414
:show-inheritance:
64156415

6416+
service\_definition\_meta\_warnings
6417+
-----------------------------------
6418+
6419+
.. automodule:: datadog_api_client.v2.model.service_definition_meta_warnings
6420+
:members:
6421+
:show-inheritance:
6422+
64166423
service\_definition\_schema
64176424
---------------------------
64186425

src/datadog_api_client/v2/model/service_definition_data.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,20 @@ def openapi_types(_):
2424

2525
return {
2626
"attributes": (ServiceDefinitionDataAttributes,),
27+
"id": (str,),
2728
"type": (str,),
2829
}
2930

3031
attribute_map = {
3132
"attributes": "attributes",
33+
"id": "id",
3234
"type": "type",
3335
}
3436

3537
def __init__(
3638
self_,
3739
attributes: Union[ServiceDefinitionDataAttributes, UnsetType] = unset,
40+
id: Union[str, UnsetType] = unset,
3841
type: Union[str, UnsetType] = unset,
3942
**kwargs,
4043
):
@@ -44,11 +47,16 @@ def __init__(
4447
:param attributes: Service definition attributes.
4548
:type attributes: ServiceDefinitionDataAttributes, optional
4649
50+
:param id: Service definition id.
51+
:type id: str, optional
52+
4753
:param type: Service definition type.
4854
:type type: str, optional
4955
"""
5056
if attributes is not unset:
5157
kwargs["attributes"] = attributes
58+
if id is not unset:
59+
kwargs["id"] = id
5260
if type is not unset:
5361
kwargs["type"] = type
5462
super().__init__(kwargs)

src/datadog_api_client/v2/model/service_definition_meta.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -13,21 +13,33 @@
1313
)
1414

1515

16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.service_definition_meta_warnings import ServiceDefinitionMetaWarnings
18+
19+
1620
class ServiceDefinitionMeta(ModelNormal):
1721
@cached_property
1822
def openapi_types(_):
23+
from datadog_api_client.v2.model.service_definition_meta_warnings import ServiceDefinitionMetaWarnings
24+
1925
return {
2026
"github_html_url": (str,),
2127
"ingested_schema_version": (str,),
2228
"ingestion_source": (str,),
2329
"last_modified_time": (str,),
30+
"origin": (str,),
31+
"origin_detail": (str,),
32+
"warnings": ([ServiceDefinitionMetaWarnings],),
2433
}
2534

2635
attribute_map = {
2736
"github_html_url": "github-html-url",
2837
"ingested_schema_version": "ingested-schema-version",
2938
"ingestion_source": "ingestion-source",
3039
"last_modified_time": "last-modified-time",
40+
"origin": "origin",
41+
"origin_detail": "origin-detail",
42+
"warnings": "warnings",
3143
}
3244

3345
def __init__(
@@ -36,6 +48,9 @@ def __init__(
3648
ingested_schema_version: Union[str, UnsetType] = unset,
3749
ingestion_source: Union[str, UnsetType] = unset,
3850
last_modified_time: Union[str, UnsetType] = unset,
51+
origin: Union[str, UnsetType] = unset,
52+
origin_detail: Union[str, UnsetType] = unset,
53+
warnings: Union[List[ServiceDefinitionMetaWarnings], UnsetType] = unset,
3954
**kwargs,
4055
):
4156
"""
@@ -52,6 +67,15 @@ def __init__(
5267
5368
:param last_modified_time: Last modified time of the service definition.
5469
:type last_modified_time: str, optional
70+
71+
:param origin: User defined origin of the service definition.
72+
:type origin: str, optional
73+
74+
:param origin_detail: User defined origin's detail of the service definition.
75+
:type origin_detail: str, optional
76+
77+
:param warnings: A list of schema validation warnings.
78+
:type warnings: [ServiceDefinitionMetaWarnings], optional
5579
"""
5680
if github_html_url is not unset:
5781
kwargs["github_html_url"] = github_html_url
@@ -61,4 +85,10 @@ def __init__(
6185
kwargs["ingestion_source"] = ingestion_source
6286
if last_modified_time is not unset:
6387
kwargs["last_modified_time"] = last_modified_time
88+
if origin is not unset:
89+
kwargs["origin"] = origin
90+
if origin_detail is not unset:
91+
kwargs["origin_detail"] = origin_detail
92+
if warnings is not unset:
93+
kwargs["warnings"] = warnings
6494
super().__init__(kwargs)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class ServiceDefinitionMetaWarnings(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"instance_location": (str,),
21+
"keyword_location": (str,),
22+
"message": (str,),
23+
}
24+
25+
attribute_map = {
26+
"instance_location": "instance-location",
27+
"keyword_location": "keyword-location",
28+
"message": "message",
29+
}
30+
31+
def __init__(
32+
self_,
33+
instance_location: Union[str, UnsetType] = unset,
34+
keyword_location: Union[str, UnsetType] = unset,
35+
message: Union[str, UnsetType] = unset,
36+
**kwargs,
37+
):
38+
"""
39+
Schema validation warnings.
40+
41+
:param instance_location: The warning instance location.
42+
:type instance_location: str, optional
43+
44+
:param keyword_location: The warning keyword location.
45+
:type keyword_location: str, optional
46+
47+
:param message: The warning message.
48+
:type message: str, optional
49+
"""
50+
if instance_location is not unset:
51+
kwargs["instance_location"] = instance_location
52+
if keyword_location is not unset:
53+
kwargs["keyword_location"] = keyword_location
54+
if message is not unset:
55+
kwargs["message"] = message
56+
super().__init__(kwargs)

src/datadog_api_client/v2/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,7 @@
11361136
from datadog_api_client.v2.model.service_definition_data_attributes import ServiceDefinitionDataAttributes
11371137
from datadog_api_client.v2.model.service_definition_get_response import ServiceDefinitionGetResponse
11381138
from datadog_api_client.v2.model.service_definition_meta import ServiceDefinitionMeta
1139+
from datadog_api_client.v2.model.service_definition_meta_warnings import ServiceDefinitionMetaWarnings
11391140
from datadog_api_client.v2.model.service_definition_schema import ServiceDefinitionSchema
11401141
from datadog_api_client.v2.model.service_definition_schema_versions import ServiceDefinitionSchemaVersions
11411142
from datadog_api_client.v2.model.service_definition_v1 import ServiceDefinitionV1
@@ -2253,6 +2254,7 @@
22532254
"ServiceDefinitionDataAttributes",
22542255
"ServiceDefinitionGetResponse",
22552256
"ServiceDefinitionMeta",
2257+
"ServiceDefinitionMetaWarnings",
22562258
"ServiceDefinitionSchema",
22572259
"ServiceDefinitionSchemaVersions",
22582260
"ServiceDefinitionV1",

0 commit comments

Comments
 (0)