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

from .update_compute_configuration_details import UpdateComputeConfigurationDetails
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 UpdateManagedComputeClusterConfigurationDetails(UpdateComputeConfigurationDetails):
    """
    The configuration details for the managed compute cluster type compute target.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new UpdateManagedComputeClusterConfigurationDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.UpdateManagedComputeClusterConfigurationDetails.compute_type` attribute
        of this class is ``MANAGED_COMPUTE_CLUSTER`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param compute_type:
            The value to assign to the compute_type property of this UpdateManagedComputeClusterConfigurationDetails.
            Allowed values for this property are: "MANAGED_COMPUTE_CLUSTER"
        :type compute_type: str

        :param instance_configuration:
            The value to assign to the instance_configuration property of this UpdateManagedComputeClusterConfigurationDetails.
        :type instance_configuration: oci.data_science.models.UpdateManagedComputeClusterInstanceConfigurationDetails

        :param scaling_policy:
            The value to assign to the scaling_policy property of this UpdateManagedComputeClusterConfigurationDetails.
        :type scaling_policy: oci.data_science.models.ManagedComputeClusterScalingPolicy

        """
        self.swagger_types = {
            'compute_type': 'str',
            'instance_configuration': 'UpdateManagedComputeClusterInstanceConfigurationDetails',
            'scaling_policy': 'ManagedComputeClusterScalingPolicy'
        }
        self.attribute_map = {
            'compute_type': 'computeType',
            'instance_configuration': 'instanceConfiguration',
            'scaling_policy': 'scalingPolicy'
        }
        self._compute_type = None
        self._instance_configuration = None
        self._scaling_policy = None
        self._compute_type = 'MANAGED_COMPUTE_CLUSTER'

    @property
    def instance_configuration(self):
        """
        Gets the instance_configuration of this UpdateManagedComputeClusterConfigurationDetails.

        :return: The instance_configuration of this UpdateManagedComputeClusterConfigurationDetails.
        :rtype: oci.data_science.models.UpdateManagedComputeClusterInstanceConfigurationDetails
        """
        return self._instance_configuration

    @instance_configuration.setter
    def instance_configuration(self, instance_configuration):
        """
        Sets the instance_configuration of this UpdateManagedComputeClusterConfigurationDetails.

        :param instance_configuration: The instance_configuration of this UpdateManagedComputeClusterConfigurationDetails.
        :type: oci.data_science.models.UpdateManagedComputeClusterInstanceConfigurationDetails
        """
        self._instance_configuration = instance_configuration

    @property
    def scaling_policy(self):
        """
        Gets the scaling_policy of this UpdateManagedComputeClusterConfigurationDetails.

        :return: The scaling_policy of this UpdateManagedComputeClusterConfigurationDetails.
        :rtype: oci.data_science.models.ManagedComputeClusterScalingPolicy
        """
        return self._scaling_policy

    @scaling_policy.setter
    def scaling_policy(self, scaling_policy):
        """
        Sets the scaling_policy of this UpdateManagedComputeClusterConfigurationDetails.

        :param scaling_policy: The scaling_policy of this UpdateManagedComputeClusterConfigurationDetails.
        :type: oci.data_science.models.ManagedComputeClusterScalingPolicy
        """
        self._scaling_policy = scaling_policy

    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
