# 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 .update_database_tools_database_api_gateway_config_global_details import UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails
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 UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails(UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails):
    """
    The content of the Database Tools database API gateway config global sub resource to be updated.
    """

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

        :param pool_route:
            The value to assign to the pool_route property of this UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.
            Allowed values for this property are: "PATH", "HEADER"
        :type pool_route: str

        :param pool_routing_header:
            The value to assign to the pool_routing_header property of this UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.
        :type pool_routing_header: str

        :param database_api_status:
            The value to assign to the database_api_status property of this UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.
            Allowed values for this property are: "ENABLED", "DISABLED"
        :type database_api_status: str

        :param http_port:
            The value to assign to the http_port property of this UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.
        :type http_port: int

        :param https_port:
            The value to assign to the https_port property of this UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.
        :type https_port: int

        :param certificate_bundle:
            The value to assign to the certificate_bundle property of this UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.
        :type certificate_bundle: oci.database_tools_runtime.models.DatabaseApiGatewayConfigCertificateBundle

        :param document_root:
            The value to assign to the document_root property of this UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.
        :type document_root: str

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

        """
        self.swagger_types = {
            'type': 'str',
            'pool_route': 'str',
            'pool_routing_header': 'str',
            'database_api_status': 'str',
            'http_port': 'int',
            'https_port': 'int',
            'certificate_bundle': 'DatabaseApiGatewayConfigCertificateBundle',
            'document_root': 'str',
            'advanced_properties': 'dict(str, str)'
        }
        self.attribute_map = {
            'type': 'type',
            'pool_route': 'poolRoute',
            'pool_routing_header': 'poolRoutingHeader',
            'database_api_status': 'databaseApiStatus',
            'http_port': 'httpPort',
            'https_port': 'httpsPort',
            'certificate_bundle': 'certificateBundle',
            'document_root': 'documentRoot',
            'advanced_properties': 'advancedProperties'
        }
        self._type = None
        self._pool_route = None
        self._pool_routing_header = None
        self._database_api_status = None
        self._http_port = None
        self._https_port = None
        self._certificate_bundle = None
        self._document_root = None
        self._advanced_properties = 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
