Skip to content

Commit

Permalink
Merge pull request #218 from atlanhq/DVX-68
Browse files Browse the repository at this point in the history
DVX-68 Adds type checking to AtlanClient save and other methods
  • Loading branch information
ErnestoLoma authored Jan 16, 2024
2 parents 7ac08fc + ac24631 commit e52dbab
Show file tree
Hide file tree
Showing 17 changed files with 773 additions and 156 deletions.
4 changes: 3 additions & 1 deletion pyatlan/client/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Atlan Pte. Ltd.

from pydantic import ValidationError, parse_obj_as
from pydantic import ValidationError, parse_obj_as, validate_arguments

from pyatlan.client.common import ApiCaller
from pyatlan.client.constants import ADMIN_EVENTS, KEYCLOAK_EVENTS
Expand Down Expand Up @@ -29,6 +29,7 @@ def __init__(self, client: ApiCaller):
)
self._client = client

@validate_arguments
def get_keycloak_events(
self, keycloak_request: KeycloakEventRequest
) -> KeycloakEventResponse:
Expand Down Expand Up @@ -60,6 +61,7 @@ def get_keycloak_events(
events=events,
)

@validate_arguments
def get_admin_events(self, admin_request: AdminEventRequest) -> AdminEventResponse:
"""
Retrieve admin events based on the supplied filters.
Expand Down
Loading

0 comments on commit e52dbab

Please sign in to comment.