managed_folders
Creates, updates, deletes, gets or lists a managed_folders
resource.
Overview
Name | managed_folders |
Type | Resource |
Id | google.storage.managed_folders |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The ID of the managed folder, including the bucket name and managed folder name. |
name | string | The name of the managed folder. Required if not specified by URL parameter. |
bucket | string | The name of the bucket containing this managed folder. |
createTime | string | The creation time of the managed folder in RFC 3339 format. |
kind | string | The kind of item this is. For managed folders, this is always storage#managedFolder. |
metageneration | string | The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata. |
selfLink | string | The link to this managed folder. |
updateTime | string | The last update time of the managed folder metadata in RFC 3339 format. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | bucket, managedFolder | Returns metadata of the specified managed folder. |
list | SELECT | bucket | Lists managed folders in the given bucket. |
insert | INSERT | bucket | Creates a new managed folder. |
delete | DELETE | bucket, managedFolder | Permanently 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.storage.managed_folders (
bucket,
bucket,
metageneration,
name
)
SELECT
'{{ bucket }}',
'{{ bucket }}',
'{{ metageneration }}',
'{{ name }}'
;
- name: your_resource_model_name
props:
- name: bucket
value: string
- name: id
value: string
- name: kind
value: string
- name: metageneration
value: string
- name: name
value: string
- name: selfLink
value: string
- name: createTime
value: string
- name: updateTime
value: string
DELETE
example
Deletes the specified managed_folders
resource.
/*+ delete */
DELETE FROM google.storage.managed_folders
WHERE bucket = '{{ bucket }}'
AND managedFolder = '{{ managedFolder }}';