# Interface BinauthzManagementServiceV1Grpc.AsyncService (1.92.0)

1.92.0 (latest) 1.90.0 1.87.0 1.86.0 1.84.0 1.82.0 1.81.0 1.80.0 1.79.0 1.77.0 1.75.0 1.74.0 1.73.0 1.72.0 1.71.0 1.69.0 1.67.0 1.66.0 1.63.0 1.62.0 1.61.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.0.6

    public static interface BinauthzManagementServiceV1Grpc.AsyncService

Google Cloud Management Service for Binary Authorization admission policies
and attestation authorities.
This API implements a REST model with the following objects:

- Policy
- Attestor

## Methods

### createAttestor(Service.CreateAttestorRequest request, StreamObserver\<Resources.Attestor\> responseObserver)

    public default void createAttestor(Service.CreateAttestorRequest request, StreamObserver<Resources.Attestor> responseObserver)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>` |

### deleteAttestor(Service.DeleteAttestorRequest request, StreamObserver\<Empty\> responseObserver)

    public default void deleteAttestor(Service.DeleteAttestorRequest request, StreamObserver<Empty> responseObserver)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |

### getAttestor(Service.GetAttestorRequest request, StreamObserver\<Resources.Attestor\> responseObserver)

    public default void getAttestor(Service.GetAttestorRequest request, StreamObserver<Resources.Attestor> responseObserver)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>` |

### getPolicy(Service.GetPolicyRequest request, StreamObserver\<Resources.Policy\> responseObserver)

    public default void getPolicy(Service.GetPolicyRequest request, StreamObserver<Resources.Policy> responseObserver)

A policy specifies the attestors that must attest to
a container image, before the project is allowed to deploy that
image. There is at most one policy per project. All image admission
requests are permitted if a project has no policy.
Gets the policy for this project. Returns a default
policy if the project does not have one.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>` |

### listAttestors(Service.ListAttestorsRequest request, StreamObserver\<Service.ListAttestorsResponse\> responseObserver)

    public default void listAttestors(Service.ListAttestorsRequest request, StreamObserver<Service.ListAttestorsResponse> responseObserver)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>` |

### updateAttestor(Service.UpdateAttestorRequest request, StreamObserver\<Resources.Attestor\> responseObserver)

    public default void updateAttestor(Service.UpdateAttestorRequest request, StreamObserver<Resources.Attestor> responseObserver)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>` |

### updatePolicy(Service.UpdatePolicyRequest request, StreamObserver\<Resources.Policy\> responseObserver)

    public default void updatePolicy(Service.UpdatePolicyRequest request, StreamObserver<Resources.Policy> responseObserver)

Creates or updates a project's policy, and returns a copy of the
new policy. A policy is always updated as a whole, to avoid race
conditions with concurrent policy enforcement (or management!)
requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
if the request is malformed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>` |