Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace LabelStudio
{
public partial class ActionsClient
{


private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 =
new global::LabelStudio.EndPointSecurityRequirement
{
Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[]
{ new global::LabelStudio.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements =
new global::LabelStudio.EndPointSecurityRequirement[]
{ s_CreateSecurityRequirement0,
};
partial void PrepareCreateArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::LabelStudio.ApiDmActionsCreateId id,
Expand Down Expand Up @@ -51,14 +70,20 @@ partial void ProcessCreateResponse(
view: ref view,
request: request);


var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateSecurityRequirements,
operationName: "CreateAsync");

var __pathBuilder = new global::LabelStudio.PathBuilder(
path: "/api/dm/actions/",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("id", id.ToValueString())
.AddRequiredParameter("project", project.ToString()!)
.AddOptionalParameter("view", view?.ToString())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -68,7 +93,7 @@ partial void ProcessCreateResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
29 changes: 27 additions & 2 deletions src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace LabelStudio
{
public partial class ActionsClient
{


private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 =
new global::LabelStudio.EndPointSecurityRequirement
{
Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[]
{ new global::LabelStudio.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements =
new global::LabelStudio.EndPointSecurityRequirement[]
{ s_ListSecurityRequirement0,
};
partial void PrepareListArguments(
global::System.Net.Http.HttpClient httpClient,
ref int project);
Expand Down Expand Up @@ -38,12 +57,18 @@ partial void ProcessListResponseContent(
httpClient: HttpClient,
project: ref project);


var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ListSecurityRequirements,
operationName: "ListAsync");

var __pathBuilder = new global::LabelStudio.PathBuilder(
path: "/api/dm/actions/",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("project", project.ToString()!)
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -53,7 +78,7 @@ partial void ProcessListResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class ActionsClient : global::LabelStudio.IActionsClient,
/// <summary>
/// Label Studio
/// </summary>
public const string DefaultBaseUrl = "http://localhost:8000";
public const string DefaultBaseUrl = "http://localhost:8000/";

private bool _disposeHttpClient = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace LabelStudio
{
public partial class ActivityLogsClient
{


private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 =
new global::LabelStudio.EndPointSecurityRequirement
{
Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[]
{ new global::LabelStudio.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements =
new global::LabelStudio.EndPointSecurityRequirement[]
{ s_ListSecurityRequirement0,
};
partial void PrepareListArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? endDate,
Expand Down Expand Up @@ -91,6 +110,12 @@ partial void ProcessListResponseContent(
user: ref user,
workspace: ref workspace);


var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ListSecurityRequirements,
operationName: "ListAsync");

var __pathBuilder = new global::LabelStudio.PathBuilder(
path: "/api/activity-logs/",
baseUri: HttpClient.BaseAddress);
Expand All @@ -105,7 +130,7 @@ partial void ProcessListResponseContent(
.AddOptionalParameter("start_date", startDate)
.AddOptionalParameter("user", user?.ToString())
.AddOptionalParameter("workspace", workspace?.ToString())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -115,7 +140,7 @@ partial void ProcessListResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class ActivityLogsClient : global::LabelStudio.IActivityLo
/// <summary>
/// Label Studio
/// </summary>
public const string DefaultBaseUrl = "http://localhost:8000";
public const string DefaultBaseUrl = "http://localhost:8000/";

private bool _disposeHttpClient = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace LabelStudio
{
public partial class AnalyticsClient
{


private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsKpisRetrieveSecurityRequirement0 =
new global::LabelStudio.EndPointSecurityRequirement
{
Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[]
{ new global::LabelStudio.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsKpisRetrieveSecurityRequirements =
new global::LabelStudio.EndPointSecurityRequirement[]
{ s_ApiAnalyticsKpisRetrieveSecurityRequirement0,
};
partial void PrepareApiAnalyticsKpisRetrieveArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareApiAnalyticsKpisRetrieveRequest(
Expand Down Expand Up @@ -33,9 +52,15 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent(
PrepareApiAnalyticsKpisRetrieveArguments(
httpClient: HttpClient);


var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ApiAnalyticsKpisRetrieveSecurityRequirements,
operationName: "ApiAnalyticsKpisRetrieveAsync");

var __pathBuilder = new global::LabelStudio.PathBuilder(
path: "/api/analytics/kpis/",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -45,7 +70,7 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace LabelStudio
{
public partial class AnalyticsClient
{


private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsKpisRetrieve2SecurityRequirement0 =
new global::LabelStudio.EndPointSecurityRequirement
{
Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[]
{ new global::LabelStudio.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsKpisRetrieve2SecurityRequirements =
new global::LabelStudio.EndPointSecurityRequirement[]
{ s_ApiAnalyticsKpisRetrieve2SecurityRequirement0,
};
partial void PrepareApiAnalyticsKpisRetrieve2Arguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.DateTime? end,
Expand Down Expand Up @@ -78,6 +97,12 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent(
start: ref start,
tz: ref tz);


var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ApiAnalyticsKpisRetrieve2SecurityRequirements,
operationName: "ApiAnalyticsKpisRetrieve2Async");

var __pathBuilder = new global::LabelStudio.PathBuilder(
path: $"/api/analytics/kpis/{kpiKey}",
baseUri: HttpClient.BaseAddress);
Expand All @@ -90,7 +115,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent(
.AddOptionalParameter("segment_by_user", segmentByUser?.ToString().ToLowerInvariant())
.AddOptionalParameter("start", start?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
.AddRequiredParameter("tz", tz)
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -100,7 +125,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace LabelStudio
{
public partial class AnalyticsClient
{


private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsCreateSecurityRequirement0 =
new global::LabelStudio.EndPointSecurityRequirement
{
Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[]
{ new global::LabelStudio.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsCreateSecurityRequirements =
new global::LabelStudio.EndPointSecurityRequirement[]
{ s_ApiAnalyticsViewsCreateSecurityRequirement0,
};
partial void PrepareApiAnalyticsViewsCreateArguments(
global::System.Net.Http.HttpClient httpClient,
global::LabelStudio.AnalyticsViewRequest request);
Expand Down Expand Up @@ -51,9 +70,15 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ApiAnalyticsViewsCreateSecurityRequirements,
operationName: "ApiAnalyticsViewsCreateAsync");

var __pathBuilder = new global::LabelStudio.PathBuilder(
path: "/api/analytics/views/",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -63,7 +88,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace LabelStudio
{
public partial class AnalyticsClient
{


private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsDestroySecurityRequirement0 =
new global::LabelStudio.EndPointSecurityRequirement
{
Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[]
{ new global::LabelStudio.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsDestroySecurityRequirements =
new global::LabelStudio.EndPointSecurityRequirement[]
{ s_ApiAnalyticsViewsDestroySecurityRequirement0,
};
partial void PrepareApiAnalyticsViewsDestroyArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid uuid);
Expand Down Expand Up @@ -43,9 +62,15 @@ partial void ProcessApiAnalyticsViewsDestroyResponse(
httpClient: HttpClient,
uuid: ref uuid);


var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ApiAnalyticsViewsDestroySecurityRequirements,
operationName: "ApiAnalyticsViewsDestroyAsync");

var __pathBuilder = new global::LabelStudio.PathBuilder(
path: $"/api/analytics/views/{uuid}/",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
Expand All @@ -55,7 +80,7 @@ partial void ProcessApiAnalyticsViewsDestroyResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Loading