# Compute Engine v1 API - Class SubnetworksClientImpl (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 SubnetworksClientImpl : SubnetworksClient

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

Subnetworks client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[SubnetworksClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_DefaultEndpoint) [SubnetworksClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_DefaultScopes) [SubnetworksClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ServiceMetadata) [SubnetworksClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_CreateAsync_System_Threading_CancellationToken_) [SubnetworksClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Create) [SubnetworksClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ShutdownDefaultChannelsAsync) [SubnetworksClient.AggregatedList(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_AggregatedList_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.AggregatedListAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_AggregatedListAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.DeleteAsync(DeleteSubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteSubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.PollOnceDelete(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceDelete_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PollOnceDeleteAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceDeleteAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.Delete(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Delete_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.DeleteAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_DeleteAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.DeleteAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_DeleteAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [SubnetworksClient.ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ExpandIpCidrRangeAsync_Google_Cloud_Compute_V1_ExpandIpCidrRangeSubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.PollOnceExpandIpCidrRange(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceExpandIpCidrRange_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PollOnceExpandIpCidrRangeAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceExpandIpCidrRangeAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.ExpandIpCidrRange(string, string, string, SubnetworksExpandIpCidrRangeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ExpandIpCidrRange_System_String_System_String_System_String_Google_Cloud_Compute_V1_SubnetworksExpandIpCidrRangeRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.ExpandIpCidrRangeAsync(string, string, string, SubnetworksExpandIpCidrRangeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ExpandIpCidrRangeAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_SubnetworksExpandIpCidrRangeRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.ExpandIpCidrRangeAsync(string, string, string, SubnetworksExpandIpCidrRangeRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ExpandIpCidrRangeAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_SubnetworksExpandIpCidrRangeRequest_System_Threading_CancellationToken_) [SubnetworksClient.GetAsync(GetSubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetAsync_Google_Cloud_Compute_V1_GetSubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.Get(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Get_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.GetAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.GetAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [SubnetworksClient.GetIamPolicyAsync(GetIamPolicySubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetIamPolicyAsync_Google_Cloud_Compute_V1_GetIamPolicySubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.GetIamPolicy(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetIamPolicy_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.GetIamPolicyAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetIamPolicyAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.GetIamPolicyAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetIamPolicyAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [SubnetworksClient.InsertAsync(InsertSubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_InsertAsync_Google_Cloud_Compute_V1_InsertSubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.PollOnceInsert(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceInsert_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PollOnceInsertAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceInsertAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.Insert(string, string, Subnetwork, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Insert_System_String_System_String_Google_Cloud_Compute_V1_Subnetwork_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.InsertAsync(string, string, Subnetwork, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_InsertAsync_System_String_System_String_Google_Cloud_Compute_V1_Subnetwork_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.InsertAsync(string, string, Subnetwork, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_InsertAsync_System_String_System_String_Google_Cloud_Compute_V1_Subnetwork_System_Threading_CancellationToken_) [SubnetworksClient.List(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_List_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.ListAsync(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ListAsync_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.ListUsable(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ListUsable_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.ListUsableAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ListUsableAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PatchAsync(PatchSubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PatchAsync_Google_Cloud_Compute_V1_PatchSubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.PollOncePatch(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOncePatch_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PollOncePatchAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOncePatchAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.Patch(string, string, string, Subnetwork, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Patch_System_String_System_String_System_String_Google_Cloud_Compute_V1_Subnetwork_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PatchAsync(string, string, string, Subnetwork, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PatchAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_Subnetwork_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PatchAsync(string, string, string, Subnetwork, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PatchAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_Subnetwork_System_Threading_CancellationToken_) [SubnetworksClient.SetIamPolicyAsync(SetIamPolicySubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetIamPolicyAsync_Google_Cloud_Compute_V1_SetIamPolicySubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetIamPolicy_System_String_System_String_System_String_Google_Cloud_Compute_V1_RegionSetPolicyRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetIamPolicyAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_RegionSetPolicyRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetIamPolicyAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_RegionSetPolicyRequest_System_Threading_CancellationToken_) [SubnetworksClient.SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetPrivateIpGoogleAccessAsync_Google_Cloud_Compute_V1_SetPrivateIpGoogleAccessSubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.PollOnceSetPrivateIpGoogleAccess(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceSetPrivateIpGoogleAccess_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.PollOnceSetPrivateIpGoogleAccessAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PollOnceSetPrivateIpGoogleAccessAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.SetPrivateIpGoogleAccess(string, string, string, SubnetworksSetPrivateIpGoogleAccessRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetPrivateIpGoogleAccess_System_String_System_String_System_String_Google_Cloud_Compute_V1_SubnetworksSetPrivateIpGoogleAccessRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.SetPrivateIpGoogleAccessAsync(string, string, string, SubnetworksSetPrivateIpGoogleAccessRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetPrivateIpGoogleAccessAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_SubnetworksSetPrivateIpGoogleAccessRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.SetPrivateIpGoogleAccessAsync(string, string, string, SubnetworksSetPrivateIpGoogleAccessRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetPrivateIpGoogleAccessAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_SubnetworksSetPrivateIpGoogleAccessRequest_System_Threading_CancellationToken_) [SubnetworksClient.TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsSubnetworkRequest_System_Threading_CancellationToken_) [SubnetworksClient.TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_TestIamPermissions_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_TestIamPermissionsAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [SubnetworksClient.TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_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 Subnetworks API.

## Constructors

### SubnetworksClientImpl(SubnetworksClient, SubnetworksSettings, ILogger)

    public SubnetworksClientImpl(Subnetworks.SubnetworksClient grpcClient, SubnetworksSettings settings, ILogger logger)

Constructs a client wrapper for the Subnetworks 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.Subnetworkshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetworks.SubnetworksClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksSettings` The base [SubnetworksSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksSettings) 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** [SubnetworksClient.DeleteOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_DeleteOperationsClient)

### ExpandIpCidrRangeOperationsClient

    public override OperationsClient ExpandIpCidrRangeOperationsClient { get; }

The long-running operations client for `ExpandIpCidrRange`.

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

**Overrides** [SubnetworksClient.ExpandIpCidrRangeOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ExpandIpCidrRangeOperationsClient)

### GrpcClient

    public override Subnetworks.SubnetworksClient GrpcClient { get; }

The underlying gRPC Subnetworks client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetworkshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetworks.SubnetworksClient` |   |

**Overrides** [SubnetworksClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_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** [SubnetworksClient.InsertOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_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** [SubnetworksClient.PatchOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PatchOperationsClient)

### SetPrivateIpGoogleAccessOperationsClient

    public override OperationsClient SetPrivateIpGoogleAccessOperationsClient { get; }

The long-running operations client for `SetPrivateIpGoogleAccess`.

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

**Overrides** [SubnetworksClient.SetPrivateIpGoogleAccessOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetPrivateIpGoogleAccessOperationsClient)

## Methods

### AggregatedList(AggregatedListSubnetworksRequest, CallSettings)

    public override PagedEnumerable<SubnetworkAggregatedList, KeyValuePair<string, SubnetworksScopedList>> AggregatedList(AggregatedListSubnetworksRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of subnetworks.

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.AggregatedListSubnetworksRequest` 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.SubnetworkAggregatedListhttps://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.SubnetworksScopedList` | A pageable sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

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

### AggregatedListAsync(AggregatedListSubnetworksRequest, CallSettings)

    public override PagedAsyncEnumerable<SubnetworkAggregatedList, KeyValuePair<string, SubnetworksScopedList>> AggregatedListAsync(AggregatedListSubnetworksRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of subnetworks.

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.AggregatedListSubnetworksRequest` 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.SubnetworkAggregatedListhttps://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.SubnetworksScopedList` | A pageable asynchronous sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

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

### Delete(DeleteSubnetworkRequest, CallSettings)

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

Deletes the specified subnetwork.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteSubnetworkRequest` 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** [SubnetworksClient.Delete(DeleteSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Delete_Google_Cloud_Compute_V1_DeleteSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAsync(DeleteSubnetworkRequest, CallSettings)

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

Deletes the specified subnetwork.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteSubnetworkRequest` 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** [SubnetworksClient.DeleteAsync(DeleteSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest, CallSettings)

    public override Operation<Operation, Operation> ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest request, CallSettings callSettings = null)

Expands the IP CIDR range of the subnetwork to a specified value.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ExpandIpCidrRangeSubnetworkRequest` 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** [SubnetworksClient.ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ExpandIpCidrRange_Google_Cloud_Compute_V1_ExpandIpCidrRangeSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest request, CallSettings callSettings = null)

Expands the IP CIDR range of the subnetwork to a specified value.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ExpandIpCidrRangeSubnetworkRequest` 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** [SubnetworksClient.ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ExpandIpCidrRangeAsync_Google_Cloud_Compute_V1_ExpandIpCidrRangeSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### Get(GetSubnetworkRequest, CallSettings)

    public override Subnetwork Get(GetSubnetworkRequest request, CallSettings callSettings = null)

Returns the specified subnetwork.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetSubnetworkRequest` 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.Subnetwork` | The RPC response. |

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

### GetAsync(GetSubnetworkRequest, CallSettings)

    public override Task<Subnetwork> GetAsync(GetSubnetworkRequest request, CallSettings callSettings = null)

Returns the specified subnetwork.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetSubnetworkRequest` 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.Subnetwork` | A Task containing the RPC response. |

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

### GetIamPolicy(GetIamPolicySubnetworkRequest, CallSettings)

    public override Policy GetIamPolicy(GetIamPolicySubnetworkRequest 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.GetIamPolicySubnetworkRequest` 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** [SubnetworksClient.GetIamPolicy(GetIamPolicySubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetIamPolicy_Google_Cloud_Compute_V1_GetIamPolicySubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicyAsync(GetIamPolicySubnetworkRequest, CallSettings)

    public override Task<Policy> GetIamPolicyAsync(GetIamPolicySubnetworkRequest 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.GetIamPolicySubnetworkRequest` 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** [SubnetworksClient.GetIamPolicyAsync(GetIamPolicySubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_GetIamPolicyAsync_Google_Cloud_Compute_V1_GetIamPolicySubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### Insert(InsertSubnetworkRequest, CallSettings)

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

Creates a subnetwork in the specified project using the data
included in the request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertSubnetworkRequest` 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** [SubnetworksClient.Insert(InsertSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Insert_Google_Cloud_Compute_V1_InsertSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### InsertAsync(InsertSubnetworkRequest, CallSettings)

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

Creates a subnetwork in the specified project using the data
included in the request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertSubnetworkRequest` 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** [SubnetworksClient.InsertAsync(InsertSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_InsertAsync_Google_Cloud_Compute_V1_InsertSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### List(ListSubnetworksRequest, CallSettings)

    public override PagedEnumerable<SubnetworkList, Subnetwork> List(ListSubnetworksRequest request, CallSettings callSettings = null)

Retrieves a list of subnetworks available to the specified
project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListSubnetworksRequest` 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.SubnetworkListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetwork` | A pageable sequence of [Subnetwork](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetwork) resources. |

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

### ListAsync(ListSubnetworksRequest, CallSettings)

    public override PagedAsyncEnumerable<SubnetworkList, Subnetwork> ListAsync(ListSubnetworksRequest request, CallSettings callSettings = null)

Retrieves a list of subnetworks available to the specified
project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListSubnetworksRequest` 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.SubnetworkListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetwork` | A pageable asynchronous sequence of [Subnetwork](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetwork) resources. |

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

### ListUsable(ListUsableSubnetworksRequest, CallSettings)

    public override PagedEnumerable<UsableSubnetworksAggregatedList, UsableSubnetwork> ListUsable(ListUsableSubnetworksRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of all usable subnetworks in the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListUsableSubnetworksRequest` 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.UsableSubnetworksAggregatedListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.UsableSubnetwork` | A pageable sequence of [UsableSubnetwork](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.UsableSubnetwork) resources. |

**Overrides** [SubnetworksClient.ListUsable(ListUsableSubnetworksRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ListUsable_Google_Cloud_Compute_V1_ListUsableSubnetworksRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListUsableAsync(ListUsableSubnetworksRequest, CallSettings)

    public override PagedAsyncEnumerable<UsableSubnetworksAggregatedList, UsableSubnetwork> ListUsableAsync(ListUsableSubnetworksRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of all usable subnetworks in the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListUsableSubnetworksRequest` 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.UsableSubnetworksAggregatedListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.UsableSubnetwork` | A pageable asynchronous sequence of [UsableSubnetwork](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.UsableSubnetwork) resources. |

**Overrides** [SubnetworksClient.ListUsableAsync(ListUsableSubnetworksRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_ListUsableAsync_Google_Cloud_Compute_V1_ListUsableSubnetworksRequest_Google_Api_Gax_Grpc_CallSettings_)

### Patch(PatchSubnetworkRequest, CallSettings)

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

Patches the specified subnetwork with the data included in the request.
Only certain fields can be updated with a patch request
as indicated in the field descriptions.
You must specify the current fingerprint of the
subnetwork resource being patched.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchSubnetworkRequest` 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** [SubnetworksClient.Patch(PatchSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_Patch_Google_Cloud_Compute_V1_PatchSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### PatchAsync(PatchSubnetworkRequest, CallSettings)

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

Patches the specified subnetwork with the data included in the request.
Only certain fields can be updated with a patch request
as indicated in the field descriptions.
You must specify the current fingerprint of the
subnetwork resource being patched.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchSubnetworkRequest` 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** [SubnetworksClient.PatchAsync(PatchSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_PatchAsync_Google_Cloud_Compute_V1_PatchSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicy(SetIamPolicySubnetworkRequest, CallSettings)

    public override Policy SetIamPolicy(SetIamPolicySubnetworkRequest 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.SetIamPolicySubnetworkRequest` 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** [SubnetworksClient.SetIamPolicy(SetIamPolicySubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetIamPolicy_Google_Cloud_Compute_V1_SetIamPolicySubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicyAsync(SetIamPolicySubnetworkRequest, CallSettings)

    public override Task<Policy> SetIamPolicyAsync(SetIamPolicySubnetworkRequest 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.SetIamPolicySubnetworkRequest` 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** [SubnetworksClient.SetIamPolicyAsync(SetIamPolicySubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetIamPolicyAsync_Google_Cloud_Compute_V1_SetIamPolicySubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest, CallSettings)

    public override Operation<Operation, Operation> SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest request, CallSettings callSettings = null)

Set whether VMs in this subnet can access Google services without assigning
external IP addresses through Private Google Access.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetPrivateIpGoogleAccessSubnetworkRequest` 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** [SubnetworksClient.SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetPrivateIpGoogleAccess_Google_Cloud_Compute_V1_SetPrivateIpGoogleAccessSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest request, CallSettings callSettings = null)

Set whether VMs in this subnet can access Google services without assigning
external IP addresses through Private Google Access.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetPrivateIpGoogleAccessSubnetworkRequest` 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** [SubnetworksClient.SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_SetPrivateIpGoogleAccessAsync_Google_Cloud_Compute_V1_SetPrivateIpGoogleAccessSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissions(TestIamPermissionsSubnetworkRequest, CallSettings)

    public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsSubnetworkRequest 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.TestIamPermissionsSubnetworkRequest` 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** [SubnetworksClient.TestIamPermissions(TestIamPermissionsSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_TestIamPermissions_Google_Cloud_Compute_V1_TestIamPermissionsSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest, CallSettings)

    public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest 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.TestIamPermissionsSubnetworkRequest` 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** [SubnetworksClient.TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SubnetworksClient#Google_Cloud_Compute_V1_SubnetworksClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsSubnetworkRequest_Google_Api_Gax_Grpc_CallSettings_)