ruạṛ
a ���f2F � @ 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 )>�Sessionz� A bastion session resource. A bastion session lets authorized users connect to a target resource using a Secure Shell (SSH) for a predetermined amount of time. �PUB�CREATING�ACTIVE�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 )aF Initializes a new Session 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 Session. :type id: str :param display_name: The value to assign to the display_name property of this Session. :type display_name: str :param bastion_id: The value to assign to the bastion_id property of this Session. :type bastion_id: str :param bastion_name: The value to assign to the bastion_name property of this Session. :type bastion_name: str :param bastion_user_name: The value to assign to the bastion_user_name property of this Session. :type bastion_user_name: str :param target_resource_details: The value to assign to the target_resource_details property of this Session. :type target_resource_details: oci.bastion.models.TargetResourceDetails :param ssh_metadata: The value to assign to the ssh_metadata property of this Session. :type ssh_metadata: dict(str, str) :param key_type: The value to assign to the key_type property of this Session. Allowed values for this property are: "PUB", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type key_type: str :param key_details: The value to assign to the key_details property of this Session. :type key_details: oci.bastion.models.PublicKeyDetails :param bastion_public_host_key_info: The value to assign to the bastion_public_host_key_info property of this Session. :type bastion_public_host_key_info: str :param time_created: The value to assign to the time_created property of this Session. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Session. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this 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'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this Session. :type lifecycle_details: str :param session_ttl_in_seconds: The value to assign to the session_ttl_in_seconds property of this Session. :type session_ttl_in_seconds: int �strZTargetResourceDetailszdict(str, str)ZPublicKeyDetailsZdatetime�int)�id�display_name� bastion_id�bastion_name�bastion_user_name�target_resource_details�ssh_metadata�key_type�key_details�bastion_public_host_key_info�time_created�time_updated�lifecycle_state�lifecycle_details�session_ttl_in_secondsr ZdisplayNameZ bastionIdZbastionNameZbastionUserNameZtargetResourceDetailsZsshMetadataZkeyTypeZ keyDetailsZbastionPublicHostKeyInfoZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZsessionTtlInSecondsN)Z swagger_typesZ attribute_map�_id� _display_name�_bastion_id� _bastion_name�_bastion_user_name�_target_resource_details� _ssh_metadata� _key_type�_key_details�_bastion_public_host_key_info� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_session_ttl_in_seconds)�self�kwargs� r/ �>/usr/lib/python3.9/site-packages/oci/bastion/models/session.py�__init__* s^ G��zSession.__init__c C s | j S )z� **[Required]** Gets the id of this Session. The unique identifier (OCID) of the session, which can't be changed after creation. :return: The id of this Session. :rtype: str �r �r- r/ r/ r0 r � s z Session.idc C s || _ dS )z� Sets the id of this Session. The unique identifier (OCID) of the session, which can't be changed after creation. :param id: The id of this Session. :type: str Nr2 )r- r r/ r/ r0 r � s c C s | j S )z� Gets the display_name of this Session. The name of the session. :return: The display_name of this Session. :rtype: str �r r3 r/ r/ r0 r � s zSession.display_namec C s || _ dS )z� Sets the display_name of this Session. The name of the session. :param display_name: The display_name of this Session. :type: str Nr4 )r- r r/ r/ r0 r � s c C s | j S )z� **[Required]** Gets the bastion_id of this Session. The unique identifier (OCID) of the bastion that is hosting this session. :return: The bastion_id of this Session. :rtype: str �r r3 r/ r/ r0 r � s zSession.bastion_idc C s || _ dS )z� Sets the bastion_id of this Session. The unique identifier (OCID) of the bastion that is hosting this session. :param bastion_id: The bastion_id of this Session. :type: str Nr5 )r- r r/ r/ r0 r � s c C s | j S )z� **[Required]** Gets the bastion_name of this Session. The name of the bastion that is hosting this session. :return: The bastion_name of this Session. :rtype: str �r! r3 r/ r/ r0 r � s zSession.bastion_namec C s || _ dS )z� Sets the bastion_name of this Session. The name of the bastion that is hosting this session. :param bastion_name: The bastion_name of this Session. :type: str Nr6 )r- r r/ r/ r0 r � s c C s | j S )z� Gets the bastion_user_name of this Session. The username that the session uses to connect to the target resource. :return: The bastion_user_name of this Session. :rtype: str �r"