# 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 .execute_sql_input_details import ExecuteSqlInputDetails
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 ExecuteSqlInputScriptDetails(ExecuteSqlInputDetails):
    """
    Contains the details for the Script SQL statements to execute on the database connection.
    """

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

        :param version:
            The value to assign to the version property of this ExecuteSqlInputScriptDetails.
        :type version: str

        :param properties:
            The value to assign to the properties property of this ExecuteSqlInputScriptDetails.
        :type properties: list[dict(str, object)]

        :param scripts:
            The value to assign to the scripts property of this ExecuteSqlInputScriptDetails.
        :type scripts: list[oci.database_tools_runtime.models.ExecuteSqlInputScriptSqlRequestDetails]

        """
        self.swagger_types = {
            'type': 'str',
            'version': 'str',
            'properties': 'list[dict(str, object)]',
            'scripts': 'list[ExecuteSqlInputScriptSqlRequestDetails]'
        }
        self.attribute_map = {
            'type': 'type',
            'version': 'version',
            'properties': 'properties',
            'scripts': 'scripts'
        }
        self._type = None
        self._version = None
        self._properties = None
        self._scripts = None
        self._type = 'SCRIPT'

    @property
    def version(self):
        """
        Gets the version of this ExecuteSqlInputScriptDetails.
        Request payload version, returned as-is in the response


        :return: The version of this ExecuteSqlInputScriptDetails.
        :rtype: str
        """
        return self._version

    @version.setter
    def version(self, version):
        """
        Sets the version of this ExecuteSqlInputScriptDetails.
        Request payload version, returned as-is in the response


        :param version: The version of this ExecuteSqlInputScriptDetails.
        :type: str
        """
        self._version = version

    @property
    def properties(self):
        """
        Gets the properties of this ExecuteSqlInputScriptDetails.
        Client properties returned as-is in the response


        :return: The properties of this ExecuteSqlInputScriptDetails.
        :rtype: list[dict(str, object)]
        """
        return self._properties

    @properties.setter
    def properties(self, properties):
        """
        Sets the properties of this ExecuteSqlInputScriptDetails.
        Client properties returned as-is in the response


        :param properties: The properties of this ExecuteSqlInputScriptDetails.
        :type: list[dict(str, object)]
        """
        self._properties = properties

    @property
    def scripts(self):
        """
        **[Required]** Gets the scripts of this ExecuteSqlInputScriptDetails.
        The collection of scripts to execute.


        :return: The scripts of this ExecuteSqlInputScriptDetails.
        :rtype: list[oci.database_tools_runtime.models.ExecuteSqlInputScriptSqlRequestDetails]
        """
        return self._scripts

    @scripts.setter
    def scripts(self, scripts):
        """
        Sets the scripts of this ExecuteSqlInputScriptDetails.
        The collection of scripts to execute.


        :param scripts: The scripts of this ExecuteSqlInputScriptDetails.
        :type: list[oci.database_tools_runtime.models.ExecuteSqlInputScriptSqlRequestDetails]
        """
        self._scripts = scripts

    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
