Skip to main content

team_folders

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

Overview​

Nameteam_folders
TypeResource
Idgoogle.dataform.team_folders

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The TeamFolder's name.
createTimestring (google-datetime)Output only. The timestamp of when the TeamFolder was created.
creatorIamPrincipalstringOutput only. The IAM principal identifier of the creator of the TeamFolder.
displayNamestringRequired. The TeamFolder's user-friendly name.
internalMetadatastringOutput only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
updateTimestring (google-datetime)Output only. The timestamp of when the TeamFolder was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, teamFoldersIdFetches a single TeamFolder.
query_contentsselectprojectsId, locationsId, teamFoldersIdfilter, orderBy, pageSize, pageTokenReturns the contents of a given TeamFolder.
createinsertprojectsId, locationsIdCreates a new TeamFolder in a given project and location.
patchupdateprojectsId, locationsId, teamFoldersIdupdateMaskUpdates a single TeamFolder.
deletedeleteprojectsId, locationsId, teamFoldersIdDeletes a single TeamFolder.
searchexecprojectsId, locationsIdfilter, orderBy, pageSize, pageTokenReturns all TeamFolders in a given location that the caller has access to and match the provided filter.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
teamFoldersIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Fetches a single TeamFolder.

SELECT
name,
createTime,
creatorIamPrincipal,
displayName,
internalMetadata,
updateTime
FROM google.dataform.team_folders
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND teamFoldersId = '{{ teamFoldersId }}' -- required
;

INSERT examples​

Creates a new TeamFolder in a given project and location.

INSERT INTO google.dataform.team_folders (
data__displayName,
data__name,
projectsId,
locationsId
)
SELECT
'{{ displayName }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
createTime,
creatorIamPrincipal,
displayName,
internalMetadata,
updateTime
;

UPDATE examples​

Updates a single TeamFolder.

UPDATE google.dataform.team_folders
SET
data__displayName = '{{ displayName }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND teamFoldersId = '{{ teamFoldersId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
creatorIamPrincipal,
displayName,
internalMetadata,
updateTime;

DELETE examples​

Deletes a single TeamFolder.

DELETE FROM google.dataform.team_folders
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND teamFoldersId = '{{ teamFoldersId }}' --required
;

Lifecycle Methods​

Returns all TeamFolders in a given location that the caller has access to and match the provided filter.

EXEC google.dataform.team_folders.search
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@filter='{{ filter }}',
@orderBy='{{ orderBy }}',
@pageSize='{{ pageSize }}',
@pageToken='{{ pageToken }}'
;