Compute Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.Compute

Implements

public class Compute
implements JsonSerializable<Compute>

Machine Learning compute object.

Constructor Summary

Constructor Description
Compute()

Creates an instance of Compute class.

Method Summary

Modifier and Type Method and Description
String computeLocation()

Get the computeLocation property: Location for the underlying compute.

ComputeType computeType()

Get the computeType property: The type of compute.

OffsetDateTime createdOn()

Get the createdOn property: The time at which the compute was created.

String description()

Get the description property: The description of the Machine Learning compute.

Boolean disableLocalAuth()

Get the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.

static Compute fromJson(JsonReader jsonReader)

Reads an instance of Compute from the JsonReader.

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.

OffsetDateTime modifiedOn()

Get the modifiedOn property: The time at which the compute was last modified.

List<ManagementError> provisioningErrors()

Get the provisioningErrors property: Errors during provisioning.

ProvisioningState provisioningState()

Get the provisioningState property: The provision state of the cluster.

String resourceId()

Get the resourceId property: ARM resource id of the underlying compute.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Compute withComputeLocation(String computeLocation)

Set the computeLocation property: Location for the underlying compute.

Compute withDescription(String description)

Set the description property: The description of the Machine Learning compute.

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.

Compute withResourceId(String resourceId)

Set the resourceId property: ARM resource id of the underlying compute.

Methods inherited from java.lang.Object

Constructor Details

Compute

public Compute()

Creates an instance of Compute class.

Method Details

computeLocation

public String computeLocation()

Get the computeLocation property: Location for the underlying compute.

Returns:

the computeLocation value.

computeType

public ComputeType computeType()

Get the computeType property: The type of compute.

Returns:

the computeType value.

createdOn

public OffsetDateTime createdOn()

Get the createdOn property: The time at which the compute was created.

Returns:

the createdOn value.

description

public String description()

Get the description property: The description of the Machine Learning compute.

Returns:

the description 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.

fromJson

public static Compute fromJson(JsonReader jsonReader)

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.

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.

modifiedOn

public OffsetDateTime modifiedOn()

Get the modifiedOn property: The time at which the compute was last modified.

Returns:

the modifiedOn value.

provisioningErrors

public List<ManagementError> provisioningErrors()

Get the provisioningErrors property: Errors during provisioning.

Returns:

the provisioningErrors value.

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.

resourceId

public String resourceId()

Get the resourceId property: ARM resource id of the underlying compute.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

Applies to