# coding: utf-8
# Copyright (c) 2016, 2026, 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: 20201005

from .database_tools_mcp_toolset import DatabaseToolsMcpToolset
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 DatabaseToolsMcpToolsetBuiltInSqlTools(DatabaseToolsMcpToolset):
    """
    Allows the creation, configuration and management of an McpToolset of type Built-in SQL tools.
    """

    #: A constant which can be used with the default_execution_type property of a DatabaseToolsMcpToolsetBuiltInSqlTools.
    #: This constant has a value of "SYNCHRONOUS"
    DEFAULT_EXECUTION_TYPE_SYNCHRONOUS = "SYNCHRONOUS"

    #: A constant which can be used with the default_execution_type property of a DatabaseToolsMcpToolsetBuiltInSqlTools.
    #: This constant has a value of "ASYNCHRONOUS"
    DEFAULT_EXECUTION_TYPE_ASYNCHRONOUS = "ASYNCHRONOUS"

    def __init__(self, **kwargs):
        """
        Initializes a new DatabaseToolsMcpToolsetBuiltInSqlTools object with values from keyword arguments. The default value of the :py:attr:`~oci.database_tools.models.DatabaseToolsMcpToolsetBuiltInSqlTools.type` attribute
        of this class is ``BUILT_IN_SQL_TOOLS`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type id: str

        :param version:
            The value to assign to the version property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type version: int

        :param compartment_id:
            The value to assign to the compartment_id property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type compartment_id: str

        :param type:
            The value to assign to the type property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
            Allowed values for this property are: "CUSTOM_SQL_TOOL", "BUILT_IN_SQL_TOOLS", "CUSTOMIZABLE_REPORTING_TOOLS", "GENAI_SQL_ASSISTANT", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

        :param display_name:
            The value to assign to the display_name property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type display_name: str

        :param description:
            The value to assign to the description property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type description: str

        :param database_tools_mcp_server_id:
            The value to assign to the database_tools_mcp_server_id property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type database_tools_mcp_server_id: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
            Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type lifecycle_details: str

        :param time_created:
            The value to assign to the time_created property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type time_updated: datetime

        :param defined_tags:
            The value to assign to the defined_tags property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type defined_tags: dict(str, dict(str, object))

        :param freeform_tags:
            The value to assign to the freeform_tags property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type freeform_tags: dict(str, str)

        :param system_tags:
            The value to assign to the system_tags property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type system_tags: dict(str, dict(str, object))

        :param locks:
            The value to assign to the locks property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type locks: list[oci.database_tools.models.ResourceLock]

        :param tools:
            The value to assign to the tools property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type tools: list[oci.database_tools.models.DatabaseToolsMcpToolsetToolDetails]

        :param default_execution_type:
            The value to assign to the default_execution_type property of this DatabaseToolsMcpToolsetBuiltInSqlTools.
            Allowed values for this property are: "SYNCHRONOUS", "ASYNCHRONOUS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type default_execution_type: str

        """
        self.swagger_types = {
            'id': 'str',
            'version': 'int',
            'compartment_id': 'str',
            'type': 'str',
            'display_name': 'str',
            'description': 'str',
            'database_tools_mcp_server_id': 'str',
            'lifecycle_state': 'str',
            'lifecycle_details': 'str',
            'time_created': 'datetime',
            'time_updated': 'datetime',
            'defined_tags': 'dict(str, dict(str, object))',
            'freeform_tags': 'dict(str, str)',
            'system_tags': 'dict(str, dict(str, object))',
            'locks': 'list[ResourceLock]',
            'tools': 'list[DatabaseToolsMcpToolsetToolDetails]',
            'default_execution_type': 'str'
        }
        self.attribute_map = {
            'id': 'id',
            'version': 'version',
            'compartment_id': 'compartmentId',
            'type': 'type',
            'display_name': 'displayName',
            'description': 'description',
            'database_tools_mcp_server_id': 'databaseToolsMcpServerId',
            'lifecycle_state': 'lifecycleState',
            'lifecycle_details': 'lifecycleDetails',
            'time_created': 'timeCreated',
            'time_updated': 'timeUpdated',
            'defined_tags': 'definedTags',
            'freeform_tags': 'freeformTags',
            'system_tags': 'systemTags',
            'locks': 'locks',
            'tools': 'tools',
            'default_execution_type': 'defaultExecutionType'
        }
        self._id = None
        self._version = None
        self._compartment_id = None
        self._type = None
        self._display_name = None
        self._description = None
        self._database_tools_mcp_server_id = None
        self._lifecycle_state = None
        self._lifecycle_details = None
        self._time_created = None
        self._time_updated = None
        self._defined_tags = None
        self._freeform_tags = None
        self._system_tags = None
        self._locks = None
        self._tools = None
        self._default_execution_type = None
        self._type = 'BUILT_IN_SQL_TOOLS'

    @property
    def tools(self):
        """
        Gets the tools of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        List of Database Tools Built-in SQL tools


        :return: The tools of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :rtype: list[oci.database_tools.models.DatabaseToolsMcpToolsetToolDetails]
        """
        return self._tools

    @tools.setter
    def tools(self, tools):
        """
        Sets the tools of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        List of Database Tools Built-in SQL tools


        :param tools: The tools of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type: list[oci.database_tools.models.DatabaseToolsMcpToolsetToolDetails]
        """
        self._tools = tools

    @property
    def default_execution_type(self):
        """
        Gets the default_execution_type of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        The default execution type for the toolset. The default value is SYNCHRONOUS.

        To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured.

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


        :return: The default_execution_type of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :rtype: str
        """
        return self._default_execution_type

    @default_execution_type.setter
    def default_execution_type(self, default_execution_type):
        """
        Sets the default_execution_type of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        The default execution type for the toolset. The default value is SYNCHRONOUS.

        To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured.


        :param default_execution_type: The default_execution_type of this DatabaseToolsMcpToolsetBuiltInSqlTools.
        :type: str
        """
        allowed_values = ["SYNCHRONOUS", "ASYNCHRONOUS"]
        if not value_allowed_none_or_none_sentinel(default_execution_type, allowed_values):
            default_execution_type = 'UNKNOWN_ENUM_VALUE'
        self._default_execution_type = default_execution_type

    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
