HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/mysqlsh/lib/python3.8/site-packages/oci/jms/models/post_installation_action_settings.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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: 20210610


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 PostInstallationActionSettings(object):
    """
    List of available post actions you can execute after the successful Java installation.
    """

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "ALL"
    GLOBAL_LOGGING_LEVEL_ALL = "ALL"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "SEVERE"
    GLOBAL_LOGGING_LEVEL_SEVERE = "SEVERE"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "WARNING"
    GLOBAL_LOGGING_LEVEL_WARNING = "WARNING"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "INFO"
    GLOBAL_LOGGING_LEVEL_INFO = "INFO"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "CONFIG"
    GLOBAL_LOGGING_LEVEL_CONFIG = "CONFIG"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "FINE"
    GLOBAL_LOGGING_LEVEL_FINE = "FINE"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "FINER"
    GLOBAL_LOGGING_LEVEL_FINER = "FINER"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "FINEST"
    GLOBAL_LOGGING_LEVEL_FINEST = "FINEST"

    #: A constant which can be used with the global_logging_level property of a PostInstallationActionSettings.
    #: This constant has a value of "OFF"
    GLOBAL_LOGGING_LEVEL_OFF = "OFF"

    def __init__(self, **kwargs):
        """
        Initializes a new PostInstallationActionSettings object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param disabled_tls_versions:
            The value to assign to the disabled_tls_versions property of this PostInstallationActionSettings.
        :type disabled_tls_versions: list[oci.jms.models.TlsVersions]

        :param should_replace_certificates_operating_system:
            The value to assign to the should_replace_certificates_operating_system property of this PostInstallationActionSettings.
        :type should_replace_certificates_operating_system: bool

        :param minimum_key_size_settings:
            The value to assign to the minimum_key_size_settings property of this PostInstallationActionSettings.
        :type minimum_key_size_settings: oci.jms.models.MinimumKeySizeSettings

        :param add_logging_handler:
            The value to assign to the add_logging_handler property of this PostInstallationActionSettings.
        :type add_logging_handler: bool

        :param global_logging_level:
            The value to assign to the global_logging_level property of this PostInstallationActionSettings.
            Allowed values for this property are: "ALL", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", "FINEST", "OFF", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type global_logging_level: str

        :param proxies:
            The value to assign to the proxies property of this PostInstallationActionSettings.
        :type proxies: oci.jms.models.Proxies

        """
        self.swagger_types = {
            'disabled_tls_versions': 'list[TlsVersions]',
            'should_replace_certificates_operating_system': 'bool',
            'minimum_key_size_settings': 'MinimumKeySizeSettings',
            'add_logging_handler': 'bool',
            'global_logging_level': 'str',
            'proxies': 'Proxies'
        }
        self.attribute_map = {
            'disabled_tls_versions': 'disabledTlsVersions',
            'should_replace_certificates_operating_system': 'shouldReplaceCertificatesOperatingSystem',
            'minimum_key_size_settings': 'minimumKeySizeSettings',
            'add_logging_handler': 'addLoggingHandler',
            'global_logging_level': 'globalLoggingLevel',
            'proxies': 'proxies'
        }
        self._disabled_tls_versions = None
        self._should_replace_certificates_operating_system = None
        self._minimum_key_size_settings = None
        self._add_logging_handler = None
        self._global_logging_level = None
        self._proxies = None

    @property
    def disabled_tls_versions(self):
        """
        Gets the disabled_tls_versions of this PostInstallationActionSettings.
        The following post JRE installation actions are supported by the field:
        - Disable TLS 1.0 , TLS 1.1


        :return: The disabled_tls_versions of this PostInstallationActionSettings.
        :rtype: list[oci.jms.models.TlsVersions]
        """
        return self._disabled_tls_versions

    @disabled_tls_versions.setter
    def disabled_tls_versions(self, disabled_tls_versions):
        """
        Sets the disabled_tls_versions of this PostInstallationActionSettings.
        The following post JRE installation actions are supported by the field:
        - Disable TLS 1.0 , TLS 1.1


        :param disabled_tls_versions: The disabled_tls_versions of this PostInstallationActionSettings.
        :type: list[oci.jms.models.TlsVersions]
        """
        self._disabled_tls_versions = disabled_tls_versions

    @property
    def should_replace_certificates_operating_system(self):
        """
        Gets the should_replace_certificates_operating_system of this PostInstallationActionSettings.
        Restores JDK root certificates with the certificates that are available in the operating system.
        The following action is supported by the field:
        - Replace JDK root certificates with a list provided by the operating system.


        :return: The should_replace_certificates_operating_system of this PostInstallationActionSettings.
        :rtype: bool
        """
        return self._should_replace_certificates_operating_system

    @should_replace_certificates_operating_system.setter
    def should_replace_certificates_operating_system(self, should_replace_certificates_operating_system):
        """
        Sets the should_replace_certificates_operating_system of this PostInstallationActionSettings.
        Restores JDK root certificates with the certificates that are available in the operating system.
        The following action is supported by the field:
        - Replace JDK root certificates with a list provided by the operating system.


        :param should_replace_certificates_operating_system: The should_replace_certificates_operating_system of this PostInstallationActionSettings.
        :type: bool
        """
        self._should_replace_certificates_operating_system = should_replace_certificates_operating_system

    @property
    def minimum_key_size_settings(self):
        """
        Gets the minimum_key_size_settings of this PostInstallationActionSettings.

        :return: The minimum_key_size_settings of this PostInstallationActionSettings.
        :rtype: oci.jms.models.MinimumKeySizeSettings
        """
        return self._minimum_key_size_settings

    @minimum_key_size_settings.setter
    def minimum_key_size_settings(self, minimum_key_size_settings):
        """
        Sets the minimum_key_size_settings of this PostInstallationActionSettings.

        :param minimum_key_size_settings: The minimum_key_size_settings of this PostInstallationActionSettings.
        :type: oci.jms.models.MinimumKeySizeSettings
        """
        self._minimum_key_size_settings = minimum_key_size_settings

    @property
    def add_logging_handler(self):
        """
        Gets the add_logging_handler of this PostInstallationActionSettings.
        Sets FileHandler and ConsoleHandler as handlers in logging.properties file.


        :return: The add_logging_handler of this PostInstallationActionSettings.
        :rtype: bool
        """
        return self._add_logging_handler

    @add_logging_handler.setter
    def add_logging_handler(self, add_logging_handler):
        """
        Sets the add_logging_handler of this PostInstallationActionSettings.
        Sets FileHandler and ConsoleHandler as handlers in logging.properties file.


        :param add_logging_handler: The add_logging_handler of this PostInstallationActionSettings.
        :type: bool
        """
        self._add_logging_handler = add_logging_handler

    @property
    def global_logging_level(self):
        """
        Gets the global_logging_level of this PostInstallationActionSettings.
        Sets the logging level in logging.properties file.

        Allowed values for this property are: "ALL", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", "FINEST", "OFF", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The global_logging_level of this PostInstallationActionSettings.
        :rtype: str
        """
        return self._global_logging_level

    @global_logging_level.setter
    def global_logging_level(self, global_logging_level):
        """
        Sets the global_logging_level of this PostInstallationActionSettings.
        Sets the logging level in logging.properties file.


        :param global_logging_level: The global_logging_level of this PostInstallationActionSettings.
        :type: str
        """
        allowed_values = ["ALL", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", "FINEST", "OFF"]
        if not value_allowed_none_or_none_sentinel(global_logging_level, allowed_values):
            global_logging_level = 'UNKNOWN_ENUM_VALUE'
        self._global_logging_level = global_logging_level

    @property
    def proxies(self):
        """
        Gets the proxies of this PostInstallationActionSettings.

        :return: The proxies of this PostInstallationActionSettings.
        :rtype: oci.jms.models.Proxies
        """
        return self._proxies

    @proxies.setter
    def proxies(self, proxies):
        """
        Sets the proxies of this PostInstallationActionSettings.

        :param proxies: The proxies of this PostInstallationActionSettings.
        :type: oci.jms.models.Proxies
        """
        self._proxies = proxies

    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