Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def delete_data_source(self, data_source_id: str) -> None:
Returns:
None
"""
self._entities_api.delete_entity_data_sources(data_source_id)
self._entities_api.delete_entity_data_sources(data_source_id, _check_return_type=False)

def patch_data_source_attributes(self, data_source_id: str, attributes: dict) -> None:
"""Applies changes to the specified data source.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def delete_jwk(self, jwk_id: str) -> None:
Jwk does not exist.
"""
try:
self._entities_api.delete_entity_jwks(jwk_id)
self._entities_api.delete_entity_jwks(jwk_id, _check_return_type=False)
except NotFoundException:
raise ValueError(f"Can not delete {jwk_id} jwk. This jwk does not exist.")

Expand Down Expand Up @@ -210,7 +210,7 @@ def delete_organization_setting(self, organization_setting_id: str) -> None:
Organization setting does not exist.
"""
try:
self._entities_api.delete_entity_organization_settings(organization_setting_id)
self._entities_api.delete_entity_organization_settings(organization_setting_id, _check_return_type=False)
except NotFoundException:
raise ValueError(
f"Can not delete {organization_setting_id} organization setting. "
Expand Down Expand Up @@ -297,7 +297,7 @@ def delete_csp_directive(self, csp_directive_id: str) -> None:
Csp directive does not exist.
"""
try:
self._entities_api.delete_entity_csp_directives(csp_directive_id)
self._entities_api.delete_entity_csp_directives(csp_directive_id, _check_return_type=False)
except NotFoundException:
raise ValueError(f"Can not delete {csp_directive_id} csp directive. This csp directive does not exist.")

Expand Down Expand Up @@ -377,7 +377,7 @@ def delete_identity_provider(self, identity_provider_id: str) -> None:
Returns:
None
"""
self._entities_api.delete_entity_identity_providers(identity_provider_id)
self._entities_api.delete_entity_identity_providers(identity_provider_id, _check_return_type=False)

def update_identity_provider(self, identity_provider: CatalogIdentityProvider) -> None:
"""Update an identity provider.
Expand Down Expand Up @@ -475,7 +475,7 @@ def delete_export_template(self, export_template_id: str) -> None:
Export template does not exist.
"""
try:
self._entities_api.delete_entity_export_templates(export_template_id)
self._entities_api.delete_entity_export_templates(export_template_id, _check_return_type=False)
except NotFoundException:
raise ValueError(
f"Can not delete {export_template_id} export template. This export template does not exist."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def delete_user(self, user_id: str) -> None:
Returns:
None
"""
self._entities_api.delete_entity_users(id=user_id)
self._entities_api.delete_entity_users(id=user_id, _check_return_type=False)

def list_users(self) -> list[CatalogUser]:
"""Get a list of all existing users.
Expand Down Expand Up @@ -138,7 +138,7 @@ def delete_user_group(self, user_group_id: str) -> None:
Returns:
None
"""
self._entities_api.delete_entity_user_groups(id=user_group_id)
self._entities_api.delete_entity_user_groups(id=user_group_id, _check_return_type=False)

def list_user_groups(self) -> list[CatalogUserGroup]:
"""Get a list of all existing user groups.
Expand Down Expand Up @@ -472,4 +472,4 @@ def get_user_api_token(self, user_id: str, api_token_id: str) -> CatalogApiToken
return CatalogApiToken(id=v["id"])

def delete_user_api_token(self, user_id: str, api_token_id: str) -> None:
self._entities_api.delete_entity_api_tokens(user_id, api_token_id)
self._entities_api.delete_entity_api_tokens(user_id, api_token_id, _check_return_type=False)
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def delete_workspace(self, workspace_id: str) -> None:
f"Can not delete {workspace_id} workspace. "
f"This workspace is parent of the following workspaces: {', '.join(children)}. "
)
self._entities_api.delete_entity_workspaces(workspace_id)
self._entities_api.delete_entity_workspaces(workspace_id, _check_return_type=False)

def list_workspaces(self) -> list[CatalogWorkspace]:
"""Returns a list of all workspaces in current organization
Expand Down Expand Up @@ -172,7 +172,7 @@ def create_or_update_workspace_setting(self, workspace_id: str, workspace_settin

def delete_workspace_setting(self, workspace_id: str, workspace_setting_id: str) -> None:
try:
self._entities_api.delete_entity_workspace_settings(workspace_id, workspace_setting_id)
self._entities_api.delete_entity_workspace_settings(workspace_id, workspace_setting_id, _check_return_type=False)
except NotFoundException:
pass

Expand Down Expand Up @@ -1189,7 +1189,7 @@ def delete_user_data_filter(self, workspace_id: str, user_data_filter_id: str) -
Returns:
None
"""
self._entities_api.delete_entity_user_data_filters(workspace_id=workspace_id, object_id=user_data_filter_id)
self._entities_api.delete_entity_user_data_filters(workspace_id=workspace_id, object_id=user_data_filter_id, _check_return_type=False)

def get_declarative_user_data_filters(self, workspace_id: str) -> CatalogDeclarativeUserDataFilters:
"""Retrieve a user data filers layout.
Expand Down Expand Up @@ -1391,7 +1391,7 @@ def delete_filter_view(self, workspace_id: str, filter_view_id: str) -> None:
Returns:
None
"""
self._entities_api.delete_entity_filter_views(workspace_id=workspace_id, object_id=filter_view_id)
self._entities_api.delete_entity_filter_views(workspace_id=workspace_id, object_id=filter_view_id, _check_return_type=False)

def get_declarative_filter_views(self, workspace_id: str) -> list[CatalogDeclarativeFilterView]:
"""Retrieve a list of declarative filter views.
Expand Down
Loading