Class BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1Stub (1.0.6)

public static final class BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1Stub extends AbstractAsyncStub<BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1Stub>

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

  • Policy
  • Attestor

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1Stub

Methods

build(Channel channel, CallOptions callOptions)

protected BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1Stub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

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

public 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
NameDescription
requestService.CreateAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Attestor>

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

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

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

Parameters
NameDescription
requestService.DeleteAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

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

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

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

Parameters
NameDescription
requestService.GetAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Attestor>

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

public 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
NameDescription
requestService.GetPolicyRequest
responseObserverio.grpc.stub.StreamObserver<Policy>

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

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

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

Parameters
NameDescription
requestService.ListAttestorsRequest
responseObserverio.grpc.stub.StreamObserver<ListAttestorsResponse>

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

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

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

Parameters
NameDescription
requestService.UpdateAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Attestor>

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

public 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
NameDescription
requestService.UpdatePolicyRequest
responseObserverio.grpc.stub.StreamObserver<Policy>