The response to send back to the client (wrapped by a task).
Patch(PatchSubnetworkRequest, ServerCallContext)
public virtual Task<Operation> Patch(PatchSubnetworkRequest request, ServerCallContext context)
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eSubnetworks.SubnetworksBase\u003c/code\u003e is 3.6.0, and there are multiple previous versions listed, ranging from 1.0.0 up to 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSubnetworks.SubnetworksBase\u003c/code\u003e is a base class for server-side implementations of subnetworks within the Compute Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSubnetworks.SubnetworksBase\u003c/code\u003e class offers various methods, such as \u003ccode\u003eAggregatedList\u003c/code\u003e, \u003ccode\u003eDelete\u003c/code\u003e, \u003ccode\u003eGet\u003c/code\u003e, \u003ccode\u003eInsert\u003c/code\u003e, and \u003ccode\u003eList\u003c/code\u003e, which are used to manage subnetworks.\u003c/p\u003e\n"],["\u003cp\u003eThe class methods utilize \u003ccode\u003eTask\u003c/code\u003e objects to handle asynchronous operations and interact with client requests and server contexts, allowing the handling of operations, policies, and permissions related to subnetworks.\u003c/p\u003e\n"],["\u003cp\u003eThe class methods interact with \u003ccode\u003erequest\u003c/code\u003e and \u003ccode\u003econtext\u003c/code\u003e objects which are related to data from the client and the context of the call respectively, and they will return responses wrapped in a task.\u003c/p\u003e\n"]]],[],null,["# Compute Engine v1 API - Class Subnetworks.SubnetworksBase (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.12.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.11.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.10.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.9.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.8.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.7.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.6.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.5.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.4.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.3.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.2.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.1.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.0.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.17.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.16.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.15.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.14.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.13.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.12.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.11.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.10.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.9.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.8.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.7.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.6.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.5.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.4.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.3.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.2.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.1.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.0.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.4.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.3.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.2.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.1.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.0.0/Google.Cloud.Compute.V1.Subnetworks.SubnetworksBase) \n\n [BindServiceMethod(typeof(Subnetworks), \"BindService\")]\n public abstract class Subnetworks.SubnetworksBase\n\nReference documentation and code samples for the Compute Engine v1 API class Subnetworks.SubnetworksBase.\n\nBase class for server-side implementations of Subnetworks \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Subnetworks.SubnetworksBase \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Compute.V1](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Compute.V1.dll\n\nMethods\n-------\n\n### AggregatedList(AggregatedListSubnetworksRequest, ServerCallContext)\n\n public virtual Task\u003cSubnetworkAggregatedList\u003e AggregatedList(AggregatedListSubnetworksRequest request, ServerCallContext context)\n\nRetrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.\n\n### Delete(DeleteSubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e Delete(DeleteSubnetworkRequest request, ServerCallContext context)\n\nDeletes the specified subnetwork.\n\n### ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest request, ServerCallContext context)\n\nExpands the IP CIDR range of the subnetwork to a specified value.\n\n### Get(GetSubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cSubnetwork\u003e Get(GetSubnetworkRequest request, ServerCallContext context)\n\nReturns the specified subnetwork.\n\n### GetIamPolicy(GetIamPolicySubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cPolicy\u003e GetIamPolicy(GetIamPolicySubnetworkRequest request, ServerCallContext context)\n\nGets the access control policy for a resource. May be empty if no such policy or resource exists.\n\n### Insert(InsertSubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e Insert(InsertSubnetworkRequest request, ServerCallContext context)\n\nCreates a subnetwork in the specified project using the data included in the request.\n\n### List(ListSubnetworksRequest, ServerCallContext)\n\n public virtual Task\u003cSubnetworkList\u003e List(ListSubnetworksRequest request, ServerCallContext context)\n\nRetrieves a list of subnetworks available to the specified project.\n\n### ListUsable(ListUsableSubnetworksRequest, ServerCallContext)\n\n public virtual Task\u003cUsableSubnetworksAggregatedList\u003e ListUsable(ListUsableSubnetworksRequest request, ServerCallContext context)\n\nRetrieves an aggregated list of all usable subnetworks in the project.\n\n### Patch(PatchSubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e Patch(PatchSubnetworkRequest request, ServerCallContext context)\n\nPatches 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.\n\n### SetIamPolicy(SetIamPolicySubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cPolicy\u003e SetIamPolicy(SetIamPolicySubnetworkRequest request, ServerCallContext context)\n\nSets the access control policy on the specified resource. Replaces any existing policy.\n\n### SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest request, ServerCallContext context)\n\nSet whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.\n\n### TestIamPermissions(TestIamPermissionsSubnetworkRequest, ServerCallContext)\n\n public virtual Task\u003cTestPermissionsResponse\u003e TestIamPermissions(TestIamPermissionsSubnetworkRequest request, ServerCallContext context)\n\nReturns permissions that a caller has on the specified resource."]]