Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2baa031

Browse files
committed
Client 19.1 added
1 parent 278ee09 commit 2baa031

File tree

6 files changed

+18411
-4
lines changed

6 files changed

+18411
-4
lines changed

.vsts-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ variables:
1212
BuildPlatform: "Any CPU"
1313
# TODO: reset counter on each GlobalAssemblyProperties version bump
1414
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=vsts&tabs=yaml%2Cbatch#counters
15-
patch: $[counter('patch_counter_18_4_1', 64216)]
15+
patch: $[counter('patch_counter_19_1', 1)]
1616

1717
steps:
1818
- task: NuGetToolInstaller@0

Properties/GlobalAssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
// Remeber to reset the counter on each version bump
1515
// Eg. if you change version here to 18.4.2.*, in .vsts-ci.yml the line should be patch: $[counter('patch_counter_18_4_2', 1)]
1616
//
17-
[assembly: AssemblyVersion("18.4.1.*")]
17+
[assembly: AssemblyVersion("19.1.0.*")]

UiPath.PowerShell/Util/AuthenticatedCmdlet.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using UiPathWebApi_18_2 = UiPath.Web.Client20182.UiPathWebApi;
1010
using UiPathWebApi_18_3 = UiPath.Web.Client20183.UiPathWebApi;
1111
using UiPathWebApi_18_4 = UiPath.Web.Client20184.UiPathWebApi;
12+
using UiPathWebApi_19_1 = UiPath.Web.Client20191.UiPathWebApi;
1213

1314
namespace UiPath.PowerShell.Util
1415
{
@@ -21,6 +22,7 @@ public abstract class AuthenticatedCmdlet: UiPathCmdlet
2122
private UiPathWebApi_18_2 _api_18_2;
2223
private UiPathWebApi_18_3 _api_18_3;
2324
private UiPathWebApi_18_4 _api_18_4;
25+
private UiPathWebApi_19_1 _api_19_1;
2426

2527
internal static AuthToken SessionAuthToken { get; set; }
2628

@@ -99,6 +101,19 @@ protected UiPathWebApi_18_4 Api_18_4
99101
}
100102
}
101103

104+
protected UiPathWebApi_19_1 Api_19_1
105+
{
106+
get
107+
{
108+
if (_api_19_1 == null)
109+
{
110+
var authToken = InternalAuthToken;
111+
_api_19_1 = MakeApi<UiPathWebApi_19_1>(authToken, (creds, uri) => new UiPathWebApi_19_1(creds) { BaseUri = uri });
112+
}
113+
return _api_19_1;
114+
}
115+
}
116+
102117
public static UiPathWebApi_18_1 MakeApi(AuthToken authToken)
103118
{
104119
return MakeApi<UiPathWebApi_18_1>(authToken, (creds, uri) => new UiPathWebApi_18_1(creds) { BaseUri = uri });

0 commit comments

Comments
 (0)