Cloud Storage v2 API - Class CreateFolderRequest (1.1.0)

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.

Inheritance

object > CreateFolderRequest

Namespace

Google.Cloud.Storage.Control.V2

Assembly

Google.Cloud.Storage.Control.V2.dll

Constructors

CreateFolderRequest()

public CreateFolderRequest()

CreateFolderRequest(CreateFolderRequest)

public CreateFolderRequest(CreateFolderRequest other)
Parameter
Name Description
other CreateFolderRequest

Properties

Folder

public Folder Folder { get; set; }

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.

Property Value
Type Description
Folder

FolderId

public string FolderId { get; set; }

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.

Property Value
Type Description
string

Parent

public string Parent { get; set; }

Required. Name of the bucket in which the folder will reside. The bucket must be a hierarchical namespace enabled bucket.

Property Value
Type Description
string

ParentAsBucketName

public BucketName ParentAsBucketName { get; set; }

BucketName-typed view over the Parent resource name property.

Property Value
Type Description
BucketName

Recursive

public bool Recursive { get; set; }

Optional. If true, parent folder doesn't have to be present and all missing ancestor folders will be created atomically.

Property Value
Type Description
bool

RequestId

public string RequestId { get; set; }

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.

Property Value
Type Description
string