o
    ɶdbC                     @   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d1d2 Zd3d4 Zd5d6 Zd7S )8
StreamPoolz'
    The details of a stream pool.
    CREATINGACTIVEDELETINGDELETEDFAILED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S )a	  
        Initializes a new StreamPool 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 StreamPool.
        :type id: str

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

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

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

        :param lifecycle_state_details:
            The value to assign to the lifecycle_state_details property of this StreamPool.
        :type lifecycle_state_details: str

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

        :param kafka_settings:
            The value to assign to the kafka_settings property of this StreamPool.
        :type kafka_settings: oci.streaming.models.KafkaSettings

        :param custom_encryption_key:
            The value to assign to the custom_encryption_key property of this StreamPool.
        :type custom_encryption_key: oci.streaming.models.CustomEncryptionKey

        :param is_private:
            The value to assign to the is_private property of this StreamPool.
        :type is_private: bool

        :param endpoint_fqdn:
            The value to assign to the endpoint_fqdn property of this StreamPool.
        :type endpoint_fqdn: str

        :param private_endpoint_settings:
            The value to assign to the private_endpoint_settings property of this StreamPool.
        :type private_endpoint_settings: oci.streaming.models.PrivateEndpointSettings

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

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

        strdatetimeZKafkaSettingsZCustomEncryptionKeyboolZPrivateEndpointSettingszdict(str, str)zdict(str, dict(str, object)))idcompartment_idnamelifecycle_statelifecycle_state_detailstime_createdkafka_settingscustom_encryption_key
is_privateendpoint_fqdnprivate_endpoint_settingsfreeform_tagsdefined_tagsr   ZcompartmentIdr   ZlifecycleStateZlifecycleStateDetailsZtimeCreatedZkafkaSettingsZcustomEncryptionKeyZ	isPrivateZendpointFqdnZprivateEndpointSettingsZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_name_lifecycle_state_lifecycle_state_details_time_created_kafka_settings_custom_encryption_key_is_private_endpoint_fqdn_private_endpoint_settings_freeform_tags_defined_tags)selfkwargs r,   Dusr/lib/python3.10/site-packages/oci/streaming/models/stream_pool.py__init__*   sR   =
zStreamPool.__init__c                 C      | j S )z
        **[Required]** Gets the id of this StreamPool.
        The OCID of the stream pool.


        :return: The id of this StreamPool.
        :rtype: str
        r   r*   r,   r,   r-   r         
zStreamPool.idc                 C   
   || _ dS )z
        Sets the id of this StreamPool.
        The OCID of the stream pool.


        :param id: The id of this StreamPool.
        :type: str
        Nr0   )r*   r   r,   r,   r-   r         

c                 C   r/   )z
        **[Required]** Gets the compartment_id of this StreamPool.
        Compartment OCID that the pool belongs to.


        :return: The compartment_id of this StreamPool.
        :rtype: str
        r   r1   r,   r,   r-   r      r2   zStreamPool.compartment_idc                 C   r3   )z
        Sets the compartment_id of this StreamPool.
        Compartment OCID that the pool belongs to.


        :param compartment_id: The compartment_id of this StreamPool.
        :type: str
        Nr5   )r*   r   r,   r,   r-   r      r4   c                 C   r/   )z
        **[Required]** Gets the name of this StreamPool.
        The name of the stream pool.


        :return: The name of this StreamPool.
        :rtype: str
        r   r1   r,   r,   r-   r      r2   zStreamPool.namec                 C   r3   )z
        Sets the name of this StreamPool.
        The name of the stream pool.


        :param name: The name of this StreamPool.
        :type: str
        Nr6   )r*   r   r,   r,   r-   r      r4   c                 C   r/   )a  
        **[Required]** Gets the lifecycle_state of this StreamPool.
        The current state of the stream pool.

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


        :return: The lifecycle_state of this StreamPool.
        :rtype: str
        )r    r1   r,   r,   r-   r      s   zStreamPool.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this StreamPool.
        The current state of the stream pool.


        :param lifecycle_state: The lifecycle_state of this StreamPool.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r    )r*   r   Zallowed_valuesr,   r,   r-   r      s   


c                 C   r/   )z
        Gets the lifecycle_state_details of this StreamPool.
        Any additional details about the current state of the stream.


        :return: The lifecycle_state_details of this StreamPool.
        :rtype: str
        r!   r1   r,   r,   r-   r      r2   z"StreamPool.lifecycle_state_detailsc                 C   r3   )z
        Sets the lifecycle_state_details of this StreamPool.
        Any additional details about the current state of the stream.


        :param lifecycle_state_details: The lifecycle_state_details of this StreamPool.
        :type: str
        Nr7   )r*   r   r,   r,   r-   r     r4   c                 C   r/   )a]  
        **[Required]** Gets the time_created of this StreamPool.
        The date and time the stream pool was created, expressed in in `RFC 3339`__ timestamp format.

        Example: `2018-04-20T00:00:07.405Z`

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


        :return: The time_created of this StreamPool.
        :rtype: datetime
        r"   r1   r,   r,   r-   r        zStreamPool.time_createdc                 C   r3   )aY  
        Sets the time_created of this StreamPool.
        The date and time the stream pool was created, expressed in in `RFC 3339`__ timestamp format.

        Example: `2018-04-20T00:00:07.405Z`

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


        :param time_created: The time_created of this StreamPool.
        :type: datetime
        Nr8   )r*   r   r,   r,   r-   r   "     
c                 C   r/   )z
        **[Required]** Gets the kafka_settings of this StreamPool.

        :return: The kafka_settings of this StreamPool.
        :rtype: oci.streaming.models.KafkaSettings
        r#   r1   r,   r,   r-   r   2     zStreamPool.kafka_settingsc                 C   r3   )z
        Sets the kafka_settings of this StreamPool.

        :param kafka_settings: The kafka_settings of this StreamPool.
        :type: oci.streaming.models.KafkaSettings
        Nr;   )r*   r   r,   r,   r-   r   <     
c                 C   r/   )z
        **[Required]** Gets the custom_encryption_key of this StreamPool.

        :return: The custom_encryption_key of this StreamPool.
        :rtype: oci.streaming.models.CustomEncryptionKey
        r$   r1   r,   r,   r-   r   F  r<   z StreamPool.custom_encryption_keyc                 C   r3   )z
        Sets the custom_encryption_key of this StreamPool.

        :param custom_encryption_key: The custom_encryption_key of this StreamPool.
        :type: oci.streaming.models.CustomEncryptionKey
        Nr>   )r*   r   r,   r,   r-   r   P  r=   c                 C   r/   )aE  
        Gets the is_private of this StreamPool.
        True if the stream pool is private, false otherwise.
        If the stream pool is private, the streams inside the stream pool can only be accessed from inside the associated subnetId.


        :return: The is_private of this StreamPool.
        :rtype: bool
        r%   r1   r,   r,   r-   r   Z  s   zStreamPool.is_privatec                 C   r3   )aN  
        Sets the is_private of this StreamPool.
        True if the stream pool is private, false otherwise.
        If the stream pool is private, the streams inside the stream pool can only be accessed from inside the associated subnetId.


        :param is_private: The is_private of this StreamPool.
        :type: bool
        Nr?   )r*   r   r,   r,   r-   r   g  s   
c                 C   r/   )a1  
        Gets the endpoint_fqdn of this StreamPool.
        The FQDN used to access the streams inside the stream pool (same FQDN as the messagesEndpoint attribute of a :class:`Stream` object).
        If the stream pool is private, the FQDN is customized and can only be accessed from inside the associated subnetId, otherwise the FQDN is publicly resolvable.
        Depending on which protocol you attempt to use, you need to either prepend https or append the Kafka port.


        :return: The endpoint_fqdn of this StreamPool.
        :rtype: str
        r&   r1   r,   r,   r-   r   t  s   zStreamPool.endpoint_fqdnc                 C   r3   )a=  
        Sets the endpoint_fqdn of this StreamPool.
        The FQDN used to access the streams inside the stream pool (same FQDN as the messagesEndpoint attribute of a :class:`Stream` object).
        If the stream pool is private, the FQDN is customized and can only be accessed from inside the associated subnetId, otherwise the FQDN is publicly resolvable.
        Depending on which protocol you attempt to use, you need to either prepend https or append the Kafka port.


        :param endpoint_fqdn: The endpoint_fqdn of this StreamPool.
        :type: str
        Nr@   )r*   r   r,   r,   r-   r     s   
c                 C   r/   )z
        Gets the private_endpoint_settings of this StreamPool.

        :return: The private_endpoint_settings of this StreamPool.
        :rtype: oci.streaming.models.PrivateEndpointSettings
        r'   r1   r,   r,   r-   r     r<   z$StreamPool.private_endpoint_settingsc                 C   r3   )z
        Sets the private_endpoint_settings of this StreamPool.

        :param private_endpoint_settings: The private_endpoint_settings of this StreamPool.
        :type: oci.streaming.models.PrivateEndpointSettings
        NrA   )r*   r   r,   r,   r-   r     r=   c                 C   r/   )a  
        Gets the freeform_tags of this StreamPool.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

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


        :return: The freeform_tags of this StreamPool.
        :rtype: dict(str, str)
        r(   r1   r,   r,   r-   r     s   zStreamPool.freeform_tagsc                 C   r3   )a  
        Sets the freeform_tags of this StreamPool.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

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


        :param freeform_tags: The freeform_tags of this StreamPool.
        :type: dict(str, str)
        NrB   )r*   r   r,   r,   r-   r     s   
c                 C   r/   )a  
        Gets the defined_tags of this StreamPool.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}'

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


        :return: The defined_tags of this StreamPool.
        :rtype: dict(str, dict(str, object))
        r)   r1   r,   r,   r-   r     r9   zStreamPool.defined_tagsc                 C   r3   )a  
        Sets the defined_tags of this StreamPool.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}'

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


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