ResourcePolicies
class ResourcePolicies extends Resource (View source)
The "resourcePolicies" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$resourcePolicies = $computeService->resourcePolicies;
Methods
Retrieves an aggregated list of resource policies. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
Deletes the specified resource policy. (resourcePolicies.delete)
Retrieves all information of the specified resource policy.
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (resourcePolicies.getIamPolicy)
Creates a new resource policy. (resourcePolicies.insert)
A list all the resource policies that have been configured for the specified project in specified region. (resourcePolicies.listResourcePolicies)
Modify the specified resource policy. (resourcePolicies.patch)
Sets the access control policy on the specified resource. Replaces any existing policy. (resourcePolicies.setIamPolicy)
Returns permissions that a caller has on the specified resource.
Details
ResourcePolicyAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves an aggregated list of resource policies. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
(resourcePolicies.aggregatedList)
Operation
delete(string $project, string $region, string $resourcePolicy, array $optParams = [])
Deletes the specified resource policy. (resourcePolicies.delete)
ResourcePolicy
get(string $project, string $region, string $resourcePolicy, array $optParams = [])
Retrieves all information of the specified resource policy.
(resourcePolicies.get)
Policy
getIamPolicy(string $project, string $region, string $resource, array $optParams = [])
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (resourcePolicies.getIamPolicy)
Operation
insert(string $project, string $region, ResourcePolicy $postBody, array $optParams = [])
Creates a new resource policy. (resourcePolicies.insert)
ResourcePolicyList
listResourcePolicies(string $project, string $region, array $optParams = [])
A list all the resource policies that have been configured for the specified project in specified region. (resourcePolicies.listResourcePolicies)
Operation
patch(string $project, string $region, string $resourcePolicy, ResourcePolicy $postBody, array $optParams = [])
Modify the specified resource policy. (resourcePolicies.patch)
Policy
setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy. (resourcePolicies.setIamPolicy)
TestPermissionsResponse
testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(resourcePolicies.testIamPermissions)