AccessPoliciesServicePerimeters
class AccessPoliciesServicePerimeters extends Resource (View source)
The "servicePerimeters" collection of methods.
Typical usage is:
$accesscontextmanagerService = new Google\Service\AccessContextManager(...);
$servicePerimeters = $accesscontextmanagerService->accessPolicies_servicePerimeters;
Methods
Commits the dry-run specification for all the service perimeters in an access
policy. A commit operation on a service perimeter involves copying its spec
field to the status
field of the service perimeter. Only service perimeters
with use_explicit_dry_run_spec
field set to true are affected by a commit
operation. The long-running operation from this RPC has a successful status
after the dry-run specifications for all the service perimeters have been
committed. If a commit fails, it causes the long-running operation to return
an error response and the entire commit operation is cancelled. When
successful, the Operation.response field contains
CommitServicePerimetersResponse. The dry_run
and the spec
fields are
cleared after a successful commit operation. (servicePerimeters.commit)
Creates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter contains errors, an error response is returned for the first error encountered. (servicePerimeters.create)
Deletes a service perimeter based on the resource name. The long-running operation from this RPC has a successful status after the service perimeter is removed from long-lasting storage. (servicePerimeters.delete)
Gets a service perimeter based on the resource name. (servicePerimeters.get)
Lists all service perimeters for an access policy.
Updates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter contains errors, an error response is returned for the first error encountered. (servicePerimeters.patch)
Replace all existing service perimeters in an access policy with the service perimeters provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long- lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing service perimeters are not affected. The Operation.response field contains ReplaceServicePerimetersResponse. (servicePerimeters.replaceAll)
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
commit(string $parent, CommitServicePerimetersRequest $postBody, array $optParams = [])
Commits the dry-run specification for all the service perimeters in an access
policy. A commit operation on a service perimeter involves copying its spec
field to the status
field of the service perimeter. Only service perimeters
with use_explicit_dry_run_spec
field set to true are affected by a commit
operation. The long-running operation from this RPC has a successful status
after the dry-run specifications for all the service perimeters have been
committed. If a commit fails, it causes the long-running operation to return
an error response and the entire commit operation is cancelled. When
successful, the Operation.response field contains
CommitServicePerimetersResponse. The dry_run
and the spec
fields are
cleared after a successful commit operation. (servicePerimeters.commit)
Operation
create(string $parent, ServicePerimeter $postBody, array $optParams = [])
Creates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter contains errors, an error response is returned for the first error encountered. (servicePerimeters.create)
Operation
delete(string $name, array $optParams = [])
Deletes a service perimeter based on the resource name. The long-running operation from this RPC has a successful status after the service perimeter is removed from long-lasting storage. (servicePerimeters.delete)
ServicePerimeter
get(string $name, array $optParams = [])
Gets a service perimeter based on the resource name. (servicePerimeters.get)
ListServicePerimetersResponse
listAccessPoliciesServicePerimeters(string $parent, array $optParams = [])
Lists all service perimeters for an access policy.
(servicePerimeters.listAccessPoliciesServicePerimeters)
Operation
patch(string $name, ServicePerimeter $postBody, array $optParams = [])
Updates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter contains errors, an error response is returned for the first error encountered. (servicePerimeters.patch)
Operation
replaceAll(string $parent, ReplaceServicePerimetersRequest $postBody, array $optParams = [])
Replace all existing service perimeters in an access policy with the service perimeters provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long- lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing service perimeters are not affected. The Operation.response field contains ReplaceServicePerimetersResponse. (servicePerimeters.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.
(servicePerimeters.testIamPermissions)