glossary_entries
Creates, updates, deletes, gets or lists a glossary_entries
resource.
Overview
Name | glossary_entries |
Type | Resource |
Id | google.translate.glossary_entries |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the entry. Format: projects/*/locations/*/glossaries/*/glossaryEntries/* |
description | string | Describes the glossary entry. |
termsPair | object | Represents a single entry for an unidirectional glossary. |
termsSet | object | Represents a single entry for an equivalent term set glossary. This is used for equivalent term sets where each term can be replaced by the other terms in the set. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_glossaries_glossary_entries_get | SELECT | glossariesId, glossaryEntriesId, locationsId, projectsId | Gets a single glossary entry by the given id. |
projects_locations_glossaries_glossary_entries_list | SELECT | glossariesId, locationsId, projectsId | List the entries for the glossary. |
projects_locations_glossaries_glossary_entries_create | INSERT | glossariesId, locationsId, projectsId | Creates a glossary entry. |
projects_locations_glossaries_glossary_entries_delete | DELETE | glossariesId, glossaryEntriesId, locationsId, projectsId | Deletes a single entry from the glossary |
projects_locations_glossaries_glossary_entries_patch | UPDATE | glossariesId, glossaryEntriesId, locationsId, projectsId | Updates a glossary entry. |
SELECT
examples
List the entries for the glossary.
SELECT
name,
description,
termsPair,
termsSet
FROM google.translate.glossary_entries
WHERE glossariesId = '{{ glossariesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new glossary_entries
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.translate.glossary_entries (
glossariesId,
locationsId,
projectsId,
name,
termsPair,
termsSet,
description
)
SELECT
'{{ glossariesId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ termsPair }}',
'{{ termsSet }}',
'{{ description }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: termsPair
value:
- name: sourceTerm
value:
- name: languageCode
value: string
- name: text
value: string
- name: termsSet
value:
- name: terms
value:
- - name: languageCode
value: string
- name: text
value: string
- name: description
value: string
UPDATE
example
Updates a glossary_entries
resource.
/*+ update */
UPDATE google.translate.glossary_entries
SET
name = '{{ name }}',
termsPair = '{{ termsPair }}',
termsSet = '{{ termsSet }}',
description = '{{ description }}'
WHERE
glossariesId = '{{ glossariesId }}'
AND glossaryEntriesId = '{{ glossaryEntriesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified glossary_entries
resource.
/*+ delete */
DELETE FROM google.translate.glossary_entries
WHERE glossariesId = '{{ glossariesId }}'
AND glossaryEntriesId = '{{ glossaryEntriesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';