Skip to content

Commit

Permalink
Merge pull request #457 from UiPath/fix/STUD-64417_ftp_proxy
Browse files Browse the repository at this point in the history
FTP: Proxy [STUD-64417]
  • Loading branch information
alexandru-petre authored Dec 18, 2024
2 parents b3175de + d18ed34 commit 073dfac
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,31 @@ public WithFtpSessionViewModel(IDesignServices services) : base(services)
/// </summary>
public DesignInArgument<bool> ContinueOnError { get; set; }

/// <summary>
/// The type of proxy used
/// </summary>
public DesignProperty<FtpProxyType> ProxyType { get; set; }

/// <summary>
/// The proxy host
/// </summary>
public DesignInArgument<string> ProxyServer { get; set; }

/// <summary>
/// The proxy port
/// </summary>
public DesignInArgument<int> ProxyPort { get; set; }

/// <summary>
/// User used for proxy authentification
/// </summary>
public DesignInArgument<string> ProxyUser { get; set; }

/// <summary>
/// Password for proxy
/// </summary>
public DesignInArgument<string> ProxyPassword { get; set; }

private static DataSource<FtpSslProtocols> _sslProtocolsDataSource;

protected override void InitializeModel()
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
Expand All @@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
Expand Down Expand Up @@ -738,7 +738,7 @@
<value>The type of proxy</value>
</data>
<data name="Activity_WithFtpSession_Property_ProxyType_Name" xml:space="preserve">
<value> Proxy Type</value>
<value>Proxy Type</value>
</data>
<data name="Activity_WithFtpSession_Property_ProxyUser_Description" xml:space="preserve">
<value>The user used for proxy if authentication is required</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,61 @@
"IsRequired": false,
"IsPrincipal": false,
"IsVisible": true
},
{
"Name": "ProxyType",
"DisplayNameKey": "Activity_WithFtpSession_Property_ProxyType_Name",
"TooltipKey": "Activity_WithFtpSession_Property_ProxyType_Description",
"IsRequired": false,
"IsPrincipal": false,
"IsVisible": true,
"Category": {
"DisplayNameKey": "Proxy"
}
},
{
"Name": "ProxyServer",
"DisplayNameKey": "Activity_WithFtpSession_Property_ProxyServer_Name",
"TooltipKey": "Activity_WithFtpSession_Property_ProxyServer_Description",
"IsRequired": false,
"IsPrincipal": false,
"IsVisible": true,
"Category": {
"DisplayNameKey": "Proxy"
}
},
{
"Name": "ProxyPort",
"DisplayNameKey": "Activity_WithFtpSession_Property_ProxyPort_Name",
"TooltipKey": "Activity_WithFtpSession_Property_ProxyPort_Description",
"IsRequired": false,
"IsPrincipal": false,
"IsVisible": true,
"Category": {
"DisplayNameKey": "Proxy"
}
},
{
"Name": "ProxyUser",
"DisplayNameKey": "Activity_WithFtpSession_Property_ProxyUser_Name",
"TooltipKey": "Activity_WithFtpSession_Property_ProxyUser_Description",
"IsRequired": false,
"IsPrincipal": false,
"IsVisible": true,
"Category": {
"DisplayNameKey": "Proxy"
}
},
{
"Name": "ProxyPassword",
"DisplayNameKey": "Activity_WithFtpSession_Property_ProxyPassword_Name",
"TooltipKey": "Activity_WithFtpSession_Property_ProxyPassword_Description",
"IsRequired": false,
"IsPrincipal": false,
"IsVisible": true,
"Category": {
"DisplayNameKey": "Proxy"
}
}
],
"ViewModelType": "UiPath.FTP.Activities.NetCore.ViewModels.WithFtpSessionViewModel"
Expand Down

0 comments on commit 073dfac

Please sign in to comment.