Skip to main content

saved_queries

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

Overview

Namesaved_queries
TypeResource
Idgoogle.aiplatform.saved_queries

Fields

NameDatatypeDescription
namestringOutput only. Resource name of the SavedQuery.
annotationFilterstringOutput only. Filters on the Annotations in the dataset.
annotationSpecCountintegerOutput only. Number of AnnotationSpecs in the context of the SavedQuery.
createTimestringOutput only. Timestamp when this SavedQuery was created.
displayNamestringRequired. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.
etagstringUsed to perform a consistent read-modify-write update. If not set, a blind "overwrite" update happens.
metadataanySome additional information about the SavedQuery.
problemTypestringRequired. Problem type of the SavedQuery. Allowed values: IMAGE_CLASSIFICATION_SINGLE_LABEL IMAGE_CLASSIFICATION_MULTI_LABEL IMAGE_BOUNDING_POLY IMAGE_BOUNDING_BOX TEXT_CLASSIFICATION_SINGLE_LABEL TEXT_CLASSIFICATION_MULTI_LABEL TEXT_EXTRACTION TEXT_SENTIMENT VIDEO_CLASSIFICATION VIDEO_OBJECT_TRACKING
supportAutomlTrainingbooleanOutput only. If the Annotations belonging to the SavedQuery can be used for AutoML training.
updateTimestringOutput only. Timestamp when SavedQuery was last updated.

Methods

NameAccessible byRequired ParamsDescription
listSELECTdatasetsId, locationsId, projectsIdLists SavedQueries in a Dataset.
deleteDELETEdatasetsId, locationsId, projectsId, savedQueriesIdDeletes a SavedQuery.

SELECT examples

Lists SavedQueries in a Dataset.

SELECT
name,
annotationFilter,
annotationSpecCount,
createTime,
displayName,
etag,
metadata,
problemType,
supportAutomlTraining,
updateTime
FROM google.aiplatform.saved_queries
WHERE datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified saved_queries resource.

/*+ delete */
DELETE FROM google.aiplatform.saved_queries
WHERE datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND savedQueriesId = '{{ savedQueriesId }}';