# 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_server_summary import DatabaseToolsMcpServerSummary
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 DatabaseToolsMcpServerSummaryDefault(DatabaseToolsMcpServerSummary):
    """
    Summary of the Database Tools MCP server.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new DatabaseToolsMcpServerSummaryDefault object with values from keyword arguments. The default value of the :py:attr:`~oci.database_tools.models.DatabaseToolsMcpServerSummaryDefault.type` attribute
        of this class is ``DEFAULT`` 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 DatabaseToolsMcpServerSummaryDefault.
        :type id: str

        :param type:
            The value to assign to the type property of this DatabaseToolsMcpServerSummaryDefault.
            Allowed values for this property are: "DEFAULT"
        :type type: str

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

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

        :param database_tools_connection_id:
            The value to assign to the database_tools_connection_id property of this DatabaseToolsMcpServerSummaryDefault.
        :type database_tools_connection_id: str

        :param endpoints:
            The value to assign to the endpoints property of this DatabaseToolsMcpServerSummaryDefault.
        :type endpoints: list[oci.database_tools.models.DatabaseToolsMcpServerEndpoint]

        :param built_in_roles:
            The value to assign to the built_in_roles property of this DatabaseToolsMcpServerSummaryDefault.
        :type built_in_roles: list[oci.database_tools.models.DatabaseToolsMcpServerBuiltInRole]

        :param custom_roles:
            The value to assign to the custom_roles property of this DatabaseToolsMcpServerSummaryDefault.
        :type custom_roles: list[oci.database_tools.models.DatabaseToolsMcpServerCustomRole]

        :param related_resource:
            The value to assign to the related_resource property of this DatabaseToolsMcpServerSummaryDefault.
        :type related_resource: oci.database_tools.models.DatabaseToolsMcpServerRelatedResource

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this DatabaseToolsMcpServerSummaryDefault.
            Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"
        :type lifecycle_state: str

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

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

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

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

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

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

        :param runtime_identity:
            The value to assign to the runtime_identity property of this DatabaseToolsMcpServerSummaryDefault.
            Allowed values for this property are: "AUTHENTICATED_PRINCIPAL", "RESOURCE_PRINCIPAL"
        :type runtime_identity: str

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

        :param domain_id:
            The value to assign to the domain_id property of this DatabaseToolsMcpServerSummaryDefault.
        :type domain_id: str

        :param domain_app_id:
            The value to assign to the domain_app_id property of this DatabaseToolsMcpServerSummaryDefault.
        :type domain_app_id: str

        :param storage:
            The value to assign to the storage property of this DatabaseToolsMcpServerSummaryDefault.
        :type storage: oci.database_tools.models.DatabaseToolsMcpServerStorage

        """
        self.swagger_types = {
            'id': 'str',
            'type': 'str',
            'compartment_id': 'str',
            'display_name': 'str',
            'database_tools_connection_id': 'str',
            'endpoints': 'list[DatabaseToolsMcpServerEndpoint]',
            'built_in_roles': 'list[DatabaseToolsMcpServerBuiltInRole]',
            'custom_roles': 'list[DatabaseToolsMcpServerCustomRole]',
            'related_resource': 'DatabaseToolsMcpServerRelatedResource',
            '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))',
            'runtime_identity': 'str',
            'locks': 'list[ResourceLock]',
            'domain_id': 'str',
            'domain_app_id': 'str',
            'storage': 'DatabaseToolsMcpServerStorage'
        }
        self.attribute_map = {
            'id': 'id',
            'type': 'type',
            'compartment_id': 'compartmentId',
            'display_name': 'displayName',
            'database_tools_connection_id': 'databaseToolsConnectionId',
            'endpoints': 'endpoints',
            'built_in_roles': 'builtInRoles',
            'custom_roles': 'customRoles',
            'related_resource': 'relatedResource',
            'lifecycle_state': 'lifecycleState',
            'lifecycle_details': 'lifecycleDetails',
            'time_created': 'timeCreated',
            'time_updated': 'timeUpdated',
            'defined_tags': 'definedTags',
            'freeform_tags': 'freeformTags',
            'system_tags': 'systemTags',
            'runtime_identity': 'runtimeIdentity',
            'locks': 'locks',
            'domain_id': 'domainId',
            'domain_app_id': 'domainAppId',
            'storage': 'storage'
        }
        self._id = None
        self._type = None
        self._compartment_id = None
        self._display_name = None
        self._database_tools_connection_id = None
        self._endpoints = None
        self._built_in_roles = None
        self._custom_roles = None
        self._related_resource = 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._runtime_identity = None
        self._locks = None
        self._domain_id = None
        self._domain_app_id = None
        self._storage = None
        self._type = 'DEFAULT'

    @property
    def domain_id(self):
        """
        **[Required]** Gets the domain_id of this DatabaseToolsMcpServerSummaryDefault.
        The `OCID`__ of the associated identity domain.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The domain_id of this DatabaseToolsMcpServerSummaryDefault.
        :rtype: str
        """
        return self._domain_id

    @domain_id.setter
    def domain_id(self, domain_id):
        """
        Sets the domain_id of this DatabaseToolsMcpServerSummaryDefault.
        The `OCID`__ of the associated identity domain.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param domain_id: The domain_id of this DatabaseToolsMcpServerSummaryDefault.
        :type: str
        """
        self._domain_id = domain_id

    @property
    def domain_app_id(self):
        """
        Gets the domain_app_id of this DatabaseToolsMcpServerSummaryDefault.
        The `OCID`__ of the associated domain application (Oracle Cloud Service).

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The domain_app_id of this DatabaseToolsMcpServerSummaryDefault.
        :rtype: str
        """
        return self._domain_app_id

    @domain_app_id.setter
    def domain_app_id(self, domain_app_id):
        """
        Sets the domain_app_id of this DatabaseToolsMcpServerSummaryDefault.
        The `OCID`__ of the associated domain application (Oracle Cloud Service).

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param domain_app_id: The domain_app_id of this DatabaseToolsMcpServerSummaryDefault.
        :type: str
        """
        self._domain_app_id = domain_app_id

    @property
    def storage(self):
        """
        **[Required]** Gets the storage of this DatabaseToolsMcpServerSummaryDefault.

        :return: The storage of this DatabaseToolsMcpServerSummaryDefault.
        :rtype: oci.database_tools.models.DatabaseToolsMcpServerStorage
        """
        return self._storage

    @storage.setter
    def storage(self, storage):
        """
        Sets the storage of this DatabaseToolsMcpServerSummaryDefault.

        :param storage: The storage of this DatabaseToolsMcpServerSummaryDefault.
        :type: oci.database_tools.models.DatabaseToolsMcpServerStorage
        """
        self._storage = storage

    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
