[BindServiceMethod(typeof(ResourcePolicies), "BindService")]
public abstract class ResourcePolicies.ResourcePoliciesBase
Reference documentation and code samples for the Compute Engine v1 API class ResourcePolicies.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 |
TaskResourcePolicyAggregatedList | 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 |
TaskOperation | 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 |
TaskResourcePolicy | 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 |
TaskPolicy | 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 |
TaskOperation | 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 |
TaskResourcePolicyList | 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 |
TaskPolicy | 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 |
TaskTestPermissionsResponse | The response to send back to the client (wrapped by a task). |