o
    ɶdB                     @   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                   @   s  e 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ed(d) Zejd*d) Zed+d, Zejd-d, Zed.d/ Zejd0d/ Zed1d2 Zejd3d2 Zd4d5 Zd6d7 Zd8d9 Zd:S );Endpointz&
    Description of the endpoint.
    DELETINGDELETEDFAILEDCREATINGACTIVEUPDATINGc                 K   s   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| _d| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _dS )a	  
        Initializes a new Endpoint 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 Endpoint.
        :type id: str

        :param display_name:
            The value to assign to the display_name property of this Endpoint.
        :type display_name: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Endpoint.
        :type compartment_id: str

        :param project_id:
            The value to assign to the project_id property of this Endpoint.
        :type project_id: str

        :param description:
            The value to assign to the description property of this Endpoint.
        :type description: str

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Endpoint.
            Allowed values for this property are: "DELETING", "DELETED", "FAILED", "CREATING", "ACTIVE", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Endpoint.
        :type lifecycle_details: str

        :param inference_units:
            The value to assign to the inference_units property of this Endpoint.
        :type inference_units: int

        :param model_id:
            The value to assign to the model_id property of this Endpoint.
        :type model_id: str

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

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

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

        strdatetimeintzdict(str, str)zdict(str, dict(str, object))zdict(str, object))iddisplay_namecompartment_id
project_iddescriptiontime_createdtime_updatedlifecycle_statelifecycle_detailsinference_unitsmodel_idfreeform_tagsdefined_tagssystem_tagsr   ZdisplayNameZcompartmentIdZ	projectIdr   ZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZinferenceUnitsZmodelIdZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_id_display_name_compartment_id_project_id_description_time_created_time_updated_lifecycle_state_lifecycle_details_inference_units	_model_id_freeform_tags_defined_tags_system_tags)selfkwargs r.   Cusr/lib/python3.10/site-packages/oci/ai_language/models/endpoint.py__init__*   sX   A
zEndpoint.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Endpoint.
        Unique identifier endpoint OCID of an endpoint that is immutable on creation.


        :return: The id of this Endpoint.
        :rtype: str
        r   r,   r.   r.   r/   r         
zEndpoint.idc                 C   
   || _ dS )z
        Sets the id of this Endpoint.
        Unique identifier endpoint OCID of an endpoint that is immutable on creation.


        :param id: The id of this Endpoint.
        :type: str
        Nr2   )r,   r   r.   r.   r/   r         

c                 C   r1   )a  
        **[Required]** Gets the display_name of this Endpoint.
        A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.


        :return: The display_name of this Endpoint.
        :rtype: str
        r   r3   r.   r.   r/   r      r4   zEndpoint.display_namec                 C   r5   )a  
        Sets the display_name of this Endpoint.
        A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.


        :param display_name: The display_name of this Endpoint.
        :type: str
        Nr7   )r,   r   r.   r.   r/   r      r6   c                 C   r1   )a  
        **[Required]** Gets the compartment_id of this Endpoint.
        The `OCID`__ for the endpoint compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this Endpoint.
        :rtype: str
        r    r3   r.   r.   r/   r         zEndpoint.compartment_idc                 C   r5   )a  
        Sets the compartment_id of this Endpoint.
        The `OCID`__ for the endpoint compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this Endpoint.
        :type: str
        Nr8   )r,   r   r.   r.   r/   r         
c                 C   r1   )a*  
        **[Required]** Gets the project_id of this Endpoint.
        The `OCID`__ of the project to associate with the Endpoint.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The project_id of this Endpoint.
        :rtype: str
        r!   r3   r.   r.   r/   r      r9   zEndpoint.project_idc                 C   r5   )a$  
        Sets the project_id of this Endpoint.
        The `OCID`__ of the project to associate with the Endpoint.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param project_id: The project_id of this Endpoint.
        :type: str
        Nr;   )r,   r   r.   r.   r/   r      r:   c                 C   r1   )z
        Gets the description of this Endpoint.
        A short description of the endpoint.


        :return: The description of this Endpoint.
        :rtype: str
        r"   r3   r.   r.   r/   r     r4   zEndpoint.descriptionc                 C   r5   )z
        Sets the description of this Endpoint.
        A short description of the endpoint.


        :param description: The description of this Endpoint.
        :type: str
        Nr<   )r,   r   r.   r.   r/   r     r6   c                 C   r1   )z
        **[Required]** Gets the time_created of this Endpoint.
        The time the the endpoint was created. An RFC3339 formatted datetime string.


        :return: The time_created of this Endpoint.
        :rtype: datetime
        r#   r3   r.   r.   r/   r     r4   zEndpoint.time_createdc                 C   r5   )z
        Sets the time_created of this Endpoint.
        The time the the endpoint was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this Endpoint.
        :type: datetime
        Nr=   )r,   r   r.   r.   r/   r   '  r6   c                 C   r1   )z
        Gets the time_updated of this Endpoint.
        The time the endpoint was updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this Endpoint.
        :rtype: datetime
        r$   r3   r.   r.   r/   r   3  r4   zEndpoint.time_updatedc                 C   r5   )z
        Sets the time_updated of this Endpoint.
        The time the endpoint was updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Endpoint.
        :type: datetime
        Nr>   )r,   r   r.   r.   r/   r   ?  r6   c                 C   r1   )a  
        **[Required]** Gets the lifecycle_state of this Endpoint.
        The state of the endpoint.

        Allowed values for this property are: "DELETING", "DELETED", "FAILED", "CREATING", "ACTIVE", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Endpoint.
        :rtype: str
        )r%   r3   r.   r.   r/   r   K  s   zEndpoint.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Endpoint.
        The state of the endpoint.


        :param lifecycle_state: The lifecycle_state of this Endpoint.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r%   )r,   r   Zallowed_valuesr.   r.   r/   r   Z  s   


c                 C   r1   )a'  
        Gets the lifecycle_details of this Endpoint.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.


        :return: The lifecycle_details of this Endpoint.
        :rtype: str
        r&   r3   r.   r.   r/   r   i  r4   zEndpoint.lifecycle_detailsc                 C   r5   )a7  
        Sets the lifecycle_details of this Endpoint.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.


        :param lifecycle_details: The lifecycle_details of this Endpoint.
        :type: str
        Nr?   )r,   r   r.   r.   r/   r   u  r6   c                 C   r1   )z
        Gets the inference_units of this Endpoint.
        Number of replicas required for this endpoint.


        :return: The inference_units of this Endpoint.
        :rtype: int
        r'   r3   r.   r.   r/   r     r4   zEndpoint.inference_unitsc                 C   r5   )z
        Sets the inference_units of this Endpoint.
        Number of replicas required for this endpoint.


        :param inference_units: The inference_units of this Endpoint.
        :type: int
        Nr@   )r,   r   r.   r.   r/   r     r6   c                 C   r1   )a$  
        **[Required]** Gets the model_id of this Endpoint.
        The `OCID`__ of the model to associate with the endpoint.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The model_id of this Endpoint.
        :rtype: str
        r(   r3   r.   r.   r/   r     r9   zEndpoint.model_idc                 C   r5   )a  
        Sets the model_id of this Endpoint.
        The `OCID`__ of the model to associate with the endpoint.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param model_id: The model_id of this Endpoint.
        :type: str
        NrA   )r,   r   r.   r.   r/   r     r:   c                 C   r1   )a7  
        Gets the freeform_tags of this Endpoint.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Endpoint.
        :rtype: dict(str, str)
        r)   r3   r.   r.   r/   r        zEndpoint.freeform_tagsc                 C   r5   )aC  
        Sets the freeform_tags of this Endpoint.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Endpoint.
        :type: dict(str, str)
        NrB   )r,   r   r.   r.   r/   r        
c                 C   r1   )a1  
        Gets the defined_tags of this Endpoint.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Endpoint.
        :rtype: dict(str, dict(str, object))
        r*   r3   r.   r.   r/   r     rC   zEndpoint.defined_tagsc                 C   r5   )a<  
        Sets the defined_tags of this Endpoint.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Endpoint.
        :type: dict(str, dict(str, object))
        NrE   )r,   r   r.   r.   r/   r     rD   c                 C   r1   )a'  
        Gets the system_tags of this Endpoint.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{ "orcl-cloud": { "free-tier-retained": "true" } }`


        :return: The system_tags of this Endpoint.
        :rtype: dict(str, object)
        r+   r3   r.   r.   r/   r     rC   zEndpoint.system_tagsc                 C   r5   )a1  
        Sets the system_tags of this Endpoint.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{ "orcl-cloud": { "free-tier-retained": "true" } }`


        :param system_tags: The system_tags of this Endpoint.
        :type: dict(str, object)
        NrF   )r,   r   r.   r.   r/   r     rD   c                 C   s   t | S N)r   r3   r.   r.   r/   __repr__  s   zEndpoint.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r,   otherr.   r.   r/   __eq__  s   zEndpoint.__eq__c                 C   s
   | |k S rG   r.   rJ   r.   r.   r/   __ne__  s   
zEndpoint.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGr0   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   rH   rL   rM   r.   r.   r.   r/   r      s    q



























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r.   r.   r.   r/   <module>   s   