我在哪里可以找到 google.cloud.resourcemanager_v3 的方法 set_iam_policy 的更多文档

Where could I find further documentation for the method set_iam_policy of the google.cloud.resourcemanager_v3

我尝试使用 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 来使用 google.iam.v1.iam_policy_pb2.SetIamPolicyRequest 作为 request 的输入,但未链接/描述 SetIamPolicyRequest。有谁知道如何获得有关 google.iam.v1.iam_policy_pb2.SetIamPolicyRequest 的更多信息。

理想情况下,有一个提供更多信息的超链接,如下图所示。

我从 GCP 收到以下支持 URL: https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest

该网站提供了 SetIamPolicyRequest 的文档,但没有那么详细。例如,字段 resource 没有描述它应该是什么。它以这种方式对我有用:"resource": f"projects/{project_id}"