Skip to content

Commit 3068f16

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b56ea2d7 of spec repo
1 parent 4d30a42 commit 3068f16

File tree

6 files changed

+135
-5
lines changed

6 files changed

+135
-5
lines changed

Diff for: .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-01-06 18:09:27.833401",
8-
"spec_repo_commit": "c020103f"
7+
"regenerated": "2025-01-06 19:03:08.173026",
8+
"spec_repo_commit": "b56ea2d7"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-06 18:09:27.848470",
13-
"spec_repo_commit": "c020103f"
12+
"regenerated": "2025-01-06 19:03:08.194805",
13+
"spec_repo_commit": "b56ea2d7"
1414
}
1515
}
1616
}

Diff for: .generator/schemas/v2/openapi.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -15109,6 +15109,12 @@ components:
1510915109
the error.
1511015110
example: Missing required attribute in body
1511115111
type: string
15112+
meta:
15113+
additionalProperties: {}
15114+
description: Non-standard meta-information about the error
15115+
type: object
15116+
source:
15117+
$ref: '#/components/schemas/JSONAPIErrorItemSource'
1511215118
status:
1511315119
description: Status code of the response.
1511415120
example: '400'
@@ -15118,6 +15124,24 @@ components:
1511815124
example: Bad Request
1511915125
type: string
1512015126
type: object
15127+
JSONAPIErrorItemSource:
15128+
description: References to the source of the error.
15129+
properties:
15130+
header:
15131+
description: A string indicating the name of a single request header which
15132+
caused the error.
15133+
example: Authorization
15134+
type: string
15135+
parameter:
15136+
description: A string indicating which URI query parameter caused the error.
15137+
example: limit
15138+
type: string
15139+
pointer:
15140+
description: A JSON pointer to the value in the request document that caused
15141+
the error.
15142+
example: /data/attributes/title
15143+
type: string
15144+
type: object
1512115145
JSONAPIErrorResponse:
1512215146
description: API error response.
1512315147
properties:

Diff for: docs/datadog_api_client.v2.model.rst

+7
Original file line numberDiff line numberDiff line change
@@ -6353,6 +6353,13 @@ datadog\_api\_client.v2.model.jsonapi\_error\_item module
63536353
:members:
63546354
:show-inheritance:
63556355

6356+
datadog\_api\_client.v2.model.jsonapi\_error\_item\_source module
6357+
-----------------------------------------------------------------
6358+
6359+
.. automodule:: datadog_api_client.v2.model.jsonapi_error_item_source
6360+
:members:
6361+
:show-inheritance:
6362+
63566363
datadog\_api\_client.v2.model.jsonapi\_error\_response module
63576364
-------------------------------------------------------------
63586365

Diff for: src/datadog_api_client/v2/model/jsonapi_error_item.py

+42-1
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,65 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import Any, Dict, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
13+
none_type,
1114
unset,
1215
UnsetType,
16+
UUID,
1317
)
1418

1519

20+
if TYPE_CHECKING:
21+
from datadog_api_client.v2.model.jsonapi_error_item_source import JSONAPIErrorItemSource
22+
23+
1624
class JSONAPIErrorItem(ModelNormal):
1725
@cached_property
1826
def openapi_types(_):
27+
from datadog_api_client.v2.model.jsonapi_error_item_source import JSONAPIErrorItemSource
28+
1929
return {
2030
"detail": (str,),
31+
"meta": (
32+
{
33+
str: (
34+
bool,
35+
date,
36+
datetime,
37+
dict,
38+
float,
39+
int,
40+
list,
41+
str,
42+
UUID,
43+
none_type,
44+
)
45+
},
46+
),
47+
"source": (JSONAPIErrorItemSource,),
2148
"status": (str,),
2249
"title": (str,),
2350
}
2451

2552
attribute_map = {
2653
"detail": "detail",
54+
"meta": "meta",
55+
"source": "source",
2756
"status": "status",
2857
"title": "title",
2958
}
3059

3160
def __init__(
3261
self_,
3362
detail: Union[str, UnsetType] = unset,
63+
meta: Union[Dict[str, Any], UnsetType] = unset,
64+
source: Union[JSONAPIErrorItemSource, UnsetType] = unset,
3465
status: Union[str, UnsetType] = unset,
3566
title: Union[str, UnsetType] = unset,
3667
**kwargs,
@@ -41,6 +72,12 @@ def __init__(
4172
:param detail: A human-readable explanation specific to this occurrence of the error.
4273
:type detail: str, optional
4374
75+
:param meta: Non-standard meta-information about the error
76+
:type meta: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, optional
77+
78+
:param source: References to the source of the error.
79+
:type source: JSONAPIErrorItemSource, optional
80+
4481
:param status: Status code of the response.
4582
:type status: str, optional
4683
@@ -49,6 +86,10 @@ def __init__(
4986
"""
5087
if detail is not unset:
5188
kwargs["detail"] = detail
89+
if meta is not unset:
90+
kwargs["meta"] = meta
91+
if source is not unset:
92+
kwargs["source"] = source
5293
if status is not unset:
5394
kwargs["status"] = status
5495
if title is not unset:
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 JSONAPIErrorItemSource(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"header": (str,),
21+
"parameter": (str,),
22+
"pointer": (str,),
23+
}
24+
25+
attribute_map = {
26+
"header": "header",
27+
"parameter": "parameter",
28+
"pointer": "pointer",
29+
}
30+
31+
def __init__(
32+
self_,
33+
header: Union[str, UnsetType] = unset,
34+
parameter: Union[str, UnsetType] = unset,
35+
pointer: Union[str, UnsetType] = unset,
36+
**kwargs,
37+
):
38+
"""
39+
References to the source of the error.
40+
41+
:param header: A string indicating the name of a single request header which caused the error.
42+
:type header: str, optional
43+
44+
:param parameter: A string indicating which URI query parameter caused the error.
45+
:type parameter: str, optional
46+
47+
:param pointer: A JSON pointer to the value in the request document that caused the error.
48+
:type pointer: str, optional
49+
"""
50+
if header is not unset:
51+
kwargs["header"] = header
52+
if parameter is not unset:
53+
kwargs["parameter"] = parameter
54+
if pointer is not unset:
55+
kwargs["pointer"] = pointer
56+
super().__init__(kwargs)

Diff for: src/datadog_api_client/v2/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@
11051105
from datadog_api_client.v2.model.interface_attributes import InterfaceAttributes
11061106
from datadog_api_client.v2.model.interface_attributes_status import InterfaceAttributesStatus
11071107
from datadog_api_client.v2.model.jsonapi_error_item import JSONAPIErrorItem
1108+
from datadog_api_client.v2.model.jsonapi_error_item_source import JSONAPIErrorItemSource
11081109
from datadog_api_client.v2.model.jsonapi_error_response import JSONAPIErrorResponse
11091110
from datadog_api_client.v2.model.jira_integration_metadata import JiraIntegrationMetadata
11101111
from datadog_api_client.v2.model.jira_integration_metadata_issues_item import JiraIntegrationMetadataIssuesItem
@@ -3224,6 +3225,7 @@
32243225
"InterfaceAttributes",
32253226
"InterfaceAttributesStatus",
32263227
"JSONAPIErrorItem",
3228+
"JSONAPIErrorItemSource",
32273229
"JSONAPIErrorResponse",
32283230
"JiraIntegrationMetadata",
32293231
"JiraIntegrationMetadataIssuesItem",

0 commit comments

Comments
 (0)