# 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: 20230222

from .database_tools_database_api_gateway_config_pool_auto_api_spec import DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec
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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault(DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec):
    """
    The content of a Database Tools database API gateway config auto API spec sub resource defined within a pool.
    """

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

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

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

        :param database_object_name:
            The value to assign to the database_object_name property of this DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.
        :type database_object_name: str

        :param database_object_type:
            The value to assign to the database_object_type property of this DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.
            Allowed values for this property are: "FUNCTION", "MVIEW", "PACKAGE", "PROCEDURE", "TABLE", "VIEW", "DUALITYVIEW"
        :type database_object_type: str

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

        :param alias:
            The value to assign to the alias property of this DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.
        :type alias: str

        :param operations:
            The value to assign to the operations property of this DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.
            Allowed values for items in this list are: "READ", "WRITE"
        :type operations: list[str]

        :param security_schemes:
            The value to assign to the security_schemes property of this DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.
            Allowed values for items in this list are: "BASIC", "BEARER"
        :type security_schemes: list[str]

        :param scope:
            The value to assign to the scope property of this DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.
        :type scope: str

        :param roles:
            The value to assign to the roles property of this DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.
        :type roles: list[str]

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

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

        """
        self.swagger_types = {
            'key': 'str',
            'type': 'str',
            'display_name': 'str',
            'database_object_name': 'str',
            'database_object_type': 'str',
            'description': 'str',
            'alias': 'str',
            'operations': 'list[str]',
            'security_schemes': 'list[str]',
            'scope': 'str',
            'roles': 'list[str]',
            'time_created': 'datetime',
            'time_updated': 'datetime'
        }
        self.attribute_map = {
            'key': 'key',
            'type': 'type',
            'display_name': 'displayName',
            'database_object_name': 'databaseObjectName',
            'database_object_type': 'databaseObjectType',
            'description': 'description',
            'alias': 'alias',
            'operations': 'operations',
            'security_schemes': 'securitySchemes',
            'scope': 'scope',
            'roles': 'roles',
            'time_created': 'timeCreated',
            'time_updated': 'timeUpdated'
        }
        self._key = None
        self._type = None
        self._display_name = None
        self._database_object_name = None
        self._database_object_type = None
        self._description = None
        self._alias = None
        self._operations = None
        self._security_schemes = None
        self._scope = None
        self._roles = None
        self._time_created = None
        self._time_updated = None
        self._type = 'DEFAULT'

    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
