# Compute Engine v1 API - Class ResourcePoliciesClientImpl (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ResourcePoliciesClientImpl : ResourcePoliciesClient

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

ResourcePolicies client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ResourcePoliciesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient) \> ResourcePoliciesClientImpl

## Inherited Members

[ResourcePoliciesClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_DefaultEndpoint) [ResourcePoliciesClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_DefaultScopes) [ResourcePoliciesClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_ServiceMetadata) [ResourcePoliciesClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_CreateAsync_System_Threading_CancellationToken_) [ResourcePoliciesClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Create) [ResourcePoliciesClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_ShutdownDefaultChannelsAsync) [ResourcePoliciesClient.AggregatedList(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_AggregatedList_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.AggregatedListAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_AggregatedListAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.DeleteAsync(DeleteResourcePolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteResourcePolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.PollOnceDelete(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PollOnceDelete_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.PollOnceDeleteAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PollOnceDeleteAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.Delete(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Delete_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.DeleteAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_DeleteAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.DeleteAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_DeleteAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [ResourcePoliciesClient.GetAsync(GetResourcePolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetAsync_Google_Cloud_Compute_V1_GetResourcePolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.Get(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Get_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.GetAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.GetAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [ResourcePoliciesClient.GetIamPolicyAsync(GetIamPolicyResourcePolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetIamPolicyAsync_Google_Cloud_Compute_V1_GetIamPolicyResourcePolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.GetIamPolicy(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetIamPolicy_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.GetIamPolicyAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetIamPolicyAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.GetIamPolicyAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetIamPolicyAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [ResourcePoliciesClient.InsertAsync(InsertResourcePolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_InsertAsync_Google_Cloud_Compute_V1_InsertResourcePolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.PollOnceInsert(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PollOnceInsert_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.PollOnceInsertAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PollOnceInsertAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.Insert(string, string, ResourcePolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Insert_System_String_System_String_Google_Cloud_Compute_V1_ResourcePolicy_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.InsertAsync(string, string, ResourcePolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_InsertAsync_System_String_System_String_Google_Cloud_Compute_V1_ResourcePolicy_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.InsertAsync(string, string, ResourcePolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_InsertAsync_System_String_System_String_Google_Cloud_Compute_V1_ResourcePolicy_System_Threading_CancellationToken_) [ResourcePoliciesClient.List(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_List_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.ListAsync(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_ListAsync_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.PatchAsync(PatchResourcePolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PatchAsync_Google_Cloud_Compute_V1_PatchResourcePolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.PollOncePatch(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PollOncePatch_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.PollOncePatchAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PollOncePatchAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.Patch(string, string, string, ResourcePolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Patch_System_String_System_String_System_String_Google_Cloud_Compute_V1_ResourcePolicy_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.PatchAsync(string, string, string, ResourcePolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PatchAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_ResourcePolicy_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.PatchAsync(string, string, string, ResourcePolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PatchAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_ResourcePolicy_System_Threading_CancellationToken_) [ResourcePoliciesClient.SetIamPolicyAsync(SetIamPolicyResourcePolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_SetIamPolicyAsync_Google_Cloud_Compute_V1_SetIamPolicyResourcePolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_SetIamPolicy_System_String_System_String_System_String_Google_Cloud_Compute_V1_RegionSetPolicyRequest_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_SetIamPolicyAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_RegionSetPolicyRequest_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_SetIamPolicyAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_RegionSetPolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsResourcePolicyRequest_System_Threading_CancellationToken_) [ResourcePoliciesClient.TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_TestIamPermissions_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_TestIamPermissionsAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [ResourcePoliciesClient.TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_TestIamPermissionsAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

Google.Cloud.Compute.V1.dll

## Remarks

The ResourcePolicies API.

## Constructors

### ResourcePoliciesClientImpl(ResourcePoliciesClient, ResourcePoliciesSettings, ILogger)

    public ResourcePoliciesClientImpl(ResourcePolicies.ResourcePoliciesClient grpcClient, ResourcePoliciesSettings settings, ILogger logger)

Constructs a client wrapper for the ResourcePolicies service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicieshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicies.ResourcePoliciesClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesSettings` The base [ResourcePoliciesSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### DeleteOperationsClient

    public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for `Delete`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [ResourcePoliciesClient.DeleteOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_DeleteOperationsClient)

### GrpcClient

    public override ResourcePolicies.ResourcePoliciesClient GrpcClient { get; }

The underlying gRPC ResourcePolicies client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicieshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicies.ResourcePoliciesClient` |   |

**Overrides** [ResourcePoliciesClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GrpcClient)

### InsertOperationsClient

    public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for `Insert`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [ResourcePoliciesClient.InsertOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_InsertOperationsClient)

### PatchOperationsClient

    public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for `Patch`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [ResourcePoliciesClient.PatchOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PatchOperationsClient)

## Methods

### AggregatedList(AggregatedListResourcePoliciesRequest, CallSettings)

    public override PagedEnumerable<ResourcePolicyAggregatedList, KeyValuePair<string, ResourcePoliciesScopedList>> AggregatedList(AggregatedListResourcePoliciesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of resource policies.

To prevent failure, Google recommends that you set the
`returnPartialSuccess` parameter to `true`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AggregatedListResourcePoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicyAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesScopedList` | A pageable sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Overrides** [ResourcePoliciesClient.AggregatedList(AggregatedListResourcePoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_AggregatedList_Google_Cloud_Compute_V1_AggregatedListResourcePoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### AggregatedListAsync(AggregatedListResourcePoliciesRequest, CallSettings)

    public override PagedAsyncEnumerable<ResourcePolicyAggregatedList, KeyValuePair<string, ResourcePoliciesScopedList>> AggregatedListAsync(AggregatedListResourcePoliciesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of resource policies.

To prevent failure, Google recommends that you set the
`returnPartialSuccess` parameter to `true`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AggregatedListResourcePoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicyAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesScopedList` | A pageable asynchronous sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Overrides** [ResourcePoliciesClient.AggregatedListAsync(AggregatedListResourcePoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_AggregatedListAsync_Google_Cloud_Compute_V1_AggregatedListResourcePoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### Delete(DeleteResourcePolicyRequest, CallSettings)

    public override Operation<Operation, Operation> Delete(DeleteResourcePolicyRequest request, CallSettings callSettings = null)

Deletes the specified resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [ResourcePoliciesClient.Delete(DeleteResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Delete_Google_Cloud_Compute_V1_DeleteResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAsync(DeleteResourcePolicyRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteResourcePolicyRequest request, CallSettings callSettings = null)

Deletes the specified resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [ResourcePoliciesClient.DeleteAsync(DeleteResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### Get(GetResourcePolicyRequest, CallSettings)

    public override ResourcePolicy Get(GetResourcePolicyRequest request, CallSettings callSettings = null)

Retrieves all information of the specified resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicy` | The RPC response. |

**Overrides** [ResourcePoliciesClient.Get(GetResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Get_Google_Cloud_Compute_V1_GetResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAsync(GetResourcePolicyRequest, CallSettings)

    public override Task<ResourcePolicy> GetAsync(GetResourcePolicyRequest request, CallSettings callSettings = null)

Retrieves all information of the specified resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicy` | A Task containing the RPC response. |

**Overrides** [ResourcePoliciesClient.GetAsync(GetResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetAsync_Google_Cloud_Compute_V1_GetResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicy(GetIamPolicyResourcePolicyRequest, CallSettings)

    public override Policy GetIamPolicy(GetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such
policy or resource exists.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetIamPolicyResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Overrides** [ResourcePoliciesClient.GetIamPolicy(GetIamPolicyResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetIamPolicy_Google_Cloud_Compute_V1_GetIamPolicyResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicyAsync(GetIamPolicyResourcePolicyRequest, CallSettings)

    public override Task<Policy> GetIamPolicyAsync(GetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such
policy or resource exists.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetIamPolicyResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Overrides** [ResourcePoliciesClient.GetIamPolicyAsync(GetIamPolicyResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_GetIamPolicyAsync_Google_Cloud_Compute_V1_GetIamPolicyResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### Insert(InsertResourcePolicyRequest, CallSettings)

    public override Operation<Operation, Operation> Insert(InsertResourcePolicyRequest request, CallSettings callSettings = null)

Creates a new resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [ResourcePoliciesClient.Insert(InsertResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Insert_Google_Cloud_Compute_V1_InsertResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### InsertAsync(InsertResourcePolicyRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> InsertAsync(InsertResourcePolicyRequest request, CallSettings callSettings = null)

Creates a new resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [ResourcePoliciesClient.InsertAsync(InsertResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_InsertAsync_Google_Cloud_Compute_V1_InsertResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### List(ListResourcePoliciesRequest, CallSettings)

    public override PagedEnumerable<ResourcePolicyList, ResourcePolicy> List(ListResourcePoliciesRequest request, CallSettings callSettings = null)

A list all the resource policies that have been configured for the
specified project in specified region.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListResourcePoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicyListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicy` | A pageable sequence of [ResourcePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicy) resources. |

**Overrides** [ResourcePoliciesClient.List(ListResourcePoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_List_Google_Cloud_Compute_V1_ListResourcePoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAsync(ListResourcePoliciesRequest, CallSettings)

    public override PagedAsyncEnumerable<ResourcePolicyList, ResourcePolicy> ListAsync(ListResourcePoliciesRequest request, CallSettings callSettings = null)

A list all the resource policies that have been configured for the
specified project in specified region.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListResourcePoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicyListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicy` | A pageable asynchronous sequence of [ResourcePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePolicy) resources. |

**Overrides** [ResourcePoliciesClient.ListAsync(ListResourcePoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_ListAsync_Google_Cloud_Compute_V1_ListResourcePoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### Patch(PatchResourcePolicyRequest, CallSettings)

    public override Operation<Operation, Operation> Patch(PatchResourcePolicyRequest request, CallSettings callSettings = null)

Modify the specified resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [ResourcePoliciesClient.Patch(PatchResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_Patch_Google_Cloud_Compute_V1_PatchResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### PatchAsync(PatchResourcePolicyRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> PatchAsync(PatchResourcePolicyRequest request, CallSettings callSettings = null)

Modify the specified resource policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [ResourcePoliciesClient.PatchAsync(PatchResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_PatchAsync_Google_Cloud_Compute_V1_PatchResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicy(SetIamPolicyResourcePolicyRequest, CallSettings)

    public override Policy SetIamPolicy(SetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetIamPolicyResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Overrides** [ResourcePoliciesClient.SetIamPolicy(SetIamPolicyResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_SetIamPolicy_Google_Cloud_Compute_V1_SetIamPolicyResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicyAsync(SetIamPolicyResourcePolicyRequest, CallSettings)

    public override Task<Policy> SetIamPolicyAsync(SetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetIamPolicyResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Overrides** [ResourcePoliciesClient.SetIamPolicyAsync(SetIamPolicyResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_SetIamPolicyAsync_Google_Cloud_Compute_V1_SetIamPolicyResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissions(TestIamPermissionsResourcePolicyRequest, CallSettings)

    public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsResourcePolicyRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | The RPC response. |

**Overrides** [ResourcePoliciesClient.TestIamPermissions(TestIamPermissionsResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_TestIamPermissions_Google_Cloud_Compute_V1_TestIamPermissionsResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest, CallSettings)

    public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsResourcePolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | A Task containing the RPC response. |

**Overrides** [ResourcePoliciesClient.TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ResourcePoliciesClient#Google_Cloud_Compute_V1_ResourcePoliciesClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsResourcePolicyRequest_Google_Api_Gax_Grpc_CallSettings_)