internal static string ToSerializedValue(this SimpleRobotDtoType value) { switch (value) { case SimpleRobotDtoType.NonProduction: return("NonProduction"); case SimpleRobotDtoType.Attended: return("Attended"); case SimpleRobotDtoType.Unattended: return("Unattended"); case SimpleRobotDtoType.Studio: return("Studio"); case SimpleRobotDtoType.Development: return("Development"); case SimpleRobotDtoType.StudioX: return("StudioX"); case SimpleRobotDtoType.Headless: return("Headless"); case SimpleRobotDtoType.StudioPro: return("StudioPro"); case SimpleRobotDtoType.TestAutomation: return("TestAutomation"); } return(null); }
/// <summary> /// Initializes a new instance of the SimpleRobotDto class. /// </summary> /// <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="machineName">The name of the machine a Robot is hosted /// on.</param> /// <param name="name">A custom name for the robot.</param> /// <param name="type">The Robot type. Possible values include: /// 'NonProduction', 'Attended', 'Unattended', 'Development'</param> /// <param name="username">The machine username. If the user is under a /// domain, you are required to also specify it in a DOMAIN\username /// format. /// <para />Note: You must use short domain names, such as /// desktop\administrator and NOT desktop.local/administrator.</param> /// <param name="description">Used to add additional information about /// a robot in order to better identify it.</param> /// <param name="password">The Windows password associated with the /// machine username.</param> /// <param name="environments">The collection of environments the robot /// is part of.</param> /// <param name="robotEnvironments">The comma separated textual /// representation of environment names the robot is part of.</param> /// <param name="executionSettings">A collection of key value pairs /// containing execution settings for this robot.</param> public SimpleRobotDto(string licenseKey, string machineName, string name, SimpleRobotDtoType type, string username = default(string), string description = default(string), string password = default(string), IList <EnvironmentDto> environments = default(IList <EnvironmentDto>), string robotEnvironments = default(string), IDictionary <string, object> executionSettings = default(IDictionary <string, object>), long?id = default(long?)) { LicenseKey = licenseKey; MachineName = machineName; Name = name; Username = username; Description = description; Type = type; Password = password; Environments = environments; RobotEnvironments = robotEnvironments; ExecutionSettings = executionSettings; Id = id; CustomInit(); }
internal static string ToSerializedValue(this SimpleRobotDtoType value) { switch (value) { case SimpleRobotDtoType.NonProduction: return("NonProduction"); case SimpleRobotDtoType.Attended: return("Attended"); case SimpleRobotDtoType.Unattended: return("Unattended"); case SimpleRobotDtoType.Development: return("Development"); } return(null); }
/// <summary> /// Initializes a new instance of the SimpleRobotDto class. /// </summary> /// <param name="name">A custom name for the robot.</param> /// <param name="username">The machine username. If the user is under a /// domain, you are required to also specify it in a DOMAIN\username /// format. /// <para />Note: You must use short domain names, such as /// desktop\administrator and NOT desktop.local/administrator.</param> /// <param name="type">The Robot type. Possible values include: /// 'NonProduction', 'Attended', 'Unattended', 'Development'</param> /// <param name="hostingType">The Robot hosting type (Standard / /// Floating). Possible values include: 'Standard', 'Floating'</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="machineName">The name of the machine a Robot is hosted /// on.</param> /// <param name="machineId">The Id of the machine a Robot is hosted /// on</param> /// <param name="externalName">Contains the value of the key in the /// external store used to store the password.</param> /// <param name="description">Used to add additional information about /// a robot in order to better identify it.</param> /// <param name="version">The Robot's Version.</param> /// <param name="password">The Windows password associated with the /// machine username.</param> /// <param name="credentialStoreId">The Credential Store used to store /// the password.</param> /// <param name="credentialType">The robot credentials type (Default/ /// SmartCard). Possible values include: 'Default', 'SmartCard'</param> /// <param name="environments">The collection of environments the robot /// is part of.</param> /// <param name="robotEnvironments">The comma separated textual /// representation of environment names the robot is part of.</param> /// <param name="executionSettings">A collection of key value pairs /// containing execution settings for this robot.</param> public SimpleRobotDto(string name, string username, SimpleRobotDtoType type, SimpleRobotDtoHostingType hostingType, string licenseKey = default(string), string machineName = default(string), long?machineId = default(long?), string externalName = default(string), string description = default(string), string version = default(string), string password = default(string), long?credentialStoreId = default(long?), SimpleRobotDtoCredentialType?credentialType = default(SimpleRobotDtoCredentialType?), IList <EnvironmentDto> environments = default(IList <EnvironmentDto>), string robotEnvironments = default(string), IDictionary <string, object> executionSettings = default(IDictionary <string, object>), long?id = default(long?)) { LicenseKey = licenseKey; MachineName = machineName; MachineId = machineId; Name = name; Username = username; ExternalName = externalName; Description = description; Version = version; Type = type; HostingType = hostingType; Password = password; CredentialStoreId = credentialStoreId; CredentialType = credentialType; Environments = environments; RobotEnvironments = robotEnvironments; ExecutionSettings = executionSettings; Id = id; CustomInit(); }