Class EnvironmentVersionProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ResourceBase
com.azure.resourcemanager.machinelearning.models.AssetBase
com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>
Environment version details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EnvironmentVersionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoRebuild property: Defines if image needs to be rebuilt based on base image changes.build()Get the build property: Configuration settings for Docker build context.Get the condaFile property: Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages.Get the environmentType property: Environment type is either user managed or curated by the Azure ML service <see href="https://docs.microsoft.com/en-us/azure/machine-learning/resource-curated-environments" />.static EnvironmentVersionPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EnvironmentVersionProperties from the JsonReader.image()Get the image property: Name of the image that will be used for the environment.Get the inferenceConfig property: Defines configuration specific to inference.osType()Get the osType property: The OS type of the environment.Get the provisioningState property: Provisioning state for the environment version.stage()Get the stage property: Stage in the environment lifecycle assigned to this environment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAutoRebuild(AutoRebuildSetting autoRebuild) Set the autoRebuild property: Defines if image needs to be rebuilt based on base image changes.withBuild(BuildContext build) Set the build property: Configuration settings for Docker build context.withCondaFile(String condaFile) Set the condaFile property: Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages.withDescription(String description) Set the description property: The asset description text.Set the image property: Name of the image that will be used for the environment.withInferenceConfig(InferenceContainerProperties inferenceConfig) Set the inferenceConfig property: Defines configuration specific to inference.withIsAnonymous(Boolean isAnonymous) Set the isAnonymous property: If the name version are system generated (anonymous registration).withIsArchived(Boolean isArchived) Set the isArchived property: Is the asset archived?.withOsType(OperatingSystemType osType) Set the osType property: The OS type of the environment.withProperties(Map<String, String> properties) Set the properties property: The asset property dictionary.Set the stage property: Stage in the environment lifecycle assigned to this environment.Set the tags property: Tag dictionary.Methods inherited from class com.azure.resourcemanager.machinelearning.models.AssetBase
isAnonymous, isArchivedMethods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EnvironmentVersionProperties
public EnvironmentVersionProperties()Creates an instance of EnvironmentVersionProperties class.
-
-
Method Details
-
environmentType
Get the environmentType property: Environment type is either user managed or curated by the Azure ML service <see href="https://docs.microsoft.com/en-us/azure/machine-learning/resource-curated-environments" />.- Returns:
- the environmentType value.
-
image
Get the image property: Name of the image that will be used for the environment. <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" />.- Returns:
- the image value.
-
withImage
Set the image property: Name of the image that will be used for the environment. <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" />.- Parameters:
image- the image value to set.- Returns:
- the EnvironmentVersionProperties object itself.
-
condaFile
Get the condaFile property: Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. <see href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment" />.- Returns:
- the condaFile value.
-
withCondaFile
Set the condaFile property: Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. <see href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment" />.- Parameters:
condaFile- the condaFile value to set.- Returns:
- the EnvironmentVersionProperties object itself.
-
build
Get the build property: Configuration settings for Docker build context.- Returns:
- the build value.
-
withBuild
Set the build property: Configuration settings for Docker build context.- Parameters:
build- the build value to set.- Returns:
- the EnvironmentVersionProperties object itself.
-
osType
Get the osType property: The OS type of the environment.- Returns:
- the osType value.
-
withOsType
Set the osType property: The OS type of the environment.- Parameters:
osType- the osType value to set.- Returns:
- the EnvironmentVersionProperties object itself.
-
inferenceConfig
Get the inferenceConfig property: Defines configuration specific to inference.- Returns:
- the inferenceConfig value.
-
withInferenceConfig
public EnvironmentVersionProperties withInferenceConfig(InferenceContainerProperties inferenceConfig) Set the inferenceConfig property: Defines configuration specific to inference.- Parameters:
inferenceConfig- the inferenceConfig value to set.- Returns:
- the EnvironmentVersionProperties object itself.
-
autoRebuild
Get the autoRebuild property: Defines if image needs to be rebuilt based on base image changes.- Returns:
- the autoRebuild value.
-
withAutoRebuild
Set the autoRebuild property: Defines if image needs to be rebuilt based on base image changes.- Parameters:
autoRebuild- the autoRebuild value to set.- Returns:
- the EnvironmentVersionProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state for the environment version.- Returns:
- the provisioningState value.
-
stage
Get the stage property: Stage in the environment lifecycle assigned to this environment.- Returns:
- the stage value.
-
withStage
Set the stage property: Stage in the environment lifecycle assigned to this environment.- Parameters:
stage- the stage value to set.- Returns:
- the EnvironmentVersionProperties object itself.
-
withIsArchived
Set the isArchived property: Is the asset archived?.- Overrides:
withIsArchivedin classAssetBase- Parameters:
isArchived- the isArchived value to set.- Returns:
- the AssetBase object itself.
-
withIsAnonymous
Set the isAnonymous property: If the name version are system generated (anonymous registration).- Overrides:
withIsAnonymousin classAssetBase- Parameters:
isAnonymous- the isAnonymous value to set.- Returns:
- the AssetBase object itself.
-
withDescription
Set the description property: The asset description text.- Overrides:
withDescriptionin classAssetBase- Parameters:
description- the description value to set.- Returns:
- the ResourceBase object itself.
-
withTags
Set the tags property: Tag dictionary. Tags can be added, removed, and updated. -
withProperties
Set the properties property: The asset property dictionary.- Overrides:
withPropertiesin classAssetBase- Parameters:
properties- the properties value to set.- Returns:
- the ResourceBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAssetBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceBase>- Overrides:
toJsonin classAssetBase- Throws:
IOException
-
fromJson
public static EnvironmentVersionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EnvironmentVersionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EnvironmentVersionProperties 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 EnvironmentVersionProperties.
-