o
    ëÉ¶dL<  ã                   @   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d.d/„ Zd0d1„ Zd2d3„ Zd4S )5ÚStreamzL
    Detailed representation of a stream, including all its partitions.
    Ú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S )az  
        Initializes a new Stream object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

        :param partitions:
            The value to assign to the partitions property of this Stream.
        :type partitions: int

        :param retention_in_hours:
            The value to assign to the retention_in_hours property of this Stream.
        :type retention_in_hours: int

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

        :param stream_pool_id:
            The value to assign to the stream_pool_id property of this Stream.
        :type stream_pool_id: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Stream.
            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 Stream.
        :type lifecycle_state_details: str

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

        :param messages_endpoint:
            The value to assign to the messages_endpoint property of this Stream.
        :type messages_endpoint: str

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

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

        ÚstrÚintÚdatetimezdict(str, str)zdict(str, dict(str, object)))ÚnameÚidÚ
partitionsÚretention_in_hoursÚcompartment_idÚstream_pool_idÚlifecycle_stateÚlifecycle_state_detailsÚtime_createdÚmessages_endpointÚfreeform_tagsÚdefined_tagsr   r   r   ZretentionInHoursZcompartmentIdZstreamPoolIdZlifecycleStateZlifecycleStateDetailsZtimeCreatedZmessagesEndpointZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_nameÚ_idÚ_partitionsÚ_retention_in_hoursÚ_compartment_idÚ_stream_pool_idÚ_lifecycle_stateÚ_lifecycle_state_detailsÚ_time_createdÚ_messages_endpointÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r*   ú?usr/lib/python3.10/site-packages/oci/streaming/models/stream.pyÚ__init__*   sL   9ôô
zStream.__init__c                 C   ó   | j S )zë
        **[Required]** Gets the name of this Stream.
        The name of the stream. Avoid entering confidential information.

        Example: `TelemetryEvents`


        :return: The name of this Stream.
        :rtype: str
        ©r   ©r(   r*   r*   r+   r      s   zStream.namec                 C   ó
   || _ dS )zß
        Sets the name of this Stream.
        The name of the stream. Avoid entering confidential information.

        Example: `TelemetryEvents`


        :param name: The name of this Stream.
        :type: str
        Nr.   )r(   r   r*   r*   r+   r   ›   s   
c                 C   r-   )zš
        **[Required]** Gets the id of this Stream.
        The OCID of the stream.


        :return: The id of this Stream.
        :rtype: str
        ©r   r/   r*   r*   r+   r   ©   ó   
z	Stream.idc                 C   r0   )zŒ
        Sets the id of this Stream.
        The OCID of the stream.


        :param id: The id of this Stream.
        :type: str
        Nr1   )r(   r   r*   r*   r+   r   µ   ó   

c                 C   r-   )zº
        **[Required]** Gets the partitions of this Stream.
        The number of partitions in the stream.


        :return: The partitions of this Stream.
        :rtype: int
        ©r   r/   r*   r*   r+   r   Á   r2   zStream.partitionsc                 C   r0   )z´
        Sets the partitions of this Stream.
        The number of partitions in the stream.


        :param partitions: The partitions of this Stream.
        :type: int
        Nr4   )r(   r   r*   r*   r+   r   Í   r3   c                 C   r-   )zì
        **[Required]** Gets the retention_in_hours of this Stream.
        The retention period of the stream, in hours. This property is read-only.


        :return: The retention_in_hours of this Stream.
        :rtype: int
        ©r   r/   r*   r*   r+   r   Ù   r2   zStream.retention_in_hoursc                 C   r0   )zî
        Sets the retention_in_hours of this Stream.
        The retention period of the stream, in hours. This property is read-only.


        :param retention_in_hours: The retention_in_hours of this Stream.
        :type: int
        Nr5   )r(   r   r*   r*   r+   r   å   r3   c                 C   r-   )z²
        **[Required]** Gets the compartment_id of this Stream.
        The OCID of the stream.


        :return: The compartment_id of this Stream.
        :rtype: str
        ©r    r/   r*   r*   r+   r   ñ   r2   zStream.compartment_idc                 C   r0   )z°
        Sets the compartment_id of this Stream.
        The OCID of the stream.


        :param compartment_id: The compartment_id of this Stream.
        :type: str
        Nr6   )r(   r   r*   r*   r+   r   ý   r3   c                 C   r-   )zÐ
        **[Required]** Gets the stream_pool_id of this Stream.
        The OCID of the stream pool that contains the stream.


        :return: The stream_pool_id of this Stream.
        :rtype: str
        ©r!   r/   r*   r*   r+   r   	  r2   zStream.stream_pool_idc                 C   r0   )zÎ
        Sets the stream_pool_id of this Stream.
        The OCID of the stream pool that contains the stream.


        :param stream_pool_id: The stream_pool_id of this Stream.
        :type: str
        Nr7   )r(   r   r*   r*   r+   r     r3   c                 C   r-   )a£  
        **[Required]** Gets the lifecycle_state of this Stream.
        The current state of the stream.

        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 Stream.
        :rtype: str
        )r"   r/   r*   r*   r+   r   !  s   zStream.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z¼
        Sets the lifecycle_state of this Stream.
        The current state of the stream.


        :param lifecycle_state: The lifecycle_state of this Stream.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r"   )r(   r   Zallowed_valuesr*   r*   r+   r   0  s   

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


        :return: The lifecycle_state_details of this Stream.
        :rtype: str
        ©r#   r/   r*   r*   r+   r   ?  r2   zStream.lifecycle_state_detailsc                 C   r0   )zñ
        Sets the lifecycle_state_details of this Stream.
        Any additional details about the current state of the stream.


        :param lifecycle_state_details: The lifecycle_state_details of this Stream.
        :type: str
        Nr8   )r(   r   r*   r*   r+   r   K  r3   c                 C   r-   )aP  
        **[Required]** Gets the time_created of this Stream.
        The date and time the stream 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 Stream.
        :rtype: datetime
        ©r$   r/   r*   r*   r+   r   W  ó   zStream.time_createdc                 C   r0   )aL  
        Sets the time_created of this Stream.
        The date and time the stream 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 Stream.
        :type: datetime
        Nr9   )r(   r   r*   r*   r+   r   g  ó   
c                 C   r-   )aš  
        **[Required]** Gets the messages_endpoint of this Stream.
        The endpoint to use when creating the StreamClient to consume or publish messages in the stream.
        If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.


        :return: The messages_endpoint of this Stream.
        :rtype: str
        ©r%   r/   r*   r*   r+   r   w  s   zStream.messages_endpointc                 C   r0   )a›  
        Sets the messages_endpoint of this Stream.
        The endpoint to use when creating the StreamClient to consume or publish messages in the stream.
        If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool's associated subnet.


        :param messages_endpoint: The messages_endpoint of this Stream.
        :type: str
        Nr<   )r(   r   r*   r*   r+   r   „  s   
c                 C   r-   )aã  
        Gets the freeform_tags of this Stream.
        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 Stream.
        :rtype: dict(str, str)
        ©r&   r/   r*   r*   r+   r   ‘  s   zStream.freeform_tagsc                 C   r0   )aï  
        Sets the freeform_tags of this Stream.
        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 Stream.
        :type: dict(str, str)
        Nr=   )r(   r   r*   r*   r+   r   ¢  s   
c                 C   r-   )a¬  
        Gets the defined_tags of this Stream.
        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 Stream.
        :rtype: dict(str, dict(str, object))
        ©r'   r/   r*   r*   r+   r   ³  r:   zStream.defined_tagsc                 C   r0   )a·  
        Sets the defined_tags of this Stream.
        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 Stream.
        :type: dict(str, dict(str, object))
        Nr>   )r(   r   r*   r*   r+   r   Ã  r;   c                 C   s   t | ƒS ©N)r   r/   r*   r*   r+   Ú__repr__Ó  s   zStream.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r(   Úotherr*   r*   r+   Ú__eq__Ö  s   zStream.__eq__c                 C   s
   | |k S r?   r*   rB   r*   r*   r+   Ú__ne__Ü  s   
zStream.__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@   rD   rE   r*   r*   r*   r+   r      sx    c























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r*   r*   r*   r+   Ú<module>   s   