CloudJob Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CloudJob()
- Source:
- CloudJob.cs
Initializes a new instance of the CloudJob class.
public CloudJob ();
Public Sub New ()
Applies to
CloudJob(String, String, Nullable<Boolean>, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<JobState>, Nullable<DateTime>, Nullable<JobState>, Nullable<DateTime>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, JobConstraints, JobManagerTask, JobPreparationTask, JobReleaseTask, IList<EnvironmentSetting>, PoolInformation, Nullable<OnAllTasksComplete>, Nullable<OnTaskFailure>, JobNetworkConfiguration, IList<MetadataItem>, JobExecutionInformation, JobStatistics)
- Source:
- CloudJob.cs
Initializes a new instance of the CloudJob class.
public CloudJob (string id = default, string displayName = default, bool? usesTaskDependencies = default, string url = default, string eTag = default, DateTime? lastModified = default, DateTime? creationTime = default, Microsoft.Azure.Batch.Protocol.Models.JobState? state = default, DateTime? stateTransitionTime = default, Microsoft.Azure.Batch.Protocol.Models.JobState? previousState = default, DateTime? previousStateTransitionTime = default, int? priority = default, bool? allowTaskPreemption = default, int? maxParallelTasks = default, Microsoft.Azure.Batch.Protocol.Models.JobConstraints constraints = default, Microsoft.Azure.Batch.Protocol.Models.JobManagerTask jobManagerTask = default, Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask jobPreparationTask = default, Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask jobReleaseTask = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> commonEnvironmentSettings = default, Microsoft.Azure.Batch.Protocol.Models.PoolInformation poolInfo = default, Microsoft.Azure.Batch.Protocol.Models.OnAllTasksComplete? onAllTasksComplete = default, Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure? onTaskFailure = default, Microsoft.Azure.Batch.Protocol.Models.JobNetworkConfiguration networkConfiguration = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.MetadataItem> metadata = default, Microsoft.Azure.Batch.Protocol.Models.JobExecutionInformation executionInfo = default, Microsoft.Azure.Batch.Protocol.Models.JobStatistics stats = default);
new Microsoft.Azure.Batch.Protocol.Models.CloudJob : string * string * Nullable<bool> * string * string * Nullable<DateTime> * Nullable<DateTime> * Nullable<Microsoft.Azure.Batch.Protocol.Models.JobState> * Nullable<DateTime> * Nullable<Microsoft.Azure.Batch.Protocol.Models.JobState> * Nullable<DateTime> * Nullable<int> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Batch.Protocol.Models.JobConstraints * Microsoft.Azure.Batch.Protocol.Models.JobManagerTask * Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask * Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Microsoft.Azure.Batch.Protocol.Models.PoolInformation * Nullable<Microsoft.Azure.Batch.Protocol.Models.OnAllTasksComplete> * Nullable<Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure> * Microsoft.Azure.Batch.Protocol.Models.JobNetworkConfiguration * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.MetadataItem> * Microsoft.Azure.Batch.Protocol.Models.JobExecutionInformation * Microsoft.Azure.Batch.Protocol.Models.JobStatistics -> Microsoft.Azure.Batch.Protocol.Models.CloudJob
Public Sub New (Optional id As String = Nothing, Optional displayName As String = Nothing, Optional usesTaskDependencies As Nullable(Of Boolean) = Nothing, Optional url As String = Nothing, Optional eTag As String = Nothing, Optional lastModified As Nullable(Of DateTime) = Nothing, Optional creationTime As Nullable(Of DateTime) = Nothing, Optional state As Nullable(Of JobState) = Nothing, Optional stateTransitionTime As Nullable(Of DateTime) = Nothing, Optional previousState As Nullable(Of JobState) = Nothing, Optional previousStateTransitionTime As Nullable(Of DateTime) = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional allowTaskPreemption As Nullable(Of Boolean) = Nothing, Optional maxParallelTasks As Nullable(Of Integer) = Nothing, Optional constraints As JobConstraints = Nothing, Optional jobManagerTask As JobManagerTask = Nothing, Optional jobPreparationTask As JobPreparationTask = Nothing, Optional jobReleaseTask As JobReleaseTask = Nothing, Optional commonEnvironmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional poolInfo As PoolInformation = Nothing, Optional onAllTasksComplete As Nullable(Of OnAllTasksComplete) = Nothing, Optional onTaskFailure As Nullable(Of OnTaskFailure) = Nothing, Optional networkConfiguration As JobNetworkConfiguration = Nothing, Optional metadata As IList(Of MetadataItem) = Nothing, Optional executionInfo As JobExecutionInformation = Nothing, Optional stats As JobStatistics = Nothing)
Parameters
- id
- String
A string that uniquely identifies the Job within the Account.
- displayName
- String
The display name for the Job.
Whether Tasks in the Job can define dependencies on each other. The default is false.
- url
- String
The URL of the Job.
- eTag
- String
The ETag of the Job.
The time at which the Job entered its previous state.
Whether Tasks in this job can be preempted by other high priority jobs
The maximum number of tasks that can be executed in parallel for the job.
- constraints
- JobConstraints
The execution constraints for the Job.
- jobManagerTask
- JobManagerTask
Details of a Job Manager Task to be launched when the Job is started.
- jobPreparationTask
- JobPreparationTask
The Job Preparation Task.
- jobReleaseTask
- JobReleaseTask
The Job Release Task.
- commonEnvironmentSettings
- IList<EnvironmentSetting>
The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks).
- poolInfo
- PoolInformation
The Pool settings associated with the Job.
- onAllTasksComplete
- Nullable<OnAllTasksComplete>
The action the Batch service should take when all Tasks in the Job are in the completed state.
- onTaskFailure
- Nullable<OnTaskFailure>
The action the Batch service should take when any Task in the Job fails.
- networkConfiguration
- JobNetworkConfiguration
The network configuration for the Job.
- metadata
- IList<MetadataItem>
A list of name-value pairs associated with the Job as metadata.
- executionInfo
- JobExecutionInformation
The execution information for the Job.
- stats
- JobStatistics
Resource usage statistics for the entire lifetime of the Job.