I try to use the set_iam_policy method of the GCP python library google-cloud-resource-manager
, but I'm unable to find appropriate documentations about the expected input. The documentation notes to use a google.iam.v1.iam_policy_pb2.SetIamPolicyRequest
as input for request
but SetIamPolicyRequest
is not linked / described. Does anyone know how to get more information about google.iam.v1.iam_policy_pb2.SetIamPolicyRequest
.
Ideally, there is a hyperlink which provides further information, as seen in the following picture.
I received from the GCP support the following URL: https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest
The website delivers the documentation for
SetIamPolicyRequest
, but not that detailed. For example, the fieldresource
is not described what it should be. It worked for me that way:"resource": f"projects/{project_id}"