Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.translate/v3beta1.getGlossary
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets a glossary. Returns NOT_FOUND, if the glossary doesn’t exist.
Using getGlossary
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGlossary(args: GetGlossaryArgs, opts?: InvokeOptions): Promise<GetGlossaryResult>
function getGlossaryOutput(args: GetGlossaryOutputArgs, opts?: InvokeOptions): Output<GetGlossaryResult>def get_glossary(glossary_id: Optional[str] = None,
                 location: Optional[str] = None,
                 project: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetGlossaryResult
def get_glossary_output(glossary_id: Optional[pulumi.Input[str]] = None,
                 location: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetGlossaryResult]func LookupGlossary(ctx *Context, args *LookupGlossaryArgs, opts ...InvokeOption) (*LookupGlossaryResult, error)
func LookupGlossaryOutput(ctx *Context, args *LookupGlossaryOutputArgs, opts ...InvokeOption) LookupGlossaryResultOutput> Note: This function is named LookupGlossary in the Go SDK.
public static class GetGlossary 
{
    public static Task<GetGlossaryResult> InvokeAsync(GetGlossaryArgs args, InvokeOptions? opts = null)
    public static Output<GetGlossaryResult> Invoke(GetGlossaryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGlossaryResult> getGlossary(GetGlossaryArgs args, InvokeOptions options)
public static Output<GetGlossaryResult> getGlossary(GetGlossaryArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:translate/v3beta1:getGlossary
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GlossaryId string
- Location string
- Project string
- GlossaryId string
- Location string
- Project string
- glossaryId String
- location String
- project String
- glossaryId string
- location string
- project string
- glossary_id str
- location str
- project str
- glossaryId String
- location String
- project String
getGlossary Result
The following output properties are available:
- EndTime string
- When the glossary creation was finished.
- EntryCount int
- The number of entries defined in the glossary.
- InputConfig Pulumi.Google Native. Translate. V3Beta1. Outputs. Glossary Input Config Response 
- Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
- LanguageCodes Pulumi.Set Google Native. Translate. V3Beta1. Outputs. Language Codes Set Response 
- Used with equivalent term set glossaries.
- LanguagePair Pulumi.Google Native. Translate. V3Beta1. Outputs. Language Code Pair Response 
- Used with unidirectional glossaries.
- Name string
- The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
- SubmitTime string
- When CreateGlossary was called.
- EndTime string
- When the glossary creation was finished.
- EntryCount int
- The number of entries defined in the glossary.
- InputConfig GlossaryInput Config Response 
- Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
- LanguageCodes LanguageSet Codes Set Response 
- Used with equivalent term set glossaries.
- LanguagePair LanguageCode Pair Response 
- Used with unidirectional glossaries.
- Name string
- The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
- SubmitTime string
- When CreateGlossary was called.
- endTime String
- When the glossary creation was finished.
- entryCount Integer
- The number of entries defined in the glossary.
- inputConfig GlossaryInput Config Response 
- Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
- languageCodes LanguageSet Codes Set Response 
- Used with equivalent term set glossaries.
- languagePair LanguageCode Pair Response 
- Used with unidirectional glossaries.
- name String
- The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
- submitTime String
- When CreateGlossary was called.
- endTime string
- When the glossary creation was finished.
- entryCount number
- The number of entries defined in the glossary.
- inputConfig GlossaryInput Config Response 
- Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
- languageCodes LanguageSet Codes Set Response 
- Used with equivalent term set glossaries.
- languagePair LanguageCode Pair Response 
- Used with unidirectional glossaries.
- name string
- The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
- submitTime string
- When CreateGlossary was called.
- end_time str
- When the glossary creation was finished.
- entry_count int
- The number of entries defined in the glossary.
- input_config GlossaryInput Config Response 
- Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
- language_codes_ Languageset Codes Set Response 
- Used with equivalent term set glossaries.
- language_pair LanguageCode Pair Response 
- Used with unidirectional glossaries.
- name str
- The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
- submit_time str
- When CreateGlossary was called.
- endTime String
- When the glossary creation was finished.
- entryCount Number
- The number of entries defined in the glossary.
- inputConfig Property Map
- Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
- languageCodes Property MapSet 
- Used with equivalent term set glossaries.
- languagePair Property Map
- Used with unidirectional glossaries.
- name String
- The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
- submitTime String
- When CreateGlossary was called.
Supporting Types
GcsSourceResponse  
- InputUri string
- Source data URI. For example, gs://my_bucket/my_object.
- InputUri string
- Source data URI. For example, gs://my_bucket/my_object.
- inputUri String
- Source data URI. For example, gs://my_bucket/my_object.
- inputUri string
- Source data URI. For example, gs://my_bucket/my_object.
- input_uri str
- Source data URI. For example, gs://my_bucket/my_object.
- inputUri String
- Source data URI. For example, gs://my_bucket/my_object.
GlossaryInputConfigResponse   
- GcsSource Pulumi.Google Native. Translate. V3Beta1. Inputs. Gcs Source Response 
- Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (.tsv/.csv): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
- GcsSource GcsSource Response 
- Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (.tsv/.csv): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
- gcsSource GcsSource Response 
- Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (.tsv/.csv): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
- gcsSource GcsSource Response 
- Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (.tsv/.csv): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
- gcs_source GcsSource Response 
- Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (.tsv/.csv): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
- gcsSource Property Map
- Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (.tsv/.csv): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (.tmx): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (.csv): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - glossaries.
LanguageCodePairResponse   
- SourceLanguage stringCode 
- The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
- TargetLanguage stringCode 
- The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
- SourceLanguage stringCode 
- The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
- TargetLanguage stringCode 
- The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
- sourceLanguage StringCode 
- The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
- targetLanguage StringCode 
- The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
- sourceLanguage stringCode 
- The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
- targetLanguage stringCode 
- The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
- source_language_ strcode 
- The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
- target_language_ strcode 
- The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
- sourceLanguage StringCode 
- The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
- targetLanguage StringCode 
- The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
LanguageCodesSetResponse   
- LanguageCodes List<string>
- The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
- LanguageCodes []string
- The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
- languageCodes List<String>
- The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
- languageCodes string[]
- The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
- language_codes Sequence[str]
- The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
- languageCodes List<String>
- The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi