# 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 .model_deploy_infrastructure_configuration_details import ModelDeployInfrastructureConfigurationDetails
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 ManagedComputeClusterModelDeployInfrastructureConfigDetails(ModelDeployInfrastructureConfigurationDetails):
    """
    Infrastructure configuration details for model deploy on managed compute cluster type compute target.
    """

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

        :param compute_target_id:
            The value to assign to the compute_target_id property of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        :type compute_target_id: str

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

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

        """
        self.swagger_types = {
            'infrastructure_type': 'str',
            'compute_target_id': 'str',
            'model_deployment_resource_configuration': 'ManagedComputeClusterModelDeploymentResourceConfiguration',
            'scaling_policy': 'ManagedComputeClusterWorkloadScalingPolicy'
        }
        self.attribute_map = {
            'infrastructure_type': 'infrastructureType',
            'compute_target_id': 'computeTargetId',
            'model_deployment_resource_configuration': 'modelDeploymentResourceConfiguration',
            'scaling_policy': 'scalingPolicy'
        }
        self._infrastructure_type = None
        self._compute_target_id = None
        self._model_deployment_resource_configuration = None
        self._scaling_policy = None
        self._infrastructure_type = 'MANAGED_COMPUTE_CLUSTER'

    @property
    def compute_target_id(self):
        """
        **[Required]** Gets the compute_target_id of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        The `OCID`__ of a Compute Target.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The compute_target_id of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        :rtype: str
        """
        return self._compute_target_id

    @compute_target_id.setter
    def compute_target_id(self, compute_target_id):
        """
        Sets the compute_target_id of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        The `OCID`__ of a Compute Target.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param compute_target_id: The compute_target_id of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        :type: str
        """
        self._compute_target_id = compute_target_id

    @property
    def model_deployment_resource_configuration(self):
        """
        Gets the model_deployment_resource_configuration of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.

        :return: The model_deployment_resource_configuration of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        :rtype: oci.data_science.models.ManagedComputeClusterModelDeploymentResourceConfiguration
        """
        return self._model_deployment_resource_configuration

    @model_deployment_resource_configuration.setter
    def model_deployment_resource_configuration(self, model_deployment_resource_configuration):
        """
        Sets the model_deployment_resource_configuration of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.

        :param model_deployment_resource_configuration: The model_deployment_resource_configuration of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        :type: oci.data_science.models.ManagedComputeClusterModelDeploymentResourceConfiguration
        """
        self._model_deployment_resource_configuration = model_deployment_resource_configuration

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

        :return: The scaling_policy of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        :rtype: oci.data_science.models.ManagedComputeClusterWorkloadScalingPolicy
        """
        return self._scaling_policy

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

        :param scaling_policy: The scaling_policy of this ManagedComputeClusterModelDeployInfrastructureConfigDetails.
        :type: oci.data_science.models.ManagedComputeClusterWorkloadScalingPolicy
        """
        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
