/// <summary> /// Initializes a new instance of the StartProcessDto class. /// </summary> /// <param name="releaseKey">The unique key of the release associated /// with the process.</param> /// <param name="strategy">States which robots from the environment are /// being run by the process. Possible values include: 'All', /// 'Specific', 'RobotCount'</param> /// <param name="robotIds">The collection of ids of specific robots /// selected to be run by the current process. This collection must be /// empty only if the start strategy is not 1 (Specific).</param> /// <param name="noOfRobots">The number of robots selected to be run by /// the current process. This number must be greater than 0 only if the /// start strategy is not 2 (RobotCount).</param> /// <param name="source">The Source of the job starting the current /// process. Possible values include: 'Manual', 'Schedule'</param> public StartProcessDto(string releaseKey, StartProcessDtoStrategy?strategy = default(StartProcessDtoStrategy?), IList <long?> robotIds = default(IList <long?>), int?noOfRobots = default(int?), StartProcessDtoSource?source = default(StartProcessDtoSource?)) { ReleaseKey = releaseKey; Strategy = strategy; RobotIds = robotIds; NoOfRobots = noOfRobots; Source = source; CustomInit(); }
/// <summary> /// Initializes a new instance of the StartProcessDto class. /// </summary> /// <param name="releaseKey">The unique key of the release associated /// with the process.</param> /// <param name="strategy">States which robots from the environment are /// being run by the process. Possible values include: 'All', /// 'Specific', 'RobotCount', 'JobsCount'</param> /// <param name="robotIds">The collection of ids of specific robots /// selected to be run by the current process. This collection must be /// empty only if the start strategy is not Specific.</param> /// <param name="noOfRobots">DEPRECATED. Number of pending jobs to be /// created in the environment, for the current process. This number /// must be greater than 0 only if the start strategy is /// RobotCount.</param> /// <param name="jobsCount">Number of pending jobs to be created in the /// environment, for the current process. This number must be greater /// than 0 only if the start strategy is JobsCount.</param> /// <param name="source">The Source of the job starting the current /// process. Possible values include: 'Manual', 'Schedule'</param> /// <param name="inputArguments">Input parameters in JSON format to be /// passed to job execution.</param> public StartProcessDto(string releaseKey, StartProcessDtoStrategy?strategy = default(StartProcessDtoStrategy?), IList <long?> robotIds = default(IList <long?>), int?noOfRobots = default(int?), int?jobsCount = default(int?), StartProcessDtoSource?source = default(StartProcessDtoSource?), string inputArguments = default(string)) { ReleaseKey = releaseKey; Strategy = strategy; RobotIds = robotIds; NoOfRobots = noOfRobots; JobsCount = jobsCount; Source = source; InputArguments = inputArguments; CustomInit(); }
/// <summary> /// Initializes a new instance of the StartProcessDto class. /// </summary> /// <param name="releaseKey">The unique key of the release associated /// with the process.</param> /// <param name="strategy">States which robots from the environment are /// being run by the process. Possible values include: 'All', /// 'Specific', 'RobotCount', 'JobsCount', 'ModernJobsCount'</param> /// <param name="robotIds">The collection of ids of specific robots /// selected to be run by the current process. This collection must be /// empty only if the start strategy is not Specific.</param> /// <param name="machineSessionIds">The machines used for running the /// job. If empty, the job will start on the first available /// machine</param> /// <param name="noOfRobots">DEPRECATED. Number of pending jobs to be /// created in the environment, for the current process. This number /// must be greater than 0 only if the start strategy is /// RobotCount.</param> /// <param name="jobsCount">Number of pending jobs to be created in the /// environment, for the current process. This number must be greater /// than 0 only if the start strategy is JobsCount.</param> /// <param name="source">The Source of the job starting the current /// process. Possible values include: 'Manual', 'Schedule', /// 'Queue'</param> /// <param name="jobPriority">Execution priority. If null, defaults to /// the JobPriority of its release. Possible values include: 'Low', /// 'Normal', 'High'</param> /// <param name="runtimeType">Possible values include: 'NonProduction', /// 'Attended', 'Unattended', 'Studio', 'Development', 'StudioX', /// 'Headless', 'StudioPro', 'TestAutomation'</param> /// <param name="inputArguments">Input parameters in JSON format to be /// passed to job execution.</param> /// <param name="reference">Optional user-specified reference for /// jobs</param> public StartProcessDto(string releaseKey, StartProcessDtoStrategy?strategy = default(StartProcessDtoStrategy?), IList <long?> robotIds = default(IList <long?>), IList <long?> machineSessionIds = default(IList <long?>), int?noOfRobots = default(int?), int?jobsCount = default(int?), StartProcessDtoSource?source = default(StartProcessDtoSource?), StartProcessDtoJobPriority?jobPriority = default(StartProcessDtoJobPriority?), StartProcessDtoRuntimeType?runtimeType = default(StartProcessDtoRuntimeType?), string inputArguments = default(string), string reference = default(string)) { ReleaseKey = releaseKey; Strategy = strategy; RobotIds = robotIds; MachineSessionIds = machineSessionIds; NoOfRobots = noOfRobots; JobsCount = jobsCount; Source = source; JobPriority = jobPriority; RuntimeType = runtimeType; InputArguments = inputArguments; Reference = reference; CustomInit(); }
internal static string ToSerializedValue(this StartProcessDtoStrategy?value) { return(value == null ? null : ((StartProcessDtoStrategy)value).ToSerializedValue()); }