class AccessPoliciesAccessLevels extends Resource (View source)

The "accessLevels" collection of methods.

Typical usage is:

 $accesscontextmanagerService = new Google\Service\AccessContextManager(...);
 $accessLevels = $accesscontextmanagerService->accessPolicies_accessLevels;

Methods

create(string $parent, AccessLevel $postBody, array $optParams = [])

Creates an access level. The long-running operation from this RPC has a successful status after the access level propagates to long-lasting storage.

delete(string $name, array $optParams = [])

Deletes an access level based on the resource name. The long-running operation from this RPC has a successful status after the access level has been removed from long-lasting storage. (accessLevels.delete)

get(string $name, array $optParams = [])

Gets an access level based on the resource name. (accessLevels.get)

listAccessPoliciesAccessLevels(string $parent, array $optParams = [])

Lists all access levels for an access policy.

patch(string $name, AccessLevel $postBody, array $optParams = [])

Updates an access level. The long-running operation from this RPC has a successful status after the changes to the access level propagate to long- lasting storage. If access levels contain errors, an error response is returned for the first error encountered. (accessLevels.patch)

replaceAll(string $parent, ReplaceAccessLevelsRequest $postBody, array $optParams = [])

Replaces all existing access levels in an access policy with the access levels provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long- lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing access levels are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing access levels contained in existing service perimeters result in an error.

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.

Details

Operation create(string $parent, AccessLevel $postBody, array $optParams = [])

Creates an access level. The long-running operation from this RPC has a successful status after the access level propagates to long-lasting storage.

If access levels contain errors, an error response is returned for the first error encountered. (accessLevels.create)

Parameters

string $parent

Required. Resource name for the access policy which owns this Access Level. Format: accessPolicies/{policy_id}

AccessLevel $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

Deletes an access level based on the resource name. The long-running operation from this RPC has a successful status after the access level has been removed from long-lasting storage. (accessLevels.delete)

Parameters

string $name

Required. Resource name for the Access Level. Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

AccessLevel get(string $name, array $optParams = [])

Gets an access level based on the resource name. (accessLevels.get)

Parameters

string $name

Required. Resource name for the Access Level. Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

array $optParams

Optional parameters.

Return Value

AccessLevel

Exceptions

Exception

ListAccessLevelsResponse listAccessPoliciesAccessLevels(string $parent, array $optParams = [])

Lists all access levels for an access policy.

(accessLevels.listAccessPoliciesAccessLevels)

Parameters

string $parent

Required. Resource name for the access policy to list Access Levels from. Format: accessPolicies/{policy_id}

array $optParams

Optional parameters.

Return Value

ListAccessLevelsResponse

Exceptions

Exception

Operation patch(string $name, AccessLevel $postBody, array $optParams = [])

Updates an access level. The long-running operation from this RPC has a successful status after the changes to the access level propagate to long- lasting storage. If access levels contain errors, an error response is returned for the first error encountered. (accessLevels.patch)

Parameters

string $name

Identifier. Resource name for the AccessLevel. Format: accessPolicies/{access_policy}/accessLevels/{access_level}. The access_level component must begin with a letter, followed by alphanumeric characters or _. Its maximum length is 50 characters. After you create an AccessLevel, you cannot change its name.

AccessLevel $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation replaceAll(string $parent, ReplaceAccessLevelsRequest $postBody, array $optParams = [])

Replaces all existing access levels in an access policy with the access levels provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long- lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing access levels are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing access levels contained in existing service perimeters result in an error.

(accessLevels.replaceAll)

Parameters

string $parent

Required. Resource name for the access policy which owns these Access Levels. Format: accessPolicies/{policy_id}

ReplaceAccessLevelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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.

(accessLevels.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception