示例#1
0
 /// <summary>
 /// Initializes a new instance of the JobOutput class.
 /// </summary>
 /// <param name="error">If the JobOutput is in the Error state, it
 /// contains the details of the error.</param>
 /// <param name="presetOverride">A preset used to override the preset
 /// in the corresponding transform output.</param>
 /// <param name="state">Describes the state of the JobOutput. Possible
 /// values include: 'Canceled', 'Canceling', 'Error', 'Finished',
 /// 'Processing', 'Queued', 'Scheduled'</param>
 /// <param name="progress">If the JobOutput is in a Processing state,
 /// this contains the Job completion percentage. The value is an
 /// estimate and not intended to be used to predict Job completion
 /// times. To determine if the JobOutput is complete, use the State
 /// property.</param>
 /// <param name="label">A label that is assigned to a JobOutput in
 /// order to help uniquely identify it. This is useful when your
 /// Transform has more than one TransformOutput, whereby your Job has
 /// more than one JobOutput. In such cases, when you submit the Job,
 /// you will add two or more JobOutputs, in the same order as
 /// TransformOutputs in the Transform. Subsequently, when you retrieve
 /// the Job, either through events or on a GET request, you can use the
 /// label to easily identify the JobOutput. If a label is not provided,
 /// a default value of '{presetName}_{outputIndex}' will be used, where
 /// the preset name is the name of the preset in the corresponding
 /// TransformOutput and the output index is the relative index of the
 /// this JobOutput within the Job. Note that this index is the same as
 /// the relative index of the corresponding TransformOutput within its
 /// Transform.</param>
 /// <param name="startTime">The UTC date and time at which this Job
 /// Output began processing.</param>
 /// <param name="endTime">The UTC date and time at which this Job
 /// Output finished processing.</param>
 public JobOutput(JobError error = default(JobError), Preset presetOverride = default(Preset), JobState state = default(JobState), int progress = default(int), string label = default(string), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?))
 {
     Error          = error;
     PresetOverride = presetOverride;
     State          = state;
     Progress       = progress;
     Label          = label;
     StartTime      = startTime;
     EndTime        = endTime;
     CustomInit();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the Job class.
 /// </summary>
 /// <param name="input">The inputs for the Job.</param>
 /// <param name="outputs">The outputs for the Job.</param>
 /// <param name="id">Fully qualified resource ID for the
 /// resource.</param>
 /// <param name="name">The name of the resource.</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="created">The UTC date and time when the Job was
 /// created, in 'YYYY-MM-DDThh:mm:ssZ' format.</param>
 /// <param name="state">The current state of the job. Possible values
 /// include: 'Canceled', 'Canceling', 'Error', 'Finished',
 /// 'Processing', 'Queued', 'Scheduled'</param>
 /// <param name="description">Optional customer supplied description of
 /// the Job.</param>
 /// <param name="lastModified">The UTC date and time when the Job was
 /// last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.</param>
 /// <param name="priority">Priority with which the job should be
 /// processed. Higher priority jobs are processed before lower priority
 /// jobs. If not set, the default is normal. Possible values include:
 /// 'Low', 'Normal', 'High'</param>
 /// <param name="correlationData">Customer provided key, value pairs
 /// that will be returned in Job and JobOutput state events.</param>
 public Job(JobInput input, IList <JobOutput> outputs, string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), JobState state = default(JobState), string description = default(string), System.DateTime lastModified = default(System.DateTime), Priority?priority = default(Priority?), IDictionary <string, string> correlationData = default(IDictionary <string, string>))
     : base(id, name, type)
 {
     Created         = created;
     State           = state;
     Description     = description;
     Input           = input;
     LastModified    = lastModified;
     Outputs         = outputs;
     Priority        = priority;
     CorrelationData = correlationData;
     CustomInit();
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the JobOutputAsset class.
 /// </summary>
 /// <param name="assetName">The name of the output Asset.</param>
 /// <param name="error">If the JobOutput is in the Error state, it
 /// contains the details of the error.</param>
 /// <param name="state">Describes the state of the JobOutput. Possible
 /// values include: 'Canceled', 'Canceling', 'Error', 'Finished',
 /// 'Processing', 'Queued', 'Scheduled'</param>
 /// <param name="progress">If the JobOutput is in a Processing state,
 /// this contains the Job completion percentage. The value is an
 /// estimate and not intended to be used to predict Job completion
 /// times. To determine if the JobOutput is complete, use the State
 /// property.</param>
 /// <param name="label">A label that is assigned to a JobOutput in
 /// order to help uniquely identify it. This is useful when your
 /// Transform has more than one TransformOutput, whereby your Job has
 /// more than one JobOutput. In such cases, when you submit the Job,
 /// you will add two or more JobOutputs, in the same order as
 /// TransformOutputs in the Transform. Subsequently, when you retrieve
 /// the Job, either through events or on a GET request, you can use the
 /// label to easily identify the JobOutput. If a label is not provided,
 /// a default value of '{presetName}_{outputIndex}' will be used, where
 /// the preset name is the name of the preset in the corresponding
 /// TransformOutput and the output index is the relative index of the
 /// this JobOutput within the Job. Note that this index is the same as
 /// the relative index of the corresponding TransformOutput within its
 /// Transform.</param>
 public JobOutputAsset(string assetName, JobError error = default(JobError), JobState state = default(JobState), int progress = default(int), string label = default(string))
     : base(error, state, progress, label)
 {
     AssetName = assetName;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the JobOutputAsset class.
 /// </summary>
 /// <param name="assetName">The name of the output Asset.</param>
 /// <param name="error">If the JobOutput is in the Error state, it
 /// contains the details of the error.</param>
 /// <param name="presetOverride">A preset used to override the preset
 /// in the corresponding transform output.</param>
 /// <param name="state">Describes the state of the JobOutput. Possible
 /// values include: 'Canceled', 'Canceling', 'Error', 'Finished',
 /// 'Processing', 'Queued', 'Scheduled'</param>
 /// <param name="progress">If the JobOutput is in a Processing state,
 /// this contains the Job completion percentage. The value is an
 /// estimate and not intended to be used to predict Job completion
 /// times. To determine if the JobOutput is complete, use the State
 /// property.</param>
 /// <param name="label">A label that is assigned to a JobOutput in
 /// order to help uniquely identify it. This is useful when your
 /// Transform has more than one TransformOutput, whereby your Job has
 /// more than one JobOutput. In such cases, when you submit the Job,
 /// you will add two or more JobOutputs, in the same order as
 /// TransformOutputs in the Transform. Subsequently, when you retrieve
 /// the Job, either through events or on a GET request, you can use the
 /// label to easily identify the JobOutput. If a label is not provided,
 /// a default value of '{presetName}_{outputIndex}' will be used, where
 /// the preset name is the name of the preset in the corresponding
 /// TransformOutput and the output index is the relative index of the
 /// this JobOutput within the Job. Note that this index is the same as
 /// the relative index of the corresponding TransformOutput within its
 /// Transform.</param>
 /// <param name="startTime">The UTC date and time at which this Job
 /// Output began processing.</param>
 /// <param name="endTime">The UTC date and time at which this Job
 /// Output finished processing.</param>
 public JobOutputAsset(string assetName, JobError error = default(JobError), Preset presetOverride = default(Preset), JobState state = default(JobState), int progress = default(int), string label = default(string), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?))
     : base(error, presetOverride, state, progress, label, startTime, endTime)
 {
     AssetName = assetName;
     CustomInit();
 }