-
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.
Regenerate client from commit 2c46d95c of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Oct 3, 2024
1 parent
3696e4d
commit d9482a3
Showing
10 changed files
with
209 additions
and
17 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
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
73 changes: 73 additions & 0 deletions
73
src/datadog_api_client/v2/model/incident_user_attributes.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,73 @@ | ||
# 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, | ||
none_type, | ||
unset, | ||
UnsetType, | ||
) | ||
|
||
|
||
class IncidentUserAttributes(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"email": (str,), | ||
"handle": (str,), | ||
"icon": (str,), | ||
"name": (str, none_type), | ||
"uuid": (str,), | ||
} | ||
|
||
attribute_map = { | ||
"email": "email", | ||
"handle": "handle", | ||
"icon": "icon", | ||
"name": "name", | ||
"uuid": "uuid", | ||
} | ||
|
||
def __init__( | ||
self_, | ||
email: Union[str, UnsetType] = unset, | ||
handle: Union[str, UnsetType] = unset, | ||
icon: Union[str, UnsetType] = unset, | ||
name: Union[str, none_type, UnsetType] = unset, | ||
uuid: Union[str, UnsetType] = unset, | ||
**kwargs, | ||
): | ||
""" | ||
Attributes of user object returned by the API. | ||
:param email: Email of the user. | ||
:type email: str, optional | ||
:param handle: Handle of the user. | ||
:type handle: str, optional | ||
:param icon: URL of the user's icon. | ||
:type icon: str, optional | ||
:param name: Name of the user. | ||
:type name: str, none_type, optional | ||
:param uuid: UUID of the user. | ||
:type uuid: str, optional | ||
""" | ||
if email is not unset: | ||
kwargs["email"] = email | ||
if handle is not unset: | ||
kwargs["handle"] = handle | ||
if icon is not unset: | ||
kwargs["icon"] = icon | ||
if name is not unset: | ||
kwargs["name"] = name | ||
if uuid is not unset: | ||
kwargs["uuid"] = uuid | ||
super().__init__(kwargs) |
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,64 @@ | ||
# 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.incident_user_attributes import IncidentUserAttributes | ||
from datadog_api_client.v2.model.users_type import UsersType | ||
|
||
|
||
class IncidentUserData(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
from datadog_api_client.v2.model.incident_user_attributes import IncidentUserAttributes | ||
from datadog_api_client.v2.model.users_type import UsersType | ||
|
||
return { | ||
"attributes": (IncidentUserAttributes,), | ||
"id": (str,), | ||
"type": (UsersType,), | ||
} | ||
|
||
attribute_map = { | ||
"attributes": "attributes", | ||
"id": "id", | ||
"type": "type", | ||
} | ||
|
||
def __init__( | ||
self_, | ||
attributes: Union[IncidentUserAttributes, UnsetType] = unset, | ||
id: Union[str, UnsetType] = unset, | ||
type: Union[UsersType, UnsetType] = unset, | ||
**kwargs, | ||
): | ||
""" | ||
User object returned by the API. | ||
:param attributes: Attributes of user object returned by the API. | ||
:type attributes: IncidentUserAttributes, optional | ||
:param id: ID of the user. | ||
:type id: str, optional | ||
:param type: Users resource type. | ||
:type type: UsersType, optional | ||
""" | ||
if attributes is not unset: | ||
kwargs["attributes"] = attributes | ||
if id is not unset: | ||
kwargs["id"] = id | ||
if type is not unset: | ||
kwargs["type"] = type | ||
super().__init__(kwargs) |
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