Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Removed
-------

- Removed ``TransferClient`` methods for modifying "endpoint servers", a
feature specific to Globus Connect Server v4. Specifically,
``add_endpoint_server``, ``update_endpoint_server``, and
``delete_endpoint_server``.
These methods were deprecated in ``globus-sdk`` version 3. (:pr:`NUMBER`)
69 changes: 0 additions & 69 deletions src/globus_sdk/services/transfer/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,75 +736,6 @@ def get_endpoint_server(
query_params=query_params,
)

def add_endpoint_server(
self, endpoint_id: uuid.UUID | str, server_data: dict[str, t.Any]
) -> response.GlobusHTTPResponse:
"""
.. warning::

This method is deprecated with the end of Globus Connect Server v4
support and may no longer function with the Transfer API.

:param endpoint_id: The endpoint under which the server is being registered
:param server_data: Fields for the new server, as a server document
"""
exc.warn_deprecated(
"add_endpoint_server is specific to Globus Connect Server v4, "
"which is no longer supported by the Transfer API."
)
log.debug(f"TransferClient.add_endpoint_server({endpoint_id}, ...)")
return self.post(f"/v0.10/endpoint/{endpoint_id}/server", data=server_data)

def update_endpoint_server(
self,
endpoint_id: uuid.UUID | str,
server_id: IntLike,
server_data: dict[str, t.Any],
) -> response.GlobusHTTPResponse:
"""
.. warning::

This method is deprecated with the end of Globus Connect Server v4
support and may no longer function with the Transfer API.

:param endpoint_id: The endpoint under which the server is registered
:param server_id: The ID of the server to update
:param server_data: Fields on the server to update, as a partial server document
"""
exc.warn_deprecated(
"update_endpoint_server is specific to Globus Connect Server v4, "
"which is no longer supported by the Transfer API."
)
log.debug(
"TransferClient.update_endpoint_server(%s, %s, ...)",
endpoint_id,
server_id,
)
return self.put(
f"/v0.10/endpoint/{endpoint_id}/server/{server_id}", data=server_data
)

def delete_endpoint_server(
self, endpoint_id: uuid.UUID | str, server_id: IntLike
) -> response.GlobusHTTPResponse:
"""
.. warning::

This method is deprecated with the end of Globus Connect Server v4
support and may no longer function with the Transfer API.

:param endpoint_id: The endpoint under which the server is registered
:param server_id: The ID of the server to delete
"""
exc.warn_deprecated(
"delete_endpoint_server is specific to Globus Connect Server v4, "
"which is no longer supported by the Transfer API."
)
log.debug(
"TransferClient.delete_endpoint_server(%s, %s)", endpoint_id, server_id
)
return self.delete(f"/v0.10/endpoint/{endpoint_id}/server/{server_id}")

#
# Roles
#
Expand Down
Loading