Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
vn_monitoring
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: bgp_session_info.py
# 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 BgpSessionInfo(object): """ Information for establishing a BGP session for the IPSec tunnel. """ #: A constant which can be used with the bgp_state property of a BgpSessionInfo. #: This constant has a value of "UP" BGP_STATE_UP = "UP" #: A constant which can be used with the bgp_state property of a BgpSessionInfo. #: This constant has a value of "DOWN" BGP_STATE_DOWN = "DOWN" #: A constant which can be used with the bgp_ipv6_state property of a BgpSessionInfo. #: This constant has a value of "UP" BGP_IPV6_STATE_UP = "UP" #: A constant which can be used with the bgp_ipv6_state property of a BgpSessionInfo. #: This constant has a value of "DOWN" BGP_IPV6_STATE_DOWN = "DOWN" def __init__(self, **kwargs): """ Initializes a new BgpSessionInfo object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param oracle_interface_ip: The value to assign to the oracle_interface_ip property of this BgpSessionInfo. :type oracle_interface_ip: str :param customer_interface_ip: The value to assign to the customer_interface_ip property of this BgpSessionInfo. :type customer_interface_ip: str :param oracle_interface_ipv6: The value to assign to the oracle_interface_ipv6 property of this BgpSessionInfo. :type oracle_interface_ipv6: str :param customer_interface_ipv6: The value to assign to the customer_interface_ipv6 property of this BgpSessionInfo. :type customer_interface_ipv6: str :param oracle_bgp_asn: The value to assign to the oracle_bgp_asn property of this BgpSessionInfo. :type oracle_bgp_asn: str :param customer_bgp_asn: The value to assign to the customer_bgp_asn property of this BgpSessionInfo. :type customer_bgp_asn: str :param bgp_state: The value to assign to the bgp_state property of this BgpSessionInfo. Allowed values for this property are: "UP", "DOWN" :type bgp_state: str :param bgp_ipv6_state: The value to assign to the bgp_ipv6_state property of this BgpSessionInfo. Allowed values for this property are: "UP", "DOWN" :type bgp_ipv6_state: str """ self.swagger_types = { 'oracle_interface_ip': 'str', 'customer_interface_ip': 'str', 'oracle_interface_ipv6': 'str', 'customer_interface_ipv6': 'str', 'oracle_bgp_asn': 'str', 'customer_bgp_asn': 'str', 'bgp_state': 'str', 'bgp_ipv6_state': 'str' } self.attribute_map = { 'oracle_interface_ip': 'oracleInterfaceIp', 'customer_interface_ip': 'customerInterfaceIp', 'oracle_interface_ipv6': 'oracleInterfaceIpv6', 'customer_interface_ipv6': 'customerInterfaceIpv6', 'oracle_bgp_asn': 'oracleBgpAsn', 'customer_bgp_asn': 'customerBgpAsn', 'bgp_state': 'bgpState', 'bgp_ipv6_state': 'bgpIpv6State' } self._oracle_interface_ip = None self._customer_interface_ip = None self._oracle_interface_ipv6 = None self._customer_interface_ipv6 = None self._oracle_bgp_asn = None self._customer_bgp_asn = None self._bgp_state = None self._bgp_ipv6_state = None @property def oracle_interface_ip(self): """ Gets the oracle_interface_ip of this BgpSessionInfo. The IP address for the Oracle end of the inside tunnel interface. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is required and used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP address so you can troubleshoot or monitor the tunnel. The value must be a /30 or /31. Example: `10.0.0.4/31` :return: The oracle_interface_ip of this BgpSessionInfo. :rtype: str """ return self._oracle_interface_ip @oracle_interface_ip.setter def oracle_interface_ip(self, oracle_interface_ip): """ Sets the oracle_interface_ip of this BgpSessionInfo. The IP address for the Oracle end of the inside tunnel interface. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is required and used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP address so you can troubleshoot or monitor the tunnel. The value must be a /30 or /31. Example: `10.0.0.4/31` :param oracle_interface_ip: The oracle_interface_ip of this BgpSessionInfo. :type: str """ self._oracle_interface_ip = oracle_interface_ip @property def customer_interface_ip(self): """ Gets the customer_interface_ip of this BgpSessionInfo. The IP address for the CPE end of the inside tunnel interface. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is required and used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP address so you can troubleshoot or monitor the tunnel. The value must be a /30 or /31. Example: `10.0.0.5/31` :return: The customer_interface_ip of this BgpSessionInfo. :rtype: str """ return self._customer_interface_ip @customer_interface_ip.setter def customer_interface_ip(self, customer_interface_ip): """ Sets the customer_interface_ip of this BgpSessionInfo. The IP address for the CPE end of the inside tunnel interface. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is required and used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP address so you can troubleshoot or monitor the tunnel. The value must be a /30 or /31. Example: `10.0.0.5/31` :param customer_interface_ip: The customer_interface_ip of this BgpSessionInfo. :type: str """ self._customer_interface_ip = customer_interface_ip @property def oracle_interface_ipv6(self): """ Gets the oracle_interface_ipv6 of this BgpSessionInfo. The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, you can set this IP address to troubleshoot or monitor the tunnel. Only subnet masks from /64 up to /127 are allowed. Example: `2001:db8::1/64` :return: The oracle_interface_ipv6 of this BgpSessionInfo. :rtype: str """ return self._oracle_interface_ipv6 @oracle_interface_ipv6.setter def oracle_interface_ipv6(self, oracle_interface_ipv6): """ Sets the oracle_interface_ipv6 of this BgpSessionInfo. The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, you can set this IP address to troubleshoot or monitor the tunnel. Only subnet masks from /64 up to /127 are allowed. Example: `2001:db8::1/64` :param oracle_interface_ipv6: The oracle_interface_ipv6 of this BgpSessionInfo. :type: str """ self._oracle_interface_ipv6 = oracle_interface_ipv6 @property def customer_interface_ipv6(self): """ Gets the customer_interface_ipv6 of this BgpSessionInfo. The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, you can set this IP address to troubleshoot or monitor the tunnel. Only subnet masks from /64 up to /127 are allowed. Example: `2001:db8::1/64` :return: The customer_interface_ipv6 of this BgpSessionInfo. :rtype: str """ return self._customer_interface_ipv6 @customer_interface_ipv6.setter def customer_interface_ipv6(self, customer_interface_ipv6): """ Sets the customer_interface_ipv6 of this BgpSessionInfo. The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this IP address is used for the tunnel's BGP session. If `routing` is instead set to `STATIC`, you can set this IP address to troubleshoot or monitor the tunnel. Only subnet masks from /64 up to /127 are allowed. Example: `2001:db8::1/64` :param customer_interface_ipv6: The customer_interface_ipv6 of this BgpSessionInfo. :type: str """ self._customer_interface_ipv6 = customer_interface_ipv6 @property def oracle_bgp_asn(self): """ Gets the oracle_bgp_asn of this BgpSessionInfo. The Oracle BGP ASN. :return: The oracle_bgp_asn of this BgpSessionInfo. :rtype: str """ return self._oracle_bgp_asn @oracle_bgp_asn.setter def oracle_bgp_asn(self, oracle_bgp_asn): """ Sets the oracle_bgp_asn of this BgpSessionInfo. The Oracle BGP ASN. :param oracle_bgp_asn: The oracle_bgp_asn of this BgpSessionInfo. :type: str """ self._oracle_bgp_asn = oracle_bgp_asn @property def customer_bgp_asn(self): """ Gets the customer_bgp_asn of this BgpSessionInfo. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this ASN is required and used for the tunnel's BGP session. This is the ASN of the network on the CPE end of the BGP session. Can be a 2-byte or 4-byte ASN. Uses \"asplain\" format. If the tunnel uses static routing, the `customerBgpAsn` must be null. Example: `12345` (2-byte) or `1587232876` (4-byte) :return: The customer_bgp_asn of this BgpSessionInfo. :rtype: str """ return self._customer_bgp_asn @customer_bgp_asn.setter def customer_bgp_asn(self, customer_bgp_asn): """ Sets the customer_bgp_asn of this BgpSessionInfo. If the tunnel's `routing` attribute is set to `BGP` (see :class:`IPSecConnectionTunnel`), this ASN is required and used for the tunnel's BGP session. This is the ASN of the network on the CPE end of the BGP session. Can be a 2-byte or 4-byte ASN. Uses \"asplain\" format. If the tunnel uses static routing, the `customerBgpAsn` must be null. Example: `12345` (2-byte) or `1587232876` (4-byte) :param customer_bgp_asn: The customer_bgp_asn of this BgpSessionInfo. :type: str """ self._customer_bgp_asn = customer_bgp_asn @property def bgp_state(self): """ Gets the bgp_state of this BgpSessionInfo. The state of the BGP session. Allowed values for this property are: "UP", "DOWN" :return: The bgp_state of this BgpSessionInfo. :rtype: str """ return self._bgp_state @bgp_state.setter def bgp_state(self, bgp_state): """ Sets the bgp_state of this BgpSessionInfo. The state of the BGP session. :param bgp_state: The bgp_state of this BgpSessionInfo. :type: str """ allowed_values = ["UP", "DOWN"] if not value_allowed_none_or_none_sentinel(bgp_state, allowed_values): raise ValueError( f"Invalid value for `bgp_state`, must be None or one of {allowed_values}" ) self._bgp_state = bgp_state @property def bgp_ipv6_state(self): """ Gets the bgp_ipv6_state of this BgpSessionInfo. The state of the BGP IPv6 session. Allowed values for this property are: "UP", "DOWN" :return: The bgp_ipv6_state of this BgpSessionInfo. :rtype: str """ return self._bgp_ipv6_state @bgp_ipv6_state.setter def bgp_ipv6_state(self, bgp_ipv6_state): """ Sets the bgp_ipv6_state of this BgpSessionInfo. The state of the BGP IPv6 session. :param bgp_ipv6_state: The bgp_ipv6_state of this BgpSessionInfo. :type: str """ allowed_values = ["UP", "DOWN"] if not value_allowed_none_or_none_sentinel(bgp_ipv6_state, allowed_values): raise ValueError( f"Invalid value for `bgp_ipv6_state`, must be None or one of {allowed_values}" ) self._bgp_ipv6_state = bgp_ipv6_state 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