o
    ëÉ¶dÒ1  ã                   @   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                   @   sH  e 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 ).ÚSessionSummaryz=
    Summary information for a bastion session resource.
    ÚCREATINGÚACTIVEÚDELETINGÚDELETEDÚFAILEDc                 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 SessionSummary 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 SessionSummary.
        :type id: str

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

        :param bastion_name:
            The value to assign to the bastion_name property of this SessionSummary.
        :type bastion_name: str

        :param bastion_id:
            The value to assign to the bastion_id property of this SessionSummary.
        :type bastion_id: str

        :param target_resource_details:
            The value to assign to the target_resource_details property of this SessionSummary.
        :type target_resource_details: oci.bastion.models.TargetResourceDetails

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this SessionSummary.
            Allowed values for this property are: "CREATING", "ACTIVE", "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 SessionSummary.
        :type lifecycle_details: str

        :param session_ttl_in_seconds:
            The value to assign to the session_ttl_in_seconds property of this SessionSummary.
        :type session_ttl_in_seconds: int

        ÚstrZTargetResourceDetailsÚdatetimeÚint)
ÚidÚdisplay_nameÚbastion_nameÚ
bastion_idÚtarget_resource_detailsÚtime_createdÚtime_updatedÚlifecycle_stateÚlifecycle_detailsÚsession_ttl_in_secondsr   ZdisplayNameZbastionNameZ	bastionIdZtargetResourceDetailsZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZsessionTtlInSecondsN)Zswagger_typesZattribute_mapÚ_idÚ_display_nameÚ_bastion_nameÚ_bastion_idÚ_target_resource_detailsÚ_time_createdÚ_time_updatedÚ_lifecycle_stateÚ_lifecycle_detailsÚ_session_ttl_in_seconds)ÚselfÚkwargs© r%   úFusr/lib/python3.10/site-packages/oci/bastion/models/session_summary.pyÚ__init__&   s@   1öö
zSessionSummary.__init__c                 C   ó   | j S )zæ
        **[Required]** Gets the id of this SessionSummary.
        The unique identifier (OCID) of the session, which can't be changed after creation.


        :return: The id of this SessionSummary.
        :rtype: str
        ©r   ©r#   r%   r%   r&   r   {   ó   
zSessionSummary.idc                 C   ó
   || _ dS )zØ
        Sets the id of this SessionSummary.
        The unique identifier (OCID) of the session, which can't be changed after creation.


        :param id: The id of this SessionSummary.
        :type: str
        Nr)   )r#   r   r%   r%   r&   r   ‡   ó   

c                 C   r(   )z°
        Gets the display_name of this SessionSummary.
        The name of the session.


        :return: The display_name of this SessionSummary.
        :rtype: str
        ©r   r*   r%   r%   r&   r   “   r+   zSessionSummary.display_namec                 C   r,   )z»
        Sets the display_name of this SessionSummary.
        The name of the session.


        :param display_name: The display_name of this SessionSummary.
        :type: str
        Nr.   )r#   r   r%   r%   r&   r   Ÿ   r-   c                 C   r(   )zÜ
        **[Required]** Gets the bastion_name of this SessionSummary.
        The name of the bastion that is hosting this session.


        :return: The bastion_name of this SessionSummary.
        :rtype: str
        ©r   r*   r%   r%   r&   r   «   r+   zSessionSummary.bastion_namec                 C   r,   )zØ
        Sets the bastion_name of this SessionSummary.
        The name of the bastion that is hosting this session.


        :param bastion_name: The bastion_name of this SessionSummary.
        :type: str
        Nr/   )r#   r   r%   r%   r&   r   ·   r-   c                 C   r(   )zì
        **[Required]** Gets the bastion_id of this SessionSummary.
        The unique identifier (OCID) of the bastion that is hosting this session.


        :return: The bastion_id of this SessionSummary.
        :rtype: str
        ©r   r*   r%   r%   r&   r   Ã   r+   zSessionSummary.bastion_idc                 C   r,   )zæ
        Sets the bastion_id of this SessionSummary.
        The unique identifier (OCID) of the bastion that is hosting this session.


        :param bastion_id: The bastion_id of this SessionSummary.
        :type: str
        Nr0   )r#   r   r%   r%   r&   r   Ï   r-   c                 C   r(   )zØ
        **[Required]** Gets the target_resource_details of this SessionSummary.

        :return: The target_resource_details of this SessionSummary.
        :rtype: oci.bastion.models.TargetResourceDetails
        ©r   r*   r%   r%   r&   r   Û   s   z&SessionSummary.target_resource_detailsc                 C   r,   )zß
        Sets the target_resource_details of this SessionSummary.

        :param target_resource_details: The target_resource_details of this SessionSummary.
        :type: oci.bastion.models.TargetResourceDetails
        Nr1   )r#   r   r%   r%   r&   r   å   s   
c                 C   r(   )aK  
        **[Required]** Gets the time_created of this SessionSummary.
        The time the session was created. Format is defined by `RFC3339`__.
        Example: `2020-01-25T21:10:29.600Z`

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


        :return: The time_created of this SessionSummary.
        :rtype: datetime
        ©r   r*   r%   r%   r&   r   ï   ó   zSessionSummary.time_createdc                 C   r,   )aG  
        Sets the time_created of this SessionSummary.
        The time the session was created. Format is defined by `RFC3339`__.
        Example: `2020-01-25T21:10:29.600Z`

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


        :param time_created: The time_created of this SessionSummary.
        :type: datetime
        Nr2   )r#   r   r%   r%   r&   r   þ   ó   
c                 C   r(   )a<  
        Gets the time_updated of this SessionSummary.
        The time the session was updated. Format is defined by `RFC3339`__.
        Example: `2020-01-25T21:10:29.600Z`

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


        :return: The time_updated of this SessionSummary.
        :rtype: datetime
        ©r   r*   r%   r%   r&   r     r3   zSessionSummary.time_updatedc                 C   r,   )aG  
        Sets the time_updated of this SessionSummary.
        The time the session was updated. Format is defined by `RFC3339`__.
        Example: `2020-01-25T21:10:29.600Z`

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


        :param time_updated: The time_updated of this SessionSummary.
        :type: datetime
        Nr5   )r#   r   r%   r%   r&   r     r4   c                 C   r(   )a¨  
        **[Required]** Gets the lifecycle_state of this SessionSummary.
        The current state of the session.

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


        :return: The lifecycle_state of this SessionSummary.
        :rtype: str
        )r    r*   r%   r%   r&   r   +  r3   zSessionSummary.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÍ
        Sets the lifecycle_state of this SessionSummary.
        The current state of the session.


        :param lifecycle_state: The lifecycle_state of this SessionSummary.
        :type: str
        )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_details of this SessionSummary.
        A message describing the current session state in more detail.


        :return: The lifecycle_details of this SessionSummary.
        :rtype: str
        ©r!   r*   r%   r%   r&   r   I  r+   z SessionSummary.lifecycle_detailsc                 C   r,   )zð
        Sets the lifecycle_details of this SessionSummary.
        A message describing the current session state in more detail.


        :param lifecycle_details: The lifecycle_details of this SessionSummary.
        :type: str
        Nr6   )r#   r   r%   r%   r&   r   U  r-   c                 C   r(   )zì
        **[Required]** Gets the session_ttl_in_seconds of this SessionSummary.
        The amount of time the session can remain active.


        :return: The session_ttl_in_seconds of this SessionSummary.
        :rtype: int
        ©r"   r*   r%   r%   r&   r   a  r+   z%SessionSummary.session_ttl_in_secondsc                 C   r,   )zò
        Sets the session_ttl_in_seconds of this SessionSummary.
        The amount of time the session can remain active.


        :param session_ttl_in_seconds: The session_ttl_in_seconds of this SessionSummary.
        :type: int
        Nr7   )r#   r   r%   r%   r&   r   m  r-   c                 C   s   t | ƒS ©N)r   r*   r%   r%   r&   Ú__repr__y  s   zSessionSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r#   Úotherr%   r%   r&   Ú__eq__|  s   zSessionSummary.__eq__c                 C   s
   | |k S r8   r%   r;   r%   r%   r&   Ú__ne__‚  s   
zSessionSummary.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr'   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r9   r=   r>   r%   r%   r%   r&   r      sf    U








	
	









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r%   r%   r%   r&   Ú<module>   s   