public abstract class IAMPolicyBase : objectBase class for server-side implementations of IAMPolicy
Namespace
Google.Cloud.Iam.V1Assembly
Google.Cloud.Iam.V1.dll
Methods
GetIamPolicy(GetIamPolicyRequest, Grpc.Core.ServerCallContext)
public virtual System.Threading.Tasks.Task<Policy> GetIamPolicy(GetIamPolicyRequest request, Grpc.Core.ServerCallContext context)Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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, Grpc.Core.ServerCallContext)
public virtual System.Threading.Tasks.Task<Policy> SetIamPolicy(SetIamPolicyRequest request, Grpc.Core.ServerCallContext context)Sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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, Grpc.Core.ServerCallContext)
public virtual System.Threading.Tasks.Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, Grpc.Core.ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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). |