o
    ɶdG                     @   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                   @   s  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d6d7 Zd8d9 Zd:d; Zd<S )=BastionSummaryaF  
    Summary information for 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   s   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 BastionSummary 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 BastionSummary.
        :type bastion_type: str

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

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

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

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

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

        :param dns_proxy_status:
            The value to assign to the dns_proxy_status property of this BastionSummary.
            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 BastionSummary.
        :type time_created: datetime

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this BastionSummary.
            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 BastionSummary.
        :type lifecycle_details: str

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

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

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

        strdatetimezdict(str, str)zdict(str, dict(str, object)))bastion_typeidnamecompartment_idtarget_vcn_idtarget_subnet_iddns_proxy_statustime_createdtime_updatedlifecycle_statelifecycle_detailsfreeform_tagsdefined_tagssystem_tagsZbastionTyper   r   ZcompartmentIdZtargetVcnIdZtargetSubnetIdZ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_dns_proxy_status_time_created_time_updated_lifecycle_state_lifecycle_details_freeform_tags_defined_tags_system_tags)selfkwargs r/   Fusr/lib/python3.10/site-packages/oci/bastion/models/bastion_summary.py__init__2   sX   C
zBastionSummary.__init__c                 C      | j S )z
        **[Required]** Gets the bastion_type of this BastionSummary.
        The type of bastion.


        :return: The bastion_type of this BastionSummary.
        :rtype: str
        r   r-   r/   r/   r0   r         
zBastionSummary.bastion_typec                 C   
   || _ dS )z
        Sets the bastion_type of this BastionSummary.
        The type of bastion.


        :param bastion_type: The bastion_type of this BastionSummary.
        :type: str
        Nr3   )r-   r   r/   r/   r0   r         

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


        :return: The id of this BastionSummary.
        :rtype: str
        r    r4   r/   r/   r0   r      r5   zBastionSummary.idc                 C   r6   )z
        Sets the id of this BastionSummary.
        The unique identifier (OCID) of the bastion, which can't be changed after creation.


        :param id: The id of this BastionSummary.
        :type: str
        Nr8   )r-   r   r/   r/   r0   r      r7   c                 C   r2   )z
        **[Required]** Gets the name of this BastionSummary.
        The name of the bastion, which can't be changed after creation.


        :return: The name of this BastionSummary.
        :rtype: str
        r!   r4   r/   r/   r0   r      r5   zBastionSummary.namec                 C   r6   )z
        Sets the name of this BastionSummary.
        The name of the bastion, which can't be changed after creation.


        :param name: The name of this BastionSummary.
        :type: str
        Nr9   )r-   r   r/   r/   r0   r      r7   c                 C   r2   )z
        **[Required]** Gets the compartment_id of this BastionSummary.
        The unique identifier (OCID) of the compartment where the bastion is located.


        :return: The compartment_id of this BastionSummary.
        :rtype: str
        r"   r4   r/   r/   r0   r      r5   zBastionSummary.compartment_idc                 C   r6   )z
        Sets the compartment_id of this BastionSummary.
        The unique identifier (OCID) of the compartment where the bastion is located.


        :param compartment_id: The compartment_id of this BastionSummary.
        :type: str
        Nr:   )r-   r   r/   r/   r0   r      r7   c                 C   r2   )a  
        **[Required]** Gets the target_vcn_id of this BastionSummary.
        The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.


        :return: The target_vcn_id of this BastionSummary.
        :rtype: str
        r#   r4   r/   r/   r0   r     r5   zBastionSummary.target_vcn_idc                 C   r6   )a  
        Sets the target_vcn_id of this BastionSummary.
        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 BastionSummary.
        :type: str
        Nr;   )r-   r   r/   r/   r0   r     r7   c                 C   r2   )z
        **[Required]** Gets the target_subnet_id of this BastionSummary.
        The unique identifier (OCID) of the subnet that the bastion connects to.


        :return: The target_subnet_id of this BastionSummary.
        :rtype: str
        r$   r4   r/   r/   r0   r     r5   zBastionSummary.target_subnet_idc                 C   r6   )z
        Sets the target_subnet_id of this BastionSummary.
        The unique identifier (OCID) of the subnet that the bastion connects to.


        :param target_subnet_id: The target_subnet_id of this BastionSummary.
        :type: str
        Nr<   )r-   r   r/   r/   r0   r   )  r7   c                 C   r2   )a  
        Gets the dns_proxy_status of this BastionSummary.
        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 BastionSummary.
        :rtype: str
        )r%   r4   r/   r/   r0   r   5     zBastionSummary.dns_proxy_statusc                 C   s    ddg}t ||sd}|| _dS )z
        Sets the dns_proxy_status of this BastionSummary.
        The current dns proxy status of the bastion.


        :param dns_proxy_status: The dns_proxy_status of this BastionSummary.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r%   )r-   r   allowed_valuesr/   r/   r0   r   D     


c                 C   r2   )aK  
        **[Required]** Gets the time_created of this BastionSummary.
        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 BastionSummary.
        :rtype: datetime
        r&   r4   r/   r/   r0   r   S  r=   zBastionSummary.time_createdc                 C   r6   )aG  
        Sets the time_created of this BastionSummary.
        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 BastionSummary.
        :type: datetime
        NrA   )r-   r   r/   r/   r0   r   b     
c                 C   r2   )a<  
        Gets the time_updated of this BastionSummary.
        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 BastionSummary.
        :rtype: datetime
        r'   r4   r/   r/   r0   r   q  r=   zBastionSummary.time_updatedc                 C   r6   )aG  
        Sets the time_updated of this BastionSummary.
        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 BastionSummary.
        :type: datetime
        NrC   )r-   r   r/   r/   r0   r     rB   c                 C   r2   )a  
        **[Required]** Gets the lifecycle_state of this BastionSummary.
        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 BastionSummary.
        :rtype: str
        )r(   r4   r/   r/   r0   r     r=   zBastionSummary.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this BastionSummary.
        The current state of the bastion.


        :param lifecycle_state: The lifecycle_state of this BastionSummary.
        :type: str
        )r	   r
   r   r   r   r   r>   N)r   r(   )r-   r   r?   r/   r/   r0   r     r@   c                 C   r2   )z
        Gets the lifecycle_details of this BastionSummary.
        A message describing the current state in more detail.


        :return: The lifecycle_details of this BastionSummary.
        :rtype: str
        r)   r4   r/   r/   r0   r     r5   z BastionSummary.lifecycle_detailsc                 C   r6   )z
        Sets the lifecycle_details of this BastionSummary.
        A message describing the current state in more detail.


        :param lifecycle_details: The lifecycle_details of this BastionSummary.
        :type: str
        NrD   )r-   r   r/   r/   r0   r     r7   c                 C   r2   )aC  
        Gets the freeform_tags of this BastionSummary.
        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 BastionSummary.
        :rtype: dict(str, str)
        r*   r4   r/   r/   r0   r        zBastionSummary.freeform_tagsc                 C   r6   )aO  
        Sets the freeform_tags of this BastionSummary.
        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 BastionSummary.
        :type: dict(str, str)
        NrE   )r-   r   r/   r/   r0   r        
c                 C   r2   )a=  
        Gets the defined_tags of this BastionSummary.
        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 BastionSummary.
        :rtype: dict(str, dict(str, object))
        r+   r4   r/   r/   r0   r     rF   zBastionSummary.defined_tagsc                 C   r6   )aH  
        Sets the defined_tags of this BastionSummary.
        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 BastionSummary.
        :type: dict(str, dict(str, object))
        NrH   )r-   r   r/   r/   r0   r     rG   c                 C   r2   )a:  
        Gets the system_tags of this BastionSummary.
        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 BastionSummary.
        :rtype: dict(str, dict(str, object))
        r,   r4   r/   r/   r0   r     rF   zBastionSummary.system_tagsc                 C   r6   )aD  
        Sets the system_tags of this BastionSummary.
        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 BastionSummary.
        :type: dict(str, dict(str, object))
        NrI   )r-   r   r/   r/   r0   r     rG   c                 C   s   t | S N)r   r4   r/   r/   r0   __repr__  s   zBastionSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r-   otherr/   r/   r0   __eq__  s   zBastionSummary.__eq__c                 C   s
   | |k S rJ   r/   rM   r/   r/   r0   __ne__  s   
zBastionSummary.__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_FAILEDr1   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   rK   rO   rP   r/   r/   r/   r0   r      s    s



























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r/   r/   r/   r0   <module>   s   