public sealed class CreateFolderRequest : IMessage<CreateFolderRequest>, IEquatable<CreateFolderRequest>, IDeepCloneable<CreateFolderRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Storage v2 API class CreateFolderRequest.
Request message for CreateFolder. This operation is only applicable to a
hierarchical namespace enabled bucket.
Hierarchical namespace buckets are in allowlist preview.
Required. Properties of the new folder being created.
The bucket and name of the folder are specified in the parent and folder_id
fields, respectively. Populating those fields in folder will result in an
error.
Required. The full name of a folder, including all its parent folders.
Folders use single '/' characters as a delimiter.
The folder_id must end with a slash.
For example, the folder_id of "books/biographies/" would create a new
"biographies/" folder under the "books/" folder.
[[["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\u003eCreateFolderRequest\u003c/code\u003e class is used to request the creation of a new folder within a hierarchical namespace-enabled Cloud Storage bucket.\u003c/p\u003e\n"],["\u003cp\u003eThis operation requires specifying the \u003ccode\u003eParent\u003c/code\u003e bucket name, the \u003ccode\u003eFolderId\u003c/code\u003e which includes the full name of the folder and uses '/' as a delimiter, and the \u003ccode\u003eFolder\u003c/code\u003e properties of the new folder to be created.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecursive\u003c/code\u003e property allows for the automatic creation of missing parent folders if set to \u003ccode\u003etrue\u003c/code\u003e, and you can also specify a unique \u003ccode\u003eRequestId\u003c/code\u003e for tracking the request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateFolderRequest\u003c/code\u003e 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, providing functionality for message handling, equality checks, deep cloning, and buffer message operations, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides details on the class's constructors, \u003ccode\u003eCreateFolderRequest()\u003c/code\u003e, and \u003ccode\u003eCreateFolderRequest(CreateFolderRequest)\u003c/code\u003e, inherited members, and properties like \u003ccode\u003eFolder\u003c/code\u003e, \u003ccode\u003eFolderId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsBucketName\u003c/code\u003e, \u003ccode\u003eRecursive\u003c/code\u003e, and \u003ccode\u003eRequestId\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]