| Server IP : 162.241.203.86 / Your IP : 216.73.216.183 Web Server : Apache System : Linux br1002.hostgator.com.br 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : luxlic01 ( 6532) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/oci/core/models/ |
Upload File : |
# coding: utf-8
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class CreateIPSecConnectionTunnelDetails(object):
"""
CreateIPSecConnectionTunnelDetails model.
"""
#: A constant which can be used with the routing property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "BGP"
ROUTING_BGP = "BGP"
#: A constant which can be used with the routing property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "STATIC"
ROUTING_STATIC = "STATIC"
#: A constant which can be used with the routing property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "POLICY"
ROUTING_POLICY = "POLICY"
#: A constant which can be used with the ike_version property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "V1"
IKE_VERSION_V1 = "V1"
#: A constant which can be used with the ike_version property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "V2"
IKE_VERSION_V2 = "V2"
#: A constant which can be used with the oracle_initiation property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "INITIATOR_OR_RESPONDER"
ORACLE_INITIATION_INITIATOR_OR_RESPONDER = "INITIATOR_OR_RESPONDER"
#: A constant which can be used with the oracle_initiation property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "RESPONDER_ONLY"
ORACLE_INITIATION_RESPONDER_ONLY = "RESPONDER_ONLY"
#: A constant which can be used with the nat_translation_enabled property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "ENABLED"
NAT_TRANSLATION_ENABLED_ENABLED = "ENABLED"
#: A constant which can be used with the nat_translation_enabled property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "DISABLED"
NAT_TRANSLATION_ENABLED_DISABLED = "DISABLED"
#: A constant which can be used with the nat_translation_enabled property of a CreateIPSecConnectionTunnelDetails.
#: This constant has a value of "AUTO"
NAT_TRANSLATION_ENABLED_AUTO = "AUTO"
def __init__(self, **kwargs):
"""
Initializes a new CreateIPSecConnectionTunnelDetails 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 CreateIPSecConnectionTunnelDetails.
:type display_name: str
:param routing:
The value to assign to the routing property of this CreateIPSecConnectionTunnelDetails.
Allowed values for this property are: "BGP", "STATIC", "POLICY"
:type routing: str
:param ike_version:
The value to assign to the ike_version property of this CreateIPSecConnectionTunnelDetails.
Allowed values for this property are: "V1", "V2"
:type ike_version: str
:param shared_secret:
The value to assign to the shared_secret property of this CreateIPSecConnectionTunnelDetails.
:type shared_secret: str
:param bgp_session_config:
The value to assign to the bgp_session_config property of this CreateIPSecConnectionTunnelDetails.
:type bgp_session_config: oci.core.models.CreateIPSecTunnelBgpSessionDetails
:param oracle_initiation:
The value to assign to the oracle_initiation property of this CreateIPSecConnectionTunnelDetails.
Allowed values for this property are: "INITIATOR_OR_RESPONDER", "RESPONDER_ONLY"
:type oracle_initiation: str
:param nat_translation_enabled:
The value to assign to the nat_translation_enabled property of this CreateIPSecConnectionTunnelDetails.
Allowed values for this property are: "ENABLED", "DISABLED", "AUTO"
:type nat_translation_enabled: str
:param phase_one_config:
The value to assign to the phase_one_config property of this CreateIPSecConnectionTunnelDetails.
:type phase_one_config: oci.core.models.PhaseOneConfigDetails
:param phase_two_config:
The value to assign to the phase_two_config property of this CreateIPSecConnectionTunnelDetails.
:type phase_two_config: oci.core.models.PhaseTwoConfigDetails
:param dpd_config:
The value to assign to the dpd_config property of this CreateIPSecConnectionTunnelDetails.
:type dpd_config: oci.core.models.DpdConfig
:param oracle_tunnel_ip:
The value to assign to the oracle_tunnel_ip property of this CreateIPSecConnectionTunnelDetails.
:type oracle_tunnel_ip: str
:param associated_virtual_circuits:
The value to assign to the associated_virtual_circuits property of this CreateIPSecConnectionTunnelDetails.
:type associated_virtual_circuits: list[str]
:param drg_route_table_id:
The value to assign to the drg_route_table_id property of this CreateIPSecConnectionTunnelDetails.
:type drg_route_table_id: str
:param encryption_domain_config:
The value to assign to the encryption_domain_config property of this CreateIPSecConnectionTunnelDetails.
:type encryption_domain_config: oci.core.models.CreateIPSecTunnelEncryptionDomainDetails
"""
self.swagger_types = {
'display_name': 'str',
'routing': 'str',
'ike_version': 'str',
'shared_secret': 'str',
'bgp_session_config': 'CreateIPSecTunnelBgpSessionDetails',
'oracle_initiation': 'str',
'nat_translation_enabled': 'str',
'phase_one_config': 'PhaseOneConfigDetails',
'phase_two_config': 'PhaseTwoConfigDetails',
'dpd_config': 'DpdConfig',
'oracle_tunnel_ip': 'str',
'associated_virtual_circuits': 'list[str]',
'drg_route_table_id': 'str',
'encryption_domain_config': 'CreateIPSecTunnelEncryptionDomainDetails'
}
self.attribute_map = {
'display_name': 'displayName',
'routing': 'routing',
'ike_version': 'ikeVersion',
'shared_secret': 'sharedSecret',
'bgp_session_config': 'bgpSessionConfig',
'oracle_initiation': 'oracleInitiation',
'nat_translation_enabled': 'natTranslationEnabled',
'phase_one_config': 'phaseOneConfig',
'phase_two_config': 'phaseTwoConfig',
'dpd_config': 'dpdConfig',
'oracle_tunnel_ip': 'oracleTunnelIp',
'associated_virtual_circuits': 'associatedVirtualCircuits',
'drg_route_table_id': 'drgRouteTableId',
'encryption_domain_config': 'encryptionDomainConfig'
}
self._display_name = None
self._routing = None
self._ike_version = None
self._shared_secret = None
self._bgp_session_config = None
self._oracle_initiation = None
self._nat_translation_enabled = None
self._phase_one_config = None
self._phase_two_config = None
self._dpd_config = None
self._oracle_tunnel_ip = None
self._associated_virtual_circuits = None
self._drg_route_table_id = None
self._encryption_domain_config = None
@property
def display_name(self):
"""
Gets the display_name of this CreateIPSecConnectionTunnelDetails.
A user-friendly name. Does not have to be unique, and it's changeable.
Avoid entering confidential information.
:return: The display_name of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._display_name
@display_name.setter
def display_name(self, display_name):
"""
Sets the display_name of this CreateIPSecConnectionTunnelDetails.
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 CreateIPSecConnectionTunnelDetails.
:type: str
"""
self._display_name = display_name
@property
def routing(self):
"""
Gets the routing of this CreateIPSecConnectionTunnelDetails.
The type of routing to use for this tunnel (BGP dynamic routing, static routing, or policy-based routing).
Allowed values for this property are: "BGP", "STATIC", "POLICY"
:return: The routing of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._routing
@routing.setter
def routing(self, routing):
"""
Sets the routing of this CreateIPSecConnectionTunnelDetails.
The type of routing to use for this tunnel (BGP dynamic routing, static routing, or policy-based routing).
:param routing: The routing of this CreateIPSecConnectionTunnelDetails.
:type: str
"""
allowed_values = ["BGP", "STATIC", "POLICY"]
if not value_allowed_none_or_none_sentinel(routing, allowed_values):
raise ValueError(
f"Invalid value for `routing`, must be None or one of {allowed_values}"
)
self._routing = routing
@property
def ike_version(self):
"""
Gets the ike_version of this CreateIPSecConnectionTunnelDetails.
Internet Key Exchange protocol version.
Allowed values for this property are: "V1", "V2"
:return: The ike_version of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._ike_version
@ike_version.setter
def ike_version(self, ike_version):
"""
Sets the ike_version of this CreateIPSecConnectionTunnelDetails.
Internet Key Exchange protocol version.
:param ike_version: The ike_version of this CreateIPSecConnectionTunnelDetails.
:type: str
"""
allowed_values = ["V1", "V2"]
if not value_allowed_none_or_none_sentinel(ike_version, allowed_values):
raise ValueError(
f"Invalid value for `ike_version`, must be None or one of {allowed_values}"
)
self._ike_version = ike_version
@property
def shared_secret(self):
"""
Gets the shared_secret of this CreateIPSecConnectionTunnelDetails.
The shared secret (pre-shared key) to use for the IPSec tunnel. Only numbers, letters, and
spaces are allowed. If you don't provide a value,
Oracle generates a value for you. You can specify your own shared secret later if
you like with :func:`update_ip_sec_connection_tunnel_shared_secret`.
:return: The shared_secret of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._shared_secret
@shared_secret.setter
def shared_secret(self, shared_secret):
"""
Sets the shared_secret of this CreateIPSecConnectionTunnelDetails.
The shared secret (pre-shared key) to use for the IPSec tunnel. Only numbers, letters, and
spaces are allowed. If you don't provide a value,
Oracle generates a value for you. You can specify your own shared secret later if
you like with :func:`update_ip_sec_connection_tunnel_shared_secret`.
:param shared_secret: The shared_secret of this CreateIPSecConnectionTunnelDetails.
:type: str
"""
self._shared_secret = shared_secret
@property
def bgp_session_config(self):
"""
Gets the bgp_session_config of this CreateIPSecConnectionTunnelDetails.
:return: The bgp_session_config of this CreateIPSecConnectionTunnelDetails.
:rtype: oci.core.models.CreateIPSecTunnelBgpSessionDetails
"""
return self._bgp_session_config
@bgp_session_config.setter
def bgp_session_config(self, bgp_session_config):
"""
Sets the bgp_session_config of this CreateIPSecConnectionTunnelDetails.
:param bgp_session_config: The bgp_session_config of this CreateIPSecConnectionTunnelDetails.
:type: oci.core.models.CreateIPSecTunnelBgpSessionDetails
"""
self._bgp_session_config = bgp_session_config
@property
def oracle_initiation(self):
"""
Gets the oracle_initiation of this CreateIPSecConnectionTunnelDetails.
Indicates whether the Oracle end of the IPSec connection is able to initiate starting up the IPSec tunnel.
Allowed values for this property are: "INITIATOR_OR_RESPONDER", "RESPONDER_ONLY"
:return: The oracle_initiation of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._oracle_initiation
@oracle_initiation.setter
def oracle_initiation(self, oracle_initiation):
"""
Sets the oracle_initiation of this CreateIPSecConnectionTunnelDetails.
Indicates whether the Oracle end of the IPSec connection is able to initiate starting up the IPSec tunnel.
:param oracle_initiation: The oracle_initiation of this CreateIPSecConnectionTunnelDetails.
:type: str
"""
allowed_values = ["INITIATOR_OR_RESPONDER", "RESPONDER_ONLY"]
if not value_allowed_none_or_none_sentinel(oracle_initiation, allowed_values):
raise ValueError(
f"Invalid value for `oracle_initiation`, must be None or one of {allowed_values}"
)
self._oracle_initiation = oracle_initiation
@property
def nat_translation_enabled(self):
"""
Gets the nat_translation_enabled of this CreateIPSecConnectionTunnelDetails.
By default (the `AUTO` setting), IKE sends packets with a source and destination port set to 500,
and when it detects that the port used to forward packets has changed (most likely because a NAT device
is between the CPE device and the Oracle VPN headend) it will try to negotiate the use of NAT-T.
The `ENABLED` option sets the IKE protocol to use port 4500 instead of 500 and forces encapsulating traffic with the ESP protocol inside UDP packets.
The `DISABLED` option directs IKE to completely refuse to negotiate NAT-T
even if it senses there may be a NAT device in use.
Allowed values for this property are: "ENABLED", "DISABLED", "AUTO"
:return: The nat_translation_enabled of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._nat_translation_enabled
@nat_translation_enabled.setter
def nat_translation_enabled(self, nat_translation_enabled):
"""
Sets the nat_translation_enabled of this CreateIPSecConnectionTunnelDetails.
By default (the `AUTO` setting), IKE sends packets with a source and destination port set to 500,
and when it detects that the port used to forward packets has changed (most likely because a NAT device
is between the CPE device and the Oracle VPN headend) it will try to negotiate the use of NAT-T.
The `ENABLED` option sets the IKE protocol to use port 4500 instead of 500 and forces encapsulating traffic with the ESP protocol inside UDP packets.
The `DISABLED` option directs IKE to completely refuse to negotiate NAT-T
even if it senses there may be a NAT device in use.
:param nat_translation_enabled: The nat_translation_enabled of this CreateIPSecConnectionTunnelDetails.
:type: str
"""
allowed_values = ["ENABLED", "DISABLED", "AUTO"]
if not value_allowed_none_or_none_sentinel(nat_translation_enabled, allowed_values):
raise ValueError(
f"Invalid value for `nat_translation_enabled`, must be None or one of {allowed_values}"
)
self._nat_translation_enabled = nat_translation_enabled
@property
def phase_one_config(self):
"""
Gets the phase_one_config of this CreateIPSecConnectionTunnelDetails.
:return: The phase_one_config of this CreateIPSecConnectionTunnelDetails.
:rtype: oci.core.models.PhaseOneConfigDetails
"""
return self._phase_one_config
@phase_one_config.setter
def phase_one_config(self, phase_one_config):
"""
Sets the phase_one_config of this CreateIPSecConnectionTunnelDetails.
:param phase_one_config: The phase_one_config of this CreateIPSecConnectionTunnelDetails.
:type: oci.core.models.PhaseOneConfigDetails
"""
self._phase_one_config = phase_one_config
@property
def phase_two_config(self):
"""
Gets the phase_two_config of this CreateIPSecConnectionTunnelDetails.
:return: The phase_two_config of this CreateIPSecConnectionTunnelDetails.
:rtype: oci.core.models.PhaseTwoConfigDetails
"""
return self._phase_two_config
@phase_two_config.setter
def phase_two_config(self, phase_two_config):
"""
Sets the phase_two_config of this CreateIPSecConnectionTunnelDetails.
:param phase_two_config: The phase_two_config of this CreateIPSecConnectionTunnelDetails.
:type: oci.core.models.PhaseTwoConfigDetails
"""
self._phase_two_config = phase_two_config
@property
def dpd_config(self):
"""
Gets the dpd_config of this CreateIPSecConnectionTunnelDetails.
:return: The dpd_config of this CreateIPSecConnectionTunnelDetails.
:rtype: oci.core.models.DpdConfig
"""
return self._dpd_config
@dpd_config.setter
def dpd_config(self, dpd_config):
"""
Sets the dpd_config of this CreateIPSecConnectionTunnelDetails.
:param dpd_config: The dpd_config of this CreateIPSecConnectionTunnelDetails.
:type: oci.core.models.DpdConfig
"""
self._dpd_config = dpd_config
@property
def oracle_tunnel_ip(self):
"""
Gets the oracle_tunnel_ip of this CreateIPSecConnectionTunnelDetails.
The headend IP that you can choose on the Oracle side to terminate your private IPSec tunnel.
:return: The oracle_tunnel_ip of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._oracle_tunnel_ip
@oracle_tunnel_ip.setter
def oracle_tunnel_ip(self, oracle_tunnel_ip):
"""
Sets the oracle_tunnel_ip of this CreateIPSecConnectionTunnelDetails.
The headend IP that you can choose on the Oracle side to terminate your private IPSec tunnel.
:param oracle_tunnel_ip: The oracle_tunnel_ip of this CreateIPSecConnectionTunnelDetails.
:type: str
"""
self._oracle_tunnel_ip = oracle_tunnel_ip
@property
def associated_virtual_circuits(self):
"""
Gets the associated_virtual_circuits of this CreateIPSecConnectionTunnelDetails.
The list of virtual circuit `OCID`__s over which your network can reach this tunnel.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:return: The associated_virtual_circuits of this CreateIPSecConnectionTunnelDetails.
:rtype: list[str]
"""
return self._associated_virtual_circuits
@associated_virtual_circuits.setter
def associated_virtual_circuits(self, associated_virtual_circuits):
"""
Sets the associated_virtual_circuits of this CreateIPSecConnectionTunnelDetails.
The list of virtual circuit `OCID`__s over which your network can reach this tunnel.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param associated_virtual_circuits: The associated_virtual_circuits of this CreateIPSecConnectionTunnelDetails.
:type: list[str]
"""
self._associated_virtual_circuits = associated_virtual_circuits
@property
def drg_route_table_id(self):
"""
Gets the drg_route_table_id of this CreateIPSecConnectionTunnelDetails.
The `OCID`__ of the DRG route table assigned to this attachment.
The DRG route table manages traffic inside the DRG.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:return: The drg_route_table_id of this CreateIPSecConnectionTunnelDetails.
:rtype: str
"""
return self._drg_route_table_id
@drg_route_table_id.setter
def drg_route_table_id(self, drg_route_table_id):
"""
Sets the drg_route_table_id of this CreateIPSecConnectionTunnelDetails.
The `OCID`__ of the DRG route table assigned to this attachment.
The DRG route table manages traffic inside the DRG.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param drg_route_table_id: The drg_route_table_id of this CreateIPSecConnectionTunnelDetails.
:type: str
"""
self._drg_route_table_id = drg_route_table_id
@property
def encryption_domain_config(self):
"""
Gets the encryption_domain_config of this CreateIPSecConnectionTunnelDetails.
:return: The encryption_domain_config of this CreateIPSecConnectionTunnelDetails.
:rtype: oci.core.models.CreateIPSecTunnelEncryptionDomainDetails
"""
return self._encryption_domain_config
@encryption_domain_config.setter
def encryption_domain_config(self, encryption_domain_config):
"""
Sets the encryption_domain_config of this CreateIPSecConnectionTunnelDetails.
:param encryption_domain_config: The encryption_domain_config of this CreateIPSecConnectionTunnelDetails.
:type: oci.core.models.CreateIPSecTunnelEncryptionDomainDetails
"""
self._encryption_domain_config = encryption_domain_config
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other