java.lang.Object
com.azure.resourcemanager.machinelearning.models.Compute
All Implemented Interfaces:
com.azure.json.JsonSerializable<Compute>
Direct Known Subclasses:
Aks, AmlCompute, ComputeInstance, Databricks, DataFactory, DataLakeAnalytics, HDInsight, Kubernetes, SynapseSpark, VirtualMachine

public class Compute extends Object implements com.azure.json.JsonSerializable<Compute>
Machine Learning compute object.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Compute class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the computeLocation property: Location for the underlying compute.
    Get the computeType property: The type of compute.
    Get the createdOn property: The time at which the compute was created.
    Get the description property: The description of the Machine Learning compute.
    Get the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.
    static Compute
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Compute from the JsonReader.
    Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false.
    Get the modifiedOn property: The time at which the compute was last modified.
    List<com.azure.core.management.exception.ManagementError>
    Get the provisioningErrors property: Errors during provisioning.
    Get the provisioningState property: The provision state of the cluster.
    Get the resourceId property: ARM resource id of the underlying compute.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withComputeLocation(String computeLocation)
    Set the computeLocation property: Location for the underlying compute.
    withDescription(String description)
    Set the description property: The description of the Machine Learning compute.
    withDisableLocalAuth(Boolean disableLocalAuth)
    Set the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.
    withResourceId(String resourceId)
    Set the resourceId property: ARM resource id of the underlying compute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Compute

      public Compute()
      Creates an instance of Compute class.
  • Method Details

    • computeType

      public ComputeType computeType()
      Get the computeType property: The type of compute.
      Returns:
      the computeType value.
    • computeLocation

      public String computeLocation()
      Get the computeLocation property: Location for the underlying compute.
      Returns:
      the computeLocation value.
    • withComputeLocation

      public Compute withComputeLocation(String computeLocation)
      Set the computeLocation property: Location for the underlying compute.
      Parameters:
      computeLocation - the computeLocation value to set.
      Returns:
      the Compute object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
      Returns:
      the provisioningState value.
    • description

      public String description()
      Get the description property: The description of the Machine Learning compute.
      Returns:
      the description value.
    • withDescription

      public Compute withDescription(String description)
      Set the description property: The description of the Machine Learning compute.
      Parameters:
      description - the description value to set.
      Returns:
      the Compute object itself.
    • createdOn

      public OffsetDateTime createdOn()
      Get the createdOn property: The time at which the compute was created.
      Returns:
      the createdOn value.
    • modifiedOn

      public OffsetDateTime modifiedOn()
      Get the modifiedOn property: The time at which the compute was last modified.
      Returns:
      the modifiedOn value.
    • resourceId

      public String resourceId()
      Get the resourceId property: ARM resource id of the underlying compute.
      Returns:
      the resourceId value.
    • withResourceId

      public Compute withResourceId(String resourceId)
      Set the resourceId property: ARM resource id of the underlying compute.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the Compute object itself.
    • provisioningErrors

      public List<com.azure.core.management.exception.ManagementError> provisioningErrors()
      Get the provisioningErrors property: Errors during provisioning.
      Returns:
      the provisioningErrors value.
    • isAttachedCompute

      public Boolean isAttachedCompute()
      Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false.
      Returns:
      the isAttachedCompute value.
    • disableLocalAuth

      public Boolean disableLocalAuth()
      Get the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.
      Returns:
      the disableLocalAuth value.
    • withDisableLocalAuth

      public Compute withDisableLocalAuth(Boolean disableLocalAuth)
      Set the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.
      Parameters:
      disableLocalAuth - the disableLocalAuth value to set.
      Returns:
      the Compute object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Compute>
      Throws:
      IOException
    • fromJson

      public static Compute fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Compute from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Compute if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the Compute.