public sealed class CreatePersistentResourceRequest : IMessage<CreatePersistentResourceRequest>, IEquatable<CreatePersistentResourceRequest>, IDeepCloneable<CreatePersistentResourceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class CreatePersistentResourceRequest.
Request message for
[PersistentResourceService.CreatePersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreatePersistentResourceRequest\u003c/code\u003e class is part of the Vertex AI v1beta1 API and is used to create a persistent resource via the \u003ccode\u003ePersistentResourceService.CreatePersistentResource\u003c/code\u003e method.\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, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePersistentResourceRequest\u003c/code\u003e has properties to set the parent location, the persistent resource itself, and the ID of the persistent resource.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors: a default constructor and one that takes another \u003ccode\u003eCreatePersistentResourceRequest\u003c/code\u003e object as a parameter to create a copy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePersistentResourceId\u003c/code\u003e property requires an ID with a maximum length of 63 characters, and valid characters must adhere to the \u003ccode\u003e/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/\u003c/code\u003e regex pattern.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class CreatePersistentResourceRequest (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.CreatePersistentResourceRequest)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.CreatePersistentResourceRequest) \n\n public sealed class CreatePersistentResourceRequest : IMessage\u003cCreatePersistentResourceRequest\u003e, IEquatable\u003cCreatePersistentResourceRequest\u003e, IDeepCloneable\u003cCreatePersistentResourceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class CreatePersistentResourceRequest.\n\nRequest message for\n\\[PersistentResourceService.CreatePersistentResource\\]\\[google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreatePersistentResourceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreatePersistentResourceRequest](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreatePersistentResourceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreatePersistentResourceRequest](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreatePersistentResourceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreatePersistentResourceRequest](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreatePersistentResourceRequest), [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### CreatePersistentResourceRequest()\n\n public CreatePersistentResourceRequest()\n\n### CreatePersistentResourceRequest(CreatePersistentResourceRequest)\n\n public CreatePersistentResourceRequest(CreatePersistentResourceRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The resource name of the Location to create the\nPersistentResource in. Format: `projects/{project}/locations/{location}`\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreatePersistentResourceRequest#Google_Cloud_AIPlatform_V1Beta1_CreatePersistentResourceRequest_Parent) resource name property.\n\n### PersistentResource\n\n public PersistentResource PersistentResource { get; set; }\n\nRequired. The PersistentResource to create.\n\n### PersistentResourceId\n\n public string PersistentResourceId { get; set; }\n\nRequired. The ID to use for the PersistentResource, which become the final\ncomponent of the PersistentResource's resource name.\n\nThe maximum length is 63 characters, and valid characters\nare `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`."]]