annotation_spec_sets
Creates, updates, deletes, gets or lists a annotation_spec_sets
resource.
Overview
Name | annotation_spec_sets |
Type | Resource |
Id | google.datalabeling.annotation_spec_sets |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}" |
description | string | Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long. |
annotationSpecs | array | Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task. |
blockingResources | array | Output only. The names of any related resources that are blocking changes to the annotation spec set. |
displayName | string | Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_annotation_spec_sets_get | SELECT | annotationSpecSetsId, projectsId | Gets an annotation spec set by resource name. |
projects_annotation_spec_sets_list | SELECT | projectsId | Lists annotation spec sets for a project. Pagination is supported. |
projects_annotation_spec_sets_create | INSERT | projectsId | Creates an annotation spec set by providing a set of labels. |
projects_annotation_spec_sets_delete | DELETE | annotationSpecSetsId, projectsId | Deletes an annotation spec set by resource name. |
SELECT
examples
Lists annotation spec sets for a project. Pagination is supported.
SELECT
name,
description,
annotationSpecs,
blockingResources,
displayName
FROM google.datalabeling.annotation_spec_sets
WHERE projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new annotation_spec_sets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.datalabeling.annotation_spec_sets (
projectsId,
annotationSpecSet
)
SELECT
'{{ projectsId }}',
'{{ annotationSpecSet }}'
;
- name: your_resource_model_name
props:
- name: annotationSpecSet
value:
- name: name
value: string
- name: displayName
value: string
- name: description
value: string
- name: annotationSpecs
value:
- - name: displayName
value: string
- name: description
value: string
- name: index
value: integer
- name: blockingResources
value:
- string
DELETE
example
Deletes the specified annotation_spec_sets
resource.
/*+ delete */
DELETE FROM google.datalabeling.annotation_spec_sets
WHERE annotationSpecSetsId = '{{ annotationSpecSetsId }}'
AND projectsId = '{{ projectsId }}';