Immutable. The unique ID in a PersistentResource for referring to this
resource pool. User can specify it if necessary. Otherwise, it's generated
automatically.
[[["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-14 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eResourcePool\u003c/code\u003e class is part of the Vertex AI v1beta1 API, representing a group of resources like machine types, disks, and accelerators in a PersistentResource.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to be used with Google.Protobuf and enabling features like message handling, equality checks, deep cloning, and efficient buffering.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eAutoscalingSpec\u003c/code\u003e, \u003ccode\u003eDiskSpec\u003c/code\u003e, \u003ccode\u003eMachineSpec\u003c/code\u003e, \u003ccode\u003eReplicaCount\u003c/code\u003e, and \u003ccode\u003eUsedReplicaCount\u003c/code\u003e to configure and monitor the resources within the pool.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eId\u003c/code\u003e property allows users to set a unique ID to a resource pool if needed, or the system automatically generates it.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for \u003ccode\u003eResourcePool\u003c/code\u003e, a default constructor and one that accepts another \u003ccode\u003eResourcePool\u003c/code\u003e instance to create a new instance.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class ResourcePool (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ResourcePool)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.ResourcePool) \n\n public sealed class ResourcePool : IMessage\u003cResourcePool\u003e, IEquatable\u003cResourcePool\u003e, IDeepCloneable\u003cResourcePool\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class ResourcePool.\n\nRepresents the spec of a group of resources of the same type,\nfor example machine type, disk, and accelerators, in a PersistentResource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ResourcePool \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourcePool](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ResourcePool), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourcePool](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ResourcePool), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResourcePool](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ResourcePool), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \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.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### ResourcePool()\n\n public ResourcePool()\n\n### ResourcePool(ResourcePool)\n\n public ResourcePool(ResourcePool other)\n\nProperties\n----------\n\n### AutoscalingSpec\n\n public ResourcePool.Types.AutoscalingSpec AutoscalingSpec { get; set; }\n\nOptional. Optional spec to configure GKE or Ray-on-Vertex autoscaling\n\n### DiskSpec\n\n public DiskSpec DiskSpec { get; set; }\n\nOptional. Disk spec for the machine in this node pool.\n\n### HasReplicaCount\n\n public bool HasReplicaCount { get; }\n\nGets whether the \"replica_count\" field is set\n\n### Id\n\n public string Id { get; set; }\n\nImmutable. The unique ID in a PersistentResource for referring to this\nresource pool. User can specify it if necessary. Otherwise, it's generated\nautomatically.\n\n### MachineSpec\n\n public MachineSpec MachineSpec { get; set; }\n\nRequired. Immutable. The specification of a single machine.\n\n### ReplicaCount\n\n public long ReplicaCount { get; set; }\n\nOptional. The total number of machines to use for this resource pool.\n\n### UsedReplicaCount\n\n public long UsedReplicaCount { get; set; }\n\nOutput only. The number of machines currently in use by training jobs for\nthis resource pool. Will replace idle_replica_count."]]