[[["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."],[],[],null,["# Google Cloud OsLogin V1 Client - Class CreateSshPublicKeyRequest (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-oslogin/latest/V1.CreateSshPublicKeyRequest)\n- [2.0.4](/php/docs/reference/cloud-oslogin/2.0.4/V1.CreateSshPublicKeyRequest)\n- [1.9.6](/php/docs/reference/cloud-oslogin/1.9.6/V1.CreateSshPublicKeyRequest)\n- [1.8.0](/php/docs/reference/cloud-oslogin/1.8.0/V1.CreateSshPublicKeyRequest)\n- [1.7.0](/php/docs/reference/cloud-oslogin/1.7.0/V1.CreateSshPublicKeyRequest)\n- [1.6.0](/php/docs/reference/cloud-oslogin/1.6.0/V1.CreateSshPublicKeyRequest)\n- [1.5.2](/php/docs/reference/cloud-oslogin/1.5.2/V1.CreateSshPublicKeyRequest)\n- [1.4.6](/php/docs/reference/cloud-oslogin/1.4.6/V1.CreateSshPublicKeyRequest) \nReference documentation and code samples for the Google Cloud OsLogin V1 Client class CreateSshPublicKeyRequest.\n\nA request message for creating an SSH public key.\n\nGenerated from protobuf message `google.cloud.oslogin.v1.CreateSshPublicKeyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsLogin \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The unique ID for the user in format `users/{user}`.\n\n### setParent\n\nRequired. The unique ID for the user in format `users/{user}`.\n\n### getSshPublicKey\n\nRequired. The SSH public key and expiration time.\n\n### hasSshPublicKey\n\n### clearSshPublicKey\n\n### setSshPublicKey\n\nRequired. The SSH public key and expiration time.\n\n### static::build"]]