# Storage Control V2 API - Class Google::Cloud::Storage::Control::V2::Folder (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::Folder.

A folder resource. This resource can only exist in a hierarchical namespace
enabled bucket.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The creation time of the folder.

### #metageneration

    def metageneration() -> ::Integer

**Returns**

- (::Integer) --- Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The name of this folder. Format: `projects/{project}/buckets/{bucket}/folders/{folder}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of this folder. Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
**Returns**

- (::String) --- Identifier. The name of this folder. Format: `projects/{project}/buckets/{bucket}/folders/{folder}`

### #pending_rename_info

    def pending_rename_info() -> ::Google::Cloud::Storage::Control::V2::PendingRenameInfo

**Returns**

- ([::Google::Cloud::Storage::Control::V2::PendingRenameInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-PendingRenameInfo)) --- Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The modification time of the folder.