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

[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 > PolicyBindings.PolicyBindingsBase

Namespace

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. Once the binding is created, the policy is applied to the target.

Parameters
Name Description
request CreatePolicyBindingRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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. Once the binding is deleted, the policy no longer applies to the target.

Parameters
Name Description
request DeletePolicyBindingRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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 GetPolicyBindingRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskPolicyBinding

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 ListPolicyBindingsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskListPolicyBindingsResponse

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 SearchTargetPolicyBindingsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskSearchTargetPolicyBindingsResponse

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, and the IAM permission to remove the existing policy from the binding. Target is immutable and cannot be updated. Once the binding is updated, the new policy is applied to the target.

Parameters
Name Description
request UpdatePolicyBindingRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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