AccessPolicies
class AccessPolicies extends Resource (View source)
The "accessPolicies" collection of methods.
Typical usage is:
$accesscontextmanagerService = new Google\Service\AccessContextManager(...);
$accessPolicies = $accesscontextmanagerService->accessPolicies;
Methods
Creates an access policy. This method fails if the organization already has
an access policy. The long-running operation has a successful status after
the access policy propagates to long-lasting storage. Syntactic and basic
semantic errors are returned in metadata
as a BadRequest proto.
Deletes an access policy based on the resource name. The long-running operation has a successful status after the access policy is removed from long-lasting storage. (accessPolicies.delete)
Returns an access policy based on the name. (accessPolicies.get)
Gets the IAM policy for the specified Access Context Manager access policy.
Lists all access policies in an organization.
Updates an access policy. The long-running operation from this RPC has a successful status after the changes to the access policy propagate to long- lasting storage. (accessPolicies.patch)
Sets the IAM policy for the specified Access Context Manager access policy.
Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does not support other resources.
Details
Operation
create(AccessPolicy $postBody, array $optParams = [])
Creates an access policy. This method fails if the organization already has
an access policy. The long-running operation has a successful status after
the access policy propagates to long-lasting storage. Syntactic and basic
semantic errors are returned in metadata
as a BadRequest proto.
(accessPolicies.create)
Operation
delete(string $name, array $optParams = [])
Deletes an access policy based on the resource name. The long-running operation has a successful status after the access policy is removed from long-lasting storage. (accessPolicies.delete)
AccessPolicy
get(string $name, array $optParams = [])
Returns an access policy based on the name. (accessPolicies.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the IAM policy for the specified Access Context Manager access policy.
(accessPolicies.getIamPolicy)
ListAccessPoliciesResponse
listAccessPolicies(array $optParams = [])
Lists all access policies in an organization.
(accessPolicies.listAccessPolicies)
Operation
patch(string $name, AccessPolicy $postBody, array $optParams = [])
Updates an access policy. The long-running operation from this RPC has a successful status after the changes to the access policy propagate to long- lasting storage. (accessPolicies.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the IAM policy for the specified Access Context Manager access policy.
This method replaces the existing IAM policy on the access policy. The IAM policy controls the set of users who can perform specific operations on the Access Context Manager access policy. (accessPolicies.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does not support other resources.
(accessPolicies.testIamPermissions)