Policies
class Policies extends Resource (View source)
The "policies" collection of methods.
Typical usage is:
$iamService = new Google\Service\Iam(...);
$policies = $iamService->policies;
Methods
Creates a policy. (policies.createPolicy)
Deletes a policy. This action is permanent. (policies.delete)
Gets a policy. (policies.get)
Retrieves the policies of the specified kind that are attached to a resource.
Updates the specified policy. You can update only the rules and the display
name for the policy. To update a policy, you should use a read-modify-write
loop: 1. Use GetPolicy to read the current version of the policy. 2. Modify
the policy as needed. 3. Use UpdatePolicy
to write the updated policy. This
pattern helps prevent conflicts between concurrent updates. (policies.update)
Details
GoogleLongrunningOperation
createPolicy(string $parent, GoogleIamV2Policy $postBody, array $optParams = [])
Creates a policy. (policies.createPolicy)
GoogleLongrunningOperation
delete(string $name, array $optParams = [])
Deletes a policy. This action is permanent. (policies.delete)
GoogleIamV2Policy
get(string $name, array $optParams = [])
Gets a policy. (policies.get)
GoogleIamV2ListPoliciesResponse
listPolicies(string $parent, array $optParams = [])
Retrieves the policies of the specified kind that are attached to a resource.
The response lists only policy metadata. In particular, policy rules are omitted. (policies.listPolicies)
GoogleLongrunningOperation
update(string $name, GoogleIamV2Policy $postBody, array $optParams = [])
Updates the specified policy. You can update only the rules and the display
name for the policy. To update a policy, you should use a read-modify-write
loop: 1. Use GetPolicy to read the current version of the policy. 2. Modify
the policy as needed. 3. Use UpdatePolicy
to write the updated policy. This
pattern helps prevent conflicts between concurrent updates. (policies.update)