ruạṛ
a ���fiI � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zed1d2� �Zej d3d2� �Zed4d5� �Zej d6d5� �Zd7d8� Zd9d:� Zd;d<� Zd=S )>�Endpointa9 To host a custom model for inference, create an endpoint for that model on a dedicated AI cluster of type HOSTING. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See `Getting Started with Policies`__ and `Getting Access to Generative AI Resouces`__. __ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm __ https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm �ACTIVE�CREATING�UPDATING�DELETING�DELETED�FAILEDc K s� dddddddddddddddd�| _ dd d ddd dddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )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 description: The value to assign to the description property of this Endpoint. :type description: str :param model_id: The value to assign to the model_id property of this Endpoint. :type model_id: str :param compartment_id: The value to assign to the compartment_id property of this Endpoint. :type compartment_id: str :param dedicated_ai_cluster_id: The value to assign to the dedicated_ai_cluster_id property of this Endpoint. :type dedicated_ai_cluster_id: 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: "ACTIVE", "CREATING", "UPDATING", "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 lifecycle_details: The value to assign to the lifecycle_details property of this Endpoint. :type lifecycle_details: str :param content_moderation_config: The value to assign to the content_moderation_config property of this Endpoint. :type content_moderation_config: oci.generative_ai.models.ContentModerationConfig :param previous_state: The value to assign to the previous_state property of this Endpoint. :type previous_state: oci.generative_ai.models.Endpoint :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, dict(str, object)) �strZdatetimeZContentModerationConfigr zdict(str, str)zdict(str, dict(str, object)))�id�display_name�description�model_id�compartment_id�dedicated_ai_cluster_id�time_created�time_updated�lifecycle_state�lifecycle_details�content_moderation_config�previous_state� freeform_tags�defined_tags�system_tagsr ZdisplayNamer ZmodelIdZ compartmentIdZdedicatedAiClusterIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZcontentModerationConfigZ previousStateZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id� _display_name�_description� _model_id�_compartment_id�_dedicated_ai_cluster_id� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_content_moderation_config�_previous_state�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� r. �E/usr/lib/python3.9/site-packages/oci/generative_ai/models/endpoint.py�__init__0 s^ E��zEndpoint.__init__c C s | j S )z� **[Required]** Gets the id of this Endpoint. An OCID that uniquely identifies this endpoint resource. :return: The id of this Endpoint. :rtype: str �r �r, r. r. r/ r � s zEndpoint.idc C s || _ dS )z� Sets the id of this Endpoint. An OCID that uniquely identifies this endpoint resource. :param id: The id of this Endpoint. :type: str Nr1 )r, r r. r. r/ r � s c C s | j S )z� Gets the display_name of this Endpoint. A user-friendly name. Does not have to be unique, and it's changeable. :return: The display_name of this Endpoint. :rtype: str �r r2 r. r. r/ r � s zEndpoint.display_namec C s || _ dS )z� Sets the display_name of this Endpoint. A user-friendly name. Does not have to be unique, and it's changeable. :param display_name: The display_name of this Endpoint. :type: str Nr3 )r, r r. r. r/ r � s c C s | j S )z� Gets the description of this Endpoint. An optional description of the endpoint. :return: The description of this Endpoint. :rtype: str �r r2 r. r. r/ r � s zEndpoint.descriptionc C s || _ dS )z� Sets the description of this Endpoint. An optional description of the endpoint. :param description: The description of this Endpoint. :type: str Nr4 )r, r r. r. r/ r � s c C s | j S )z� **[Required]** Gets the model_id of this Endpoint. The OCID of the model that's used to create this endpoint. :return: The model_id of this Endpoint. :rtype: str �r r2 r. r. r/ r � s zEndpoint.model_idc C s || _ dS )z� Sets the model_id of this Endpoint. The OCID of the model that's used to create this endpoint. :param model_id: The model_id of this Endpoint. :type: str Nr5 )r, r r. r. r/ r � s c C s | j S )z� **[Required]** Gets the compartment_id of this Endpoint. The compartment OCID to create the endpoint in. :return: The compartment_id of this Endpoint. :rtype: str �r! r2 r. r. r/ r s zEndpoint.compartment_idc C s || _ dS )z� Sets the compartment_id of this Endpoint. The compartment OCID to create the endpoint in. :param compartment_id: The compartment_id of this Endpoint. :type: str Nr6 )r, r r. r. r/ r s c C s | j S )z� **[Required]** Gets the dedicated_ai_cluster_id of this Endpoint. The OCID of the dedicated AI cluster on which the model will be deployed to. :return: The dedicated_ai_cluster_id of this Endpoint. :rtype: str �r"