Translator¶
-
class
oci.oda.models.
Translator
(**kwargs)¶ Bases:
object
The properties for a Translator.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a Translator. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a Translator. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a Translator. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a Translator. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a Translator. LIFECYCLE_STATE_INACTIVE
A constant which can be used with the lifecycle_state property of a Translator. LIFECYCLE_STATE_UPDATING
A constant which can be used with the lifecycle_state property of a Translator. TYPE_GOOGLE
A constant which can be used with the type property of a Translator. TYPE_MICROSOFT
A constant which can be used with the type property of a Translator. base_url
[Required] Gets the base_url of this Translator. defined_tags
Gets the defined_tags of this Translator. freeform_tags
Gets the freeform_tags of this Translator. id
[Required] Gets the id of this Translator. lifecycle_state
[Required] Gets the lifecycle_state of this Translator. name
[Required] Gets the name of this Translator. properties
Gets the properties of this Translator. time_created
[Required] Gets the time_created of this Translator. time_updated
[Required] Gets the time_updated of this Translator. type
[Required] Gets the type of this Translator. Methods
__init__
(**kwargs)Initializes a new Translator object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Translator. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a Translator. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a Translator. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a Translator. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Translator. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_INACTIVE
= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a Translator. This constant has a value of “INACTIVE”
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a Translator. This constant has a value of “UPDATING”
-
TYPE_GOOGLE
= 'GOOGLE'¶ A constant which can be used with the type property of a Translator. This constant has a value of “GOOGLE”
-
TYPE_MICROSOFT
= 'MICROSOFT'¶ A constant which can be used with the type property of a Translator. This constant has a value of “MICROSOFT”
-
__init__
(**kwargs)¶ Initializes a new Translator object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this Translator.
- type (str) – The value to assign to the type property of this Translator. Allowed values for this property are: “GOOGLE”, “MICROSOFT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- name (str) – The value to assign to the name property of this Translator.
- base_url (str) – The value to assign to the base_url property of this Translator.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Translator. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- properties (dict(str, str)) – The value to assign to the properties property of this Translator.
- time_created (datetime) – The value to assign to the time_created property of this Translator.
- time_updated (datetime) – The value to assign to the time_updated property of this Translator.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Translator.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Translator.
-
base_url
¶ [Required] Gets the base_url of this Translator. The base URL for invoking the Translation Service.
Returns: The base_url of this Translator. Return type: str
Gets the defined_tags of this Translator. Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this Translator. Return type: dict(str, dict(str, object))
Gets the freeform_tags of this Translator. Simple key-value pair that is applied without any predefined name, type, or scope. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this Translator. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this Translator. Unique immutable identifier that was assigned when the Translator was created.
Returns: The id of this Translator. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this Translator. The Translator’s current state.
Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this Translator. Return type: str
-
name
¶ [Required] Gets the name of this Translator. The descriptive name for this Translator.
Returns: The name of this Translator. Return type: str
-
properties
¶ Gets the properties of this Translator. Properties used when invoking the translation service. Each property is a simple key-value pair.
Returns: The properties of this Translator. Return type: dict(str, str)
-
time_created
¶ [Required] Gets the time_created of this Translator. When the resource was created. A date-time string as described in RFC 3339, section 14.29.
Returns: The time_created of this Translator. Return type: datetime
-
time_updated
¶ [Required] Gets the time_updated of this Translator. When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
Returns: The time_updated of this Translator. Return type: datetime
-
type
¶ [Required] Gets the type of this Translator. The Translation Service to use for this Translator.
Allowed values for this property are: “GOOGLE”, “MICROSOFT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this Translator. Return type: str
-