ruạṛ
a ���f�V � @ 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 dZ d Zd d� Ze dd � �Zejdd � �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejd d� �Ze d!d"� �Zejd#d"� �Ze d$d%� �Zejd&d%� �Ze d'd(� �Zejd)d(� �Ze d*d+� �Zejd,d+� �Ze d-d.� �Zejd/d.� �Ze d0d1� �Zejd2d1� �Zd3d4� Zd5d6� Zd7d8� Zd9S ):�IPSecConnectionau A connection between a DRG and CPE. This connection consists of multiple IPSec tunnels. Creating this connection is one of the steps required when setting up a Site-to-Site VPN. **Important:** Each tunnel in an IPSec connection can use either static routing or BGP dynamic routing (see the :class:`IPSecConnectionTunnel` object's `routing` attribute). Originally only static routing was supported and every IPSec connection was required to have at least one static route configured. To maintain backward compatibility in the API when support for BPG dynamic routing was introduced, the API accepts an empty list of static routes if you configure both of the IPSec tunnels to use BGP dynamic routing. If you switch a tunnel's routing from `BGP` to `STATIC`, you must first ensure that the IPSec connection is configured with at least one valid CIDR block static route. Oracle uses the IPSec connection's static routes when routing a tunnel's traffic *only* if that tunnel's `routing` attribute = `STATIC`. Otherwise the static routes are ignored. For more information about the workflow for setting up an IPSec connection, see `Site-to-Site VPN Overview`__. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm __ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm �PROVISIONING� AVAILABLE�TERMINATING� TERMINATED� IP_ADDRESS�HOSTNAME�INTERNET�FASTCONNECTc K s� dddddddddddddd� | _ ddd d ddd ddddddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _dS )a� Initializes a new IPSecConnection object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param compartment_id: The value to assign to the compartment_id property of this IPSecConnection. :type compartment_id: str :param cpe_id: The value to assign to the cpe_id property of this IPSecConnection. :type cpe_id: str :param defined_tags: The value to assign to the defined_tags property of this IPSecConnection. :type defined_tags: dict(str, dict(str, object)) :param display_name: The value to assign to the display_name property of this IPSecConnection. :type display_name: str :param drg_id: The value to assign to the drg_id property of this IPSecConnection. :type drg_id: str :param freeform_tags: The value to assign to the freeform_tags property of this IPSecConnection. :type freeform_tags: dict(str, str) :param id: The value to assign to the id property of this IPSecConnection. :type id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this IPSecConnection. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED" :type lifecycle_state: str :param cpe_local_identifier: The value to assign to the cpe_local_identifier property of this IPSecConnection. :type cpe_local_identifier: str :param cpe_local_identifier_type: The value to assign to the cpe_local_identifier_type property of this IPSecConnection. Allowed values for this property are: "IP_ADDRESS", "HOSTNAME" :type cpe_local_identifier_type: str :param static_routes: The value to assign to the static_routes property of this IPSecConnection. :type static_routes: list[str] :param time_created: The value to assign to the time_created property of this IPSecConnection. :type time_created: datetime :param transport_type: The value to assign to the transport_type property of this IPSecConnection. Allowed values for this property are: "INTERNET", "FASTCONNECT" :type transport_type: str �strzdict(str, dict(str, object))zdict(str, str)z list[str]Zdatetime) �compartment_id�cpe_id�defined_tags�display_name�drg_id� freeform_tags�id�lifecycle_state�cpe_local_identifier�cpe_local_identifier_type� static_routes�time_created�transport_typeZ compartmentIdZcpeIdZdefinedTagsZdisplayNameZdrgIdZfreeformTagsr ZlifecycleStateZcpeLocalIdentifierZcpeLocalIdentifierTypeZstaticRoutesZtimeCreatedZ transportTypeN)Z swagger_typesZ attribute_map�_compartment_id�_cpe_id� _defined_tags� _display_name�_drg_id�_freeform_tags�_id�_lifecycle_state�_cpe_local_identifier�_cpe_local_identifier_type�_static_routes� _time_created�_transport_type)�self�kwargs� r, �N/usr/lib/python3.9/site-packages/oci/vn_monitoring/models/ip_sec_connection.py�__init__I sR >��zIPSecConnection.__init__c C s | j S )aE **[Required]** Gets the compartment_id of this IPSecConnection. The `OCID`__ of the compartment containing the IPSec connection. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this IPSecConnection. :rtype: str �r �r* r, r, r- r � s zIPSecConnection.compartment_idc C s || _ dS )aC Sets the compartment_id of this IPSecConnection. The `OCID`__ of the compartment containing the IPSec connection. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this IPSecConnection. :type: str Nr/ )r* r r, r, r- r � s c C s | j S )a **[Required]** Gets the cpe_id of this IPSecConnection. The `OCID`__ of the :class:`Cpe` object. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The cpe_id of this IPSecConnection. :rtype: str �r r0 r, r, r- r � s zIPSecConnection.cpe_idc C s || _ dS )a Sets the cpe_id of this IPSecConnection. The `OCID`__ of the :class:`Cpe` object. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param cpe_id: The cpe_id of this IPSecConnection. :type: str Nr1 )r* r r, r, r- r � s c C s | j S )a? Gets the defined_tags of this IPSecConnection. 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 IPSecConnection. :rtype: dict(str, dict(str, object)) �r r0 r, r, r- r � s zIPSecConnection.defined_tagsc C s || _ dS )aJ Sets the defined_tags of this IPSecConnection. 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 IPSecConnection. :type: dict(str, dict(str, object)) Nr2 )r* r r, r, r- r � s c C s | j S )a Gets the display_name of this IPSecConnection. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this IPSecConnection. :rtype: str �r r0 r, r, r- r s zIPSecConnection.display_namec C s || _ dS )a Sets the display_name of this IPSecConnection. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param display_name: The display_name of this IPSecConnection. :type: str Nr3 )r* r r, r, r- r s c C s | j S )a **[Required]** Gets the drg_id of this IPSecConnection. The `OCID`__ of the DRG. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The drg_id of this IPSecConnection. :rtype: str �r! r0 r, r, r- r s zIPSecConnection.drg_idc C s || _ dS )a Sets the drg_id of this IPSecConnection. The `OCID`__ of the DRG. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param drg_id: The drg_id of this IPSecConnection. :type: str Nr4 )r* r r, r, r- r . s c C s | j S )aE Gets the freeform_tags of this IPSecConnection. 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 IPSecConnection. :rtype: dict(str, str) �r"