-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(storage): generate GAPIC under internal subdir #4018
chore(storage): generate GAPIC under internal subdir #4018
Conversation
c81ea03
to
5fd2f07
Compare
5fd2f07
to
3127900
Compare
b1353a9
to
0b47db8
Compare
|
||
// CallOptions contains the retry settings for each method of Client. | ||
type CallOptions struct { | ||
DeleteBucketAccessControl []gax.CallOption |
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.
I assume it's fine to include everything in the surface (not just media ops) because we are keeping this under internal?
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.
it's fine to include everything in the surface...because we are keeping this under internal
Yep! Also, the generator doesn't support generating bits of a proto :)
gax.WithRetry(func() gax.Retryer { | ||
return gax.OnCodes([]codes.Code{ | ||
codes.DeadlineExceeded, | ||
codes.Unavailable, |
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.
Are these retryers all just entirely defaults, or are they defined in service proto?
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.
They are defined in the grpc_service_config.json in googleapis by the AP team.
They are pretty basic. And retry doesn't apply to streaming methods after the stream has been created (i.e. resumption).
return c.internalClient.GetObjectMedia(ctx, req, opts...) | ||
} | ||
|
||
// InsertObject stores a new object and metadata. |
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.
Nice detailed docs here, has this been updated at all based on your investigations into resumable uploads @noahdietz ?
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.
has this been updated at all based on your investigations into resumable uploads
Nope, this is actually just the documentation from the proto itself! I agree, its quite solid.
_ = c | ||
} | ||
|
||
func ExampleClient_DeleteBucketAccessControl() { |
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.
Out of curiosity, have these examples actually proven useful and/or been published in docs for any product?
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.
They GoDoc examples so they are included in the package examples and with each method doc. I'm not sure if they've been determined useful, but they seem like table stakes for having GoDoc documentation imo.
The snippetgen project generates stuff for the cloud site and tbp@ would be your PoC there.
Add a gRPC Go GAPIC for the Storage API under an internal subdirectory of the submodule to ensure no one can import it.
This GAPIC is being added for proof of concept development and should not be used in production or by any other client library.
Generated with the following: