Skip to main content

managed_folders

Creates, updates, deletes, gets or lists a managed_folders resource.

Overview

Namemanaged_folders
TypeResource
Idgoogle.storage.managed_folders

Fields

NameDatatypeDescription
idstringThe ID of the managed folder, including the bucket name and managed folder name.
namestringThe name of the managed folder. Required if not specified by URL parameter.
bucketstringThe name of the bucket containing this managed folder.
createTimestringThe creation time of the managed folder in RFC 3339 format.
kindstringThe kind of item this is. For managed folders, this is always storage#managedFolder.
metagenerationstringThe version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
selfLinkstringThe link to this managed folder.
updateTimestringThe last update time of the managed folder metadata in RFC 3339 format.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbucket, managedFolderReturns metadata of the specified managed folder.
listSELECTbucketLists managed folders in the given bucket.
insertINSERTbucketCreates a new managed folder.
deleteDELETEbucket, managedFolderPermanently deletes a managed folder.

SELECT examples

Lists managed folders in the given bucket.

SELECT
id,
name,
bucket,
createTime,
kind,
metageneration,
selfLink,
updateTime
FROM google.storage.managed_folders
WHERE bucket = '{{ bucket }}';

INSERT example

Use the following StackQL query and manifest file to create a new managed_folders resource.

/*+ create */
INSERT INTO google.storage.managed_folders (
bucket,
bucket,
metageneration,
name
)
SELECT
'{{ bucket }}',
'{{ bucket }}',
'{{ metageneration }}',
'{{ name }}'
;

DELETE example

Deletes the specified managed_folders resource.

/*+ delete */
DELETE FROM google.storage.managed_folders
WHERE bucket = '{{ bucket }}'
AND managedFolder = '{{ managedFolder }}';