# 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 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 ManagedComputeClusterModelDeploymentResourceConfiguration(object):
    """
    Resource configuration details for model deploy on managed compute cluster type compute target.
    """

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

        :param resource_request_configuration:
            The value to assign to the resource_request_configuration property of this ManagedComputeClusterModelDeploymentResourceConfiguration.
        :type resource_request_configuration: oci.data_science.models.ResourceRequestConfiguration

        :param resource_limit_configuration:
            The value to assign to the resource_limit_configuration property of this ManagedComputeClusterModelDeploymentResourceConfiguration.
        :type resource_limit_configuration: oci.data_science.models.ResourceLimitConfiguration

        """
        self.swagger_types = {
            'resource_request_configuration': 'ResourceRequestConfiguration',
            'resource_limit_configuration': 'ResourceLimitConfiguration'
        }
        self.attribute_map = {
            'resource_request_configuration': 'resourceRequestConfiguration',
            'resource_limit_configuration': 'resourceLimitConfiguration'
        }
        self._resource_request_configuration = None
        self._resource_limit_configuration = None

    @property
    def resource_request_configuration(self):
        """
        **[Required]** Gets the resource_request_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.

        :return: The resource_request_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.
        :rtype: oci.data_science.models.ResourceRequestConfiguration
        """
        return self._resource_request_configuration

    @resource_request_configuration.setter
    def resource_request_configuration(self, resource_request_configuration):
        """
        Sets the resource_request_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.

        :param resource_request_configuration: The resource_request_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.
        :type: oci.data_science.models.ResourceRequestConfiguration
        """
        self._resource_request_configuration = resource_request_configuration

    @property
    def resource_limit_configuration(self):
        """
        Gets the resource_limit_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.

        :return: The resource_limit_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.
        :rtype: oci.data_science.models.ResourceLimitConfiguration
        """
        return self._resource_limit_configuration

    @resource_limit_configuration.setter
    def resource_limit_configuration(self, resource_limit_configuration):
        """
        Sets the resource_limit_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.

        :param resource_limit_configuration: The resource_limit_configuration of this ManagedComputeClusterModelDeploymentResourceConfiguration.
        :type: oci.data_science.models.ResourceLimitConfiguration
        """
        self._resource_limit_configuration = resource_limit_configuration

    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
