-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cloud storage is missing 'compose' functionality #1982
Comments
Thanks, @daspecster. This is important so we can write usage samples for gcloud-python that have feature parity with the google-api-python-client samples. |
@jonparrott Can you clarify whether the Also, the request body example has a top-level |
@tseaver our current sample creates a new object from two existing objects. |
@jonparrott Thanks for the example. I imagine it would look something like this gist, which assumes that is there somebody we should loop in to answer my questions about the API docs? |
@jgeewax do we have a particular eng contact for GCS?
That could work, it could also be an operation on a blob, which would make it on parity with the API (it's an operation on the object resource):
It's up to you, I think either way is fine. |
@jonparrott I considered that option: if the API is actually supposed to allow replacing the contents of an existing |
@Capstan is our GCS go-to person :) On Thu, Jul 14, 2016 at 2:23 PM, Tres Seaver [email protected]
|
@jonparrott speaking of samples, WDYT of keeping them in this repository, so that we can use them within the Sphinx docs / docstrings, like the ones we have for pubsub and bigquery. Then we can arrange to test / fix them as they break. |
@tseaver it's be exhaustively discussed. The samples in python-docs-samples are samples included from documentation on cloud.google.com. This sometimes overlaps with samples here, especially for the really basic use cases, but often is more illustrative on how to accomplish a task with the service rather than just use the API. |
@jonparrott OK. How do you deal with drift? |
Tests, tests, and more tests. We also optimistically update dependencies and fix as needed. |
@jonparrott Do you have a webhook we should be poking from this repo to trigger those tests for the Python examples? |
We have nightly tests and an automated dependency checker (which right now we're behind on for reasons). |
@Capstan can you verify whether the |
It logically always creates a new object. That said, creating a new object on top of an old object overwrites the old object, so you can do an extremely limited mimic of append by writing a separate object and composing the original and the separate object with a destination of the original object. This matters more if you have versioning turned on, as the old version will stick around. |
@Capstan thanks for the clarification. |
No description provided.
The text was updated successfully, but these errors were encountered: