Class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub>
-
- com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub
-
- Enclosing class:
- BinauthzManagementServiceV1Beta1Grpc
public static final class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub extends io.grpc.stub.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][google.cloud.binaryauthorization.v1beta1.Policy] * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
createAttestor(CreateAttestorRequest request, io.grpc.stub.StreamObserver<Attestor> responseObserver)
Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].void
deleteAttestor(DeleteAttestorRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].void
getAttestor(GetAttestorRequest request, io.grpc.stub.StreamObserver<Attestor> responseObserver)
Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].void
getPolicy(GetPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to a container image, before the project is allowed to deploy that image.void
listAttestors(ListAttestorsRequest request, io.grpc.stub.StreamObserver<ListAttestorsResponse> responseObserver)
Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].void
updateAttestor(UpdateAttestorRequest request, io.grpc.stub.StreamObserver<Attestor> responseObserver)
Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].void
updatePolicy(UpdatePolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy].
-
-
-
Method Detail
-
build
protected BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1Stub>
-
getPolicy
public void getPolicy(GetPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] 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][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
-
updatePolicy
public void updatePolicy(UpdatePolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1beta1.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.
-
createAttestor
public void createAttestor(CreateAttestorRequest request, io.grpc.stub.StreamObserver<Attestor> responseObserver)
Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
-
getAttestor
public void getAttestor(GetAttestorRequest request, io.grpc.stub.StreamObserver<Attestor> responseObserver)
Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
-
updateAttestor
public void updateAttestor(UpdateAttestorRequest request, io.grpc.stub.StreamObserver<Attestor> responseObserver)
Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
-
listAttestors
public void listAttestors(ListAttestorsRequest request, io.grpc.stub.StreamObserver<ListAttestorsResponse> responseObserver)
Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist.
-
deleteAttestor
public void deleteAttestor(DeleteAttestorRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
-
-