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:
- Glossary
Id string - Description string
- Describes the glossary entry.
- Location string
- Name string
- The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
- Project string
- Terms
Pair Pulumi.Google Native. Translate. V3. Inputs. Glossary Terms Pair - Used for an unidirectional glossary.
- Terms
Set Pulumi.Google Native. Translate. V3. Inputs. Glossary Terms Set - Used for an equivalent term sets glossary.
- Glossary
Id string - Description string
- Describes the glossary entry.
- Location string
- Name string
- The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
- Project string
- Terms
Pair GlossaryTerms Pair Args - Used for an unidirectional glossary.
- Terms
Set GlossaryTerms Set Args - Used for an equivalent term sets glossary.
- glossary
Id String - description String
- Describes the glossary entry.
- location String
- name String
- The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
- project String
- terms
Pair GlossaryTerms Pair - Used for an unidirectional glossary.
- terms
Set GlossaryTerms Set - Used for an equivalent term sets glossary.
- glossary
Id string - description string
- Describes the glossary entry.
- location string
- name string
- The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
- project string
- terms
Pair GlossaryTerms Pair - Used for an unidirectional glossary.
- terms
Set 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.
- glossary
Id String - description String
- Describes the glossary entry.
- location String
- name String
- The resource name of the entry. Format: "projects//locations//glossaries//glossaryEntries/"
- project String
- terms
Pair Property Map - Used for an unidirectional glossary.
- terms
Set 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
- Language
Code string - The language for this glossary term.
- Text string
- The text for the glossary term.
- Language
Code string - The language for this glossary term.
- Text string
- The text for the glossary term.
- language
Code String - The language for this glossary term.
- text String
- The text for the glossary term.
- language
Code 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.
- language
Code String - The language for this glossary term.
- text String
- The text for the glossary term.
GlossaryTermResponse, GlossaryTermResponseArgs
- Language
Code string - The language for this glossary term.
- Text string
- The text for the glossary term.
- Language
Code string - The language for this glossary term.
- Text string
- The text for the glossary term.
- language
Code String - The language for this glossary term.
- text String
- The text for the glossary term.
- language
Code 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.
- language
Code String - The language for this glossary term.
- text String
- The text for the glossary term.
GlossaryTermsPair, GlossaryTermsPairArgs
- Source
Term Pulumi.Google Native. Translate. V3. Inputs. Glossary Term - The source term is the term that will get match in the text,
- Target
Term Pulumi.Google Native. Translate. V3. Inputs. Glossary Term - 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.
- 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.
- 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.
- 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.
- source
Term Property Map - The source term is the term that will get match in the text,
- target
Term Property Map - The term that will replace the match source term.
GlossaryTermsPairResponse, GlossaryTermsPairResponseArgs
- Source
Term Pulumi.Google Native. Translate. V3. Inputs. Glossary Term Response - The source term is the term that will get match in the text,
- Target
Term Pulumi.Google Native. Translate. V3. Inputs. Glossary Term 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.
- 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.
- 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.
- 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.
- source
Term Property Map - The source term is the term that will get match in the text,
- target
Term 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
[]Glossary
Term - Each term in the set represents a term that can be replaced by the other terms.
- terms
List<Glossary
Term> - Each term in the set represents a term that can be replaced by the other terms.
- terms
Glossary
Term[] - Each term in the set represents a term that can be replaced by the other terms.
- terms
Sequence[Glossary
Term] - 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
[]Glossary
Term Response - Each term in the set represents a term that can be replaced by the other terms.
- terms
List<Glossary
Term Response> - Each term in the set represents a term that can be replaced by the other terms.
- terms
Glossary
Term Response[] - Each term in the set represents a term that can be replaced by the other terms.
- terms
Sequence[Glossary
Term 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.