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 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 This property is required. string
The unique name of the resource.
args This property is required. GlossaryEntryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. GlossaryEntryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GlossaryEntryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
            },
        },
    },
});
Copy
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"),
			},
		},
	},
})
Copy
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());
Copy
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",
        }],
    })
Copy
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",
        }],
    },
});
Copy
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
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
Description string
Describes the glossary entry.
Location Changes to this property will trigger replacement. string
Name string
The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
Project Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
Description string
Describes the glossary entry.
Location Changes to this property will trigger replacement. string
Name string
The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
Project Changes to this property will trigger replacement. string
TermsPair GlossaryTermsPairArgs
Used for an unidirectional glossary.
TermsSet GlossaryTermsSetArgs
Used for an equivalent term sets glossary.
glossaryId
This property is required.
Changes to this property will trigger replacement.
String
description String
Describes the glossary entry.
location Changes to this property will trigger replacement. String
name String
The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
project Changes to this property will trigger replacement. String
termsPair GlossaryTermsPair
Used for an unidirectional glossary.
termsSet GlossaryTermsSet
Used for an equivalent term sets glossary.
glossaryId
This property is required.
Changes to this property will trigger replacement.
string
description string
Describes the glossary entry.
location Changes to this property will trigger replacement. string
name string
The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
project Changes to this property will trigger replacement. string
termsPair GlossaryTermsPair
Used for an unidirectional glossary.
termsSet GlossaryTermsSet
Used for an equivalent term sets glossary.
glossary_id
This property is required.
Changes to this property will trigger replacement.
str
description str
Describes the glossary entry.
location Changes to this property will trigger replacement. str
name str
The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
project Changes to this property will trigger replacement. str
terms_pair GlossaryTermsPairArgs
Used for an unidirectional glossary.
terms_set GlossaryTermsSetArgs
Used for an equivalent term sets glossary.
glossaryId
This property is required.
Changes to this property will trigger replacement.
String
description String
Describes the glossary entry.
location Changes to this property will trigger replacement. String
name String
The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
project Changes to this property will trigger replacement. 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 This property is required. string
The language for this glossary term.
Text This property is required. string
The text for the glossary term.
LanguageCode This property is required. string
The language for this glossary term.
Text This property is required. string
The text for the glossary term.
languageCode This property is required. String
The language for this glossary term.
text This property is required. String
The text for the glossary term.
languageCode This property is required. string
The language for this glossary term.
text This property is required. string
The text for the glossary term.
language_code This property is required. str
The language for this glossary term.
text This property is required. str
The text for the glossary term.
languageCode This property is required. String
The language for this glossary term.
text This property is required. 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 This property is required. Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermResponse
The source term is the term that will get match in the text,
TargetTerm This property is required. Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermResponse
The term that will replace the match source term.
SourceTerm This property is required. GlossaryTermResponse
The source term is the term that will get match in the text,
TargetTerm This property is required. GlossaryTermResponse
The term that will replace the match source term.
sourceTerm This property is required. GlossaryTermResponse
The source term is the term that will get match in the text,
targetTerm This property is required. GlossaryTermResponse
The term that will replace the match source term.
sourceTerm This property is required. GlossaryTermResponse
The source term is the term that will get match in the text,
targetTerm This property is required. GlossaryTermResponse
The term that will replace the match source term.
source_term This property is required. GlossaryTermResponse
The source term is the term that will get match in the text,
target_term This property is required. GlossaryTermResponse
The term that will replace the match source term.
sourceTerm This property is required. Property Map
The source term is the term that will get match in the text,
targetTerm This property is required. 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 This property is required. List<Pulumi.GoogleNative.Translate.V3.Inputs.GlossaryTermResponse>
Each term in the set represents a term that can be replaced by the other terms.
Terms This property is required. []GlossaryTermResponse
Each term in the set represents a term that can be replaced by the other terms.
terms This property is required. List<GlossaryTermResponse>
Each term in the set represents a term that can be replaced by the other terms.
terms This property is required. GlossaryTermResponse[]
Each term in the set represents a term that can be replaced by the other terms.
terms This property is required. Sequence[GlossaryTermResponse]
Each term in the set represents a term that can be replaced by the other terms.
terms This property is required. 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.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi