# 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 .update_database_tools_mcp_server_details import UpdateDatabaseToolsMcpServerDetails
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 UpdateDatabaseToolsMcpServerDetailsDefault(UpdateDatabaseToolsMcpServerDetails):
    """
    Database Tools MCP server information to be updated for the default type.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new UpdateDatabaseToolsMcpServerDetailsDefault object with values from keyword arguments. The default value of the :py:attr:`~oci.database_tools.models.UpdateDatabaseToolsMcpServerDetailsDefault.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 display_name:
            The value to assign to the display_name property of this UpdateDatabaseToolsMcpServerDetailsDefault.
        :type display_name: str

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

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

        :param access_token_expiry_in_seconds:
            The value to assign to the access_token_expiry_in_seconds property of this UpdateDatabaseToolsMcpServerDetailsDefault.
        :type access_token_expiry_in_seconds: int

        :param refresh_token_expiry_in_seconds:
            The value to assign to the refresh_token_expiry_in_seconds property of this UpdateDatabaseToolsMcpServerDetailsDefault.
        :type refresh_token_expiry_in_seconds: int

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

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

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

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

        """
        self.swagger_types = {
            'display_name': 'str',
            'description': 'str',
            'custom_roles': 'list[DatabaseToolsMcpServerCustomRole]',
            'access_token_expiry_in_seconds': 'int',
            'refresh_token_expiry_in_seconds': 'int',
            'defined_tags': 'dict(str, dict(str, object))',
            'freeform_tags': 'dict(str, str)',
            'type': 'str',
            'storage': 'DatabaseToolsMcpServerStorage'
        }
        self.attribute_map = {
            'display_name': 'displayName',
            'description': 'description',
            'custom_roles': 'customRoles',
            'access_token_expiry_in_seconds': 'accessTokenExpiryInSeconds',
            'refresh_token_expiry_in_seconds': 'refreshTokenExpiryInSeconds',
            'defined_tags': 'definedTags',
            'freeform_tags': 'freeformTags',
            'type': 'type',
            'storage': 'storage'
        }
        self._display_name = None
        self._description = None
        self._custom_roles = None
        self._access_token_expiry_in_seconds = None
        self._refresh_token_expiry_in_seconds = None
        self._defined_tags = None
        self._freeform_tags = None
        self._type = None
        self._storage = None
        self._type = 'DEFAULT'

    @property
    def storage(self):
        """
        Gets the storage of this UpdateDatabaseToolsMcpServerDetailsDefault.

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

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

        :param storage: The storage of this UpdateDatabaseToolsMcpServerDetailsDefault.
        :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
