Class BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1BlockingV2Stub (1.79.0)

public static final class BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1BlockingV2Stub extends AbstractBlockingStub<BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1BlockingV2Stub>

A stub to allow clients to do synchronous rpc calls to service BinauthzManagementServiceV1.

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.AbstractBlockingStub > BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1BlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1BlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
BinauthzManagementServiceV1Grpc.BinauthzManagementServiceV1BlockingV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createAttestor(Service.CreateAttestorRequest request)

public Resources.Attestor createAttestor(Service.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
Name Description
request Service.CreateAttestorRequest
Returns
Type Description
Resources.Attestor
Exceptions
Type Description
io.grpc.StatusException

deleteAttestor(Service.DeleteAttestorRequest request)

public Empty deleteAttestor(Service.DeleteAttestorRequest request)

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

Parameter
Name Description
request Service.DeleteAttestorRequest
Returns
Type Description
Empty
Exceptions
Type Description
io.grpc.StatusException

getAttestor(Service.GetAttestorRequest request)

public Resources.Attestor getAttestor(Service.GetAttestorRequest request)

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

Parameter
Name Description
request Service.GetAttestorRequest
Returns
Type Description
Resources.Attestor
Exceptions
Type Description
io.grpc.StatusException

getPolicy(Service.GetPolicyRequest request)

public Resources.Policy getPolicy(Service.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
Name Description
request Service.GetPolicyRequest
Returns
Type Description
Resources.Policy
Exceptions
Type Description
io.grpc.StatusException

listAttestors(Service.ListAttestorsRequest request)

public Service.ListAttestorsResponse listAttestors(Service.ListAttestorsRequest request)

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

Parameter
Name Description
request Service.ListAttestorsRequest
Returns
Type Description
Service.ListAttestorsResponse
Exceptions
Type Description
io.grpc.StatusException

updateAttestor(Service.UpdateAttestorRequest request)

public Resources.Attestor updateAttestor(Service.UpdateAttestorRequest request)

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

Parameter
Name Description
request Service.UpdateAttestorRequest
Returns
Type Description
Resources.Attestor
Exceptions
Type Description
io.grpc.StatusException

updatePolicy(Service.UpdatePolicyRequest request)

public Resources.Policy updatePolicy(Service.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
Name Description
request Service.UpdatePolicyRequest
Returns
Type Description
Resources.Policy
Exceptions
Type Description
io.grpc.StatusException