Folders
class Folders extends Resource (View source)
The "folders" collection of methods.
Typical usage is:
$storageService = new Google\Service\Storage(...);
$folders = $storageService->folders;
Methods
Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled. (folders.delete)
Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled. (folders.get)
Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled. (folders.listFolders)
Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled. (folders.rename)
Details
delete(string $bucket, string $folder, array $optParams = [])
Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled. (folders.delete)
Folder
get(string $bucket, string $folder, array $optParams = [])
Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled. (folders.get)
Folder
insert(string $bucket, Folder $postBody, array $optParams = [])
Creates a new folder. Only applicable to buckets with hierarchical namespace enabled. (folders.insert)
Folders
listFolders(string $bucket, array $optParams = [])
Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled. (folders.listFolders)
GoogleLongrunningOperation
rename(string $bucket, string $sourceFolder, string $destinationFolder, array $optParams = [])
Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled. (folders.rename)