Show / Hide Table of Contents

Class IAMPolicy.IAMPolicyBase

Base class for server-side implementations of IAMPolicy

Inheritance
System.Object
IAMPolicy.IAMPolicyBase
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Iam.V1
Assembly: Google.Cloud.Iam.V1.dll
Syntax
[BindServiceMethod(typeof(IAMPolicy), "BindService")]
public abstract class IAMPolicyBase

Methods

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Declaration
public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)
Parameters
Type Name Description
GetIamPolicyRequest request

The request received from the client.

ServerCallContext context

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

Returns
Type Description
System.Threading.Tasks.Task<Policy>

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

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

Sets the access control policy on the specified resource. Replaces any existing policy.

Declaration
public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)
Parameters
Type Name Description
SetIamPolicyRequest request

The request received from the client.

ServerCallContext context

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

Returns
Type Description
System.Threading.Tasks.Task<Policy>

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

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Declaration
public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)
Parameters
Type Name Description
TestIamPermissionsRequest request

The request received from the client.

ServerCallContext context

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

Returns
Type Description
System.Threading.Tasks.Task<TestIamPermissionsResponse>

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

Back to top