Class CommandJob
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ResourceBase
com.azure.resourcemanager.machinelearning.models.JobBaseProperties
com.azure.resourcemanager.machinelearning.models.CommandJob
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>
Command job definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodeId()Get the codeId property: ARM resource ID of the code asset.command()Get the command property: [Required] The command to execute on startup of the job.Get the distribution property: Distribution configuration of the job.Get the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.Get the environmentVariables property: Environment variables included in the job.static CommandJobfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CommandJob from the JsonReader.inputs()Get the inputs property: Mapping of input data bindings used in the job.jobType()Get the jobType property: [Required] Specifies the type of job.limits()Get the limits property: Command Job limit.outputs()Get the outputs property: Mapping of output data bindings used in the job.Get the parameters property: Input parameters.Get the queueSettings property: Queue settings for the job.Get the resources property: Compute Resource configuration for the job.status()Get the status property: Status of the job.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCodeId(String codeId) Set the codeId property: ARM resource ID of the code asset.withCommand(String command) Set the command property: [Required] The command to execute on startup of the job.withComponentId(String componentId) Set the componentId property: ARM resource ID of the component resource.withComputeId(String computeId) Set the computeId property: ARM resource ID of the compute resource.withDescription(String description) Set the description property: The asset description text.withDisplayName(String displayName) Set the displayName property: Display name of job.withDistribution(DistributionConfiguration distribution) Set the distribution property: Distribution configuration of the job.withEnvironmentId(String environmentId) Set the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.withEnvironmentVariables(Map<String, String> environmentVariables) Set the environmentVariables property: Environment variables included in the job.withExperimentName(String experimentName) Set the experimentName property: The name of the experiment the job belongs to.withIdentity(IdentityConfiguration identity) Set the identity property: Identity configuration.withInputs(Map<String, JobInput> inputs) Set the inputs property: Mapping of input data bindings used in the job.withIsArchived(Boolean isArchived) Set the isArchived property: Is the asset archived?.withLimits(CommandJobLimits limits) Set the limits property: Command Job limit.withNotificationSetting(NotificationSetting notificationSetting) Set the notificationSetting property: Notification setting for the job.withOutputs(Map<String, JobOutput> outputs) Set the outputs property: Mapping of output data bindings used in the job.withProperties(Map<String, String> properties) Set the properties property: The asset property dictionary.withQueueSettings(QueueSettings queueSettings) Set the queueSettings property: Queue settings for the job.withResources(JobResourceConfiguration resources) Set the resources property: Compute Resource configuration for the job.withServices(Map<String, JobService> services) Set the services property: List of JobEndpoints.Set the tags property: Tag dictionary.Methods inherited from class com.azure.resourcemanager.machinelearning.models.JobBaseProperties
componentId, computeId, displayName, experimentName, identity, isArchived, notificationSetting, servicesMethods 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
-
CommandJob
public CommandJob()Creates an instance of CommandJob class.
-
-
Method Details
-
jobType
Get the jobType property: [Required] Specifies the type of job.- Overrides:
jobTypein classJobBaseProperties- Returns:
- the jobType value.
-
resources
Get the resources property: Compute Resource configuration for the job.- Returns:
- the resources value.
-
withResources
Set the resources property: Compute Resource configuration for the job.- Parameters:
resources- the resources value to set.- Returns:
- the CommandJob object itself.
-
codeId
Get the codeId property: ARM resource ID of the code asset.- Returns:
- the codeId value.
-
withCodeId
Set the codeId property: ARM resource ID of the code asset.- Parameters:
codeId- the codeId value to set.- Returns:
- the CommandJob object itself.
-
command
Get the command property: [Required] The command to execute on startup of the job. eg. "python train.py".- Returns:
- the command value.
-
withCommand
Set the command property: [Required] The command to execute on startup of the job. eg. "python train.py".- Parameters:
command- the command value to set.- Returns:
- the CommandJob object itself.
-
environmentId
Get the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.- Returns:
- the environmentId value.
-
withEnvironmentId
Set the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.- Parameters:
environmentId- the environmentId value to set.- Returns:
- the CommandJob object itself.
-
inputs
Get the inputs property: Mapping of input data bindings used in the job.- Returns:
- the inputs value.
-
withInputs
Set the inputs property: Mapping of input data bindings used in the job.- Parameters:
inputs- the inputs value to set.- Returns:
- the CommandJob object itself.
-
outputs
Get the outputs property: Mapping of output data bindings used in the job.- Returns:
- the outputs value.
-
withOutputs
Set the outputs property: Mapping of output data bindings used in the job.- Parameters:
outputs- the outputs value to set.- Returns:
- the CommandJob object itself.
-
distribution
Get the distribution property: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.- Returns:
- the distribution value.
-
withDistribution
Set the distribution property: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.- Parameters:
distribution- the distribution value to set.- Returns:
- the CommandJob object itself.
-
limits
Get the limits property: Command Job limit.- Returns:
- the limits value.
-
withLimits
Set the limits property: Command Job limit.- Parameters:
limits- the limits value to set.- Returns:
- the CommandJob object itself.
-
environmentVariables
Get the environmentVariables property: Environment variables included in the job.- Returns:
- the environmentVariables value.
-
withEnvironmentVariables
Set the environmentVariables property: Environment variables included in the job.- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the CommandJob object itself.
-
parameters
Get the parameters property: Input parameters.- Returns:
- the parameters value.
-
queueSettings
Get the queueSettings property: Queue settings for the job.- Returns:
- the queueSettings value.
-
withQueueSettings
Set the queueSettings property: Queue settings for the job.- Parameters:
queueSettings- the queueSettings value to set.- Returns:
- the CommandJob object itself.
-
status
Get the status property: Status of the job.- Overrides:
statusin classJobBaseProperties- Returns:
- the status value.
-
withDisplayName
Set the displayName property: Display name of job.- Overrides:
withDisplayNamein classJobBaseProperties- Parameters:
displayName- the displayName value to set.- Returns:
- the JobBaseProperties object itself.
-
withExperimentName
Set the experimentName property: The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.- Overrides:
withExperimentNamein classJobBaseProperties- Parameters:
experimentName- the experimentName value to set.- Returns:
- the JobBaseProperties object itself.
-
withServices
Set the services property: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject.- Overrides:
withServicesin classJobBaseProperties- Parameters:
services- the services value to set.- Returns:
- the JobBaseProperties object itself.
-
withComputeId
Set the computeId property: ARM resource ID of the compute resource.- Overrides:
withComputeIdin classJobBaseProperties- Parameters:
computeId- the computeId value to set.- Returns:
- the JobBaseProperties object itself.
-
withIsArchived
Set the isArchived property: Is the asset archived?.- Overrides:
withIsArchivedin classJobBaseProperties- Parameters:
isArchived- the isArchived value to set.- Returns:
- the JobBaseProperties object itself.
-
withIdentity
Set the identity property: Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. Defaults to AmlToken if null.- Overrides:
withIdentityin classJobBaseProperties- Parameters:
identity- the identity value to set.- Returns:
- the JobBaseProperties object itself.
-
withComponentId
Set the componentId property: ARM resource ID of the component resource.- Overrides:
withComponentIdin classJobBaseProperties- Parameters:
componentId- the componentId value to set.- Returns:
- the JobBaseProperties object itself.
-
withNotificationSetting
Set the notificationSetting property: Notification setting for the job.- Overrides:
withNotificationSettingin classJobBaseProperties- Parameters:
notificationSetting- the notificationSetting value to set.- Returns:
- the JobBaseProperties object itself.
-
withDescription
Set the description property: The asset description text.- Overrides:
withDescriptionin classJobBaseProperties- 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.- Overrides:
withTagsin classJobBaseProperties- Parameters:
tags- the tags value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
Set the properties property: The asset property dictionary.- Overrides:
withPropertiesin classJobBaseProperties- Parameters:
properties- the properties value to set.- Returns:
- the ResourceBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classJobBaseProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceBase>- Overrides:
toJsonin classJobBaseProperties- Throws:
IOException
-
fromJson
Reads an instance of CommandJob from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CommandJob if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CommandJob.
-