ruạṛ
a ���f� � @ 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 ZdZdZdd� Zedd� �Zejdd� �Zedd � �Z e jd d � �Z edd� �Z e jd d� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS )�CreateSessionDetailsa� The configuration details for a new bastion session. A session lets authorized users connect to a target resource for a predetermined amount of time. The Bastion service recognizes two types of sessions, managed SSH sessions and SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running. �PUBc K sP ddddddd�| _ dddd d dd�| _d| _d| _d| _d| _d| _d| _dS ) a Initializes a new CreateSessionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param display_name: The value to assign to the display_name property of this CreateSessionDetails. :type display_name: str :param bastion_id: The value to assign to the bastion_id property of this CreateSessionDetails. :type bastion_id: str :param target_resource_details: The value to assign to the target_resource_details property of this CreateSessionDetails. :type target_resource_details: oci.bastion.models.CreateSessionTargetResourceDetails :param key_type: The value to assign to the key_type property of this CreateSessionDetails. Allowed values for this property are: "PUB" :type key_type: str :param key_details: The value to assign to the key_details property of this CreateSessionDetails. :type key_details: oci.bastion.models.PublicKeyDetails :param session_ttl_in_seconds: The value to assign to the session_ttl_in_seconds property of this CreateSessionDetails. :type session_ttl_in_seconds: int �strZ"CreateSessionTargetResourceDetailsZPublicKeyDetails�int)�display_name� bastion_id�target_resource_details�key_type�key_details�session_ttl_in_secondsZdisplayNameZ bastionIdZtargetResourceDetailsZkeyTypeZ keyDetailsZsessionTtlInSecondsN)Z swagger_typesZ attribute_map� _display_name�_bastion_id�_target_resource_details� _key_type�_key_details�_session_ttl_in_seconds)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/bastion/models/create_session_details.py�__init__ s( � � zCreateSessionDetails.__init__c C s | j S )z� Gets the display_name of this CreateSessionDetails. The name of the session. :return: The display_name of this CreateSessionDetails. :rtype: str �r �r r r r r N s z!CreateSessionDetails.display_namec C s || _ dS )z� Sets the display_name of this CreateSessionDetails. The name of the session. :param display_name: The display_name of this CreateSessionDetails. :type: str Nr )r r r r r r Z s c C s | j S )z� **[Required]** Gets the bastion_id of this CreateSessionDetails. The unique identifier (OCID) of the bastion on which to create this session. :return: The bastion_id of this CreateSessionDetails. :rtype: str �r r r r r r f s zCreateSessionDetails.bastion_idc C s || _ dS )z� Sets the bastion_id of this CreateSessionDetails. The unique identifier (OCID) of the bastion on which to create this session. :param bastion_id: The bastion_id of this CreateSessionDetails. :type: str Nr )r r r r r r r s c C s | j S )z� **[Required]** Gets the target_resource_details of this CreateSessionDetails. :return: The target_resource_details of this CreateSessionDetails. :rtype: oci.bastion.models.CreateSessionTargetResourceDetails �r r r r r r ~ s z,CreateSessionDetails.target_resource_detailsc C s || _ dS )z� Sets the target_resource_details of this CreateSessionDetails. :param target_resource_details: The target_resource_details of this CreateSessionDetails. :type: oci.bastion.models.CreateSessionTargetResourceDetails Nr )r r r r r r � s c C s | j S )a4 Gets the key_type of this CreateSessionDetails. The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format. Allowed values for this property are: "PUB" :return: The key_type of this CreateSessionDetails. :rtype: str )r r r r r r � s zCreateSessionDetails.key_typec C s( dg}t ||�std|� ���|| _dS )a Sets the key_type of this CreateSessionDetails. The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format. :param key_type: The key_type of this CreateSessionDetails. :type: str r z5Invalid value for `key_type`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r � s �c C s | j S )z� **[Required]** Gets the key_details of this CreateSessionDetails. :return: The key_details of this CreateSessionDetails. :rtype: oci.bastion.models.PublicKeyDetails �r r r r r r � s z CreateSessionDetails.key_detailsc C s || _ dS )z� Sets the key_details of this CreateSessionDetails. :param key_details: The key_details of this CreateSessionDetails. :type: oci.bastion.models.PublicKeyDetails Nr )r r r r r r � s c C s | j S )z� Gets the session_ttl_in_seconds of this CreateSessionDetails. The amount of time the session can remain active. :return: The session_ttl_in_seconds of this CreateSessionDetails. :rtype: int �r r r r r r � s z+CreateSessionDetails.session_ttl_in_secondsc C s || _ dS )z� Sets the session_ttl_in_seconds of this CreateSessionDetails. The amount of time the session can remain active. :param session_ttl_in_seconds: The session_ttl_in_seconds of this CreateSessionDetails. :type: int Nr! )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zCreateSessionDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zCreateSessionDetails.__eq__c C s | |k S r"