Class MLCommonsSettings

java.lang.Object
com.exoscale.sdk.model.MLCommonsSettings

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class MLCommonsSettings extends Object
MLCommonsSettings
  • Field Details

    • JSON_PROPERTY_ML_COMMONS_CONNECTOR_ACCESS_CONTROL_ENABLED

      public static final String JSON_PROPERTY_ML_COMMONS_CONNECTOR_ACCESS_CONTROL_ENABLED
      See Also:
    • JSON_PROPERTY_ML_COMMONS_MAX_MODEL_ON_NODE

      public static final String JSON_PROPERTY_ML_COMMONS_MAX_MODEL_ON_NODE
      See Also:
    • JSON_PROPERTY_ML_COMMONS_MODEL_ACCESS_CONTROL_ENABLED

      public static final String JSON_PROPERTY_ML_COMMONS_MODEL_ACCESS_CONTROL_ENABLED
      See Also:
    • JSON_PROPERTY_ML_COMMONS_MODEL_AUTO_DEPLOY_ENABLE

      public static final String JSON_PROPERTY_ML_COMMONS_MODEL_AUTO_DEPLOY_ENABLE
      See Also:
    • JSON_PROPERTY_ML_COMMONS_MODEL_AUTO_REDEPLOY_ENABLE

      public static final String JSON_PROPERTY_ML_COMMONS_MODEL_AUTO_REDEPLOY_ENABLE
      See Also:
    • JSON_PROPERTY_ML_COMMONS_NATIVE_MEMORY_THRESHOLD

      public static final String JSON_PROPERTY_ML_COMMONS_NATIVE_MEMORY_THRESHOLD
      See Also:
    • JSON_PROPERTY_ML_COMMONS_ONLY_RUN_ON_ML_NODE

      public static final String JSON_PROPERTY_ML_COMMONS_ONLY_RUN_ON_ML_NODE
      See Also:
    • JSON_PROPERTY_ML_COMMONS_TRUSTED_CONNECTOR_ENDPOINTS_REGEX

      public static final String JSON_PROPERTY_ML_COMMONS_TRUSTED_CONNECTOR_ENDPOINTS_REGEX
      See Also:
  • Constructor Details

    • MLCommonsSettings

      public MLCommonsSettings()
  • Method Details

    • mlCommonsConnectorAccessControlEnabled

      public MLCommonsSettings mlCommonsConnectorAccessControlEnabled(Boolean mlCommonsConnectorAccessControlEnabled)
    • getMlCommonsConnectorAccessControlEnabled

      @Nullable public Boolean getMlCommonsConnectorAccessControlEnabled()
      When set to true, the setting allows admins to control access and permissions to the connector API using backend_roles. Defaults to false.
      Returns:
      mlCommonsConnectorAccessControlEnabled
    • setMlCommonsConnectorAccessControlEnabled

      public void setMlCommonsConnectorAccessControlEnabled(Boolean mlCommonsConnectorAccessControlEnabled)
    • mlCommonsMaxModelOnNode

      public MLCommonsSettings mlCommonsMaxModelOnNode(Integer mlCommonsMaxModelOnNode)
    • getMlCommonsMaxModelOnNode

      @Nullable public Integer getMlCommonsMaxModelOnNode()
      Maximum number of ML models that can be deployed on a single ML node. Defaults to 10. minimum: 1
      Returns:
      mlCommonsMaxModelOnNode
    • setMlCommonsMaxModelOnNode

      public void setMlCommonsMaxModelOnNode(Integer mlCommonsMaxModelOnNode)
    • mlCommonsModelAccessControlEnabled

      public MLCommonsSettings mlCommonsModelAccessControlEnabled(Boolean mlCommonsModelAccessControlEnabled)
    • getMlCommonsModelAccessControlEnabled

      @Nullable public Boolean getMlCommonsModelAccessControlEnabled()
      Enable or disable model access control for ML Commons. When enabled, access to ML models is controlled by security permissions. Defaults to false.
      Returns:
      mlCommonsModelAccessControlEnabled
    • setMlCommonsModelAccessControlEnabled

      public void setMlCommonsModelAccessControlEnabled(Boolean mlCommonsModelAccessControlEnabled)
    • mlCommonsModelAutoDeployEnable

      public MLCommonsSettings mlCommonsModelAutoDeployEnable(Boolean mlCommonsModelAutoDeployEnable)
    • getMlCommonsModelAutoDeployEnable

      @Nullable public Boolean getMlCommonsModelAutoDeployEnable()
      For externally hosted models only: automatically deploy a model on its first predict request instead of requiring an explicit deploy call first. Defaults to true.
      Returns:
      mlCommonsModelAutoDeployEnable
    • setMlCommonsModelAutoDeployEnable

      public void setMlCommonsModelAutoDeployEnable(Boolean mlCommonsModelAutoDeployEnable)
    • mlCommonsModelAutoRedeployEnable

      public MLCommonsSettings mlCommonsModelAutoRedeployEnable(Boolean mlCommonsModelAutoRedeployEnable)
    • getMlCommonsModelAutoRedeployEnable

      @Nullable public Boolean getMlCommonsModelAutoRedeployEnable()
      Automatically redeploy deployed or partially deployed models after ML nodes rejoin the cluster, e.g. after a node replacement. Defaults to true.
      Returns:
      mlCommonsModelAutoRedeployEnable
    • setMlCommonsModelAutoRedeployEnable

      public void setMlCommonsModelAutoRedeployEnable(Boolean mlCommonsModelAutoRedeployEnable)
    • mlCommonsNativeMemoryThreshold

      public MLCommonsSettings mlCommonsNativeMemoryThreshold(Integer mlCommonsNativeMemoryThreshold)
    • getMlCommonsNativeMemoryThreshold

      @Nullable public Integer getMlCommonsNativeMemoryThreshold()
      Native memory threshold percentage for ML Commons. Controls the maximum percentage of native memory that can be used by ML Commons operations. Defaults to 90%. minimum: 1 maximum: 100
      Returns:
      mlCommonsNativeMemoryThreshold
    • setMlCommonsNativeMemoryThreshold

      public void setMlCommonsNativeMemoryThreshold(Integer mlCommonsNativeMemoryThreshold)
    • mlCommonsOnlyRunOnMlNode

      public MLCommonsSettings mlCommonsOnlyRunOnMlNode(Boolean mlCommonsOnlyRunOnMlNode)
    • getMlCommonsOnlyRunOnMlNode

      @Nullable public Boolean getMlCommonsOnlyRunOnMlNode()
      Enable or disable running ML Commons tasks only on ML nodes. When enabled, ML tasks will only execute on nodes designated as ML nodes. Defaults to true.
      Returns:
      mlCommonsOnlyRunOnMlNode
    • setMlCommonsOnlyRunOnMlNode

      public void setMlCommonsOnlyRunOnMlNode(Boolean mlCommonsOnlyRunOnMlNode)
    • mlCommonsTrustedConnectorEndpointsRegex

      public MLCommonsSettings mlCommonsTrustedConnectorEndpointsRegex(List<String> mlCommonsTrustedConnectorEndpointsRegex)
    • addMlCommonsTrustedConnectorEndpointsRegexItem

      public MLCommonsSettings addMlCommonsTrustedConnectorEndpointsRegexItem(String mlCommonsTrustedConnectorEndpointsRegexItem)
    • getMlCommonsTrustedConnectorEndpointsRegex

      @Nullable public List<String> getMlCommonsTrustedConnectorEndpointsRegex()
      Adds the trusted endpoints to the cluster settings. Supports Java regex expressions.
      Returns:
      mlCommonsTrustedConnectorEndpointsRegex
    • setMlCommonsTrustedConnectorEndpointsRegex

      public void setMlCommonsTrustedConnectorEndpointsRegex(List<String> mlCommonsTrustedConnectorEndpointsRegex)
    • equals

      public boolean equals(Object o)
      Return true if this ML_Commons_settings object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string