Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.translate/v3.GlossaryEntry
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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={
        "source_term": {
            "language_code": "string",
            "text": "string",
        },
        "target_term": {
            "language_code": "string",
            "text": "string",
        },
    },
    terms_set={
        "terms": [{
            "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.Google Native. Translate. V3. Inputs. Glossary Terms Pair 
- Used for an unidirectional glossary.
- TermsSet Pulumi.Google Native. Translate. V3. Inputs. Glossary Terms Set 
- 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 GlossaryTerms Pair Args 
- Used for an unidirectional glossary.
- TermsSet GlossaryTerms Set Args 
- 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 GlossaryTerms Pair 
- Used for an unidirectional glossary.
- termsSet GlossaryTerms Set 
- 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 GlossaryTerms Pair 
- Used for an unidirectional glossary.
- termsSet GlossaryTerms Set 
- 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 GlossaryTerms Pair Args 
- Used for an unidirectional glossary.
- terms_set GlossaryTerms Set Args 
- 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.Google Native. Translate. V3. Inputs. Glossary Term 
- The source term is the term that will get match in the text,
- TargetTerm Pulumi.Google Native. Translate. V3. Inputs. Glossary Term 
- 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.Google Native. Translate. V3. Inputs. Glossary Term Response 
- The source term is the term that will get match in the text,
- TargetTerm Pulumi.Google Native. Translate. V3. Inputs. Glossary Term Response 
- The term that will replace the match source term.
- SourceTerm GlossaryTerm Response 
- The source term is the term that will get match in the text,
- TargetTerm GlossaryTerm Response 
- The term that will replace the match source term.
- sourceTerm GlossaryTerm Response 
- The source term is the term that will get match in the text,
- targetTerm GlossaryTerm Response 
- The term that will replace the match source term.
- sourceTerm GlossaryTerm Response 
- The source term is the term that will get match in the text,
- targetTerm GlossaryTerm Response 
- The term that will replace the match source term.
- source_term GlossaryTerm Response 
- The source term is the term that will get match in the text,
- target_term GlossaryTerm Response 
- 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.Google Native. Translate. V3. Inputs. Glossary Term> 
- 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.Google Native. Translate. V3. Inputs. Glossary Term Response> 
- Each term in the set represents a term that can be replaced by the other terms.
- Terms
[]GlossaryTerm Response 
- Each term in the set represents a term that can be replaced by the other terms.
- terms
List<GlossaryTerm Response> 
- Each term in the set represents a term that can be replaced by the other terms.
- terms
GlossaryTerm Response[] 
- Each term in the set represents a term that can be replaced by the other terms.
- terms
Sequence[GlossaryTerm Response] 
- 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 Cloud Native is in preview. Google Cloud Classic is fully supported.