-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document new api/app key schemas (#1755)
Co-authored-by: ci.datadog-api-spec <[email protected]>
- Loading branch information
1 parent
6a6ac2f
commit 83ad6b1
Showing
10 changed files
with
280 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 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, TYPE_CHECKING | ||
|
||
from datadog_api_client.model_utils import ( | ||
ModelNormal, | ||
cached_property, | ||
unset, | ||
UnsetType, | ||
) | ||
|
||
|
||
if TYPE_CHECKING: | ||
from datadog_api_client.v2.model.api_keys_response_meta_page import APIKeysResponseMetaPage | ||
|
||
|
||
class APIKeysResponseMeta(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
from datadog_api_client.v2.model.api_keys_response_meta_page import APIKeysResponseMetaPage | ||
|
||
return { | ||
"max_allowed": (int,), | ||
"page": (APIKeysResponseMetaPage,), | ||
} | ||
|
||
attribute_map = { | ||
"max_allowed": "max_allowed", | ||
"page": "page", | ||
} | ||
|
||
def __init__( | ||
self_, | ||
max_allowed: Union[int, UnsetType] = unset, | ||
page: Union[APIKeysResponseMetaPage, UnsetType] = unset, | ||
**kwargs, | ||
): | ||
""" | ||
Additional information related to api keys response. | ||
:param max_allowed: Max allowed number of API keys. | ||
:type max_allowed: int, optional | ||
:param page: Additional information related to the API keys response. | ||
:type page: APIKeysResponseMetaPage, optional | ||
""" | ||
if max_allowed is not unset: | ||
kwargs["max_allowed"] = max_allowed | ||
if page is not unset: | ||
kwargs["page"] = page | ||
super().__init__(kwargs) |
36 changes: 36 additions & 0 deletions
36
src/datadog_api_client/v2/model/api_keys_response_meta_page.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 APIKeysResponseMetaPage(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"total_filtered_count": (int,), | ||
} | ||
|
||
attribute_map = { | ||
"total_filtered_count": "total_filtered_count", | ||
} | ||
|
||
def __init__(self_, total_filtered_count: Union[int, UnsetType] = unset, **kwargs): | ||
""" | ||
Additional information related to the API keys response. | ||
:param total_filtered_count: Total filtered application key count. | ||
:type total_filtered_count: int, optional | ||
""" | ||
if total_filtered_count is not unset: | ||
kwargs["total_filtered_count"] = total_filtered_count | ||
super().__init__(kwargs) |
54 changes: 54 additions & 0 deletions
54
src/datadog_api_client/v2/model/application_key_response_meta.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 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, TYPE_CHECKING | ||
|
||
from datadog_api_client.model_utils import ( | ||
ModelNormal, | ||
cached_property, | ||
unset, | ||
UnsetType, | ||
) | ||
|
||
|
||
if TYPE_CHECKING: | ||
from datadog_api_client.v2.model.application_key_response_meta_page import ApplicationKeyResponseMetaPage | ||
|
||
|
||
class ApplicationKeyResponseMeta(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
from datadog_api_client.v2.model.application_key_response_meta_page import ApplicationKeyResponseMetaPage | ||
|
||
return { | ||
"max_allowed_per_user": (int,), | ||
"page": (ApplicationKeyResponseMetaPage,), | ||
} | ||
|
||
attribute_map = { | ||
"max_allowed_per_user": "max_allowed_per_user", | ||
"page": "page", | ||
} | ||
|
||
def __init__( | ||
self_, | ||
max_allowed_per_user: Union[int, UnsetType] = unset, | ||
page: Union[ApplicationKeyResponseMetaPage, UnsetType] = unset, | ||
**kwargs, | ||
): | ||
""" | ||
Additional information related to the application key response. | ||
:param max_allowed_per_user: Max allowed number of application keys per user. | ||
:type max_allowed_per_user: int, optional | ||
:param page: Additional information related to the application key response. | ||
:type page: ApplicationKeyResponseMetaPage, optional | ||
""" | ||
if max_allowed_per_user is not unset: | ||
kwargs["max_allowed_per_user"] = max_allowed_per_user | ||
if page is not unset: | ||
kwargs["page"] = page | ||
super().__init__(kwargs) |
36 changes: 36 additions & 0 deletions
36
src/datadog_api_client/v2/model/application_key_response_meta_page.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ApplicationKeyResponseMetaPage(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"total_filtered_count": (int,), | ||
} | ||
|
||
attribute_map = { | ||
"total_filtered_count": "total_filtered_count", | ||
} | ||
|
||
def __init__(self_, total_filtered_count: Union[int, UnsetType] = unset, **kwargs): | ||
""" | ||
Additional information related to the application key response. | ||
:param total_filtered_count: Total filtered application key count. | ||
:type total_filtered_count: int, optional | ||
""" | ||
if total_filtered_count is not unset: | ||
kwargs["total_filtered_count"] = total_filtered_count | ||
super().__init__(kwargs) |
Oops, something went wrong.