예제 #1
0
 /// <summary>
 /// Initializes a new instance of the CloudJob class.
 /// </summary>
 /// <param name="id">A string that uniquely identifies the Job within
 /// the Account.</param>
 /// <param name="displayName">The display name for the Job.</param>
 /// <param name="usesTaskDependencies">Whether Tasks in the Job can
 /// define dependencies on each other. The default is false.</param>
 /// <param name="url">The URL of the Job.</param>
 /// <param name="eTag">The ETag of the Job.</param>
 /// <param name="lastModified">The last modified time of the
 /// Job.</param>
 /// <param name="creationTime">The creation time of the Job.</param>
 /// <param name="state">The current state of the Job.</param>
 /// <param name="stateTransitionTime">The time at which the Job entered
 /// its current state.</param>
 /// <param name="previousState">The previous state of the Job.</param>
 /// <param name="previousStateTransitionTime">The time at which the Job
 /// entered its previous state.</param>
 /// <param name="priority">The priority of the Job.</param>
 /// <param name="maxParallelTasks">The maximum number of tasks that can
 /// be executed in parallel for the job.</param>
 /// <param name="constraints">The execution constraints for the
 /// Job.</param>
 /// <param name="jobManagerTask">Details of a Job Manager Task to be
 /// launched when the Job is started.</param>
 /// <param name="jobPreparationTask">The Job Preparation Task.</param>
 /// <param name="jobReleaseTask">The Job Release Task.</param>
 /// <param name="commonEnvironmentSettings">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).</param>
 /// <param name="poolInfo">The Pool settings associated with the
 /// Job.</param>
 /// <param name="onAllTasksComplete">The action the Batch service
 /// should take when all Tasks in the Job are in the completed
 /// state.</param>
 /// <param name="onTaskFailure">The action the Batch service should
 /// take when any Task in the Job fails.</param>
 /// <param name="networkConfiguration">The network configuration for
 /// the Job.</param>
 /// <param name="metadata">A list of name-value pairs associated with
 /// the Job as metadata.</param>
 /// <param name="executionInfo">The execution information for the
 /// Job.</param>
 /// <param name="stats">Resource usage statistics for the entire
 /// lifetime of the Job.</param>
 public CloudJob(string id = default(string), string displayName = default(string), bool?usesTaskDependencies = default(bool?), string url = default(string), string eTag = default(string), System.DateTime?lastModified = default(System.DateTime?), System.DateTime?creationTime = default(System.DateTime?), JobState?state = default(JobState?), System.DateTime?stateTransitionTime = default(System.DateTime?), JobState?previousState = default(JobState?), System.DateTime?previousStateTransitionTime = default(System.DateTime?), int?priority = default(int?), int?maxParallelTasks = default(int?), JobConstraints constraints = default(JobConstraints), JobManagerTask jobManagerTask = default(JobManagerTask), JobPreparationTask jobPreparationTask = default(JobPreparationTask), JobReleaseTask jobReleaseTask = default(JobReleaseTask), IList <EnvironmentSetting> commonEnvironmentSettings = default(IList <EnvironmentSetting>), PoolInformation poolInfo = default(PoolInformation), OnAllTasksComplete?onAllTasksComplete = default(OnAllTasksComplete?), OnTaskFailure?onTaskFailure = default(OnTaskFailure?), JobNetworkConfiguration networkConfiguration = default(JobNetworkConfiguration), IList <MetadataItem> metadata = default(IList <MetadataItem>), JobExecutionInformation executionInfo = default(JobExecutionInformation), JobStatistics stats = default(JobStatistics))
 {
     Id                          = id;
     DisplayName                 = displayName;
     UsesTaskDependencies        = usesTaskDependencies;
     Url                         = url;
     ETag                        = eTag;
     LastModified                = lastModified;
     CreationTime                = creationTime;
     State                       = state;
     StateTransitionTime         = stateTransitionTime;
     PreviousState               = previousState;
     PreviousStateTransitionTime = previousStateTransitionTime;
     Priority                    = priority;
     MaxParallelTasks            = maxParallelTasks;
     Constraints                 = constraints;
     JobManagerTask              = jobManagerTask;
     JobPreparationTask          = jobPreparationTask;
     JobReleaseTask              = jobReleaseTask;
     CommonEnvironmentSettings   = commonEnvironmentSettings;
     PoolInfo                    = poolInfo;
     OnAllTasksComplete          = onAllTasksComplete;
     OnTaskFailure               = onTaskFailure;
     NetworkConfiguration        = networkConfiguration;
     Metadata                    = metadata;
     ExecutionInfo               = executionInfo;
     Stats                       = stats;
     CustomInit();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the JobSpecification class.
 /// </summary>
 /// <param name="poolInfo">The Pool on which the Batch service runs the
 /// Tasks of Jobs created under this schedule.</param>
 /// <param name="priority">The priority of Jobs created under this
 /// schedule.</param>
 /// <param name="displayName">The display name for Jobs created under
 /// this schedule.</param>
 /// <param name="usesTaskDependencies">Whether Tasks in the Job can
 /// define dependencies on each other. The default is false.</param>
 /// <param name="onAllTasksComplete">The action the Batch service
 /// should take when all Tasks in a Job created under this schedule are
 /// in the completed state.</param>
 /// <param name="onTaskFailure">The action the Batch service should
 /// take when any Task fails in a Job created under this schedule. A
 /// Task is considered to have failed if it have failed if has a
 /// failureInfo. A failureInfo is set if the Task completes with a
 /// non-zero exit code after exhausting its retry count, or if there
 /// was an error starting the Task, for example due to a resource file
 /// download error.</param>
 /// <param name="networkConfiguration">The network configuration for
 /// the Job.</param>
 /// <param name="constraints">The execution constraints for Jobs
 /// created under this schedule.</param>
 /// <param name="jobManagerTask">The details of a Job Manager Task to
 /// be launched when a Job is started under this schedule.</param>
 /// <param name="jobPreparationTask">The Job Preparation Task for Jobs
 /// created under this schedule.</param>
 /// <param name="jobReleaseTask">The Job Release Task for Jobs created
 /// under this schedule.</param>
 /// <param name="commonEnvironmentSettings">A list of common
 /// environment variable settings. These environment variables are set
 /// for all Tasks in Jobs created under this schedule (including the
 /// Job Manager, Job Preparation and Job Release Tasks).</param>
 /// <param name="metadata">A list of name-value pairs associated with
 /// each Job created under this schedule as metadata.</param>
 public JobSpecification(PoolInformation poolInfo, int?priority = default(int?), string displayName = default(string), bool?usesTaskDependencies = default(bool?), OnAllTasksComplete?onAllTasksComplete = default(OnAllTasksComplete?), OnTaskFailure?onTaskFailure = default(OnTaskFailure?), JobNetworkConfiguration networkConfiguration = default(JobNetworkConfiguration), JobConstraints constraints = default(JobConstraints), JobManagerTask jobManagerTask = default(JobManagerTask), JobPreparationTask jobPreparationTask = default(JobPreparationTask), JobReleaseTask jobReleaseTask = default(JobReleaseTask), IList <EnvironmentSetting> commonEnvironmentSettings = default(IList <EnvironmentSetting>), IList <MetadataItem> metadata = default(IList <MetadataItem>))
 {
     Priority                  = priority;
     DisplayName               = displayName;
     UsesTaskDependencies      = usesTaskDependencies;
     OnAllTasksComplete        = onAllTasksComplete;
     OnTaskFailure             = onTaskFailure;
     NetworkConfiguration      = networkConfiguration;
     Constraints               = constraints;
     JobManagerTask            = jobManagerTask;
     JobPreparationTask        = jobPreparationTask;
     JobReleaseTask            = jobReleaseTask;
     CommonEnvironmentSettings = commonEnvironmentSettings;
     PoolInfo                  = poolInfo;
     Metadata                  = metadata;
     CustomInit();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the JobAddParameter class.
 /// </summary>
 /// <param name="id">A string that uniquely identifies the Job within
 /// the Account.</param>
 /// <param name="poolInfo">The Pool on which the Batch service runs the
 /// Job's Tasks.</param>
 /// <param name="displayName">The display name for the Job.</param>
 /// <param name="priority">The priority of the Job.</param>
 /// <param name="maxParallelTasks">The maximum number of tasks that can
 /// be executed in parallel for the job.</param>
 /// <param name="allowTaskPreemption">Whether Tasks in this job can be
 /// preempted by other high priority jobs</param>
 /// <param name="constraints">The execution constraints for the
 /// Job.</param>
 /// <param name="jobManagerTask">Details of a Job Manager Task to be
 /// launched when the Job is started.</param>
 /// <param name="jobPreparationTask">The Job Preparation Task.</param>
 /// <param name="jobReleaseTask">The Job Release Task.</param>
 /// <param name="commonEnvironmentSettings">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).</param>
 /// <param name="onAllTasksComplete">The action the Batch service
 /// should take when all Tasks in the Job are in the completed
 /// state.</param>
 /// <param name="onTaskFailure">The action the Batch service should
 /// take when any Task in the Job fails.</param>
 /// <param name="metadata">A list of name-value pairs associated with
 /// the Job as metadata.</param>
 /// <param name="usesTaskDependencies">Whether Tasks in the Job can
 /// define dependencies on each other. The default is false.</param>
 /// <param name="networkConfiguration">The network configuration for
 /// the Job.</param>
 public JobAddParameter(string id, PoolInformation poolInfo, string displayName = default(string), int?priority = default(int?), int?maxParallelTasks = default(int?), bool?allowTaskPreemption = default(bool?), JobConstraints constraints = default(JobConstraints), JobManagerTask jobManagerTask = default(JobManagerTask), JobPreparationTask jobPreparationTask = default(JobPreparationTask), JobReleaseTask jobReleaseTask = default(JobReleaseTask), IList <EnvironmentSetting> commonEnvironmentSettings = default(IList <EnvironmentSetting>), OnAllTasksComplete?onAllTasksComplete = default(OnAllTasksComplete?), OnTaskFailure?onTaskFailure = default(OnTaskFailure?), IList <MetadataItem> metadata = default(IList <MetadataItem>), bool?usesTaskDependencies = default(bool?), JobNetworkConfiguration networkConfiguration = default(JobNetworkConfiguration))
 {
     Id                        = id;
     DisplayName               = displayName;
     Priority                  = priority;
     MaxParallelTasks          = maxParallelTasks;
     AllowTaskPreemption       = allowTaskPreemption;
     Constraints               = constraints;
     JobManagerTask            = jobManagerTask;
     JobPreparationTask        = jobPreparationTask;
     JobReleaseTask            = jobReleaseTask;
     CommonEnvironmentSettings = commonEnvironmentSettings;
     PoolInfo                  = poolInfo;
     OnAllTasksComplete        = onAllTasksComplete;
     OnTaskFailure             = onTaskFailure;
     Metadata                  = metadata;
     UsesTaskDependencies      = usesTaskDependencies;
     NetworkConfiguration      = networkConfiguration;
     CustomInit();
 }