o
    ɶd4                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   sX  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
Zdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd  Zejd!d  Zed"d# Zejd$d# Zed%d& Zejd'd& Zed(d) Zejd*d) Zd+d, Zd-d. Zd/d0 Zd1S )2
Translatorz*
    The properties for a Translator.
    GOOGLE	MICROSOFTCREATINGUPDATINGACTIVEINACTIVEDELETINGDELETEDFAILEDc                 K   sx   ddddddddddd
| _ dddd	d
dddddd
| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _dS )a  
        Initializes a new Translator object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this Translator.
        :type id: str

        :param type:
            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'.
        :type type: str

        :param name:
            The value to assign to the name property of this Translator.
        :type name: str

        :param base_url:
            The value to assign to the base_url property of this Translator.
        :type base_url: str

        :param lifecycle_state:
            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'.
        :type lifecycle_state: str

        :param properties:
            The value to assign to the properties property of this Translator.
        :type properties: dict(str, str)

        :param time_created:
            The value to assign to the time_created property of this Translator.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this Translator.
        :type time_updated: datetime

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Translator.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Translator.
        :type defined_tags: dict(str, dict(str, object))

        strzdict(str, str)datetimezdict(str, dict(str, object)))
idtypenamebase_urllifecycle_state
propertiestime_createdtime_updatedfreeform_tagsdefined_tagsr   r   r   ZbaseUrlZlifecycleStater   ZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_type_name	_base_url_lifecycle_state_properties_time_created_time_updated_freeform_tags_defined_tags)selfkwargs r(   =usr/lib/python3.10/site-packages/oci/oda/models/translator.py__init__6   s@   3
zTranslator.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Translator.
        Unique immutable identifier that was assigned when the Translator was created.


        :return: The id of this Translator.
        :rtype: str
        r   r&   r(   r(   r)   r         
zTranslator.idc                 C   
   || _ dS )z
        Sets the id of this Translator.
        Unique immutable identifier that was assigned when the Translator was created.


        :param id: The id of this Translator.
        :type: str
        Nr,   )r&   r   r(   r(   r)   r         

c                 C   r+   )a|  
        **[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'.


        :return: The type of this Translator.
        :rtype: str
        )r   r-   r(   r(   r)   r         zTranslator.typec                 C   s    ddg}t ||sd}|| _dS )z
        Sets the type of this Translator.
        The Translation Service to use for this Translator.


        :param type: The type of this Translator.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r   )r&   r   allowed_valuesr(   r(   r)   r         


c                 C   r+   )z
        **[Required]** Gets the name of this Translator.
        The descriptive name for this Translator.


        :return: The name of this Translator.
        :rtype: str
        r   r-   r(   r(   r)   r      r.   zTranslator.namec                 C   r/   )z
        Sets the name of this Translator.
        The descriptive name for this Translator.


        :param name: The name of this Translator.
        :type: str
        Nr5   )r&   r   r(   r(   r)   r      r0   c                 C   r+   )z
        **[Required]** Gets the base_url of this Translator.
        The base URL for invoking the Translation Service.


        :return: The base_url of this Translator.
        :rtype: str
        r   r-   r(   r(   r)   r      r.   zTranslator.base_urlc                 C   r/   )z
        Sets the base_url of this Translator.
        The base URL for invoking the Translation Service.


        :param base_url: The base_url of this Translator.
        :type: str
        Nr6   )r&   r   r(   r(   r)   r      r0   c                 C   r+   )a  
        **[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'.


        :return: The lifecycle_state of this Translator.
        :rtype: str
        )r    r-   r(   r(   r)   r      r1   zTranslator.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Translator.
        The Translator's current state.


        :param lifecycle_state: The lifecycle_state of this Translator.
        :type: str
        )r	   r
   r   r   r   r   r   r2   N)r   r    )r&   r   r3   r(   r(   r)   r     r4   c                 C   r+   )z
        Gets the properties of this Translator.
        Properties used when invoking the translation service.
        Each property is a simple key-value pair.


        :return: The properties of this Translator.
        :rtype: dict(str, str)
        r!   r-   r(   r(   r)   r        zTranslator.propertiesc                 C   r/   )a  
        Sets the properties of this Translator.
        Properties used when invoking the translation service.
        Each property is a simple key-value pair.


        :param properties: The properties of this Translator.
        :type: dict(str, str)
        Nr7   )r&   r   r(   r(   r)   r        
c                 C   r+   )a1  
        **[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.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_created of this Translator.
        :rtype: datetime
        r"   r-   r(   r(   r)   r   +     zTranslator.time_createdc                 C   r/   )a-  
        Sets the time_created of this Translator.
        When the resource was created. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_created: The time_created of this Translator.
        :type: datetime
        Nr:   )r&   r   r(   r(   r)   r   9     
c                 C   r+   )a6  
        **[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.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_updated of this Translator.
        :rtype: datetime
        r#   r-   r(   r(   r)   r   G  r;   zTranslator.time_updatedc                 C   r/   )a2  
        Sets the time_updated of this Translator.
        When the resource was last updated. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_updated: The time_updated of this Translator.
        :type: datetime
        Nr=   )r&   r   r(   r(   r)   r   U  r<   c                 C   r+   )a  
        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"}`


        :return: The freeform_tags of this Translator.
        :rtype: dict(str, str)
        r$   r-   r(   r(   r)   r   c  r8   zTranslator.freeform_tagsc                 C   r/   )a#  
        Sets the freeform_tags of this Translator.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Translator.
        :type: dict(str, str)
        Nr>   )r&   r   r(   r(   r)   r   p  r9   c                 C   r+   )a1  
        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"}}`


        :return: The defined_tags of this Translator.
        :rtype: dict(str, dict(str, object))
        r%   r-   r(   r(   r)   r   }  r8   zTranslator.defined_tagsc                 C   r/   )a<  
        Sets the defined_tags of this Translator.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Translator.
        :type: dict(str, dict(str, object))
        Nr?   )r&   r   r(   r(   r)   r     r9   c                 C   s   t | S N)r   r-   r(   r(   r)   __repr__  s   zTranslator.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r&   otherr(   r(   r)   __eq__  s   zTranslator.__eq__c                 C   s
   | |k S r@   r(   rC   r(   r(   r)   __ne__  s   
zTranslator.__ne__N)__name__
__module____qualname____doc__ZTYPE_GOOGLEZTYPE_MICROSOFTZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr*   propertyr   setterr   r   r   r   r   r   r   r   r   rA   rE   rF   r(   r(   r(   r)   r      sn    W



















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r(   r(   r(   r)   <module>   s   