custom_classes
Creates, updates, deletes, gets or lists a custom_classes
resource.
Overview
Name | custom_classes |
Type | Resource |
Id | google.speech.custom_classes |
Fields
Name | Datatype | Description |
---|---|---|
value | string | The class item's value. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | customClassesId, locationsId, projectsId | Get a custom class. |
list | SELECT | locationsId, projectsId | List custom classes. |
create | INSERT | locationsId, projectsId | Create a custom class. |
delete | DELETE | customClassesId, locationsId, projectsId | Delete a custom class. |
patch | UPDATE | customClassesId, locationsId, projectsId | Update a custom class. |
SELECT
examples
List custom classes.
SELECT
value
FROM google.speech.custom_classes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new custom_classes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.speech.custom_classes (
locationsId,
projectsId,
customClassId,
customClass
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ customClassId }}',
'{{ customClass }}'
;
- name: your_resource_model_name
props:
- name: customClassId
value: string
- name: customClass
value:
- name: name
value: string
- name: customClassId
value: string
- name: items
value:
- - name: value
value: string
- name: kmsKeyName
value: string
- name: kmsKeyVersionName
value: string
- name: uid
value: string
- name: displayName
value: string
- name: state
value: string
- name: deleteTime
value: string
- name: expireTime
value: string
- name: annotations
value: object
- name: etag
value: string
- name: reconciling
value: boolean
UPDATE
example
Updates a custom_classes
resource.
/*+ update */
UPDATE google.speech.custom_classes
SET
name = '{{ name }}',
customClassId = '{{ customClassId }}',
items = '{{ items }}'
WHERE
customClassesId = '{{ customClassesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified custom_classes
resource.
/*+ delete */
DELETE FROM google.speech.custom_classes
WHERE customClassesId = '{{ customClassesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';