Skip to content

Make modified by field nullable for get all API keys #2053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-07-19 18:52:07.831612",
"spec_repo_commit": "be099b30"
"regenerated": "2024-07-19 19:37:56.446276",
"spec_repo_commit": "a3f2b7d2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-19 18:52:07.850438",
"spec_repo_commit": "be099b30"
"regenerated": "2024-07-19 19:37:56.463967",
"spec_repo_commit": "a3f2b7d2"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ components:
created_by:
$ref: '#/components/schemas/RelationshipToUser'
modified_by:
$ref: '#/components/schemas/RelationshipToUser'
$ref: '#/components/schemas/NullableRelationshipToUser'
type: object
APIKeyResponse:
description: Response for retrieving an API key.
Expand Down
9 changes: 6 additions & 3 deletions src/datadog_api_client/v2/model/api_key_relationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
none_type,
unset,
UnsetType,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.relationship_to_user import RelationshipToUser
from datadog_api_client.v2.model.nullable_relationship_to_user import NullableRelationshipToUser


class APIKeyRelationships(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.relationship_to_user import RelationshipToUser
from datadog_api_client.v2.model.nullable_relationship_to_user import NullableRelationshipToUser

return {
"created_by": (RelationshipToUser,),
"modified_by": (RelationshipToUser,),
"modified_by": (NullableRelationshipToUser,),
}

attribute_map = {
Expand All @@ -35,7 +38,7 @@ def openapi_types(_):
def __init__(
self_,
created_by: Union[RelationshipToUser, UnsetType] = unset,
modified_by: Union[RelationshipToUser, UnsetType] = unset,
modified_by: Union[NullableRelationshipToUser, none_type, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -45,7 +48,7 @@ def __init__(
:type created_by: RelationshipToUser, optional

:param modified_by: Relationship to user.
:type modified_by: RelationshipToUser, optional
:type modified_by: NullableRelationshipToUser, none_type, optional
"""
if created_by is not unset:
kwargs["created_by"] = created_by
Expand Down
Loading