[BindServiceMethod(typeof(ResourcePolicies), "BindService")]
public abstract class ResourcePoliciesBase
Base class for server-side implementations of ResourcePolicies
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AggregatedList(AggregatedListResourcePoliciesRequest, ServerCallContext)
public virtual Task<ResourcePolicyAggregatedList> AggregatedList(AggregatedListResourcePoliciesRequest request, ServerCallContext context)
Retrieves an aggregated list of resource policies.
Parameters | |
---|---|
Name | Description |
request | AggregatedListResourcePoliciesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ResourcePolicyAggregatedList> | The response to send back to the client (wrapped by a task). |
Delete(DeleteResourcePolicyRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteResourcePolicyRequest request, ServerCallContext context)
Deletes the specified resource policy.
Parameters | |
---|---|
Name | Description |
request | DeleteResourcePolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
Get(GetResourcePolicyRequest, ServerCallContext)
public virtual Task<ResourcePolicy> Get(GetResourcePolicyRequest request, ServerCallContext context)
Retrieves all information of the specified resource policy.
Parameters | |
---|---|
Name | Description |
request | GetResourcePolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ResourcePolicy> | The response to send back to the client (wrapped by a task). |
GetIamPolicy(GetIamPolicyResourcePolicyRequest, ServerCallContext)
public virtual Task<Policy> GetIamPolicy(GetIamPolicyResourcePolicyRequest request, ServerCallContext context)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyResourcePolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Policy> | The response to send back to the client (wrapped by a task). |
Insert(InsertResourcePolicyRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertResourcePolicyRequest request, ServerCallContext context)
Creates a new resource policy.
Parameters | |
---|---|
Name | Description |
request | InsertResourcePolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
List(ListResourcePoliciesRequest, ServerCallContext)
public virtual Task<ResourcePolicyList> List(ListResourcePoliciesRequest request, ServerCallContext context)
A list all the resource policies that have been configured for the specified project in specified region.
Parameters | |
---|---|
Name | Description |
request | ListResourcePoliciesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ResourcePolicyList> | The response to send back to the client (wrapped by a task). |
SetIamPolicy(SetIamPolicyResourcePolicyRequest, ServerCallContext)
public virtual Task<Policy> SetIamPolicy(SetIamPolicyResourcePolicyRequest request, ServerCallContext context)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyResourcePolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Policy> | The response to send back to the client (wrapped by a task). |
TestIamPermissions(TestIamPermissionsResourcePolicyRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsResourcePolicyRequest request, ServerCallContext context)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsResourcePolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | The response to send back to the client (wrapped by a task). |