Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: [a-zA-Z0-9@.-_]{1,64}
[[["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."],[],[],null,["# Google Cloud Bare Metal Solution V2 Client - Class CreateSSHKeyRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-bare-metal-solution/latest/V2.CreateSSHKeyRequest)\n- [1.0.4](/php/docs/reference/cloud-bare-metal-solution/1.0.4/V2.CreateSSHKeyRequest)\n- [0.6.5](/php/docs/reference/cloud-bare-metal-solution/0.6.5/V2.CreateSSHKeyRequest)\n- [0.5.2](/php/docs/reference/cloud-bare-metal-solution/0.5.2/V2.CreateSSHKeyRequest)\n- [0.4.0](/php/docs/reference/cloud-bare-metal-solution/0.4.0/V2.CreateSSHKeyRequest)\n- [0.3.2](/php/docs/reference/cloud-bare-metal-solution/0.3.2/V2.CreateSSHKeyRequest)\n- [0.2.8](/php/docs/reference/cloud-bare-metal-solution/0.2.8/V2.CreateSSHKeyRequest) \nReference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class CreateSSHKeyRequest.\n\nMessage for registering a public SSH key in a project.\n\nGenerated from protobuf message `google.cloud.baremetalsolution.v2.CreateSSHKeyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BareMetalSolution \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent containing the SSH keys.\n\n### setParent\n\nRequired. The parent containing the SSH keys.\n\n### getSshKey\n\nRequired. The SSH key to register.\n\n### hasSshKey\n\n### clearSshKey\n\n### setSshKey\n\nRequired. The SSH key to register.\n\n### getSshKeyId\n\nRequired. The ID to use for the key, which will become the final component\nof the key's resource name.\n\nThis value must match the regex:\n\\[a-zA-Z0-9@.-_\\]{1,64}\n\n### setSshKeyId\n\nRequired. The ID to use for the key, which will become the final component\nof the key's resource name.\n\nThis value must match the regex:\n\\[a-zA-Z0-9@.-_\\]{1,64}\n\n### static::build"]]