ruạṛ
a N��f�E � @ 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 �str�TargetResourceDetailszdict(str, str)�PublicKeyDetails�datetime�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 �displayName� bastionId�bastionName�bastionUserName�targetResourceDetails�sshMetadata�keyType� keyDetails�bastionPublicHostKeyInfo�timeCreated�timeUpdated�lifecycleState�lifecycleDetails�sessionTtlInSecondsN)� swagger_types� 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� rB �~/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/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 �r1 �r@ rB rB rC 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 NrE )r@ r rB rB rC 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 �r2 rF rB rB rC 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 NrG )r@ r rB rB rC 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 �r3 rF rB rB rC 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 NrH )r@ r rB rB rC 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 �r4 rF rB rB rC 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 NrI )r@ r rB rB rC 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 �r5 rF rB rB rC r s zSession.bastion_user_namec C s || _ dS )z� Sets the bastion_user_name of this Session. The username that the session uses to connect to the target resource. :param bastion_user_name: The bastion_user_name of this Session. :type: str NrJ )r@ r rB rB rC r s c C s | j S )z� **[Required]** Gets the target_resource_details of this Session. :return: The target_resource_details of this Session. :rtype: oci.bastion.models.TargetResourceDetails �r6 rF rB rB rC r s zSession.target_resource_detailsc C s || _ dS )z� Sets the target_resource_details of this Session. :param target_resource_details: The target_resource_details of this Session. :type: oci.bastion.models.TargetResourceDetails NrK )r@ r rB rB rC r $ s c C s | j S )z� Gets the ssh_metadata of this Session. The connection message for the session. :return: The ssh_metadata of this Session. :rtype: dict(str, str) �r7 rF rB rB rC r . s zSession.ssh_metadatac C s || _ dS )z� Sets the ssh_metadata of this Session. The connection message for the session. :param ssh_metadata: The ssh_metadata of this Session. :type: dict(str, str) NrL )r@ r rB rB rC r : s c C s | j S )a� Gets the key_type of this Session. 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", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The key_type of this Session. :rtype: str )r8 rF rB rB rC r F s zSession.key_typec C s dg}t ||�sd}|| _dS )z� Sets the key_type of this Session. 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 Session. :type: str r �UNKNOWN_ENUM_VALUEN)r r8 )r@ r �allowed_valuesrB rB rC r U s c C s | j S )z� **[Required]** Gets the key_details of this Session. :return: The key_details of this Session. :rtype: oci.bastion.models.PublicKeyDetails �r9 rF rB rB rC r d s zSession.key_detailsc C s || _ dS )z� Sets the key_details of this Session. :param key_details: The key_details of this Session. :type: oci.bastion.models.PublicKeyDetails NrO )r@ r rB rB rC r n s c C s | j S )a Gets the bastion_public_host_key_info of this Session. The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion. :return: The bastion_public_host_key_info of this Session. :rtype: str �r: rF rB rB rC r x s z$Session.bastion_public_host_key_infoc C s || _ dS )a2 Sets the bastion_public_host_key_info of this Session. The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion. :param bastion_public_host_key_info: The bastion_public_host_key_info of this Session. :type: str NrP )r@ r rB rB rC r � s c C s | j S )a= **[Required]** Gets the time_created of this Session. 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 Session. :rtype: datetime �r; rF rB rB rC r � s zSession.time_createdc C s || _ dS )a9 Sets the time_created of this Session. 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 Session. :type: datetime NrQ )r@ r rB rB rC r � s c C s | j S )a. Gets the time_updated of this Session. 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 Session. :rtype: datetime �r<