403Webshell
Server IP : 103.119.228.120  /  Your IP : 18.118.32.7
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/mysql/models/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/mysql/models/db_system_endpoint.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: 20190415


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 DbSystemEndpoint(object):
    """
    A particular functional endpoint for access to a DB System, and the properties that apply to it.
    """

    #: A constant which can be used with the modes property of a DbSystemEndpoint.
    #: This constant has a value of "READ"
    MODES_READ = "READ"

    #: A constant which can be used with the modes property of a DbSystemEndpoint.
    #: This constant has a value of "WRITE"
    MODES_WRITE = "WRITE"

    #: A constant which can be used with the status property of a DbSystemEndpoint.
    #: This constant has a value of "ACTIVE"
    STATUS_ACTIVE = "ACTIVE"

    #: A constant which can be used with the status property of a DbSystemEndpoint.
    #: This constant has a value of "INACTIVE"
    STATUS_INACTIVE = "INACTIVE"

    #: A constant which can be used with the status property of a DbSystemEndpoint.
    #: This constant has a value of "UPDATING"
    STATUS_UPDATING = "UPDATING"

    #: A constant which can be used with the resource_type property of a DbSystemEndpoint.
    #: This constant has a value of "DBSYSTEM"
    RESOURCE_TYPE_DBSYSTEM = "DBSYSTEM"

    #: A constant which can be used with the resource_type property of a DbSystemEndpoint.
    #: This constant has a value of "READ_REPLICA"
    RESOURCE_TYPE_READ_REPLICA = "READ_REPLICA"

    #: A constant which can be used with the resource_type property of a DbSystemEndpoint.
    #: This constant has a value of "LOAD_BALANCER"
    RESOURCE_TYPE_LOAD_BALANCER = "LOAD_BALANCER"

    def __init__(self, **kwargs):
        """
        Initializes a new DbSystemEndpoint object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param hostname:
            The value to assign to the hostname property of this DbSystemEndpoint.
        :type hostname: str

        :param ip_address:
            The value to assign to the ip_address property of this DbSystemEndpoint.
        :type ip_address: str

        :param port:
            The value to assign to the port property of this DbSystemEndpoint.
        :type port: int

        :param port_x:
            The value to assign to the port_x property of this DbSystemEndpoint.
        :type port_x: int

        :param modes:
            The value to assign to the modes property of this DbSystemEndpoint.
            Allowed values for items in this list are: "READ", "WRITE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type modes: list[str]

        :param status:
            The value to assign to the status property of this DbSystemEndpoint.
            Allowed values for this property are: "ACTIVE", "INACTIVE", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type status: str

        :param status_details:
            The value to assign to the status_details property of this DbSystemEndpoint.
        :type status_details: str

        :param resource_type:
            The value to assign to the resource_type property of this DbSystemEndpoint.
            Allowed values for this property are: "DBSYSTEM", "READ_REPLICA", "LOAD_BALANCER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type resource_type: str

        :param resource_id:
            The value to assign to the resource_id property of this DbSystemEndpoint.
        :type resource_id: str

        """
        self.swagger_types = {
            'hostname': 'str',
            'ip_address': 'str',
            'port': 'int',
            'port_x': 'int',
            'modes': 'list[str]',
            'status': 'str',
            'status_details': 'str',
            'resource_type': 'str',
            'resource_id': 'str'
        }

        self.attribute_map = {
            'hostname': 'hostname',
            'ip_address': 'ipAddress',
            'port': 'port',
            'port_x': 'portX',
            'modes': 'modes',
            'status': 'status',
            'status_details': 'statusDetails',
            'resource_type': 'resourceType',
            'resource_id': 'resourceId'
        }

        self._hostname = None
        self._ip_address = None
        self._port = None
        self._port_x = None
        self._modes = None
        self._status = None
        self._status_details = None
        self._resource_type = None
        self._resource_id = None

    @property
    def hostname(self):
        """
        Gets the hostname of this DbSystemEndpoint.
        The network address of the DB System.


        :return: The hostname of this DbSystemEndpoint.
        :rtype: str
        """
        return self._hostname

    @hostname.setter
    def hostname(self, hostname):
        """
        Sets the hostname of this DbSystemEndpoint.
        The network address of the DB System.


        :param hostname: The hostname of this DbSystemEndpoint.
        :type: str
        """
        self._hostname = hostname

    @property
    def ip_address(self):
        """
        **[Required]** Gets the ip_address of this DbSystemEndpoint.
        The IP address the DB System is configured to listen on.


        :return: The ip_address of this DbSystemEndpoint.
        :rtype: str
        """
        return self._ip_address

    @ip_address.setter
    def ip_address(self, ip_address):
        """
        Sets the ip_address of this DbSystemEndpoint.
        The IP address the DB System is configured to listen on.


        :param ip_address: The ip_address of this DbSystemEndpoint.
        :type: str
        """
        self._ip_address = ip_address

    @property
    def port(self):
        """
        **[Required]** Gets the port of this DbSystemEndpoint.
        The port the MySQL instance listens on.


        :return: The port of this DbSystemEndpoint.
        :rtype: int
        """
        return self._port

    @port.setter
    def port(self, port):
        """
        Sets the port of this DbSystemEndpoint.
        The port the MySQL instance listens on.


        :param port: The port of this DbSystemEndpoint.
        :type: int
        """
        self._port = port

    @property
    def port_x(self):
        """
        **[Required]** Gets the port_x of this DbSystemEndpoint.
        The network port where to connect to use this endpoint using the X protocol.


        :return: The port_x of this DbSystemEndpoint.
        :rtype: int
        """
        return self._port_x

    @port_x.setter
    def port_x(self, port_x):
        """
        Sets the port_x of this DbSystemEndpoint.
        The network port where to connect to use this endpoint using the X protocol.


        :param port_x: The port_x of this DbSystemEndpoint.
        :type: int
        """
        self._port_x = port_x

    @property
    def modes(self):
        """
        Gets the modes of this DbSystemEndpoint.
        The access modes from the client that this endpoint supports.

        Allowed values for items in this list are: "READ", "WRITE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The modes of this DbSystemEndpoint.
        :rtype: list[str]
        """
        return self._modes

    @modes.setter
    def modes(self, modes):
        """
        Sets the modes of this DbSystemEndpoint.
        The access modes from the client that this endpoint supports.


        :param modes: The modes of this DbSystemEndpoint.
        :type: list[str]
        """
        allowed_values = ["READ", "WRITE"]
        if modes:
            modes[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in modes]
        self._modes = modes

    @property
    def status(self):
        """
        Gets the status of this DbSystemEndpoint.
        The state of the endpoints, as far as it can seen from the DB System.
        There may be some inconsistency with the actual state of the MySQL service.

        Allowed values for this property are: "ACTIVE", "INACTIVE", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The status of this DbSystemEndpoint.
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """
        Sets the status of this DbSystemEndpoint.
        The state of the endpoints, as far as it can seen from the DB System.
        There may be some inconsistency with the actual state of the MySQL service.


        :param status: The status of this DbSystemEndpoint.
        :type: str
        """
        allowed_values = ["ACTIVE", "INACTIVE", "UPDATING"]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            status = 'UNKNOWN_ENUM_VALUE'
        self._status = status

    @property
    def status_details(self):
        """
        Gets the status_details of this DbSystemEndpoint.
        Additional information about the current endpoint status.


        :return: The status_details of this DbSystemEndpoint.
        :rtype: str
        """
        return self._status_details

    @status_details.setter
    def status_details(self, status_details):
        """
        Sets the status_details of this DbSystemEndpoint.
        Additional information about the current endpoint status.


        :param status_details: The status_details of this DbSystemEndpoint.
        :type: str
        """
        self._status_details = status_details

    @property
    def resource_type(self):
        """
        Gets the resource_type of this DbSystemEndpoint.
        The type of endpoint that clients and connectors can connect to.

        Allowed values for this property are: "DBSYSTEM", "READ_REPLICA", "LOAD_BALANCER", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The resource_type of this DbSystemEndpoint.
        :rtype: str
        """
        return self._resource_type

    @resource_type.setter
    def resource_type(self, resource_type):
        """
        Sets the resource_type of this DbSystemEndpoint.
        The type of endpoint that clients and connectors can connect to.


        :param resource_type: The resource_type of this DbSystemEndpoint.
        :type: str
        """
        allowed_values = ["DBSYSTEM", "READ_REPLICA", "LOAD_BALANCER"]
        if not value_allowed_none_or_none_sentinel(resource_type, allowed_values):
            resource_type = 'UNKNOWN_ENUM_VALUE'
        self._resource_type = resource_type

    @property
    def resource_id(self):
        """
        Gets the resource_id of this DbSystemEndpoint.
        The OCID of the resource that this endpoint is attached to.


        :return: The resource_id of this DbSystemEndpoint.
        :rtype: str
        """
        return self._resource_id

    @resource_id.setter
    def resource_id(self, resource_id):
        """
        Sets the resource_id of this DbSystemEndpoint.
        The OCID of the resource that this endpoint is attached to.


        :param resource_id: The resource_id of this DbSystemEndpoint.
        :type: str
        """
        self._resource_id = resource_id

    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

Youez - 2016 - github.com/yon3zu
LinuXploit