Globus-sdk

Latest version: v3.41.0

Safety actively analyzes 629765 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 15

3.24.0

--------------------

Added
~~~~~

- Add ``FlowsClient.list_runs`` as a method for listing all runs for the
current user, with support for pagination. (:pr:`782`)

- Add ``SearchClient`` methods for managing search index lifecycle:
``create_index``, ``delete_index``, and ``reopen_index`` (:pr:`785`)

Changed
~~~~~~~

- The enforcement logic for URLs in ``BaseClient`` instantiation has been
improved to only require that ``service_name`` be set if ``base_url`` is not
provided. (:pr:`786`)

- This change primarily impacts subclasses, which no longer need to set the
``service_name`` class variable if they ensure that the ``base_url`` is
always passed with a non-null value.

- Direct instantiation of ``BaseClient`` is now possible, although not
recommended for most use-cases.

.. _changelog-3.23.0:

3.23.0

--------------------

Added
~~~~~

- Add ``AuthClient`` methods to support the Projects APIs for listing,
creating, updating, and deleting projects.

- ``AuthClient.get_projects`` (:pr:`766`)
- ``AuthClient.create_project`` (:pr:`772`)
- ``AuthClient.update_project`` (:pr:`774`)
- ``AuthClient.delete_project`` (:pr:`776`)

- ``globus_sdk._testing`` now exposes a method, ``construct_error`` which makes
it simpler to explicitly construct and return a Globus SDK error object for
testing. This is used in the SDK's own testsuite and is available for
``_testing`` users. (:pr:`770`)

- ``AuthClient.oauth2_get_authorize_url`` now supports the following parameters
for session management: ``session_required_identities``,
``session_required_single_domain``, and ``session_required_policies``. Each
of these accept list inputs, as returned by
``ErrorInfo.authorization_parameters``. (:pr:`773`)

Changed
~~~~~~~

* ``AuthClient``, ``NativeAppAuthClient``, and ``ConfidentialAppAuthClient``
have had their init signatures updated to explicitly list available
parameters. (:pr:`764`)

* Type annotations for these classes are now more accurate

* The ``NativeAppAuthClient`` and ``ConfidentialAppAuthClient`` classes do
not accept ``authorizer`` in their init signatures. Previously this was
accepted but raised a ``GlobusSDKUsageError``. Attempting to pass an
``authorizer`` will now result in a ``TypeError``.

- ``session_required_policies`` parsing in ``AuthorizationParameterInfo`` now
supports the policies being returned as a ``list[str]`` in addition to
supporting ``str`` (:pr:`769`)

Fixed
~~~~~

- ``AuthorizationParameterInfo`` is now more type-safe, and will not return
parsed data from a response without checking that the data has correct types
(:pr:`769`)

- Adjust the ``FlowsClient.get_run()`` ``include_flow_description`` parameter
so it is submitted only when it has a value. (:pr:`778`)

Documentation
~~~~~~~~~~~~~

- The ``_testing`` documentation has been expanded with a dropdown view of the
response contents for each method. In support of this, client method testing
docs have been reorganized into a page per service. (:pr:`767`)

.. _changelog-3.22.0:

3.22.0

--------------------

Added
~~~~~

* Add support for ``AuthClient.get_identity_providers`` for looking up Identity
Providers by domain or ID in Globus Auth (:pr:`757`)

* Add a method to the Globus Search client, ``SearchClient.batch_delete_by_subject`` (:pr:`760`)

* Add ``AuthScopes.manage_projects`` to scope data. This is also accessible as
``AuthClient.scopes.manage_projects`` (:pr:`761`)

Documentation
~~~~~~~~~~~~~

* Alpha features of globus-sdk are now documented in the "Unstable" doc section (:pr:`753`)

.. _changelog-3.21.0:

3.21.0

--------------------

Added
~~~~~

* ``AuthAPIError`` will now parse a unique ``id`` found in the error
subdocuments as the ``request_id`` attribute (:pr:`749`)

* Add a ``FlowsClient.update_run()`` method. (:pr:`744`)

* Add a ``FlowsClient.delete_run()`` method. (:pr:`747`)

* Add a ``FlowsClient.cancel_run()`` method. (:pr:`747`)

* Add an ``experimental`` subpackage. (:pr:`751`)

.. _changelog-3.20.1:

3.20.1

--------------------

Fixed
~~~~~

* Fix ``TransferClient.operation_mkdir`` and ``TransferClient.operation_rename`` to no
longer send null ``local_user`` by default (:pr:`741`)

.. _changelog-3.20.0:

3.20.0

--------------------

Added
~~~~~

* Implemented ``FlowsClient.get_run(...)`` (:pr:`721`)

* Implemented ``FlowsClient.get_run_logs(...)`` (:pr:`722`)

* Implemented ``SpecificFlowClient.resume_run(...)`` (:pr:`723`)

* ``ConsentRequiredInfo`` now accepts ``required_scope`` (singular) containing
a single string as an alternative to ``required_scopes``. However, it will
parse both formats into a ``required_scopes`` list. (:pr:`726`)

* ``FlowsClient.list_flows`` now supports passing a non-string iterable of
strings to ``orderby`` in order to indicate multiple orderings (:pr:`730`)

* Support ``pathlib.Path`` objects as filenames for the JSON and sqlite token
storage adapters. (:pr:`734`)

* Several ``TransferClient`` methods, ``TransferData``, and ``DeleteData`` now
support the ``local_user``, ``source_local_user``, and
``destination_local_user`` parameters (:pr:`736`)

Changed
~~~~~~~

* Behavior has changed slightly specifically for ``TimerAPIError``. When parsing
fails, the ``code`` will be ``Error`` and the ``messages`` will be empty. The
``detail`` field will be treated as the ``errors`` array for these errors
when it is present and contains an array of objects.

* Error parsing in the SDK has been enhanced to better support JSON:API and
related error formats with multiple sub-errors. Several attributes are
added or changed. For most SDK users, the changes will be completely
transparent or a minor improvement. (:pr:`725`)

* Error parsing now attempts to detect the format of the error data and will
parse JSON:API data differently from non-JSON:API data. Furthermore,
parsing is stricter about the expectations about fields and their types.
JSON:API parsing now has its own distinct parsing path, followed only when
the JSON:API mimetype is present.

* A new attribute is added to API error objects, ``errors``. This is a list
of subdocuments parsed from the error data, especially relevant for
JSON:API errors and similar formats. See the
:ref:`ErrorSubdocument documentation <error_subdocuments>` for details.

* A new attribute is now present on API error objects, ``messages``. This is
a list of messages parsed from the error data, for errors with multiple
messages. When there is only one message, ``messages`` will only contain
one item.

* The ``message`` field is now an alias for a joined string of
``messages``. Assigning a string to ``message`` is supported for error
subclasses, but is deprecated.

* ``message`` will now be ``None`` when no messages can be parsed from the error data.
Previously, the default for ``message`` would be an alias for ``text``.

* All error types now support ``request_id`` as an attribute, but it will
default to ``None`` for errors which do not include a ``request_id``.

* An additional field is checked by default for error message data,
``title``. This is useful when errors contain ``title`` but no
``detail`` field. The extraction of messages from errors has been made
stricter, especially in the JSON:API case.

* The ``code`` field of errors will no longer attempt to parse only the first
``code`` from multiple sub-errors. Instead, ``code`` will first parse a
top-level ``code`` field, and then fallback to checking if *all* sub-errors
have the same ``code`` value. The result is that certain errors which would
populate a non-default ``code`` value no longer will, but the ``code`` will
also no longer be misleading when multiple errors with different codes are
present in an error object.

* The ``code`` field of an error may now be ``None``. This is specifically
possible when the error format is detected to be known as JSON:API and
there is no ``code`` present in any responses.

Fixed
~~~~~

* The TransferRequestsTransport will no longer automatically retry errors with a code of EndpointError

* Fix pagination on iterable gcs client routes (:pr:`738`, :pr:`739`)

* ``GCSClient.get_storage_gateway_list``

* ``GCSClient.get_role_list``

* ``GCSClient.get_collection_list``

* ``GCSClient.get_user_credential_list``


.. _changelog-3.19.0:

Page 4 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.