Skip to content

Misleading example in documentation #1403

@voetberg

Description

@voetberg

In the scope construction documentation the object GCSCollectionScopeBuilder is referenced. This was renamed to GCSCollectionScopes in V4.

The call TransferScopes.all.with_dependency(data_access_scope, optional=True) is also incorrect, optional is no longer an accepted keyword.

The correct example should be:

from globus_sdk.scopes import GCSCollectionScopes, TransferScopes

MAPPED_COLLECTION_ID = "...ID HERE..."

# create the scope object, and get the data_access_scope as a string
data_access_scope = GCSCollectionScopes(MAPPED_COLLECTION_ID).data_access
# add data_access as an optional dependency
transfer_scope = TransferScopes.all.with_dependency(data_access_scope)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions