-
Notifications
You must be signed in to change notification settings - Fork 87
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
SubscriberClient.testIamPermissions invalid return type #1460
Comments
@summer-ji-eng It looks like this might be something wrong with the generated types? The method it's calling down into also has a similar return type:
|
I talked with one of the GAPIC folks today, and he said that it's likely this is a handwritten bit that just needs to be updated upstream. It's still on my list to look at this week if possible. |
Moving this to a backlog cleanup item, because it's probably going to involve some breaking changes in gax, which the whole googleapis world relies on. :| The two linked PRs above will fix it, together, but I think we're not ready to merge those. |
For Pub/Sub, this pull request is related. |
https://github.com/googleapis/nodejs-pubsub/blob/db1f69c4aac5b3abfea12f70d45ceb8b7c957388/src/v1/subscriber_client.ts#L2186
It seems that there is an error in
SubsriberClient.testIamPermissions
method return type. It says that the return type isIamProtos.google.iam.v1.TestIamPermissionsResponse
but the method returns an array where the first element isIamProtos.google.iam.v1.TestIamPermissionsResponse
.The text was updated successfully, but these errors were encountered: