Class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1FutureStub (1.18.0)

public static final class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1FutureStub extends AbstractFutureStub<BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1FutureStub>

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1FutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createAttestor(CreateAttestorRequest request)

public ListenableFuture<Attestor> createAttestor(CreateAttestorRequest request)

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.

Parameter
NameDescription
requestCreateAttestorRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Attestor>

deleteAttestor(DeleteAttestorRequest request)

public ListenableFuture<Empty> deleteAttestor(DeleteAttestorRequest request)

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

Parameter
NameDescription
requestDeleteAttestorRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

getAttestor(GetAttestorRequest request)

public ListenableFuture<Attestor> getAttestor(GetAttestorRequest request)

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

Parameter
NameDescription
requestGetAttestorRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Attestor>

getPolicy(GetPolicyRequest request)

public ListenableFuture<Policy> getPolicy(GetPolicyRequest request)

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.

Parameter
NameDescription
requestGetPolicyRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Policy>

listAttestors(ListAttestorsRequest request)

public ListenableFuture<ListAttestorsResponse> listAttestors(ListAttestorsRequest request)

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

Parameter
NameDescription
requestListAttestorsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListAttestorsResponse>

updateAttestor(UpdateAttestorRequest request)

public ListenableFuture<Attestor> updateAttestor(UpdateAttestorRequest request)

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

Parameter
NameDescription
requestUpdateAttestorRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Attestor>

updatePolicy(UpdatePolicyRequest request)

public ListenableFuture<Policy> updatePolicy(UpdatePolicyRequest request)

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.

Parameter
NameDescription
requestUpdatePolicyRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Policy>