Reference documentation and code samples for the Google Cloud Storage Control V2 Client class Folder.
A folder resource. This resource can only exist in a hierarchical namespace enabled bucket.
Generated from protobuf message google.storage.control.v2.Folder
Namespace
Google \ Cloud \ Storage \ Control \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The name of this folder. Format: projects/{project}/buckets/{bucket}/folders/{folder}
↳ metageneration
int|string
Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.
↳ create_time
↳ update_time
↳ pending_rename_info
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.
getName
Identifier. The name of this folder.
Format: projects/{project}/buckets/{bucket}/folders/{folder}
string
setName
Identifier. The name of this folder.
Format: projects/{project}/buckets/{bucket}/folders/{folder}
var
string
$this
getMetageneration
Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.
int|string
setMetageneration
Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.
var
int|string
$this
getCreateTime
Output only. The creation time of the folder.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The creation time of the folder.
$this
getUpdateTime
Output only. The modification time of the folder.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The modification time of the folder.
$this
getPendingRenameInfo
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.
hasPendingRenameInfo
clearPendingRenameInfo
setPendingRenameInfo
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.
$this