Skip to content

Commit

Permalink
Regenerate client from commit 743cf92b of spec repo (#2000)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: skarimo <40482491+skarimo@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 18, 2024
1 parent 6f7b0e6 commit c38977b
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-06-14 20:53:11.110786",
"spec_repo_commit": "2d7b3f3a"
"regenerated": "2024-06-17 09:21:24.214498",
"spec_repo_commit": "743cf92b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-06-14 20:53:11.128128",
"spec_repo_commit": "2d7b3f3a"
"regenerated": "2024-06-17 09:21:24.231452",
"spec_repo_commit": "743cf92b"
}
}
}
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10568,8 +10568,14 @@ components:
ListAPIsResponseData:
description: Data envelope for `ListAPIsResponse`.
properties:
attributes:
$ref: '#/components/schemas/ListAPIsResponseDataAttributes'
id:
$ref: '#/components/schemas/ApiID'
type: object
ListAPIsResponseDataAttributes:
description: Attributes for `ListAPIsResponseData`.
properties:
name:
description: API name.
example: Payments API
Expand Down
7 changes: 7 additions & 0 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4495,6 +4495,13 @@ list\_ap\_is\_response\_data
:members:
:show-inheritance:

list\_ap\_is\_response\_data\_attributes
----------------------------------------

.. automodule:: datadog_api_client.v2.model.list_ap_is_response_data_attributes
:members:
:show-inheritance:

list\_ap\_is\_response\_meta
----------------------------

Expand Down
29 changes: 20 additions & 9 deletions src/datadog_api_client/v2/model/list_ap_is_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union
from typing import Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
Expand All @@ -14,31 +14,42 @@
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.list_ap_is_response_data_attributes import ListAPIsResponseDataAttributes


class ListAPIsResponseData(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.list_ap_is_response_data_attributes import ListAPIsResponseDataAttributes

return {
"attributes": (ListAPIsResponseDataAttributes,),
"id": (UUID,),
"name": (str,),
}

attribute_map = {
"attributes": "attributes",
"id": "id",
"name": "name",
}

def __init__(self_, id: Union[UUID, UnsetType] = unset, name: Union[str, UnsetType] = unset, **kwargs):
def __init__(
self_,
attributes: Union[ListAPIsResponseDataAttributes, UnsetType] = unset,
id: Union[UUID, UnsetType] = unset,
**kwargs,
):
"""
Data envelope for ``ListAPIsResponse``.
:param attributes: Attributes for ``ListAPIsResponseData``.
:type attributes: ListAPIsResponseDataAttributes, optional
:param id: API identifier.
:type id: UUID, optional
:param name: API name.
:type name: str, optional
"""
if attributes is not unset:
kwargs["attributes"] = attributes
if id is not unset:
kwargs["id"] = id
if name is not unset:
kwargs["name"] = name
super().__init__(kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


class ListAPIsResponseDataAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"name": (str,),
}

attribute_map = {
"name": "name",
}

def __init__(self_, name: Union[str, UnsetType] = unset, **kwargs):
"""
Attributes for ``ListAPIsResponseData``.
:param name: API name.
:type name: str, optional
"""
if name is not unset:
kwargs["name"] = name
super().__init__(kwargs)
2 changes: 2 additions & 0 deletions src/datadog_api_client/v2/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@
from datadog_api_client.v2.model.jira_issue_result import JiraIssueResult
from datadog_api_client.v2.model.list_ap_is_response import ListAPIsResponse
from datadog_api_client.v2.model.list_ap_is_response_data import ListAPIsResponseData
from datadog_api_client.v2.model.list_ap_is_response_data_attributes import ListAPIsResponseDataAttributes
from datadog_api_client.v2.model.list_ap_is_response_meta import ListAPIsResponseMeta
from datadog_api_client.v2.model.list_ap_is_response_meta_pagination import ListAPIsResponseMetaPagination
from datadog_api_client.v2.model.list_application_keys_response import ListApplicationKeysResponse
Expand Down Expand Up @@ -2455,6 +2456,7 @@
"JiraIssueResult",
"ListAPIsResponse",
"ListAPIsResponseData",
"ListAPIsResponseDataAttributes",
"ListAPIsResponseMeta",
"ListAPIsResponseMetaPagination",
"ListApplicationKeysResponse",
Expand Down

0 comments on commit c38977b

Please sign in to comment.