-
Notifications
You must be signed in to change notification settings - Fork 556
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
samples(storage-control): add folders samples #26021
Conversation
Here is the summary of changes. You are about to add 5 region tags.
This comment is generated by snippet-bot.
|
|
||
# The storage bucket path uses the global access pattern, in which the "_" | ||
# denotes this bucket exists in the global namespace. | ||
bucket_path = storage_control.bucket_path project: "_", bucket: bucket_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the samples! So this is the specific aspect we want/need to showcase in the handwritten samples, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually take advantage of the paths
helper function to construct the needed path in Ruby. I feel this is helpful but if you have a better way of doing this in your language, that works too.
|
||
response = storage_control.get_folder request | ||
|
||
puts response.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe something like "Got folder #{response.name}"
closes: #25992