Class BinauthzManagementServiceV1Beta1.BinauthzManagementServiceV1Beta1Base (1.0.0-beta05)

[BindServiceMethod(typeof(BinauthzManagementServiceV1Beta1), "BindService")]
public abstract class BinauthzManagementServiceV1Beta1Base

Base class for server-side implementations of BinauthzManagementServiceV1Beta1

Inheritance

Object > BinauthzManagementServiceV1Beta1.BinauthzManagementServiceV1Beta1Base

Namespace

Google.Cloud.BinaryAuthorization.V1Beta1

Assembly

Google.Cloud.BinaryAuthorization.V1Beta1.dll

Methods

CreateAttestor(CreateAttestorRequest, ServerCallContext)

public virtual Task<Attestor> CreateAttestor(CreateAttestorRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestCreateAttestorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Attestor>

The response to send back to the client (wrapped by a task).

DeleteAttestor(DeleteAttestorRequest, ServerCallContext)

public virtual Task<Empty> DeleteAttestor(DeleteAttestorRequest request, ServerCallContext context)

Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestDeleteAttestorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetAttestor(GetAttestorRequest, ServerCallContext)

public virtual Task<Attestor> GetAttestor(GetAttestorRequest request, ServerCallContext context)

Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestGetAttestorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Attestor>

The response to send back to the client (wrapped by a task).

GetPolicy(GetPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetPolicy(GetPolicyRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestGetPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).

ListAttestors(ListAttestorsRequest, ServerCallContext)

public virtual Task<ListAttestorsResponse> ListAttestors(ListAttestorsRequest request, ServerCallContext context)

Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist.

Parameters
NameDescription
requestListAttestorsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListAttestorsResponse>

The response to send back to the client (wrapped by a task).

UpdateAttestor(UpdateAttestorRequest, ServerCallContext)

public virtual Task<Attestor> UpdateAttestor(UpdateAttestorRequest request, ServerCallContext context)

Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestUpdateAttestorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Attestor>

The response to send back to the client (wrapped by a task).

UpdatePolicy(UpdatePolicyRequest, ServerCallContext)

public virtual Task<Policy> UpdatePolicy(UpdatePolicyRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestUpdatePolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).