public sealed class CreateSecretRequest : IMessage<CreateSecretRequest>, IEquatable<CreateSecretRequest>, IDeepCloneable<CreateSecretRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1beta1 API class CreateSecretRequest.
Request message for
[SecretManagerService.CreateSecret][google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret].
A secret ID is a string with a maximum length of 255 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-) and
underscore (_) characters.
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateSecretRequest\u003c/code\u003e class is used to send requests to the Secret Manager v1beta1 API for creating a new secret.\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, allowing for various functionalities like message handling and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateSecretRequest\u003c/code\u003e includes properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eSecret\u003c/code\u003e, and \u003ccode\u003eSecretId\u003c/code\u003e, which are used to specify the project, the initial field values of the secret, and the unique ID of the secret, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property accepts the resource name of the project, and the \u003ccode\u003eParentAsProjectName\u003c/code\u003e offers a typed view of the same \u003ccode\u003eParent\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this API is \u003ccode\u003e3.0.0-beta05\u003c/code\u003e, with previous versions \u003ccode\u003e3.0.0-beta04\u003c/code\u003e and \u003ccode\u003e2.0.0-beta05\u003c/code\u003e also available.\u003c/p\u003e\n"]]],[],null,[]]