GCS Collection Client¶
The GCSCollectionClient class provides an interface for collections, as
resource servers.
It should not be confused with globus_sdk.GCSClient, which provides an
interface to GCS Endpoints.
- class globus_sdk.experimental.gcs_collection_client.GCSCollectionClient(collection_id, collection_address, *, environment=None, app=None, app_scopes=None, authorizer=None, app_name=None, transport=None, retry_config=None)[source]¶
A client for interacting directly with a GCS Collection. Typically for HTTPS upload/download via HTTPS-enabled collections.
- Parameters:
collection_address (str) – The URL of the collection, as might be retrieved from the
https_serverfield in Globus Transfer.app (globus_sdk.GlobusApp | None) – A
GlobusAppwhich will be used for handling authorization and storing and validating tokens. Passing anappwill automatically include a client’s default scopes in theapp’s scope requirements unless specificapp_scopesare given. Ifapp_nameis not given, theapp’sapp_namewill be used. Mutually exclusive withauthorizer.app_scopes (list[globus_sdk.scopes.Scope] | None) – Optional list of
Scopeobjects to be added toapp’s scope requirements instead ofdefault_scope_requirements. Requiresapp.authorizer (GlobusAuthorizer | None) – A
GlobusAuthorizerwhich will generate Authorization headers. Mutually exclusive withapp.app_name (str | None) – Optional “nice name” for the application. Has no bearing on the semantics of client actions. It is just passed as part of the User-Agent string, and may be useful when debugging issues with the Globus Team. If both``app`` and
app_nameare given, this value takes priority.base_url – The URL for the service. Most client types initialize this value intelligently by default. Set it when inheriting from BaseClient or communicating through a proxy. This value takes precedence over the class attribute of the same name.
transport (globus_sdk.transport.RequestsTransport | None) – A
RequestsTransportobject for sending and retrying requests. By default, one will be constructed by the client.retry_config (globus_sdk.transport.RetryConfig | None) – A
RetryConfigobject with parameters to control request retry behavior. By default, one will be constructed by the client.
- scopes: GCSCollectionScopes = <globus_sdk.experimental.gcs_collection_client._GCSCollectionScopesClassStub object>¶
the scopes for this client may be present as a
ScopeCollection
- property default_scope_requirements: list[Scope]¶
Scopes that will automatically be added to this client’s app’s scope_requirements during _finalize_app.
For clients with static scope requirements this can just be a static value. Clients with dynamic requirements should use @property and must return sane results while the Base Client is being initialized.