-
Notifications
You must be signed in to change notification settings - Fork 428
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
merge from pubsub-grpc: Initial version of Toolkit\PubSub\V1 #62
Conversation
* calls that map to API methods. Sample code to get started: | ||
* | ||
* <pre> | ||
* <code> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
A few more items to discuss:
Also if the plan is to replace the drslump library with a proprietary google one it could be possible to run into BC breaks. It would be nice to have these kind of issues abstracted away. 3 . Objects are not deserializing properly as there is an issue with gRPC. The 4 . We are using auth 0.9 while gRPC and GAX are tied to 0.7. If it is at all possible to remove the auth dependency from gRPC and GAX that would allow us much greater flexibility. 5 . We should exclude the |
@dwsupplee : which of those items do you feel need to be fixed before merging to master, and how many can be filed as issues to fix later? Or do we need a discussion before we can decide? |
@garrettjonesgoogle A discussion would be really helpful. Could we try and schedule something for monday with @jdpedrie? |
This is how you can exclude the generated code from the code coverage report: https://github.com/GoogleCloudPlatform/gcloud-php/blob/master/phpunit.xml.dist
|
Hey @garrettjonesgoogle! What are your thoughts on moving proto-client-php right here alongside the toolkit generated code? I bring this up because the version of gRPC being relied on in the library is out of date and moving it would mean one less dependency to have to worry about. Also, are there any updates on the namespace being modified? Thanks! :) |
|
||
private function createCredentialsCallback() | ||
{ | ||
return $this->grpcBootstrap->createCallCredentialsCallback($this->scopes); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Hey @dwsupplee , I think we need proto-client-php to remain separate for when we expand the scope of the toolkit to generate client libraries for non-cloud APIs. I was waiting to do any modifications to the code until more stuff is unblocked (e.g. proto3 is supported). If the namespace rename is blocking you, we can get that done. |
That seems fair! I wasn't sure because the readme says it was for the google cloud platform. The namespace isn't an issue currently, it will be pretty quick to update once the change is ready for us. |
Hey, @garrettjonesgoogle :). I just realized the Publisher and Subscriber APIs don't match 100% with what we have for the REST implementation. It doesn't look like there is a way to manage IAM policies. Is this something we could get generated as well? |
Hey @dwsupplee , the missing IAM messages are actually a gap across languages. We have a pending team work item to design the solution for that. |
@jgeewax do you have any thoughts on how we can move forward handling IAM? |
return $callable( | ||
$request, | ||
[], | ||
['call_credentials_callback' => $this->createCredentialsCallback()]); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Additions in these latest commits:
|
IAM methods added! PTAL. |
Is anything blocking this from being merged? |
I have set aside some time tomorrow morning to review the new IAM methods. We will get this merged in right afterwards. :) |
LGTM. Thanks! |
No description provided.