class ProjectsAttestors extends Resource (View source)

The "attestors" collection of methods.

Typical usage is:

 $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
 $attestors = $binaryauthorizationService->projects_attestors;

Methods

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.

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

Deletes an attestor. Returns NOT_FOUND if the attestor does not exist.

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

Gets an attestor. Returns NOT_FOUND if the attestor does not exist.

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)

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

Lists attestors. Returns INVALID_ARGUMENT if the project does not exist.

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)

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.

update(string $name, Attestor $postBody, array $optParams = [])

Updates an attestor. Returns NOT_FOUND if the attestor does not exist.

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)

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)

Parameters

string $parent

Required. The parent of this attestor.

Attestor $postBody
array $optParams

Optional parameters.

Return Value

Attestor

Exceptions

Exception

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

Deletes an attestor. Returns NOT_FOUND if the attestor does not exist.

(attestors.delete)

Parameters

string $name

Required. The name of the attestors to delete, in the format projects/attestors.

array $optParams

Optional parameters.

Return Value

BinaryauthorizationEmpty

Exceptions

Exception

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

Gets an attestor. Returns NOT_FOUND if the attestor does not exist.

(attestors.get)

Parameters

string $name

Required. The name of the attestor to retrieve, in the format projects/attestors.

array $optParams

Optional parameters.

Return Value

Attestor

Exceptions

Exception

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)

Parameters

string $resource

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

array $optParams

Optional parameters.

Return Value

IamPolicy

Exceptions

Exception

ListAttestorsResponse listProjectsAttestors(string $parent, array $optParams = [])

Lists attestors. Returns INVALID_ARGUMENT if the project does not exist.

(attestors.listProjectsAttestors)

Parameters

string $parent

Required. The resource name of the project associated with the attestors, in the format projects.

array $optParams

Optional parameters.

Return Value

ListAttestorsResponse

Exceptions

Exception

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)

Parameters

string $resource

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

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

IamPolicy

Exceptions

Exception

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)

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

Attestor update(string $name, Attestor $postBody, array $optParams = [])

Updates an attestor. Returns NOT_FOUND if the attestor does not exist.

(attestors.update)

Parameters

string $name

Required. The resource name, in the format: projects/attestors. This field may not be updated.

Attestor $postBody
array $optParams

Optional parameters.

Return Value

Attestor

Exceptions

Exception

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)

Parameters

string $attestor

Required. The resource name of the Attestor of the occurrence, in the format projects/attestors.

ValidateAttestationOccurrenceRequest $postBody
array $optParams

Optional parameters.

Return Value

ValidateAttestationOccurrenceResponse

Exceptions

Exception