Compute Engine v1 API - Class ResourcePolicies.ResourcePoliciesBase (2.4.0)

[BindServiceMethod(typeof(ResourcePolicies), "BindService")]
public abstract class ResourcePoliciesBase

Reference documentation and code samples for the Compute Engine v1 API class ResourcePolicies.ResourcePoliciesBase.

Base class for server-side implementations of ResourcePolicies

Inheritance

Object > ResourcePolicies.ResourcePoliciesBase

Namespace

Google.Cloud.Compute.V1

Assembly

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
NameDescription
requestAggregatedListResourcePoliciesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestDeleteResourcePolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestGetResourcePolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyResourcePolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestInsertResourcePolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestListResourcePoliciesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyResourcePolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsResourcePolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TestPermissionsResponse>

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