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 \u003ccode\u003eCreateKeyRequest\u003c/code\u003e class is used to send a request to create a new API key and is part of the Google Cloud API Keys v2 API, with version 1.4.0 being the latest release.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several 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 \u003ccode\u003eobject\u003c/code\u003e, providing core functionalities for data handling and comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateKeyRequest\u003c/code\u003e class allows setting properties like \u003ccode\u003eKey\u003c/code\u003e (for configuring API key fields), \u003ccode\u003eKeyId\u003c/code\u003e (for a user-specified identifier), and \u003ccode\u003eParent\u003c/code\u003e (for specifying the project where the API key is created).\u003c/p\u003e\n"],["\u003cp\u003eThe constructor for \u003ccode\u003eCreateKeyRequest\u003c/code\u003e can be used to create an empty request object or clone an existing one by passing in another \u003ccode\u003eCreateKeyRequest\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThere are 5 versions of this API class, starting from version 1.0.0, and all of them can be accessed through the links provided.\u003c/p\u003e\n"]]],[],null,[]]