# Storage Control V2 API - Class Google::Cloud::Storage::Control::V2::CreateFolderRequest (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.1 1.9.0 1.8.1 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.1.1 Reference documentation and code samples for the Storage Control V2 API class Google::Cloud::Storage::Control::V2::CreateFolderRequest.

Request message for CreateFolder. This operation is only applicable to a
hierarchical namespace enabled bucket.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #folder

    def folder() -> ::Google::Cloud::Storage::Control::V2::Folder

**Returns**

- ([::Google::Cloud::Storage::Control::V2::Folder](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-Folder)) --- 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.

### #folder=

    def folder=(value) -> ::Google::Cloud::Storage::Control::V2::Folder

**Parameter**

- **value** ([::Google::Cloud::Storage::Control::V2::Folder](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-Folder)) --- 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.
**Returns**

- ([::Google::Cloud::Storage::Control::V2::Folder](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-Folder)) --- 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.

### #folder_id

    def folder_id() -> ::String

**Returns**

- (::String) --- 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.

### #folder_id=

    def folder_id=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. Name of the bucket in which the folder will reside. The bucket must be a hierarchical namespace enabled bucket.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the bucket in which the folder will reside. The bucket must be a hierarchical namespace enabled bucket.
**Returns**

- (::String) --- Required. Name of the bucket in which the folder will reside. The bucket must be a hierarchical namespace enabled bucket.

### #recursive

    def recursive() -> ::Boolean

**Returns**

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

### #recursive=

    def recursive=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, parent folder doesn't have to be present and all missing ancestor folders will be created atomically.
**Returns**

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

### #request_id

    def request_id() -> ::String

**Returns**

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

### #request_id=

    def request_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
**Returns**

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