Skip to content
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

add support for filter_entity_type on transfer client endpoint search #1108

Closed
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: 7 additions & 1 deletion src/globus_sdk/services/transfer/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def endpoint_search(
filter_owner_id: str | None = None,
filter_host_endpoint: UUIDLike | None = None,
filter_non_functional: bool | None = None,
filter_entity_type: str | None = None,
limit: int | None = None,
offset: int | None = None,
query_params: dict[str, t.Any] | None = None,
Expand All @@ -411,7 +412,10 @@ def endpoint_search(
endpoint. May cause BadRequest or PermissionDenied errors if the endpoint ID
given is not valid for this operation.
:param filter_non_functional: Limit search to endpoints which have the
'non_functional' flag set to True or False.
'non_functional' flag set to True or False. Mutually exclusive with
``filter_entity_type``.
:param filter_entity_type: Limit search to endpoints or collections by their
entity type. Mutually exclusive with ``filter_non_functional``.
:param limit: limit the number of results
:param offset: offset used in paging
:param query_params: Any additional parameters will be passed through
Expand Down Expand Up @@ -465,6 +469,8 @@ def endpoint_search(
query_params["filter_host_endpoint"] = filter_host_endpoint
if filter_non_functional is not None: # convert to int (expect bool input)
query_params["filter_non_functional"] = 1 if filter_non_functional else 0
if filter_entity_type is not None:
query_params["filter_entity_type"] = filter_entity_type
if limit is not None:
query_params["limit"] = limit
if offset is not None:
Expand Down
Loading