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"]],[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSshPublicKeyName\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.OsLogin.Common\u003c/code\u003e namespace is used to represent the resource name for an \u003ccode\u003eSshPublicKey\u003c/code\u003e, following the pattern \u003ccode\u003eusers/{user}/sshPublicKeys/{fingerprint}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides methods for parsing, formatting, and validating resource names related to SSH public keys, including handling unparsed resource names, with methods like \u003ccode\u003eParse\u003c/code\u003e, \u003ccode\u003eFormat\u003c/code\u003e, \u003ccode\u003eTryParse\u003c/code\u003e, and \u003ccode\u003eFromUnparsed\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSshPublicKeyName\u003c/code\u003e class includes properties like \u003ccode\u003eUserId\u003c/code\u003e, \u003ccode\u003eFingerprintId\u003c/code\u003e, \u003ccode\u003eIsKnownPattern\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, which allow access to the components and characteristics of the resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eGoogle.Cloud.OsLogin.Common.SshPublicKeyName\u003c/code\u003e is 3.3.0, with previous versions ranging back to 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eAs a sealed class \u003ccode\u003eSshPublicKeyName\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e, and it implements both \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<SshPublicKeyName>\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.OsLogin.Common - Class SshPublicKeyName (3.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.2.0/Google.Cloud.OsLogin.Common.SshPublicKeyName)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.1.0/Google.Cloud.OsLogin.Common.SshPublicKeyName)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.0.0/Google.Cloud.OsLogin.Common.SshPublicKeyName)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/2.3.0/Google.Cloud.OsLogin.Common.SshPublicKeyName)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/2.2.0/Google.Cloud.OsLogin.Common.SshPublicKeyName) \n\n public sealed class SshPublicKeyName : IResourceName, IEquatable\u003cSshPublicKeyName\u003e\n\nReference documentation and code samples for the Google.Cloud.OsLogin.Common class SshPublicKeyName.\n\nResource name for the `SshPublicKey` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SshPublicKeyName \n\nImplements\n----------\n\n[IResourceName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/IResourceName.cs), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.OsLogin.Common](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.OsLogin.Common.dll\n\nConstructors\n------------\n\n### SshPublicKeyName(string, string)\n\n public SshPublicKeyName(string userId, string fingerprintId)\n\nConstructs a new instance of a [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) class from the component parts of pattern\n`users/{user}/sshPublicKeys/{fingerprint}`\n\nProperties\n----------\n\n### FingerprintId\n\n public string FingerprintId { get; }\n\nThe `Fingerprint` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### Type\n\n public SshPublicKeyName.ResourceNameType Type { get; }\n\nThe [SshPublicKeyName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName.ResourceNameType) of the contained resource name.\n\n### UnparsedResource\n\n public UnparsedResourceName UnparsedResource { get; }\n\nThe contained [UnparsedResourceName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/UnparsedResourceName.cs). Only non-`null` if this instance contains an\nunparsed resource name.\n\n### UserId\n\n public string UserId { get; }\n\nThe `User` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\nMethods\n-------\n\n### Format(string, string)\n\n public static string Format(string userId, string fingerprintId)\n\nFormats the IDs into the string representation of this [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) with pattern\n`users/{user}/sshPublicKeys/{fingerprint}`.\n\n### FormatUserFingerprint(string, string)\n\n public static string FormatUserFingerprint(string userId, string fingerprintId)\n\nFormats the IDs into the string representation of this [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) with pattern\n`users/{user}/sshPublicKeys/{fingerprint}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static SshPublicKeyName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) containing an unparsed resource name.\n\n### FromUserFingerprint(string, string)\n\n public static SshPublicKeyName FromUserFingerprint(string userId, string fingerprintId)\n\nCreates a [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) with the pattern `users/{user}/sshPublicKeys/{fingerprint}`.\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 SshPublicKeyName Parse(string sshPublicKeyName)\n\nParses the given resource name string into a new [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `users/{user}/sshPublicKeys/{fingerprint}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static SshPublicKeyName Parse(string sshPublicKeyName, bool allowUnparsed)\n\nParses the given resource name string into a new [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) 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- `users/{user}/sshPublicKeys/{fingerprint}`\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 SshPublicKeyName)\n\n public static bool TryParse(string sshPublicKeyName, out SshPublicKeyName result)\n\nTries to parse the given resource name string into a new [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `users/{user}/sshPublicKeys/{fingerprint}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out SshPublicKeyName)\n\n public static bool TryParse(string sshPublicKeyName, bool allowUnparsed, out SshPublicKeyName result)\n\nTries to parse the given resource name string into a new [SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName) 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- `users/{user}/sshPublicKeys/{fingerprint}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(SshPublicKeyName, SshPublicKeyName)\n\n public static bool operator ==(SshPublicKeyName a, SshPublicKeyName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(SshPublicKeyName, SshPublicKeyName)\n\n public static bool operator !=(SshPublicKeyName a, SshPublicKeyName b)\n\nDetermines whether two specified resource names have different values."]]