o
    ɶd5                     @   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                   @   sL  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d(d) Zd*d+ Zd,d- Zd.S )/StreamSummaryz-
    Summary representation of a stream.
    CREATINGACTIVEDELETINGDELETEDFAILEDUPDATINGc                 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 StreamSummary 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 StreamSummary.
        :type name: str

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this StreamSummary.
            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 time_created:
            The value to assign to the time_created property of this StreamSummary.
        :type time_created: datetime

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

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

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

        strintdatetimezdict(str, str)zdict(str, dict(str, object)))
nameid
partitionscompartment_idstream_pool_idlifecycle_statetime_createdmessages_endpointfreeform_tagsdefined_tagsr   r   r   ZcompartmentIdZstreamPoolIdZlifecycleStateZtimeCreatedZmessagesEndpointZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_name_id_partitions_compartment_id_stream_pool_id_lifecycle_state_time_created_messages_endpoint_freeform_tags_defined_tags)selfkwargs r&   Gusr/lib/python3.10/site-packages/oci/streaming/models/stream_summary.py__init__*   s@   1
zStreamSummary.__init__c                 C      | j S )z
        **[Required]** Gets the name of this StreamSummary.
        The name of the stream.

        Example: `TelemetryEvents`


        :return: The name of this StreamSummary.
        :rtype: str
        r   r$   r&   r&   r'   r      s   zStreamSummary.namec                 C   
   || _ dS )z
        Sets the name of this StreamSummary.
        The name of the stream.

        Example: `TelemetryEvents`


        :param name: The name of this StreamSummary.
        :type: str
        Nr*   )r$   r   r&   r&   r'   r      s   
c                 C   r)   )z
        **[Required]** Gets the id of this StreamSummary.
        The OCID of the stream.


        :return: The id of this StreamSummary.
        :rtype: str
        r   r+   r&   r&   r'   r         
zStreamSummary.idc                 C   r,   )z
        Sets the id of this StreamSummary.
        The OCID of the stream.


        :param id: The id of this StreamSummary.
        :type: str
        Nr-   )r$   r   r&   r&   r'   r         

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


        :return: The partitions of this StreamSummary.
        :rtype: int
        r   r+   r&   r&   r'   r      r.   zStreamSummary.partitionsc                 C   r,   )z
        Sets the partitions of this StreamSummary.
        The number of partitions in the stream.


        :param partitions: The partitions of this StreamSummary.
        :type: int
        Nr0   )r$   r   r&   r&   r'   r      r/   c                 C   r)   )z
        **[Required]** Gets the compartment_id of this StreamSummary.
        The OCID of the compartment that contains the stream.


        :return: The compartment_id of this StreamSummary.
        :rtype: str
        r   r+   r&   r&   r'   r      r.   zStreamSummary.compartment_idc                 C   r,   )z
        Sets the compartment_id of this StreamSummary.
        The OCID of the compartment that contains the stream.


        :param compartment_id: The compartment_id of this StreamSummary.
        :type: str
        Nr1   )r$   r   r&   r&   r'   r      r/   c                 C   r)   )z
        **[Required]** Gets the stream_pool_id of this StreamSummary.
        The OCID of the stream pool that contains the stream.


        :return: The stream_pool_id of this StreamSummary.
        :rtype: str
        r   r+   r&   r&   r'   r      r.   zStreamSummary.stream_pool_idc                 C   r,   )z
        Sets the stream_pool_id of this StreamSummary.
        The OCID of the stream pool that contains the stream.


        :param stream_pool_id: The stream_pool_id of this StreamSummary.
        :type: str
        Nr2   )r$   r   r&   r&   r'   r      r/   c                 C   r)   )a  
        **[Required]** Gets the lifecycle_state of this StreamSummary.
        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 StreamSummary.
        :rtype: str
        )r   r+   r&   r&   r'   r      s   zStreamSummary.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this StreamSummary.
        The current state of the stream.


        :param lifecycle_state: The lifecycle_state of this StreamSummary.
        :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)   )a[  
        **[Required]** Gets the time_created of this StreamSummary.
        The date and time the stream was created, expressed in `RFC 3339`__ timestamp format.

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

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


        :return: The time_created of this StreamSummary.
        :rtype: datetime
        r    r+   r&   r&   r'   r        zStreamSummary.time_createdc                 C   r,   )aW  
        Sets the time_created of this StreamSummary.
        The date and time the stream was created, expressed 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 StreamSummary.
        :type: datetime
        Nr3   )r$   r   r&   r&   r'   r   )     
c                 C   r)   )a  
        **[Required]** Gets the messages_endpoint of this StreamSummary.
        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 StreamSummary.
        :rtype: str
        r!   r+   r&   r&   r'   r   9  s   zStreamSummary.messages_endpointc                 C   r,   )a  
        Sets the messages_endpoint of this StreamSummary.
        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 StreamSummary.
        :type: str
        Nr6   )r$   r   r&   r&   r'   r   F  s   
c                 C   r)   )a  
        Gets the freeform_tags of this StreamSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair that is applied 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 StreamSummary.
        :rtype: dict(str, str)
        r"   r+   r&   r&   r'   r   S  s   zStreamSummary.freeform_tagsc                 C   r,   )a  
        Sets the freeform_tags of this StreamSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair that is applied 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 StreamSummary.
        :type: dict(str, str)
        Nr7   )r$   r   r&   r&   r'   r   d  s   
c                 C   r)   )a  
        Gets the defined_tags of this StreamSummary.
        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 StreamSummary.
        :rtype: dict(str, dict(str, object))
        r#   r+   r&   r&   r'   r   u  r4   zStreamSummary.defined_tagsc                 C   r,   )a  
        Sets the defined_tags of this StreamSummary.
        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 StreamSummary.
        :type: dict(str, dict(str, object))
        Nr8   )r$   r   r&   r&   r'   r     r5   c                 C   s   t | S N)r   r+   r&   r&   r'   __repr__  s   zStreamSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r$   otherr&   r&   r'   __eq__  s   zStreamSummary.__eq__c                 C   s
   | |k S r9   r&   r<   r&   r&   r'   __ne__  s   
zStreamSummary.__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?   r&   r&   r&   r'   r      sh    U



















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r&   r&   r&   r'   <module>   s   