ProjectsAttestors
class ProjectsAttestors extends Resource (View source)
The "attestors" collection of methods.
Typical usage is:
$binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
$attestors = $binaryauthorizationService->projects_attestors;
Methods
Deletes an attestor. Returns NOT_FOUND
if the attestor does not exist.
Gets an attestor. Returns NOT_FOUND
if the attestor does not exist.
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (attestors.getIamPolicy)
Lists attestors. Returns INVALID_ARGUMENT
if the project does not exist.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (attestors.setIamPolicy)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Returns whether the given Attestation
for the given image URI was signed by
the given Attestor
(attestors.validateAttestationOccurrence)
Details
Attestor
create(string $parent, Attestor $postBody, array $optParams = [])
Creates an attestor, and returns a copy of the new attestor. Returns
NOT_FOUND
if the project does not exist, INVALID_ARGUMENT
if the request
is malformed, ALREADY_EXISTS
if the attestor already exists.
(attestors.create)
BinaryauthorizationEmpty
delete(string $name, array $optParams = [])
Deletes an attestor. Returns NOT_FOUND
if the attestor does not exist.
(attestors.delete)
Attestor
get(string $name, array $optParams = [])
Gets an attestor. Returns NOT_FOUND
if the attestor does not exist.
(attestors.get)
IamPolicy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (attestors.getIamPolicy)
ListAttestorsResponse
listProjectsAttestors(string $parent, array $optParams = [])
Lists attestors. Returns INVALID_ARGUMENT
if the project does not exist.
(attestors.listProjectsAttestors)
IamPolicy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (attestors.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (attestors.testIamPermissions)
Attestor
update(string $name, Attestor $postBody, array $optParams = [])
Updates an attestor. Returns NOT_FOUND
if the attestor does not exist.
(attestors.update)
ValidateAttestationOccurrenceResponse
validateAttestationOccurrence(string $attestor, ValidateAttestationOccurrenceRequest $postBody, array $optParams = [])
Returns whether the given Attestation
for the given image URI was signed by
the given Attestor
(attestors.validateAttestationOccurrence)