Server IP : 103.119.228.120 / Your IP : 18.217.98.175 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/vn_monitoring/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 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