2.7.0 (latest) 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    [BindServiceMethod(typeof(BinauthzManagementServiceV1), "BindService")]
    public abstract class BinauthzManagementServiceV1.BinauthzManagementServiceV1Base

Reference documentation and code samples for the Binary Authorization v1 API class BinauthzManagementServiceV1.BinauthzManagementServiceV1Base.

Base class for server-side implementations of BinauthzManagementServiceV1

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> BinauthzManagementServiceV1.BinauthzManagementServiceV1Base

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BinaryAuthorization.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.md.txt)

## Assembly

Google.Cloud.BinaryAuthorization.V1.dll

## Methods

### CreateAttestor(CreateAttestorRequest, ServerCallContext)

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

Creates an \[attestor\]\[google.cloud.binaryauthorization.v1.Attestor\], and
returns a copy of the new
\[attestor\]\[google.cloud.binaryauthorization.v1.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.v1.Attestor\] already exists.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateAttestorRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAttestor` | 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.v1.Attestor\].
Returns `NOT_FOUND` if the
\[attestor\]\[google.cloud.binaryauthorization.v1.Attestor\] does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteAttestorRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | 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.v1.Attestor\].
Returns `NOT_FOUND` if the
\[attestor\]\[google.cloud.binaryauthorization.v1.Attestor\] does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetAttestorRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAttestor` | 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.v1.Policy\] specifies the
\[attestors\]\[google.cloud.binaryauthorization.v1.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.v1.Policy\] for this
project. Returns a default
\[policy\]\[google.cloud.binaryauthorization.v1.Policy\] if the project does
not have one.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPolicy` | 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.v1.Attestor\].
Returns `INVALID_ARGUMENT` if the project does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListAttestorsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListAttestorsResponse` | 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.v1.Attestor\].
Returns `NOT_FOUND` if the
\[attestor\]\[google.cloud.binaryauthorization.v1.Attestor\] does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateAttestorRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAttestor` | 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.v1.Policy\], and returns a copy of
the new \[policy\]\[google.cloud.binaryauthorization.v1.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** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdatePolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPolicy` | The response to send back to the client (wrapped by a task). |