public sealed class CreateKeyRequest : IMessage<CreateKeyRequest>, IEquatable<CreateKeyRequest>, IDeepCloneable<CreateKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the API Keys v2 API class CreateKeyRequest.
User specified key id (optional). If specified, it will become the final
component of the key resource name.
The id must be unique within the project, must conform with RFC-1034,
is restricted to lower-cased letters, and has a maximum length of 63
characters. In another word, the id must match the regular
expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
[[["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-07 UTC."],[[["\u003cp\u003eThe latest version of the API Keys v2 API is 1.4.0, with older versions including 1.3.0, 1.2.0, 1.1.0, and 1.0.0 also available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateKeyRequest\u003c/code\u003e is a class in the Google.Cloud.ApiKeys.V2 namespace used as the request message for the \u003ccode\u003eCreateKey\u003c/code\u003e method within the API Keys v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateKeyRequest\u003c/code\u003e class implements multiple 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\u003eYou can create a new instance of \u003ccode\u003eCreateKeyRequest\u003c/code\u003e with either the default constructor \u003ccode\u003eCreateKeyRequest()\u003c/code\u003e or the copy constructor \u003ccode\u003eCreateKeyRequest(CreateKeyRequest other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties like \u003ccode\u003eKey\u003c/code\u003e, \u003ccode\u003eKeyId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, and \u003ccode\u003eParentAsLocationName\u003c/code\u003e to configure the key creation, specifying required fields such as the project and optional configurations like a user-specified key ID.\u003c/p\u003e\n"]]],[],null,[]]