-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
-
Is this a client library issue or a product issue?
Yes it is a client library issue, the definition forgetIamPolicymethod in iam_services.json mentionsPOSTcall whether the actual call isGET -
Did someone already solve this?
Could not find any solution or issues created for the same. -
Do you have a support contract?
No
Environment details
- OS: WSL 2Ubuntu 20.04.4 LTS
- Node.js version: 18.14.2
- npm version: 9.5.0
google-gaxversion: 3.6.0
Steps to reproduce
- Call the following method for KMS
import * as kms from "@google-cloud/kms";
import { google } from "@google-cloud/iap/build/protos/protos";
import GetIamPolicyRequest = google.iam.v1.GetIamPolicyRequest;
const keyManagementServiceClient = new kms.KeyManagementServiceClient({
credentials: {
client_email: "user@project-id.iam.gserviceaccount.com",
private_key:"very-long-private-key",
},
projectId: "project-id",
fallback: "rest",
});
const req = new GetIamPolicyRequest({
resource: "projects/project-id/locations/global/keyRings/qflow",
});
keyManagementServiceClient
.getIamPolicy(req)
.then(console.log)
.catch(console.error);-
After making a change to the following [file ](https://github.com/googleapis/gax-
nodejs/blob/main/protos/iam_service.json#L43,L49)and replacingpostwithgetissue seems to be resolved.
Changes
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.


