CommandJob Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. ResourceBase - com.
azure. resourcemanager. machinelearning. models. JobBaseProperties - com.
azure. resourcemanager. machinelearning. models. CommandJob
- com.
- com.
- com.
public final class CommandJob
extends JobBaseProperties
Command job definition.
Constructor Summary
| Constructor | Description |
|---|---|
| CommandJob() |
Creates an instance of Command |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
codeId()
Get the code |
| String |
command()
Get the command property: [Required] The command to execute on startup of the job. |
|
Distribution |
distribution()
Get the distribution property: Distribution configuration of the job. |
| String |
environmentId()
Get the environment |
| Map<String,String> |
environmentVariables()
Get the environment |
|
static
Command |
fromJson(JsonReader jsonReader)
Reads an instance of Command |
|
Map<String,Job |
inputs()
Get the inputs property: Mapping of input data bindings used in the job. |
|
Job |
jobType()
Get the job |
|
Command |
limits()
Get the limits property: Command Job limit. |
|
Map<String,Job |
outputs()
Get the outputs property: Mapping of output data bindings used in the job. |
| Object |
parameters()
Get the parameters property: Input parameters. |
|
Queue |
queueSettings()
Get the queue |
|
Job |
resources()
Get the resources property: Compute Resource configuration for the job. |
|
Job |
status()
Get the status property: Status of the job. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Command |
withCodeId(String codeId)
Set the code |
|
Command |
withCommand(String command)
Set the command property: [Required] The command to execute on startup of the job. |
|
Command |
withComponentId(String componentId)
Set the component |
|
Command |
withComputeId(String computeId)
Set the compute |
|
Command |
withDescription(String description)
Set the description property: The asset description text. |
|
Command |
withDisplayName(String displayName)
Set the display |
|
Command |
withDistribution(DistributionConfiguration distribution)
Set the distribution property: Distribution configuration of the job. |
|
Command |
withEnvironmentId(String environmentId)
Set the environment |
|
Command |
withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environment |
|
Command |
withExperimentName(String experimentName)
Set the experiment |
|
Command |
withIdentity(IdentityConfiguration identity)
Set the identity property: Identity configuration. |
|
Command |
withInputs(Map<String,JobInput> inputs)
Set the inputs property: Mapping of input data bindings used in the job. |
|
Command |
withIsArchived(Boolean isArchived)
Set the is |
|
Command |
withLimits(CommandJobLimits limits)
Set the limits property: Command Job limit. |
|
Command |
withNotificationSetting(NotificationSetting notificationSetting)
Set the notification |
|
Command |
withOutputs(Map<String,JobOutput> outputs)
Set the outputs property: Mapping of output data bindings used in the job. |
|
Command |
withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary. |
|
Command |
withQueueSettings(QueueSettings queueSettings)
Set the queue |
|
Command |
withResources(JobResourceConfiguration resources)
Set the resources property: Compute Resource configuration for the job. |
|
Command |
withServices(Map<String,JobService> services)
Set the services property: List of Job |
|
Command |
withTags(Map<String,String> tags)
Set the tags property: Tag dictionary. |
Methods inherited from JobBaseProperties
Methods inherited from ResourceBase
Methods inherited from java.lang.Object
Constructor Details
CommandJob
public CommandJob()
Creates an instance of CommandJob class.
Method Details
codeId
public String codeId()
Get the codeId property: ARM resource ID of the code asset.
Returns:
command
public String command()
Get the command property: [Required] The command to execute on startup of the job. eg. "python train.py".
Returns:
distribution
public DistributionConfiguration distribution()
Get the distribution property: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
Returns:
environmentId
public String environmentId()
Get the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
Returns:
environmentVariables
public Map<String,String> environmentVariables()
Get the environmentVariables property: Environment variables included in the job.
Returns:
fromJson
public static CommandJob fromJson(JsonReader jsonReader)
Reads an instance of CommandJob from the JsonReader.
Parameters:
Returns:
Throws:
inputs
public Map<String,JobInput> inputs()
Get the inputs property: Mapping of input data bindings used in the job.
Returns:
jobType
public JobType jobType()
Get the jobType property: [Required] Specifies the type of job.
Overrides:
CommandJob.jobType()Returns:
limits
public CommandJobLimits limits()
Get the limits property: Command Job limit.
Returns:
outputs
public Map<String,JobOutput> outputs()
Get the outputs property: Mapping of output data bindings used in the job.
Returns:
parameters
public Object parameters()
Get the parameters property: Input parameters.
Returns:
queueSettings
public QueueSettings queueSettings()
Get the queueSettings property: Queue settings for the job.
Returns:
resources
public JobResourceConfiguration resources()
Get the resources property: Compute Resource configuration for the job.
Returns:
status
public JobStatus status()
Get the status property: Status of the job.
Overrides:
CommandJob.status()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CommandJob.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
CommandJob.validate()withCodeId
public CommandJob withCodeId(String codeId)
Set the codeId property: ARM resource ID of the code asset.
Parameters:
Returns:
withCommand
public CommandJob withCommand(String command)
Set the command property: [Required] The command to execute on startup of the job. eg. "python train.py".
Parameters:
Returns:
withComponentId
public CommandJob withComponentId(String componentId)
Set the componentId property: ARM resource ID of the component resource.
Overrides:
CommandJob.withComponentId(String componentId)Parameters:
withComputeId
public CommandJob withComputeId(String computeId)
Set the computeId property: ARM resource ID of the compute resource.
Overrides:
CommandJob.withComputeId(String computeId)Parameters:
withDescription
public CommandJob withDescription(String description)
Set the description property: The asset description text.
Overrides:
CommandJob.withDescription(String description)Parameters:
withDisplayName
public CommandJob withDisplayName(String displayName)
Set the displayName property: Display name of job.
Overrides:
CommandJob.withDisplayName(String displayName)Parameters:
withDistribution
public CommandJob withDistribution(DistributionConfiguration distribution)
Set the distribution property: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
Parameters:
Returns:
withEnvironmentId
public CommandJob withEnvironmentId(String environmentId)
Set the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
Parameters:
Returns:
withEnvironmentVariables
public CommandJob withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environmentVariables property: Environment variables included in the job.
Parameters:
Returns:
withExperimentName
public CommandJob withExperimentName(String experimentName)
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:
CommandJob.withExperimentName(String experimentName)Parameters:
withIdentity
public CommandJob withIdentity(IdentityConfiguration identity)
Set the identity property: Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. Defaults to AmlToken if null.
Overrides:
CommandJob.withIdentity(IdentityConfiguration identity)Parameters:
withInputs
public CommandJob withInputs(Map<String,JobInput> inputs)
Set the inputs property: Mapping of input data bindings used in the job.
Parameters:
Returns:
withIsArchived
public CommandJob withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.
Overrides:
CommandJob.withIsArchived(Boolean isArchived)Parameters:
withLimits
public CommandJob withLimits(CommandJobLimits limits)
Set the limits property: Command Job limit.
Parameters:
Returns:
withNotificationSetting
public CommandJob withNotificationSetting(NotificationSetting notificationSetting)
Set the notificationSetting property: Notification setting for the job.
Overrides:
CommandJob.withNotificationSetting(NotificationSetting notificationSetting)Parameters:
withOutputs
public CommandJob withOutputs(Map<String,JobOutput> outputs)
Set the outputs property: Mapping of output data bindings used in the job.
Parameters:
Returns:
withProperties
public CommandJob withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.
Overrides:
CommandJob.withProperties(Map<String,String> properties)Parameters:
withQueueSettings
public CommandJob withQueueSettings(QueueSettings queueSettings)
Set the queueSettings property: Queue settings for the job.
Parameters:
Returns:
withResources
public CommandJob withResources(JobResourceConfiguration resources)
Set the resources property: Compute Resource configuration for the job.
Parameters:
Returns:
withServices
public CommandJob withServices(Map<String,JobService> services)
Set the services property: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject.
Overrides:
CommandJob.withServices(Map<String,JobService> services)Parameters:
withTags
public CommandJob withTags(Map<String,String> tags)
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.
Overrides:
CommandJob.withTags(Map<String,String> tags)Parameters: