/// <summary>
 /// Initializes a new instance of the JobDto class.
 /// </summary>
 /// <param name="key">The unique job identifier.</param>
 /// <param name="startTime">The date and time when the job execution
 /// started or null if the job hasn't started yet.</param>
 /// <param name="endTime">The date and time when the job execution
 /// ended or null if the job hasn't ended yet.</param>
 /// <param name="state">The state in which the job is. Possible values
 /// include: 'Pending', 'Running', 'Stopping', 'Terminating',
 /// 'Faulted', 'Successful', 'Stopped', 'Suspended', 'Resumed'</param>
 /// <param name="robot">The robot associated with the current
 /// job.</param>
 /// <param name="release">The release associated with the current
 /// job.</param>
 /// <param name="source">The Source name of the job.</param>
 /// <param name="sourceType">The Source type of the job. Possible
 /// values include: 'Manual', 'Schedule', 'Agent', 'Queue'</param>
 /// <param name="batchExecutionKey">The unique identifier grouping
 /// multiple jobs. It is usually generated when the job is created by a
 /// schedule.</param>
 /// <param name="info">Additional information about the current
 /// job.</param>
 /// <param name="creationTime">The date and time when the job was
 /// created.</param>
 /// <param name="startingScheduleId">The Id of the schedule that
 /// started the job, or null if the job was started by the
 /// user.</param>
 /// <param name="releaseName">The name of the release associated with
 /// the current name.</param>
 /// <param name="type">The type of the job, Attended if started via the
 /// robot, Unattended otherwise. Possible values include: 'Unattended',
 /// 'Attended'</param>
 /// <param name="inputArguments">Input parameters in JSON format to be
 /// passed to job execution</param>
 /// <param name="outputArguments">Output parameters in JSON format
 /// resulted from job execution</param>
 /// <param name="hostMachineName">The name of the machine where the
 /// Robot run the job.</param>
 /// <param name="hasMediaRecorded">True if any execution media has been
 /// recorded for this job, false otherwise.</param>
 /// <param name="persistenceId">The persistence instance id for a
 /// suspended job</param>
 /// <param name="resumeVersion">Distinguishes between multiple job
 /// suspend/resume cycles</param>
 /// <param name="stopStrategy">Possible values include: 'SoftStop',
 /// 'Kill'</param>
 /// <param name="entryPointPath">Path to the entry point workflow
 /// (XAML) that will be executed by the robot</param>
 public JobDto(System.Guid?key = default(System.Guid?), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), JobDtoState?state = default(JobDtoState?), SimpleRobotDto robot = default(SimpleRobotDto), SimpleReleaseDto release = default(SimpleReleaseDto), string source = default(string), JobDtoSourceType?sourceType = default(JobDtoSourceType?), System.Guid?batchExecutionKey = default(System.Guid?), string info = default(string), System.DateTime?creationTime = default(System.DateTime?), long?startingScheduleId = default(long?), string releaseName = default(string), JobDtoType?type = default(JobDtoType?), string inputArguments = default(string), string outputArguments = default(string), string hostMachineName = default(string), bool?hasMediaRecorded = default(bool?), System.Guid?persistenceId = default(System.Guid?), int?resumeVersion = default(int?), JobDtoStopStrategy?stopStrategy = default(JobDtoStopStrategy?), long?releaseVersionId = default(long?), string entryPointPath = default(string), long?id = default(long?))
 {
     Key                = key;
     StartTime          = startTime;
     EndTime            = endTime;
     State              = state;
     Robot              = robot;
     Release            = release;
     Source             = source;
     SourceType         = sourceType;
     BatchExecutionKey  = batchExecutionKey;
     Info               = info;
     CreationTime       = creationTime;
     StartingScheduleId = startingScheduleId;
     ReleaseName        = releaseName;
     Type               = type;
     InputArguments     = inputArguments;
     OutputArguments    = outputArguments;
     HostMachineName    = hostMachineName;
     HasMediaRecorded   = hasMediaRecorded;
     PersistenceId      = persistenceId;
     ResumeVersion      = resumeVersion;
     StopStrategy       = stopStrategy;
     ReleaseVersionId   = releaseVersionId;
     EntryPointPath     = entryPointPath;
     Id = id;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the JobDto class.
 /// </summary>
 /// <param name="key">The unique job identifier.</param>
 /// <param name="startTime">The date and time when the job execution
 /// started or null if the job hasn't started yet.</param>
 /// <param name="endTime">The date and time when the job execution
 /// ended or null if the job hasn't ended yet.</param>
 /// <param name="state">The state in which the job is. Possible values
 /// include: 'Pending', 'Running', 'Stopping', 'Terminating',
 /// 'Faulted', 'Successful', 'Stopped'</param>
 /// <param name="robot">The robot associated with the current
 /// job.</param>
 /// <param name="release">The release associated with the current
 /// job.</param>
 /// <param name="source">The Source name of the job.</param>
 /// <param name="sourceType">The Source type of the job. Possible
 /// values include: 'Manual', 'Schedule', 'Agent'</param>
 /// <param name="batchExecutionKey">The unique identifier grouping
 /// multiple jobs. It is usually generated when the job is created by a
 /// schedule.</param>
 /// <param name="info">Additional information about the current
 /// job.</param>
 /// <param name="creationTime">The date and time when the job was
 /// created.</param>
 /// <param name="startingScheduleId">The Id of the schedule that
 /// started the job, or null if the job was started by the
 /// user.</param>
 /// <param name="releaseName">The name of the release associated with
 /// the current name.</param>
 /// <param name="type">The type of the job, Attended if started via the
 /// robot, Unattended otherwise. Possible values include: 'Unattended',
 /// 'Attended'</param>
 public JobDto(System.Guid?key = default(System.Guid?), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), JobDtoState?state = default(JobDtoState?), SimpleRobotDto robot = default(SimpleRobotDto), SimpleReleaseDto release = default(SimpleReleaseDto), string source = default(string), JobDtoSourceType?sourceType = default(JobDtoSourceType?), System.Guid?batchExecutionKey = default(System.Guid?), string info = default(string), System.DateTime?creationTime = default(System.DateTime?), long?startingScheduleId = default(long?), string releaseName = default(string), JobDtoType?type = default(JobDtoType?), long?id = default(long?))
 {
     Key                = key;
     StartTime          = startTime;
     EndTime            = endTime;
     State              = state;
     Robot              = robot;
     Release            = release;
     Source             = source;
     SourceType         = sourceType;
     BatchExecutionKey  = batchExecutionKey;
     Info               = info;
     CreationTime       = creationTime;
     StartingScheduleId = startingScheduleId;
     ReleaseName        = releaseName;
     Type               = type;
     Id = id;
     CustomInit();
 }
 internal static string ToSerializedValue(this JobDtoType?value)
 {
     return(value == null ? null : ((JobDtoType)value).ToSerializedValue());
 }