Show / Hide Table of Contents

Class CreateTranslatorDetails

Properties that are required to create a Translator.

Inheritance
object
CreateTranslatorDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.OdaService.Models
Assembly: OCI.DotNetSDK.Oda.dll
Syntax
public class CreateTranslatorDetails

Properties

AuthToken

Declaration
[Required(ErrorMessage = "AuthToken is required.")]
[JsonProperty(PropertyName = "authToken")]
public string AuthToken { get; set; }
Property Value
Type Description
string

The authentication token to use when invoking the Translation Service

Remarks

Required

BaseUrl

Declaration
[Required(ErrorMessage = "BaseUrl is required.")]
[JsonProperty(PropertyName = "baseUrl")]
public string BaseUrl { get; set; }
Property Value
Type Description
string

The base URL for invoking the Translation Service.

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace": {"bar-key": "value"}}

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Simple key-value pair that is applied without any predefined name, type, or scope. Example: {"bar-key": "value"}

Properties

Declaration
[JsonProperty(PropertyName = "properties")]
public Dictionary<string, string> Properties { get; set; }
Property Value
Type Description
Dictionary<string, string>

Properties used when invoking the translation service. Each property is a simple key-value pair.

Type

Declaration
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(StringEnumConverter))]
public TranslationService? Type { get; set; }
Property Value
Type Description
TranslationService?

The Translation Service to use for this Translator.

Remarks

Required

In this article
Back to top