Class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub (1.35.0)

public static final class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub extends AbstractAsyncStub<BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub>

A stub to allow clients to do asynchronous rpc calls to service BinauthzManagementServiceV1Beta1.

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 > BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub

Methods

build(Channel channel, CallOptions callOptions)

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

createAttestor(CreateAttestorRequest request, StreamObserver<Attestor> responseObserver)

public void createAttestor(CreateAttestorRequest request, StreamObserver<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
requestCreateAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Attestor>

deleteAttestor(DeleteAttestorRequest request, StreamObserver<Empty> responseObserver)

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

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

Parameters
NameDescription
requestDeleteAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getAttestor(GetAttestorRequest request, StreamObserver<Attestor> responseObserver)

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

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

Parameters
NameDescription
requestGetAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Attestor>

getPolicy(GetPolicyRequest request, StreamObserver<Policy> responseObserver)

public void getPolicy(GetPolicyRequest request, StreamObserver<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
requestGetPolicyRequest
responseObserverio.grpc.stub.StreamObserver<Policy>

listAttestors(ListAttestorsRequest request, StreamObserver<ListAttestorsResponse> responseObserver)

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

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

Parameters
NameDescription
requestListAttestorsRequest
responseObserverio.grpc.stub.StreamObserver<ListAttestorsResponse>

updateAttestor(UpdateAttestorRequest request, StreamObserver<Attestor> responseObserver)

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

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

Parameters
NameDescription
requestUpdateAttestorRequest
responseObserverio.grpc.stub.StreamObserver<Attestor>

updatePolicy(UpdatePolicyRequest request, StreamObserver<Policy> responseObserver)

public void updatePolicy(UpdatePolicyRequest request, StreamObserver<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
requestUpdatePolicyRequest
responseObserverio.grpc.stub.StreamObserver<Policy>