public ReservationName(string projectIdOrNumberId, string zoneId, string reservationNameId)
Constructs a new instance of a ReservationName class from the component parts of pattern
projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}
public static string Format(string projectIdOrNumberId, string zoneId, string reservationNameId)
Formats the IDs into the string representation of this ReservationName with pattern
projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}.
public static string FormatProjectIdOrNumberZoneReservationName(string projectIdOrNumberId, string zoneId, string reservationNameId)
Formats the IDs into the string representation of this ReservationName with pattern
projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
[[["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\u003eThis documentation details the \u003ccode\u003eReservationName\u003c/code\u003e class within the Google Cloud AI Platform v1beta1 API, specifically for the .NET environment, used for managing reservation resources.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReservationName\u003c/code\u003e is a sealed class that implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<ReservationName>\u003c/code\u003e, and it represents the resource name for the \u003ccode\u003eReservation\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows the creation of a \u003ccode\u003eReservationName\u003c/code\u003e instance using the constructor or various static methods like \u003ccode\u003eFormat\u003c/code\u003e, \u003ccode\u003eFromProjectIdOrNumberZoneReservationName\u003c/code\u003e, \u003ccode\u003eFromUnparsed\u003c/code\u003e, \u003ccode\u003eParse\u003c/code\u003e and \u003ccode\u003eTryParse\u003c/code\u003e, requiring the project ID/number, zone, and reservation name ID.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReservationName\u003c/code\u003e class provides properties such as \u003ccode\u003eIsKnownPattern\u003c/code\u003e, \u003ccode\u003eProjectIdOrNumberId\u003c/code\u003e, \u003ccode\u003eReservationNameId\u003c/code\u003e, \u003ccode\u003eType\u003c/code\u003e, \u003ccode\u003eUnparsedResource\u003c/code\u003e, and \u003ccode\u003eZoneId\u003c/code\u003e to access the components and state of the resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReservationName\u003c/code\u003e class includes methods to parse, format, and validate resource names, with support for handling unparsed resource names, and offers operators for equality and inequality comparisons between \u003ccode\u003eReservationName\u003c/code\u003e instances.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class ReservationName (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.ReservationName)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.ReservationName) \n\n public sealed class ReservationName : IResourceName, IEquatable\u003cReservationName\u003e\n\nReference documentation and code samples for the Vertex AI v1beta1 API class ReservationName.\n\nResource name for the `Reservation` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ReservationName \n\nImplements\n----------\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\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### ReservationName(string, string, string)\n\n public ReservationName(string projectIdOrNumberId, string zoneId, string reservationNameId)\n\nConstructs a new instance of a [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) class from the component parts of pattern\n`projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`\n\nProperties\n----------\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### ProjectIdOrNumberId\n\n public string ProjectIdOrNumberId { get; }\n\nThe `ProjectIdOrNumber` ID. Will not be `null`, unless this instance contains an unparsed resource\nname.\n\n### ReservationNameId\n\n public string ReservationNameId { get; }\n\nThe `ReservationName` ID. Will not be `null`, unless this instance contains an unparsed resource\nname.\n\n### Type\n\n public ReservationName.ResourceNameType Type { get; }\n\nThe [ReservationName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName.ResourceNameType) of the contained resource name.\n\n### UnparsedResource\n\n public UnparsedResourceName UnparsedResource { get; }\n\nThe contained [UnparsedResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.UnparsedResourceName.html). Only non-`null` if this instance contains an\nunparsed resource name.\n\n### ZoneId\n\n public string ZoneId { get; }\n\nThe `Zone` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\nMethods\n-------\n\n### Format(string, string, string)\n\n public static string Format(string projectIdOrNumberId, string zoneId, string reservationNameId)\n\nFormats the IDs into the string representation of this [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) with pattern\n`projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`.\n\n### FormatProjectIdOrNumberZoneReservationName(string, string, string)\n\n public static string FormatProjectIdOrNumberZoneReservationName(string projectIdOrNumberId, string zoneId, string reservationNameId)\n\nFormats the IDs into the string representation of this [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) with pattern\n`projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`.\n\n### FromProjectIdOrNumberZoneReservationName(string, string, string)\n\n public static ReservationName FromProjectIdOrNumberZoneReservationName(string projectIdOrNumberId, string zoneId, string reservationNameId)\n\nCreates a [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) with the pattern\n`projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static ReservationName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) containing an unparsed resource name.\n\n### GetHashCode()\n\n public override int GetHashCode()\n\nReturns a hash code for this resource name.\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### Parse(string)\n\n public static ReservationName Parse(string reservationName)\n\nParses the given resource name string into a new [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static ReservationName Parse(string reservationName, bool allowUnparsed)\n\nParses the given resource name string into a new [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) instance; optionally allowing\nan unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\n### ToString()\n\n public override string ToString()\n\nThe string representation of the resource name.\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### TryParse(string, out ReservationName)\n\n public static bool TryParse(string reservationName, out ReservationName result)\n\nTries to parse the given resource name string into a new [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out ReservationName)\n\n public static bool TryParse(string reservationName, bool allowUnparsed, out ReservationName result)\n\nTries to parse the given resource name string into a new [ReservationName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReservationName) instance; optionally\nallowing an unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(ReservationName, ReservationName)\n\n public static bool operator ==(ReservationName a, ReservationName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(ReservationName, ReservationName)\n\n public static bool operator !=(ReservationName a, ReservationName b)\n\nDetermines whether two specified resource names have different values."]]