/// <summary> /// Initializes a new instance of the MachineDto class. /// </summary> /// <param name="name">The name of the Machine a Robot is hosted /// on.</param> /// <param name="licenseKey">The key is automatically generated from /// the server for the Robot machine. /// <para />For the robot to work, the same key must exist on /// both the robot and Orchestrator. /// <para />All robots on a machine must have the same license /// key in order to register correctly.</param> /// <param name="type">The type of the Machine (Standard / Template). /// Possible values include: 'Standard', 'Template'</param> /// <param name="nonProductionSlots">Number of NonProduction slots to /// be reserved at runtime</param> /// <param name="unattendedSlots">Number of Unattended slots to be /// reserved at runtime</param> /// <param name="robotVersions">The versions of the Robots hosted on /// the Machine.</param> public MachineDto(string name, string licenseKey = default(string), MachineDtoType?type = default(MachineDtoType?), int?nonProductionSlots = default(int?), int?unattendedSlots = default(int?), IList <MachinesRobotVersionDto> robotVersions = default(IList <MachinesRobotVersionDto>), long?id = default(long?)) { LicenseKey = licenseKey; Name = name; Type = type; NonProductionSlots = nonProductionSlots; UnattendedSlots = unattendedSlots; RobotVersions = robotVersions; Id = id; CustomInit(); }
/// <summary> /// Initializes a new instance of the ExtendedMachineDto class. /// </summary> /// <param name="name">The name of the Machine a Robot is hosted /// on.</param> /// <param name="licenseKey">The key is automatically generated from /// the server for the Robot machine. /// <para />For the robot to work, the same key must exist on /// both the robot and Orchestrator. /// <para />All robots on a machine must have the same license /// key in order to register correctly.</param> /// <param name="type">The type of the Machine (Standard / Template). /// Possible values include: 'Standard', 'Template'</param> /// <param name="scope">The scope of the Machine (Default / Shared / PW /// / Cloud). Possible values include: 'Default', 'Shared', /// 'PersonalWorkspace', 'Cloud'</param> /// <param name="nonProductionSlots">Number of NonProduction slots to /// be reserved at runtime</param> /// <param name="unattendedSlots">Number of Unattended slots to be /// reserved at runtime</param> /// <param name="headlessSlots">Number of Headless slots to be reserved /// at runtime</param> /// <param name="testAutomationSlots">Number of TestAutomation slots to /// be reserved at runtime</param> /// <param name="key">An immutable unique identifier that is preserved /// during tenant migration</param> /// <param name="robotVersions">The versions of the Robots hosted on /// the Machine.</param> public ExtendedMachineDto(string name, string licenseKey = default(string), string description = default(string), MachineDtoType?type = default(MachineDtoType?), MachineDtoScope?scope = default(MachineDtoScope?), int?nonProductionSlots = default(int?), int?unattendedSlots = default(int?), int?headlessSlots = default(int?), int?testAutomationSlots = default(int?), System.Guid?key = default(System.Guid?), IList <MachinesRobotVersionDto> robotVersions = default(IList <MachinesRobotVersionDto>), long?id = default(long?)) { LicenseKey = licenseKey; Name = name; Description = description; Type = type; Scope = scope; NonProductionSlots = nonProductionSlots; UnattendedSlots = unattendedSlots; HeadlessSlots = headlessSlots; TestAutomationSlots = testAutomationSlots; Key = key; RobotVersions = robotVersions; Id = id; CustomInit(); }
internal static string ToSerializedValue(this MachineDtoType?value) { return(value == null ? null : ((MachineDtoType)value).ToSerializedValue()); }