AccessPoliciesAccessLevels
class AccessPoliciesAccessLevels extends Resource (View source)
The "accessLevels" collection of methods.
Typical usage is:
$accesscontextmanagerService = new Google\Service\AccessContextManager(...);
$accessLevels = $accesscontextmanagerService->accessPolicies_accessLevels;
Methods
Creates an access level. The long-running operation from this RPC has a successful status after the access level propagates to long-lasting storage.
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)
Gets an access level based on the resource name. (accessLevels.get)
Lists all access levels for an access policy.
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)
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.
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)
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)
AccessLevel
get(string $name, array $optParams = [])
Gets an access level based on the resource name. (accessLevels.get)
ListAccessLevelsResponse
listAccessPoliciesAccessLevels(string $parent, array $optParams = [])
Lists all access levels for an access policy.
(accessLevels.listAccessPoliciesAccessLevels)
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)
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)
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)