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 matchGlob in listing objects #1035

Closed
shahar1 opened this issue May 6, 2023 · 1 comment · Fixed by #1055
Closed

Add support for matchGlob in listing objects #1035

shahar1 opened this issue May 6, 2023 · 1 comment · Fixed by #1055
Assignees
Labels
api: storage Issues related to the googleapis/python-storage API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@shahar1
Copy link

shahar1 commented May 6, 2023

Is your feature request related to a problem? Please describe.
I'd like to filter objects according to their path pattern (e.g., filtering by files' suffix).
In GCS API - it can be achieve d easily by using the matchGlob parameter.
Currently, this parameter is not natively supported in the GCS Python client.

Describe the solution you'd like
Add the param matchGlob to objects' list_blobs methods as a part of the GCS Python client.

Describe alternatives you've considered
Currently, the alternatives are (mis)using the delimiter param or calling the API directly (using googlecloudapi.discovery.build).

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label May 6, 2023
@shahar1 shahar1 changed the title Add support for matchGlob in objects list Add support for matchGlob in listing objects May 6, 2023
@cojenco cojenco added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p3 Desirable enhancement or fix. May not be included in next release. labels May 8, 2023
@cojenco
Copy link
Contributor

cojenco commented May 8, 2023

Thank you for the feature request and PR.

This is within our H1 planning and expect to add support by the end of June'23. We need to add tests along with the added support; happy to work with you on the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
2 participants