Skip to content

Commit d3edd35

Browse files
authored
Merge pull request #108 from UiPath/feature/20_4_support
Added 20.4 client
2 parents 9bad66c + 75fcf0d commit d3edd35

File tree

758 files changed

+172676
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

758 files changed

+172676
-6
lines changed

UiPath.PowerShell/Cmdlets/AddWebhook.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class AddWebhook : AuthenticatedCmdlet
3030
public SwitchParameter AllEvents { get; set; }
3131

3232
[Parameter(ParameterSetName =SpecificEventsSet)]
33-
public string[] Events { get; set; }
33+
public new string[] Events { get; set; }
3434

3535
protected override void ProcessRecord()
3636
{

UiPath.PowerShell/Cmdlets/EditWebhook.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class EditWebhook : EditCmdlet
5656
[Parameter(ParameterSetName = WebhookSet)]
5757
[Parameter(ParameterSetName = IdSet)]
5858
[Parameter(ParameterSetName = SpecificEventsSet)]
59-
public string[] Events { get; set; }
59+
public new string[] Events { get; set; }
6060

6161
protected override void ProcessRecord()
6262
{

UiPath.PowerShell/Models/ProcessSchedule.cs

-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ namespace UiPath.PowerShell.Models
99
[TypeConverter(typeof(UiPathTypeConverter))]
1010
public class ProcessSchedule
1111
{
12-
private string startProcessCronDetails;
13-
1412
public string EnvironmentName { get; internal set; }
1513
public bool? Enabled { get; internal set; }
1614
public string Name { get; internal set; }
@@ -39,7 +37,6 @@ internal static ProcessSchedule FromDto(ProcessScheduleDto dto)
3937
ReleaseKey = dto.ReleaseKey,
4038
ReleaseName = dto.ReleaseName,
4139
StartProcessCron = dto.StartProcessCron,
42-
startProcessCronDetails = dto.StartProcessCronDetails,
4340
StartProcessCronSummary = dto.StartProcessCronSummary,
4441
StopProcessCron = dto.StopProcessExpression,
4542
TimeZoneIana = dto.TimeZoneIana,

UiPath.PowerShell/Util/AuthenticatedCmdlet.cs

+15
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using UiPathWebApi_19_1 = UiPath.Web.Client20191.UiPathWebApi;
1616
using UiPathWebApi_19_4 = UiPath.Web.Client20194.UiPathWebApi;
1717
using UiPathWebApi_19_10 = UiPath.Web.Client201910.UiPathWebApi;
18+
using UiPathWebApi_20_4 = UiPath.Web.Client20204.UiPathWebApi;
1819

1920
namespace UiPath.PowerShell.Util
2021
{
@@ -36,6 +37,7 @@ public abstract class AuthenticatedCmdlet : UiPathCmdlet
3637
private UiPathWebApi_19_1 _api_19_1;
3738
private UiPathWebApi_19_4 _api_19_4;
3839
private UiPathWebApi_19_10 _api_19_10;
40+
private UiPathWebApi_20_4 _api_20_4;
3941

4042
private TimeSpan Timeout
4143
{
@@ -172,6 +174,19 @@ protected UiPathWebApi_19_10 Api_19_10
172174
}
173175
}
174176

177+
protected UiPathWebApi_20_4 Api_20_4
178+
{
179+
get
180+
{
181+
if (_api_20_4 == null)
182+
{
183+
var authToken = InternalAuthToken;
184+
_api_20_4 = MakeApi<UiPathWebApi_20_4>(authToken, (creds, uri) => new UiPathWebApi_20_4(creds) { BaseUri = uri }, Timeout);
185+
}
186+
return _api_20_4;
187+
}
188+
}
189+
175190
public static UiPathWebApi_18_1 MakeApi(AuthToken authToken, TimeSpan timeout)
176191
{
177192
return MakeApi<UiPathWebApi_18_1>(authToken, (creds, uri) => new UiPathWebApi_18_1(creds) { BaseUri = uri }, timeout);

0 commit comments

Comments
 (0)