From d18ed349af2bcab9dd7c5f64424e85b8bb1add25 Mon Sep 17 00:00:00 2001 From: viogroza Date: Wed, 18 Dec 2024 14:07:33 +0200 Subject: [PATCH] FTP: FTP Proxy (25.2) [STUD-64417] Make the proxy properties visible also on windows and cross-platform --- .../ViewModels/WithFtpSessionViewModel.cs | 25 +++++++++ .../UiPath.FTP.Activities.Designer.cs | 2 +- .../Properties/UiPath.FTP.Activities.resx | 56 +++++++++---------- .../Resources/ActivitiesMetadata.json | 55 ++++++++++++++++++ 4 files changed, 109 insertions(+), 29 deletions(-) diff --git a/Activities/FTP/UiPath.FTP.Activities/NetCore/ViewModels/WithFtpSessionViewModel.cs b/Activities/FTP/UiPath.FTP.Activities/NetCore/ViewModels/WithFtpSessionViewModel.cs index 1a5f6525..eab69116 100644 --- a/Activities/FTP/UiPath.FTP.Activities/NetCore/ViewModels/WithFtpSessionViewModel.cs +++ b/Activities/FTP/UiPath.FTP.Activities/NetCore/ViewModels/WithFtpSessionViewModel.cs @@ -102,6 +102,31 @@ public WithFtpSessionViewModel(IDesignServices services) : base(services) /// public DesignInArgument ContinueOnError { get; set; } + /// + /// The type of proxy used + /// + public DesignProperty ProxyType { get; set; } + + /// + /// The proxy host + /// + public DesignInArgument ProxyServer { get; set; } + + /// + /// The proxy port + /// + public DesignInArgument ProxyPort { get; set; } + + /// + /// User used for proxy authentification + /// + public DesignInArgument ProxyUser { get; set; } + + /// + /// Password for proxy + /// + public DesignInArgument ProxyPassword { get; set; } + private static DataSource _sslProtocolsDataSource; protected override void InitializeModel() diff --git a/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.Designer.cs b/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.Designer.cs index ca805bb9..ddd9d6b9 100644 --- a/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.Designer.cs +++ b/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.Designer.cs @@ -880,7 +880,7 @@ public static string Activity_WithFtpSession_Property_ProxyType_Description { } /// - /// Looks up a localized string similar to Proxy Type. + /// Looks up a localized string similar to Proxy Type. /// public static string Activity_WithFtpSession_Property_ProxyType_Name { get { diff --git a/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.resx b/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.resx index 70923b29..3a11d556 100644 --- a/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.resx +++ b/Activities/FTP/UiPath.FTP.Activities/Properties/UiPath.FTP.Activities.resx @@ -1,17 +1,17 @@  - @@ -738,7 +738,7 @@ The type of proxy - Proxy Type + Proxy Type The user used for proxy if authentication is required diff --git a/Activities/FTP/UiPath.FTP.Activities/Resources/ActivitiesMetadata.json b/Activities/FTP/UiPath.FTP.Activities/Resources/ActivitiesMetadata.json index cdbfcb4f..4c8885b1 100644 --- a/Activities/FTP/UiPath.FTP.Activities/Resources/ActivitiesMetadata.json +++ b/Activities/FTP/UiPath.FTP.Activities/Resources/ActivitiesMetadata.json @@ -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"