o
    ɶd,a                     @   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                   @   sX  e Zd Zd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ed*d+ Zejd,d+ Zed-d. Zejd/d. Zed0d1 Zejd2d1 Zed3d4 Zejd5d4 Zed6d7 Zejd8d7 Zed9d: Zejd;d: Zed<d= Zejd>d= Zed?d@ Z e jdAd@ Z edBdC Z!e!jdDdC Z!edEdF Z"e"jdGdF Z"dHdI Z#dJdK Z$dLdM Z%dNS )OBastiona.  
    A bastion resource. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.
    DISABLEDENABLEDCREATINGUPDATINGACTIVEDELETINGDELETEDFAILEDc                 K   sl  i 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ddddd| _ i 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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 Bastion object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param bastion_type:
            The value to assign to the bastion_type property of this Bastion.
        :type bastion_type: str

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

        :param name:
            The value to assign to the name property of this Bastion.
        :type name: str

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

        :param target_vcn_id:
            The value to assign to the target_vcn_id property of this Bastion.
        :type target_vcn_id: str

        :param target_subnet_id:
            The value to assign to the target_subnet_id property of this Bastion.
        :type target_subnet_id: str

        :param phone_book_entry:
            The value to assign to the phone_book_entry property of this Bastion.
        :type phone_book_entry: str

        :param client_cidr_block_allow_list:
            The value to assign to the client_cidr_block_allow_list property of this Bastion.
        :type client_cidr_block_allow_list: list[str]

        :param static_jump_host_ip_addresses:
            The value to assign to the static_jump_host_ip_addresses property of this Bastion.
        :type static_jump_host_ip_addresses: list[str]

        :param private_endpoint_ip_address:
            The value to assign to the private_endpoint_ip_address property of this Bastion.
        :type private_endpoint_ip_address: str

        :param max_session_ttl_in_seconds:
            The value to assign to the max_session_ttl_in_seconds property of this Bastion.
        :type max_session_ttl_in_seconds: int

        :param max_sessions_allowed:
            The value to assign to the max_sessions_allowed property of this Bastion.
        :type max_sessions_allowed: int

        :param dns_proxy_status:
            The value to assign to the dns_proxy_status property of this Bastion.
            Allowed values for this property are: "DISABLED", "ENABLED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type dns_proxy_status: str

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

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

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

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

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

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

        bastion_typestridnamecompartment_idtarget_vcn_idtarget_subnet_idphone_book_entryclient_cidr_block_allow_listz	list[str]static_jump_host_ip_addressesprivate_endpoint_ip_addressmax_session_ttl_in_secondsintmax_sessions_alloweddns_proxy_statustime_createddatetimetime_updatedlifecycle_statelifecycle_detailszdict(str, str)zdict(str, dict(str, object)))freeform_tagsdefined_tagssystem_tagsZbastionTypeZcompartmentIdZtargetVcnIdZtargetSubnetIdZphoneBookEntryZclientCidrBlockAllowListZstaticJumpHostIpAddressesZprivateEndpointIpAddressZmaxSessionTtlInSecondsZmaxSessionsAllowedZdnsProxyStatusZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_bastion_type_id_name_compartment_id_target_vcn_id_target_subnet_id_phone_book_entry_client_cidr_block_allow_list_static_jump_host_ip_addresses_private_endpoint_ip_address_max_session_ttl_in_seconds_max_sessions_allowed_dns_proxy_status_time_created_time_updated_lifecycle_state_lifecycle_details_freeform_tags_defined_tags_system_tags)selfkwargs r<   >usr/lib/python3.10/site-packages/oci/bastion/models/bastion.py__init__2   s   Z	

	


zBastion.__init__c                 C      | j S )z
        **[Required]** Gets the bastion_type of this Bastion.
        The type of bastion.


        :return: The bastion_type of this Bastion.
        :rtype: str
        r&   r:   r<   r<   r=   r         
zBastion.bastion_typec                 C   
   || _ dS )z
        Sets the bastion_type of this Bastion.
        The type of bastion.


        :param bastion_type: The bastion_type of this Bastion.
        :type: str
        Nr@   )r:   r   r<   r<   r=   r         

c                 C   r?   )z
        **[Required]** Gets the id of this Bastion.
        The unique identifier (OCID) of the bastion, which can't be changed after creation.


        :return: The id of this Bastion.
        :rtype: str
        r'   rA   r<   r<   r=   r      rB   z
Bastion.idc                 C   rC   )z
        Sets the id of this Bastion.
        The unique identifier (OCID) of the bastion, which can't be changed after creation.


        :param id: The id of this Bastion.
        :type: str
        NrE   )r:   r   r<   r<   r=   r      rD   c                 C   r?   )z
        **[Required]** Gets the name of this Bastion.
        The name of the bastion, which can't be changed after creation.


        :return: The name of this Bastion.
        :rtype: str
        r(   rA   r<   r<   r=   r      rB   zBastion.namec                 C   rC   )z
        Sets the name of this Bastion.
        The name of the bastion, which can't be changed after creation.


        :param name: The name of this Bastion.
        :type: str
        NrF   )r:   r   r<   r<   r=   r     rD   c                 C   r?   )z
        **[Required]** Gets the compartment_id of this Bastion.
        The unique identifier (OCID) of the compartment where the bastion is located.


        :return: The compartment_id of this Bastion.
        :rtype: str
        r)   rA   r<   r<   r=   r     rB   zBastion.compartment_idc                 C   rC   )z
        Sets the compartment_id of this Bastion.
        The unique identifier (OCID) of the compartment where the bastion is located.


        :param compartment_id: The compartment_id of this Bastion.
        :type: str
        NrG   )r:   r   r<   r<   r=   r   #  rD   c                 C   r?   )z
        **[Required]** Gets the target_vcn_id of this Bastion.
        The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.


        :return: The target_vcn_id of this Bastion.
        :rtype: str
        r*   rA   r<   r<   r=   r   /  rB   zBastion.target_vcn_idc                 C   rC   )z
        Sets the target_vcn_id of this Bastion.
        The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.


        :param target_vcn_id: The target_vcn_id of this Bastion.
        :type: str
        NrH   )r:   r   r<   r<   r=   r   ;  rD   c                 C   r?   )z
        **[Required]** Gets the target_subnet_id of this Bastion.
        The unique identifier (OCID) of the subnet that the bastion connects to.


        :return: The target_subnet_id of this Bastion.
        :rtype: str
        r+   rA   r<   r<   r=   r   G  rB   zBastion.target_subnet_idc                 C   rC   )z
        Sets the target_subnet_id of this Bastion.
        The unique identifier (OCID) of the subnet that the bastion connects to.


        :param target_subnet_id: The target_subnet_id of this Bastion.
        :type: str
        NrI   )r:   r   r<   r<   r=   r   S  rD   c                 C   r?   )a  
        Gets the phone_book_entry of this Bastion.
        The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.


        :return: The phone_book_entry of this Bastion.
        :rtype: str
        r,   rA   r<   r<   r=   r   _  rB   zBastion.phone_book_entryc                 C   rC   )a  
        Sets the phone_book_entry of this Bastion.
        The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.


        :param phone_book_entry: The phone_book_entry of this Bastion.
        :type: str
        NrJ   )r:   r   r<   r<   r=   r   k  rD   c                 C   r?   )a  
        Gets the client_cidr_block_allow_list of this Bastion.
        A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.


        :return: The client_cidr_block_allow_list of this Bastion.
        :rtype: list[str]
        r-   rA   r<   r<   r=   r   w  rB   z$Bastion.client_cidr_block_allow_listc                 C   rC   )a:  
        Sets the client_cidr_block_allow_list of this Bastion.
        A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.


        :param client_cidr_block_allow_list: The client_cidr_block_allow_list of this Bastion.
        :type: list[str]
        NrK   )r:   r   r<   r<   r=   r     rD   c                 C   r?   )a  
        Gets the static_jump_host_ip_addresses of this Bastion.
        A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.


        :return: The static_jump_host_ip_addresses of this Bastion.
        :rtype: list[str]
        r.   rA   r<   r<   r=   r     rB   z%Bastion.static_jump_host_ip_addressesc                 C   rC   )a8  
        Sets the static_jump_host_ip_addresses of this Bastion.
        A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.


        :param static_jump_host_ip_addresses: The static_jump_host_ip_addresses of this Bastion.
        :type: list[str]
        NrL   )r:   r   r<   r<   r=   r     rD   c                 C   r?   )z
        Gets the private_endpoint_ip_address of this Bastion.
        The private IP address of the created private endpoint.


        :return: The private_endpoint_ip_address of this Bastion.
        :rtype: str
        r/   rA   r<   r<   r=   r     rB   z#Bastion.private_endpoint_ip_addressc                 C   rC   )z
        Sets the private_endpoint_ip_address of this Bastion.
        The private IP address of the created private endpoint.


        :param private_endpoint_ip_address: The private_endpoint_ip_address of this Bastion.
        :type: str
        NrM   )r:   r   r<   r<   r=   r     rD   c                 C   r?   )a  
        **[Required]** Gets the max_session_ttl_in_seconds of this Bastion.
        The maximum amount of time that any session on the bastion can remain active.


        :return: The max_session_ttl_in_seconds of this Bastion.
        :rtype: int
        r0   rA   r<   r<   r=   r     rB   z"Bastion.max_session_ttl_in_secondsc                 C   rC   )a  
        Sets the max_session_ttl_in_seconds of this Bastion.
        The maximum amount of time that any session on the bastion can remain active.


        :param max_session_ttl_in_seconds: The max_session_ttl_in_seconds of this Bastion.
        :type: int
        NrN   )r:   r   r<   r<   r=   r     rD   c                 C   r?   )z
        Gets the max_sessions_allowed of this Bastion.
        The maximum number of active sessions allowed on the bastion.


        :return: The max_sessions_allowed of this Bastion.
        :rtype: int
        r1   rA   r<   r<   r=   r     rB   zBastion.max_sessions_allowedc                 C   rC   )z
        Sets the max_sessions_allowed of this Bastion.
        The maximum number of active sessions allowed on the bastion.


        :param max_sessions_allowed: The max_sessions_allowed of this Bastion.
        :type: int
        NrO   )r:   r   r<   r<   r=   r     rD   c                 C   r?   )ax  
        Gets the dns_proxy_status of this Bastion.
        The current dns proxy status of the bastion.

        Allowed values for this property are: "DISABLED", "ENABLED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The dns_proxy_status of this Bastion.
        :rtype: str
        )r2   rA   r<   r<   r=   r        zBastion.dns_proxy_statusc                 C   s    ddg}t ||sd}|| _dS )z
        Sets the dns_proxy_status of this Bastion.
        The current dns proxy status of the bastion.


        :param dns_proxy_status: The dns_proxy_status of this Bastion.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r2   )r:   r   allowed_valuesr<   r<   r=   r        


c                 C   r?   )a=  
        **[Required]** Gets the time_created of this Bastion.
        The time the bastion 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 Bastion.
        :rtype: datetime
        r3   rA   r<   r<   r=   r     rP   zBastion.time_createdc                 C   rC   )a9  
        Sets the time_created of this Bastion.
        The time the bastion 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 Bastion.
        :type: datetime
        NrT   )r:   r   r<   r<   r=   r        
c                 C   r?   )a.  
        Gets the time_updated of this Bastion.
        The time the bastion 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 Bastion.
        :rtype: datetime
        r4   rA   r<   r<   r=   r    +  rP   zBastion.time_updatedc                 C   rC   )a9  
        Sets the time_updated of this Bastion.
        The time the bastion 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 Bastion.
        :type: datetime
        NrV   )r:   r    r<   r<   r=   r    :  rU   c                 C   r?   )a  
        **[Required]** Gets the lifecycle_state of this Bastion.
        The current state of the bastion.

        Allowed values for this property are: "CREATING", "UPDATING", "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 Bastion.
        :rtype: str
        )r5   rA   r<   r<   r=   r!   I  rP   zBastion.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Bastion.
        The current state of the bastion.


        :param lifecycle_state: The lifecycle_state of this Bastion.
        :type: str
        )r	   r
   r   r   r   r   rQ   N)r   r5   )r:   r!   rR   r<   r<   r=   r!   X  rS   c                 C   r?   )z
        Gets the lifecycle_details of this Bastion.
        A message describing the current state in more detail.


        :return: The lifecycle_details of this Bastion.
        :rtype: str
        r6   rA   r<   r<   r=   r"   g  rB   zBastion.lifecycle_detailsc                 C   rC   )z
        Sets the lifecycle_details of this Bastion.
        A message describing the current state in more detail.


        :param lifecycle_details: The lifecycle_details of this Bastion.
        :type: str
        NrW   )r:   r"   r<   r<   r=   r"   s  rD   c                 C   r?   )a5  
        Gets the freeform_tags of this Bastion.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Bastion.
        :rtype: dict(str, str)
        r7   rA   r<   r<   r=   r#        zBastion.freeform_tagsc                 C   rC   )aA  
        Sets the freeform_tags of this Bastion.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Bastion.
        :type: dict(str, str)
        NrX   )r:   r#   r<   r<   r=   r#        
c                 C   r?   )a/  
        Gets the defined_tags of this Bastion.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Bastion.
        :rtype: dict(str, dict(str, object))
        r8   rA   r<   r<   r=   r$     rY   zBastion.defined_tagsc                 C   rC   )a:  
        Sets the defined_tags of this Bastion.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Bastion.
        :type: dict(str, dict(str, object))
        Nr[   )r:   r$   r<   r<   r=   r$     rZ   c                 C   r?   )a,  
        Gets the system_tags of this Bastion.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :return: The system_tags of this Bastion.
        :rtype: dict(str, dict(str, object))
        r9   rA   r<   r<   r=   r%     rY   zBastion.system_tagsc                 C   rC   )a6  
        Sets the system_tags of this Bastion.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this Bastion.
        :type: dict(str, dict(str, object))
        Nr\   )r:   r%   r<   r<   r=   r%     rZ   c                 C   s   t | S N)r   rA   r<   r<   r=   __repr__  s   zBastion.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r:   otherr<   r<   r=   __eq__  s   zBastion.__eq__c                 C   s
   | |k S r]   r<   r`   r<   r<   r=   __ne__  s   
zBastion.__ne__N)&__name__
__module____qualname____doc__ZDNS_PROXY_STATUS_DISABLEDZDNS_PROXY_STATUS_ENABLEDZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr>   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r^   rb   rc   r<   r<   r<   r=   r      s     







































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r<   r<   r<   r=   <module>   s   