Skip to content

Commit 642c411

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b2126cb8 of spec repo
1 parent d019490 commit 642c411

File tree

6 files changed

+75
-13
lines changed

6 files changed

+75
-13
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.6",
7-
"regenerated": "2024-06-13 08:10:16.530385",
8-
"spec_repo_commit": "eb5da65e"
7+
"regenerated": "2024-06-14 08:39:27.520979",
8+
"spec_repo_commit": "b2126cb8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-06-13 08:10:16.548497",
13-
"spec_repo_commit": "eb5da65e"
12+
"regenerated": "2024-06-14 08:39:27.547157",
13+
"spec_repo_commit": "b2126cb8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10568,8 +10568,14 @@ components:
1056810568
ListAPIsResponseData:
1056910569
description: Data envelope for `ListAPIsResponse`.
1057010570
properties:
10571+
attributes:
10572+
$ref: '#/components/schemas/ListAPIsResponseDataAttributes'
1057110573
id:
1057210574
$ref: '#/components/schemas/ApiID'
10575+
type: object
10576+
ListAPIsResponseDataAttributes:
10577+
description: Attributes for `ListAPIsResponseData`.
10578+
properties:
1057310579
name:
1057410580
description: API name.
1057510581
example: Payments API

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4495,6 +4495,13 @@ list\_ap\_is\_response\_data
44954495
:members:
44964496
:show-inheritance:
44974497

4498+
list\_ap\_is\_response\_data\_attributes
4499+
----------------------------------------
4500+
4501+
.. automodule:: datadog_api_client.v2.model.list_ap_is_response_data_attributes
4502+
:members:
4503+
:show-inheritance:
4504+
44984505
list\_ap\_is\_response\_meta
44994506
----------------------------
45004507

src/datadog_api_client/v2/model/list_ap_is_response_data.py

Lines changed: 20 additions & 9 deletions
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 Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -14,31 +14,42 @@
1414
)
1515

1616

17+
if TYPE_CHECKING:
18+
from datadog_api_client.v2.model.list_ap_is_response_data_attributes import ListAPIsResponseDataAttributes
19+
20+
1721
class ListAPIsResponseData(ModelNormal):
1822
@cached_property
1923
def openapi_types(_):
24+
from datadog_api_client.v2.model.list_ap_is_response_data_attributes import ListAPIsResponseDataAttributes
25+
2026
return {
27+
"attributes": (ListAPIsResponseDataAttributes,),
2128
"id": (UUID,),
22-
"name": (str,),
2329
}
2430

2531
attribute_map = {
32+
"attributes": "attributes",
2633
"id": "id",
27-
"name": "name",
2834
}
2935

30-
def __init__(self_, id: Union[UUID, UnsetType] = unset, name: Union[str, UnsetType] = unset, **kwargs):
36+
def __init__(
37+
self_,
38+
attributes: Union[ListAPIsResponseDataAttributes, UnsetType] = unset,
39+
id: Union[UUID, UnsetType] = unset,
40+
**kwargs,
41+
):
3142
"""
3243
Data envelope for ``ListAPIsResponse``.
3344
45+
:param attributes: Attributes for ``ListAPIsResponseData``.
46+
:type attributes: ListAPIsResponseDataAttributes, optional
47+
3448
:param id: API identifier.
3549
:type id: UUID, optional
36-
37-
:param name: API name.
38-
:type name: str, optional
3950
"""
51+
if attributes is not unset:
52+
kwargs["attributes"] = attributes
4053
if id is not unset:
4154
kwargs["id"] = id
42-
if name is not unset:
43-
kwargs["name"] = name
4455
super().__init__(kwargs)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 ListAPIsResponseDataAttributes(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"name": (str,),
21+
}
22+
23+
attribute_map = {
24+
"name": "name",
25+
}
26+
27+
def __init__(self_, name: Union[str, UnsetType] = unset, **kwargs):
28+
"""
29+
Attributes for ``ListAPIsResponseData``.
30+
31+
:param name: API name.
32+
:type name: str, optional
33+
"""
34+
if name is not unset:
35+
kwargs["name"] = name
36+
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
@@ -788,6 +788,7 @@
788788
from datadog_api_client.v2.model.jira_issue_result import JiraIssueResult
789789
from datadog_api_client.v2.model.list_ap_is_response import ListAPIsResponse
790790
from datadog_api_client.v2.model.list_ap_is_response_data import ListAPIsResponseData
791+
from datadog_api_client.v2.model.list_ap_is_response_data_attributes import ListAPIsResponseDataAttributes
791792
from datadog_api_client.v2.model.list_ap_is_response_meta import ListAPIsResponseMeta
792793
from datadog_api_client.v2.model.list_ap_is_response_meta_pagination import ListAPIsResponseMetaPagination
793794
from datadog_api_client.v2.model.list_application_keys_response import ListApplicationKeysResponse
@@ -2455,6 +2456,7 @@
24552456
"JiraIssueResult",
24562457
"ListAPIsResponse",
24572458
"ListAPIsResponseData",
2459+
"ListAPIsResponseDataAttributes",
24582460
"ListAPIsResponseMeta",
24592461
"ListAPIsResponseMetaPagination",
24602462
"ListApplicationKeysResponse",

0 commit comments

Comments
 (0)