ComponentVersionProperties Class

public final class ComponentVersionProperties
extends AssetBase

Definition of a component version: defines resources that span component types.

Constructor Summary

Constructor Description
ComponentVersionProperties()

Creates an instance of ComponentVersionProperties class.

Method Summary

Modifier and Type Method and Description
Object componentSpec()

Get the componentSpec property: Defines Component definition details.

static ComponentVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of ComponentVersionProperties from the JsonReader.

AssetProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the component version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ComponentVersionProperties withComponentSpec(Object componentSpec)

Set the componentSpec property: Defines Component definition details.

ComponentVersionProperties withDescription(String description)

Set the description property: The asset description text.

ComponentVersionProperties withIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: If the name version are system generated (anonymous registration).

ComponentVersionProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

ComponentVersionProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

ComponentVersionProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary.

Methods inherited from AssetBase

Methods inherited from ResourceBase

Methods inherited from java.lang.Object

Constructor Details

ComponentVersionProperties

public ComponentVersionProperties()

Creates an instance of ComponentVersionProperties class.

Method Details

componentSpec

public Object componentSpec()

Get the componentSpec property: Defines Component definition details. <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" />.

Returns:

the componentSpec value.

fromJson

public static ComponentVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of ComponentVersionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ComponentVersionProperties 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 ComponentVersionProperties.

provisioningState

public AssetProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the component version.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ComponentVersionProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ComponentVersionProperties.validate()

withComponentSpec

public ComponentVersionProperties withComponentSpec(Object componentSpec)

Set the componentSpec property: Defines Component definition details. <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" />.

Parameters:

componentSpec - the componentSpec value to set.

Returns:

the ComponentVersionProperties object itself.

withDescription

public ComponentVersionProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

ComponentVersionProperties.withDescription(String description)

Parameters:

description

withIsAnonymous

public ComponentVersionProperties withIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: If the name version are system generated (anonymous registration).

Overrides:

ComponentVersionProperties.withIsAnonymous(Boolean isAnonymous)

Parameters:

isAnonymous

withIsArchived

public ComponentVersionProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Overrides:

ComponentVersionProperties.withIsArchived(Boolean isArchived)

Parameters:

isArchived

withProperties

public ComponentVersionProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

Overrides:

ComponentVersionProperties.withProperties(Map<String,String> properties)

Parameters:

properties

withTags

public ComponentVersionProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary. Tags can be added, removed, and updated.

Overrides:

ComponentVersionProperties.withTags(Map<String,String> tags)

Parameters:

tags

Applies to