Class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1BlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1BlockingV2Stub>
com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1BlockingV2Stub
Enclosing class:
BinauthzManagementServiceV1Beta1Grpc

public static final class BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1BlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1BlockingV2Stub>
A stub to allow clients to do synchronous 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]
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    com.google.protobuf.Empty
    Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    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.
    Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    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].

    Methods inherited from class io.grpc.stub.AbstractBlockingStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1BlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<BinauthzManagementServiceV1Beta1Grpc.BinauthzManagementServiceV1Beta1BlockingV2Stub>
    • getPolicy

      public Policy getPolicy(GetPolicyRequest request) throws io.grpc.StatusException
       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.
       
      Throws:
      io.grpc.StatusException
    • updatePolicy

      public Policy updatePolicy(UpdatePolicyRequest request) throws io.grpc.StatusException
       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.
       
      Throws:
      io.grpc.StatusException
    • createAttestor

      public Attestor createAttestor(CreateAttestorRequest request) throws io.grpc.StatusException
       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.
       
      Throws:
      io.grpc.StatusException
    • getAttestor

      public Attestor getAttestor(GetAttestorRequest request) throws io.grpc.StatusException
       Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
       Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
       
      Throws:
      io.grpc.StatusException
    • updateAttestor

      public Attestor updateAttestor(UpdateAttestorRequest request) throws io.grpc.StatusException
       Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
       Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
       
      Throws:
      io.grpc.StatusException
    • listAttestors

      public ListAttestorsResponse listAttestors(ListAttestorsRequest request) throws io.grpc.StatusException
       Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
       Returns INVALID_ARGUMENT if the project does not exist.
       
      Throws:
      io.grpc.StatusException
    • deleteAttestor

      public com.google.protobuf.Empty deleteAttestor(DeleteAttestorRequest request) throws io.grpc.StatusException
       Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
       [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
       
      Throws:
      io.grpc.StatusException