# Identity and Access Management (IAM) v3beta API - Class PolicyBindings.PolicyBindingsBase (1.0.0-beta03)

1.0.0-beta03 (latest) 1.0.0-beta02

    [BindServiceMethod(typeof(PolicyBindings), "BindService")]
    public abstract class PolicyBindings.PolicyBindingsBase

Reference documentation and code samples for the Identity and Access Management (IAM) v3beta API class PolicyBindings.PolicyBindingsBase.

Base class for server-side implementations of PolicyBindings

## Inheritance

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

## 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.Iam.V3Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta)

## Assembly

Google.Cloud.Iam.V3Beta.dll

## Methods

### CreatePolicyBinding(CreatePolicyBindingRequest, ServerCallContext)

    public virtual Task<Operation> CreatePolicyBinding(CreatePolicyBindingRequest request, ServerCallContext context)

Creates a policy binding and returns a long-running operation.
Callers will need the IAM permissions on both the policy and target.
After the binding is created, the policy is applied to the target.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### DeletePolicyBinding(DeletePolicyBindingRequest, ServerCallContext)

    public virtual Task<Operation> DeletePolicyBinding(DeletePolicyBindingRequest request, ServerCallContext context)

Deletes a policy binding and returns a long-running operation.
Callers will need the IAM permissions on both the policy and target.
After the binding is deleted, the policy no longer applies to the target.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.DeletePolicyBindingRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### GetPolicyBinding(GetPolicyBindingRequest, ServerCallContext)

    public virtual Task<PolicyBinding> GetPolicyBinding(GetPolicyBindingRequest request, ServerCallContext context)

Gets a policy binding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.GetPolicyBindingRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding` | The response to send back to the client (wrapped by a task). |

### ListPolicyBindings(ListPolicyBindingsRequest, ServerCallContext)

    public virtual Task<ListPolicyBindingsResponse> ListPolicyBindings(ListPolicyBindingsRequest request, ServerCallContext context)

Lists policy bindings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.ListPolicyBindingsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.ListPolicyBindingsResponse` | The response to send back to the client (wrapped by a task). |

### SearchTargetPolicyBindings(SearchTargetPolicyBindingsRequest, ServerCallContext)

    public virtual Task<SearchTargetPolicyBindingsResponse> SearchTargetPolicyBindings(SearchTargetPolicyBindingsRequest request, ServerCallContext context)

Search policy bindings by target. Returns all policy binding objects bound
directly to target.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsResponse` | The response to send back to the client (wrapped by a task). |

### UpdatePolicyBinding(UpdatePolicyBindingRequest, ServerCallContext)

    public virtual Task<Operation> UpdatePolicyBinding(UpdatePolicyBindingRequest request, ServerCallContext context)

Updates a policy binding and returns a long-running operation.
Callers will need the IAM permissions on the policy and target in the
binding to update. Target and policy are immutable and cannot be updated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.UpdatePolicyBindingRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |