1. Packages
  2. Google Cloud Native
  3. API Docs
  4. translate
  5. translate/v3
  6. GlossaryEntry

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/v3.GlossaryEntry

Explore with Pulumi AI

google-native logo

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

    Creates a glossary entry.

    Create GlossaryEntry Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GlossaryEntry(name: string, args: GlossaryEntryArgs, opts?: CustomResourceOptions);
    @overload
    def GlossaryEntry(resource_name: str,
                      args: GlossaryEntryArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def GlossaryEntry(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      glossary_id: Optional[str] = None,
                      description: Optional[str] = None,
                      location: Optional[str] = None,
                      name: Optional[str] = None,
                      project: Optional[str] = None,
                      terms_pair: Optional[GlossaryTermsPairArgs] = None,
                      terms_set: Optional[GlossaryTermsSetArgs] = None)
    func NewGlossaryEntry(ctx *Context, name string, args GlossaryEntryArgs, opts ...ResourceOption) (*GlossaryEntry, error)
    public GlossaryEntry(string name, GlossaryEntryArgs args, CustomResourceOptions? opts = null)
    public GlossaryEntry(String name, GlossaryEntryArgs args)
    public GlossaryEntry(String name, GlossaryEntryArgs args, CustomResourceOptions options)
    
    type: google-native:translate/v3:GlossaryEntry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GlossaryEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GlossaryEntryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GlossaryEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GlossaryEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GlossaryEntryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var glossaryEntryResource = new GoogleNative.Translate.V3.GlossaryEntry("glossaryEntryResource", new()
    {
        GlossaryId = "string",
        Description = "string",
        Location = "string",
        Name = "string",
        Project = "string",
        TermsPair = new GoogleNative.Translate.V3.Inputs.GlossaryTermsPairArgs
        {
            SourceTerm = new GoogleNative.Translate.V3.Inputs.GlossaryTermArgs
            {
                LanguageCode = "string",
                Text = "string",
            },
            TargetTerm = new GoogleNative.Translate.V3.Inputs.GlossaryTermArgs
            {
                LanguageCode = "string",
                Text = "string",
            },
        },
        TermsSet = new GoogleNative.Translate.V3.Inputs.GlossaryTermsSetArgs
        {
            Terms = new[]
            {
                new GoogleNative.Translate.V3.Inputs.GlossaryTermArgs
                {
                    LanguageCode = "string",
                    Text = "string",
                },
            },
        },
    });
    
    example, err := translate.NewGlossaryEntry(ctx, "glossaryEntryResource", &translate.GlossaryEntryArgs{
    GlossaryId: pulumi.String("string"),
    Description: pulumi.String("string"),
    Location: pulumi.String("string"),
    Name: pulumi.String("string"),
    Project: pulumi.String("string"),
    TermsPair: &translate.GlossaryTermsPairArgs{
    SourceTerm: &translate.GlossaryTermArgs{
    LanguageCode: pulumi.String("string"),
    Text: pulumi.String("string"),
    },
    TargetTerm: &translate.GlossaryTermArgs{
    LanguageCode: pulumi.String("string"),
    Text: pulumi.String("string"),
    },
    },
    TermsSet: &translate.GlossaryTermsSetArgs{
    Terms: translate.GlossaryTermArray{
    &translate.GlossaryTermArgs{
    LanguageCode: pulumi.String("string"),
    Text: pulumi.String("string"),
    },
    },
    },
    })
    
    var glossaryEntryResource = new GlossaryEntry("glossaryEntryResource", GlossaryEntryArgs.builder()
        .glossaryId("string")
        .description("string")
        .location("string")
        .name("string")
        .project("string")
        .termsPair(GlossaryTermsPairArgs.builder()
            .sourceTerm(GlossaryTermArgs.builder()
                .languageCode("string")
                .text("string")
                .build())
            .targetTerm(GlossaryTermArgs.builder()
                .languageCode("string")
                .text("string")
                .build())
            .build())
        .termsSet(GlossaryTermsSetArgs.builder()
            .terms(GlossaryTermArgs.builder()
                .languageCode("string")
                .text("string")
                .build())
            .build())
        .build());
    
    glossary_entry_resource = google_native.translate.v3.GlossaryEntry("glossaryEntryResource",
        glossary_id="string",
        description="string",
        location="string",
        name="string",
        project="string",
        terms_pair=google_native.translate.v3.GlossaryTermsPairArgs(
            source_term=google_native.translate.v3.GlossaryTermArgs(
                language_code="string",
                text="string",
            ),
            target_term=google_native.translate.v3.GlossaryTermArgs(
                language_code="string",
                text="string",
            ),
        ),
        terms_set=google_native.translate.v3.GlossaryTermsSetArgs(
            terms=[google_native.translate.v3.GlossaryTermArgs(
                language_code="string",
                text="string",
            )],
        ))
    
    const glossaryEntryResource = new google_native.translate.v3.GlossaryEntry("glossaryEntryResource", {
        glossaryId: "string",
        description: "string",
        location: "string",
        name: "string",
        project: "string",
        termsPair: {
            sourceTerm: {
                languageCode: "string",
                text: "string",
            },
            targetTerm: {
                languageCode: "string",
                text: "string",
            },
        },
        termsSet: {
            terms: [{
                languageCode: "string",
                text: "string",
            }],
        },
    });
    
    type: google-native:translate/v3:GlossaryEntry
    properties:
        description: string
        glossaryId: string
        location: string
        name: string
        project: string
        termsPair:
            sourceTerm:
                languageCode: string
                text: string
            targetTerm:
                languageCode: string
                text: string
        termsSet:
            terms:
                - languageCode: string
                  text: string
    

    GlossaryEntry Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The GlossaryEntry resource accepts the following input properties:

    GlossaryId string
    Description string
    Describes the glossary entry.
    Location string
    Name string
    The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
    Project string
    TermsPair Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermsPair
    Used for an unidirectional glossary.
    TermsSet Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermsSet
    Used for an equivalent term sets glossary.
    GlossaryId string
    Description string
    Describes the glossary entry.
    Location string
    Name string
    The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
    Project string
    TermsPair GlossaryTermsPairArgs
    Used for an unidirectional glossary.
    TermsSet GlossaryTermsSetArgs
    Used for an equivalent term sets glossary.
    glossaryId String
    description String
    Describes the glossary entry.
    location String
    name String
    The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
    project String
    termsPair GlossaryTermsPair
    Used for an unidirectional glossary.
    termsSet GlossaryTermsSet
    Used for an equivalent term sets glossary.
    glossaryId string
    description string
    Describes the glossary entry.
    location string
    name string
    The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
    project string
    termsPair GlossaryTermsPair
    Used for an unidirectional glossary.
    termsSet GlossaryTermsSet
    Used for an equivalent term sets glossary.
    glossary_id str
    description str
    Describes the glossary entry.
    location str
    name str
    The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
    project str
    terms_pair GlossaryTermsPairArgs
    Used for an unidirectional glossary.
    terms_set GlossaryTermsSetArgs
    Used for an equivalent term sets glossary.
    glossaryId String
    description String
    Describes the glossary entry.
    location String
    name String
    The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
    project String
    termsPair Property Map
    Used for an unidirectional glossary.
    termsSet Property Map
    Used for an equivalent term sets glossary.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GlossaryEntry resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GlossaryTerm, GlossaryTermArgs

    LanguageCode string
    The language for this glossary term.
    Text string
    The text for the glossary term.
    LanguageCode string
    The language for this glossary term.
    Text string
    The text for the glossary term.
    languageCode String
    The language for this glossary term.
    text String
    The text for the glossary term.
    languageCode string
    The language for this glossary term.
    text string
    The text for the glossary term.
    language_code str
    The language for this glossary term.
    text str
    The text for the glossary term.
    languageCode String
    The language for this glossary term.
    text String
    The text for the glossary term.

    GlossaryTermResponse, GlossaryTermResponseArgs

    LanguageCode string
    The language for this glossary term.
    Text string
    The text for the glossary term.
    LanguageCode string
    The language for this glossary term.
    Text string
    The text for the glossary term.
    languageCode String
    The language for this glossary term.
    text String
    The text for the glossary term.
    languageCode string
    The language for this glossary term.
    text string
    The text for the glossary term.
    language_code str
    The language for this glossary term.
    text str
    The text for the glossary term.
    languageCode String
    The language for this glossary term.
    text String
    The text for the glossary term.

    GlossaryTermsPair, GlossaryTermsPairArgs

    SourceTerm Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTerm
    The source term is the term that will get match in the text,
    TargetTerm Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTerm
    The term that will replace the match source term.
    SourceTerm GlossaryTerm
    The source term is the term that will get match in the text,
    TargetTerm GlossaryTerm
    The term that will replace the match source term.
    sourceTerm GlossaryTerm
    The source term is the term that will get match in the text,
    targetTerm GlossaryTerm
    The term that will replace the match source term.
    sourceTerm GlossaryTerm
    The source term is the term that will get match in the text,
    targetTerm GlossaryTerm
    The term that will replace the match source term.
    source_term GlossaryTerm
    The source term is the term that will get match in the text,
    target_term GlossaryTerm
    The term that will replace the match source term.
    sourceTerm Property Map
    The source term is the term that will get match in the text,
    targetTerm Property Map
    The term that will replace the match source term.

    GlossaryTermsPairResponse, GlossaryTermsPairResponseArgs

    SourceTerm Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermResponse
    The source term is the term that will get match in the text,
    TargetTerm Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermResponse
    The term that will replace the match source term.
    SourceTerm GlossaryTermResponse
    The source term is the term that will get match in the text,
    TargetTerm GlossaryTermResponse
    The term that will replace the match source term.
    sourceTerm GlossaryTermResponse
    The source term is the term that will get match in the text,
    targetTerm GlossaryTermResponse
    The term that will replace the match source term.
    sourceTerm GlossaryTermResponse
    The source term is the term that will get match in the text,
    targetTerm GlossaryTermResponse
    The term that will replace the match source term.
    source_term GlossaryTermResponse
    The source term is the term that will get match in the text,
    target_term GlossaryTermResponse
    The term that will replace the match source term.
    sourceTerm Property Map
    The source term is the term that will get match in the text,
    targetTerm Property Map
    The term that will replace the match source term.

    GlossaryTermsSet, GlossaryTermsSetArgs

    Terms List<Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTerm>
    Each term in the set represents a term that can be replaced by the other terms.
    Terms []GlossaryTerm
    Each term in the set represents a term that can be replaced by the other terms.
    terms List<GlossaryTerm>
    Each term in the set represents a term that can be replaced by the other terms.
    terms GlossaryTerm[]
    Each term in the set represents a term that can be replaced by the other terms.
    terms Sequence[GlossaryTerm]
    Each term in the set represents a term that can be replaced by the other terms.
    terms List<Property Map>
    Each term in the set represents a term that can be replaced by the other terms.

    GlossaryTermsSetResponse, GlossaryTermsSetResponseArgs

    Terms List<Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermResponse>
    Each term in the set represents a term that can be replaced by the other terms.
    Terms []GlossaryTermResponse
    Each term in the set represents a term that can be replaced by the other terms.
    terms List<GlossaryTermResponse>
    Each term in the set represents a term that can be replaced by the other terms.
    terms GlossaryTermResponse[]
    Each term in the set represents a term that can be replaced by the other terms.
    terms Sequence[GlossaryTermResponse]
    Each term in the set represents a term that can be replaced by the other terms.
    terms List<Property Map>
    Each term in the set represents a term that can be replaced by the other terms.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    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