CreateTranslatorDetails

class oci.oda.models.CreateTranslatorDetails(**kwargs)

Bases: object

Properties that are required to create a Translator.

Attributes:

TYPE_GOOGLE

A constant which can be used with the type property of a CreateTranslatorDetails.

TYPE_MICROSOFT

A constant which can be used with the type property of a CreateTranslatorDetails.

auth_token

[Required] Gets the auth_token of this CreateTranslatorDetails.

base_url

[Required] Gets the base_url of this CreateTranslatorDetails.

defined_tags

Gets the defined_tags of this CreateTranslatorDetails.

freeform_tags

Gets the freeform_tags of this CreateTranslatorDetails.

properties

Gets the properties of this CreateTranslatorDetails.

type

[Required] Gets the type of this CreateTranslatorDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateTranslatorDetails object with values from keyword arguments.

TYPE_GOOGLE = 'GOOGLE'

A constant which can be used with the type property of a CreateTranslatorDetails. This constant has a value of “GOOGLE”

TYPE_MICROSOFT = 'MICROSOFT'

A constant which can be used with the type property of a CreateTranslatorDetails. This constant has a value of “MICROSOFT”

__init__(**kwargs)

Initializes a new CreateTranslatorDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this CreateTranslatorDetails. Allowed values for this property are: “GOOGLE”, “MICROSOFT”

  • base_url (str) – The value to assign to the base_url property of this CreateTranslatorDetails.

  • auth_token (str) – The value to assign to the auth_token property of this CreateTranslatorDetails.

  • properties (dict(str, str)) – The value to assign to the properties property of this CreateTranslatorDetails.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateTranslatorDetails.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateTranslatorDetails.

property auth_token

[Required] Gets the auth_token of this CreateTranslatorDetails. The authentication token to use when invoking the Translation Service

Returns

The auth_token of this CreateTranslatorDetails.

Return type

str

property base_url

[Required] Gets the base_url of this CreateTranslatorDetails. The base URL for invoking the Translation Service.

Returns

The base_url of this CreateTranslatorDetails.

Return type

str

property defined_tags

Gets the defined_tags of this CreateTranslatorDetails. Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns

The defined_tags of this CreateTranslatorDetails.

Return type

dict(str, dict(str, object))

property freeform_tags

Gets the freeform_tags of this CreateTranslatorDetails. Simple key-value pair that is applied without any predefined name, type, or scope. Example: {“bar-key”: “value”}

Returns

The freeform_tags of this CreateTranslatorDetails.

Return type

dict(str, str)

property properties

Gets the properties of this CreateTranslatorDetails. Properties used when invoking the translation service. Each property is a simple key-value pair.

Returns

The properties of this CreateTranslatorDetails.

Return type

dict(str, str)

property type

[Required] Gets the type of this CreateTranslatorDetails. The Translation Service to use for this Translator.

Allowed values for this property are: “GOOGLE”, “MICROSOFT”

Returns

The type of this CreateTranslatorDetails.

Return type

str