Problem in GCP setIamPolicy API reference under PHP example
问题 on this page https://cloud.google.com/resource-manager/reference/rest/v1/projects/setIamPolicy Way down at the bottom are come code examples. The PHP code follows. The problem is the line $response = $service->projects->setIamPolicy($resource, $requestBody); There is no defined 'projects' property. I'm guessing this is out of date. Can anyone describe how this should be used, or offer a correction? require_once __DIR__ . '/vendor/autoload.php'; $client = new Google_Client(); $client-