diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorer.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorer.JsonSerializerContext.g.cs deleted file mode 100644 index 7495851b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorer.JsonSerializerContext.g.cs +++ /dev/null @@ -1,171 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetColumn))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetColumnVisibilityDefaults))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetColumnsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetImportCandidatesCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetImportCandidatesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetTasksMetadataResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetView))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetViewLockedBy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Filter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class DataExplorerSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class DataExplorerSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static DataExplorerSourceGenerationContext Default { get; } = new(DefaultOptions); - - private DataExplorerSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new DataExplorerSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs deleted file mode 100644 index 78e8c400..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs +++ /dev/null @@ -1,429 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DataExplorerClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsColumnsRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsColumnsRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsColumnsRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetsColumnsRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? dataset); - partial void PrepareApiDatasetsColumnsRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? dataset); - partial void ProcessApiDatasetsColumnsRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsColumnsRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get data explorer columns
- /// Retrieve the data explorer columns available for a specific Dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsColumnsRetrieveAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsColumnsRetrieveAsResponseAsync( - dataset: dataset, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get data explorer columns
- /// Retrieve the data explorer columns available for a specific Dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsColumnsRetrieveAsResponseAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsColumnsRetrieveArguments( - httpClient: HttpClient, - dataset: ref dataset); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsColumnsRetrieveSecurityRequirements, - operationName: "ApiDatasetsColumnsRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/columns", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("dataset", dataset?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsColumnsRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - dataset: dataset); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsColumnsRetrieve", - methodName: "ApiDatasetsColumnsRetrieveAsync", - pathTemplate: "\"/api/datasets/columns\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsColumnsRetrieve", - methodName: "ApiDatasetsColumnsRetrieveAsync", - pathTemplate: "\"/api/datasets/columns\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsColumnsRetrieve", - methodName: "ApiDatasetsColumnsRetrieveAsync", - pathTemplate: "\"/api/datasets/columns\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsColumnsRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsColumnsRetrieve", - methodName: "ApiDatasetsColumnsRetrieveAsync", - pathTemplate: "\"/api/datasets/columns\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsColumnsRetrieve", - methodName: "ApiDatasetsColumnsRetrieveAsync", - pathTemplate: "\"/api/datasets/columns\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsColumnsRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetColumnsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetColumnsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsImportCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsImportCreate.g.cs deleted file mode 100644 index 60b03adc..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsImportCreate.g.cs +++ /dev/null @@ -1,564 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DataExplorerClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsImportCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsImportCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsImportCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetsImportCreateArguments( - global::System.Net.Http.HttpClient httpClient, - object? additionalFilters, - ref int? dataset, - object? excluded, - object? included, - ref int? project, - ref int? view, - global::LabelStudio.DatasetImportCandidatesCreateRequest request); - partial void PrepareApiDatasetsImportCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - object? additionalFilters, - int? dataset, - object? excluded, - object? included, - int? project, - int? view, - global::LabelStudio.DatasetImportCandidatesCreateRequest request); - partial void ProcessApiDatasetsImportCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsImportCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsImportCreateAsync( - - global::LabelStudio.DatasetImportCandidatesCreateRequest request, - object? additionalFilters = default, - int? dataset = default, - object? excluded = default, - object? included = default, - int? project = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsImportCreateAsResponseAsync( - - request: request, - additionalFilters: additionalFilters, - dataset: dataset, - excluded: excluded, - included: included, - project: project, - view: view, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsImportCreateAsResponseAsync( - - global::LabelStudio.DatasetImportCandidatesCreateRequest request, - object? additionalFilters = default, - int? dataset = default, - object? excluded = default, - object? included = default, - int? project = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsImportCreateArguments( - httpClient: HttpClient, - additionalFilters: additionalFilters, - dataset: ref dataset, - excluded: excluded, - included: included, - project: ref project, - view: ref view, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsImportCreateSecurityRequirements, - operationName: "ApiDatasetsImportCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/import", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("additional_filters", additionalFilters?.ToString()) - .AddOptionalParameter("dataset", dataset?.ToString()) - .AddOptionalParameter("excluded", excluded?.ToString()) - .AddOptionalParameter("included", included?.ToString()) - .AddOptionalParameter("project", project?.ToString()) - .AddOptionalParameter("view", view?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsImportCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - additionalFilters: additionalFilters, - dataset: dataset, - excluded: excluded, - included: included, - project: project, - view: view, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportCreate", - methodName: "ApiDatasetsImportCreateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportCreate", - methodName: "ApiDatasetsImportCreateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportCreate", - methodName: "ApiDatasetsImportCreateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsImportCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportCreate", - methodName: "ApiDatasetsImportCreateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportCreate", - methodName: "ApiDatasetsImportCreateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsImportCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetImportCandidatesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetImportCandidatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// - /// Default Value: {} - /// - /// - /// - /// Default Value: {} - /// - /// - /// Default Value: {} - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsImportCreateAsync( - int requestDataset, - object? additionalFilters = default, - int? dataset = default, - object? excluded = default, - object? included = default, - int? project = default, - int? view = default, - object? requestAdditionalFilters = default, - object? requestExcluded = default, - object? requestIncluded = default, - int? requestProject = default, - int? requestView = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.DatasetImportCandidatesCreateRequest - { - AdditionalFilters = requestAdditionalFilters, - Dataset = requestDataset, - Excluded = requestExcluded, - Included = requestIncluded, - Project = requestProject, - View = requestView, - }; - - return await ApiDatasetsImportCreateAsync( - additionalFilters: additionalFilters, - dataset: dataset, - excluded: excluded, - included: included, - project: project, - view: view, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs deleted file mode 100644 index 1e239017..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs +++ /dev/null @@ -1,451 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DataExplorerClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsTasksMetadataRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsTasksMetadataRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsTasksMetadataRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetsTasksMetadataRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref string? candidateTaskId, - ref int? dataset, - ref string? vectordbId); - partial void PrepareApiDatasetsTasksMetadataRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? candidateTaskId, - int? dataset, - string? vectordbId); - partial void ProcessApiDatasetsTasksMetadataRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsTasksMetadataRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get Candidate task metadata
- /// Retrieve Candidate task metadata for a specific dataset, by using candidate_task_id or weaviate_id.
- /// - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsTasksMetadataRetrieveAsync( - string? candidateTaskId = default, - int? dataset = default, - string? vectordbId = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsTasksMetadataRetrieveAsResponseAsync( - candidateTaskId: candidateTaskId, - dataset: dataset, - vectordbId: vectordbId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get Candidate task metadata
- /// Retrieve Candidate task metadata for a specific dataset, by using candidate_task_id or weaviate_id.
- /// - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsTasksMetadataRetrieveAsResponseAsync( - string? candidateTaskId = default, - int? dataset = default, - string? vectordbId = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsTasksMetadataRetrieveArguments( - httpClient: HttpClient, - candidateTaskId: ref candidateTaskId, - dataset: ref dataset, - vectordbId: ref vectordbId); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsTasksMetadataRetrieveSecurityRequirements, - operationName: "ApiDatasetsTasksMetadataRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/tasks/metadata", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("candidate_task_id", candidateTaskId) - .AddOptionalParameter("dataset", dataset?.ToString()) - .AddOptionalParameter("vectordb_id", vectordbId) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsTasksMetadataRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - candidateTaskId: candidateTaskId, - dataset: dataset, - vectordbId: vectordbId); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksMetadataRetrieve", - methodName: "ApiDatasetsTasksMetadataRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks/metadata\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksMetadataRetrieve", - methodName: "ApiDatasetsTasksMetadataRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks/metadata\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksMetadataRetrieve", - methodName: "ApiDatasetsTasksMetadataRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks/metadata\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsTasksMetadataRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksMetadataRetrieve", - methodName: "ApiDatasetsTasksMetadataRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks/metadata\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksMetadataRetrieve", - methodName: "ApiDatasetsTasksMetadataRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks/metadata\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsTasksMetadataRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetTasksMetadataResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetTasksMetadataResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs deleted file mode 100644 index d8e5dd3f..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs +++ /dev/null @@ -1,481 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DataExplorerClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsTasksRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsTasksRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsTasksRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetsTasksRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? dataset, - ref double? maxThreshold, - ref double? minThreshold, - ref int? page, - ref int? pageSize, - ref int? view); - partial void PrepareApiDatasetsTasksRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? dataset, - double? maxThreshold, - double? minThreshold, - int? page, - int? pageSize, - int? view); - partial void ProcessApiDatasetsTasksRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsTasksRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get Data Explorer tasks list
- /// Retrieve a list of Data Explorer tasks with pagination for a specific view or dataset, by using filters and ordering.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsTasksRetrieveAsync( - int? dataset = default, - double? maxThreshold = default, - double? minThreshold = default, - int? page = default, - int? pageSize = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsTasksRetrieveAsResponseAsync( - dataset: dataset, - maxThreshold: maxThreshold, - minThreshold: minThreshold, - page: page, - pageSize: pageSize, - view: view, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get Data Explorer tasks list
- /// Retrieve a list of Data Explorer tasks with pagination for a specific view or dataset, by using filters and ordering.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsTasksRetrieveAsResponseAsync( - int? dataset = default, - double? maxThreshold = default, - double? minThreshold = default, - int? page = default, - int? pageSize = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsTasksRetrieveArguments( - httpClient: HttpClient, - dataset: ref dataset, - maxThreshold: ref maxThreshold, - minThreshold: ref minThreshold, - page: ref page, - pageSize: ref pageSize, - view: ref view); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsTasksRetrieveSecurityRequirements, - operationName: "ApiDatasetsTasksRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/tasks", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("dataset", dataset?.ToString()) - .AddOptionalParameter("max_threshold", maxThreshold?.ToString()) - .AddOptionalParameter("min_threshold", minThreshold?.ToString()) - .AddOptionalParameter("page", page?.ToString()) - .AddOptionalParameter("page_size", pageSize?.ToString()) - .AddOptionalParameter("view", view?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsTasksRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - dataset: dataset, - maxThreshold: maxThreshold, - minThreshold: minThreshold, - page: page, - pageSize: pageSize, - view: view); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksRetrieve", - methodName: "ApiDatasetsTasksRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksRetrieve", - methodName: "ApiDatasetsTasksRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksRetrieve", - methodName: "ApiDatasetsTasksRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsTasksRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksRetrieve", - methodName: "ApiDatasetsTasksRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsTasksRetrieve", - methodName: "ApiDatasetsTasksRetrieveAsync", - pathTemplate: "\"/api/datasets/tasks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsTasksRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs deleted file mode 100644 index 4ff25582..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs +++ /dev/null @@ -1,143 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class DataExplorerClient : global::LabelStudio.IDataExplorerClient, global::System.IDisposable - { - /// - /// Label Studio - /// - public const string DefaultBaseUrl = "http://localhost:8000/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - internal global::System.Lazy? JsonSerializerContextProvider { get; set; } - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider?.Value ?? global::LabelStudio.DataExplorerSourceGenerationContext.Default; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the DataExplorerClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DataExplorerClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DataExplorerClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DataExplorerClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DataExplorerClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DataExplorerClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::LabelStudio.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManager.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManager.JsonSerializerContext.g.cs index 5f54d74f..f50b4370 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataManager.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataManager.JsonSerializerContext.g.cs @@ -25,9 +25,9 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PrepareParamsFiltersRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConjunctionEnum), TypeInfoPropertyName = "ConjunctionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroup))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Filter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroup))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectStateResponse))] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzure.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzure.JsonSerializerContext.g.cs deleted file mode 100644 index adb7e7d6..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzure.JsonSerializerContext.g.cs +++ /dev/null @@ -1,193 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StorageStatusEnum), TypeInfoPropertyName = "StorageStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureDatasetStorage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureDatasetStorageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageAvailableDataType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureDatasetStorageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StorageStatusEnum?), TypeInfoPropertyName = "NullableStorageStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class DatasetStorageAzureSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class DatasetStorageAzureSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static DatasetStorageAzureSourceGenerationContext Default { get; } = new(DefaultOptions); - - private DatasetStorageAzureSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::LabelStudio.StorageStatusEnum) - - || typeToConvert == typeof(global::LabelStudio.StorageStatusEnum?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::LabelStudio.StorageStatusEnum)) - { - return new global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::LabelStudio.StorageStatusEnum?)) - { - return new global::LabelStudio.JsonConverters.StorageStatusEnumNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new DatasetStorageAzureSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs deleted file mode 100644 index 41c435aa..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs +++ /dev/null @@ -1,567 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureCheckForRecordsCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesAzureCheckForRecordsCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCheckForRecordsCreateAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzureCheckForRecordsCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureCheckForRecordsCreateAsResponseAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureCheckForRecordsCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirements, - operationName: "ApiDatasetStoragesAzureCheckForRecordsCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/azure/check-for-records/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureCheckForRecordsCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCheckForRecordsCreate", - methodName: "ApiDatasetStoragesAzureCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCheckForRecordsCreate", - methodName: "ApiDatasetStoragesAzureCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCheckForRecordsCreate", - methodName: "ApiDatasetStoragesAzureCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCheckForRecordsCreate", - methodName: "ApiDatasetStoragesAzureCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCheckForRecordsCreate", - methodName: "ApiDatasetStoragesAzureCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCheckForRecordsCreateAsync( - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.AzureDatasetStorageRequest - { - AccountKey = accountKey, - AccountName = accountName, - Container = container, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesAzureCheckForRecordsCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs deleted file mode 100644 index e51291d8..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureColumnsRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesAzureColumnsRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesAzureColumnsRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzureColumnsRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureColumnsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzureColumnsRetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureColumnsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureColumnsRetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirements, - operationName: "ApiDatasetStoragesAzureColumnsRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/azure/{id}/columns/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureColumnsRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureColumnsRetrieve", - methodName: "ApiDatasetStoragesAzureColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureColumnsRetrieve", - methodName: "ApiDatasetStoragesAzureColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureColumnsRetrieve", - methodName: "ApiDatasetStoragesAzureColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureColumnsRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureColumnsRetrieve", - methodName: "ApiDatasetStoragesAzureColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureColumnsRetrieve", - methodName: "ApiDatasetStoragesAzureColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzureColumnsRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetStorageColumnsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetStorageColumnsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs deleted file mode 100644 index b90499b0..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs +++ /dev/null @@ -1,567 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesAzureCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesAzureCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzureCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create import storage
- /// Create a new Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCreateAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzureCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create import storage
- /// Create a new Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureCreateAsResponseAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureCreateSecurityRequirements, - operationName: "ApiDatasetStoragesAzureCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/azure/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCreate", - methodName: "ApiDatasetStoragesAzureCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCreate", - methodName: "ApiDatasetStoragesAzureCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCreate", - methodName: "ApiDatasetStoragesAzureCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCreate", - methodName: "ApiDatasetStoragesAzureCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureCreate", - methodName: "ApiDatasetStoragesAzureCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzureCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create import storage
- /// Create a new Azure import storage connection. - ///
- /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCreateAsync( - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.AzureDatasetStorageRequest - { - AccountKey = accountKey, - AccountName = accountName, - Container = container, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesAzureCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs deleted file mode 100644 index b9b3a9cd..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs +++ /dev/null @@ -1,403 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureDestroySecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureDestroySecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureDestroySecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureDestroyArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesAzureDestroyRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesAzureDestroyResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete import storage
- /// Delete a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureDestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetStoragesAzureDestroyAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete import storage
- /// Delete a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureDestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureDestroyArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureDestroySecurityRequirements, - operationName: "ApiDatasetStoragesAzureDestroyAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/azure/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureDestroyRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureDestroy", - methodName: "ApiDatasetStoragesAzureDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureDestroy", - methodName: "ApiDatasetStoragesAzureDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureDestroy", - methodName: "ApiDatasetStoragesAzureDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureDestroyResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureDestroy", - methodName: "ApiDatasetStoragesAzureDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureDestroy", - methodName: "ApiDatasetStoragesAzureDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs deleted file mode 100644 index 128cc4d1..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs +++ /dev/null @@ -1,439 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureListSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureListSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureListSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureListArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? dataset, - ref string? ordering); - partial void PrepareApiDatasetStoragesAzureListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? dataset, - string? ordering); - partial void ProcessApiDatasetStoragesAzureListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzureListResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get all import storage
- /// Get a list of all Azure import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureListAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzureListAsResponseAsync( - dataset: dataset, - ordering: ordering, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get all import storage
- /// Get a list of all Azure import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task>> ApiDatasetStoragesAzureListAsResponseAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureListArguments( - httpClient: HttpClient, - dataset: ref dataset, - ordering: ref ordering); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureListSecurityRequirements, - operationName: "ApiDatasetStoragesAzureListAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/azure/", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("dataset", dataset?.ToString()) - .AddOptionalParameter("ordering", ordering) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - dataset: dataset, - ordering: ordering); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureList", - methodName: "ApiDatasetStoragesAzureListAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureList", - methodName: "ApiDatasetStoragesAzureListAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureList", - methodName: "ApiDatasetStoragesAzureListAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureList", - methodName: "ApiDatasetStoragesAzureListAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureList", - methodName: "ApiDatasetStoragesAzureListAsync", - pathTemplate: "\"/api/dataset-storages/azure/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzureListResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs deleted file mode 100644 index ffb5e039..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs +++ /dev/null @@ -1,579 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzurePartialUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.PatchedAzureDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesAzurePartialUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.PatchedAzureDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesAzurePartialUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update import storage
- /// Update a specific Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzurePartialUpdateAsync( - int id, - - global::LabelStudio.PatchedAzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzurePartialUpdateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update import storage
- /// Update a specific Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzurePartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedAzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzurePartialUpdateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirements, - operationName: "ApiDatasetStoragesAzurePartialUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/azure/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzurePartialUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzurePartialUpdate", - methodName: "ApiDatasetStoragesAzurePartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzurePartialUpdate", - methodName: "ApiDatasetStoragesAzurePartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzurePartialUpdate", - methodName: "ApiDatasetStoragesAzurePartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzurePartialUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzurePartialUpdate", - methodName: "ApiDatasetStoragesAzurePartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzurePartialUpdate", - methodName: "ApiDatasetStoragesAzurePartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update import storage
- /// Update a specific Azure import storage connection. - ///
- /// - /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzurePartialUpdateAsync( - int id, - string? accountKey = default, - string? accountName = default, - string? container = default, - int? dataset = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.PatchedAzureDatasetStorageRequest - { - AccountKey = accountKey, - AccountName = accountName, - Container = container, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesAzurePartialUpdateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs deleted file mode 100644 index 9e8ba9f1..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesAzureRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesAzureRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzureRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get import storage
- /// Get a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzureRetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get import storage
- /// Get a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureRetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureRetrieveSecurityRequirements, - operationName: "ApiDatasetStoragesAzureRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/azure/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureRetrieve", - methodName: "ApiDatasetStoragesAzureRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureRetrieve", - methodName: "ApiDatasetStoragesAzureRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureRetrieve", - methodName: "ApiDatasetStoragesAzureRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureRetrieve", - methodName: "ApiDatasetStoragesAzureRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureRetrieve", - methodName: "ApiDatasetStoragesAzureRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzureRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs deleted file mode 100644 index 6ec2d5e6..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs +++ /dev/null @@ -1,579 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureSyncCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureSyncCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureSyncCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureSyncCreateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesAzureSyncCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesAzureSyncCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzureSyncCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Sync import storage
- /// Sync tasks from an Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureSyncCreateAsync( - int id, - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzureSyncCreateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Sync import storage
- /// Sync tasks from an Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureSyncCreateAsResponseAsync( - int id, - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureSyncCreateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureSyncCreateSecurityRequirements, - operationName: "ApiDatasetStoragesAzureSyncCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/azure/{id}/sync/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureSyncCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureSyncCreate", - methodName: "ApiDatasetStoragesAzureSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureSyncCreate", - methodName: "ApiDatasetStoragesAzureSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureSyncCreate", - methodName: "ApiDatasetStoragesAzureSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureSyncCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureSyncCreate", - methodName: "ApiDatasetStoragesAzureSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureSyncCreate", - methodName: "ApiDatasetStoragesAzureSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/azure/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzureSyncCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Sync import storage
- /// Sync tasks from an Azure import storage connection. - ///
- /// - /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureSyncCreateAsync( - int id, - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.AzureDatasetStorageRequest - { - AccountKey = accountKey, - AccountName = accountName, - Container = container, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesAzureSyncCreateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs deleted file mode 100644 index 824e23d5..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs +++ /dev/null @@ -1,567 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageAzureClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureValidateCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureValidateCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesAzureValidateCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesAzureValidateCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesAzureValidateCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.AzureDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesAzureValidateCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesAzureValidateCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Validate import storage
- /// Validate a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureValidateCreateAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesAzureValidateCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Validate import storage
- /// Validate a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureValidateCreateAsResponseAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesAzureValidateCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesAzureValidateCreateSecurityRequirements, - operationName: "ApiDatasetStoragesAzureValidateCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/azure/validate/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesAzureValidateCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureValidateCreate", - methodName: "ApiDatasetStoragesAzureValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureValidateCreate", - methodName: "ApiDatasetStoragesAzureValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureValidateCreate", - methodName: "ApiDatasetStoragesAzureValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesAzureValidateCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureValidateCreate", - methodName: "ApiDatasetStoragesAzureValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesAzureValidateCreate", - methodName: "ApiDatasetStoragesAzureValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/azure/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesAzureValidateCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Validate import storage
- /// Validate a specific Azure import storage connection. - ///
- /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesAzureValidateCreateAsync( - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.AzureDatasetStorageRequest - { - AccountKey = accountKey, - AccountName = accountName, - Container = container, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesAzureValidateCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs deleted file mode 100644 index 6e12a51e..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs +++ /dev/null @@ -1,143 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class DatasetStorageAzureClient : global::LabelStudio.IDatasetStorageAzureClient, global::System.IDisposable - { - /// - /// Label Studio - /// - public const string DefaultBaseUrl = "http://localhost:8000/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - internal global::System.Lazy? JsonSerializerContextProvider { get; set; } - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider?.Value ?? global::LabelStudio.DatasetStorageAzureSourceGenerationContext.Default; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the DatasetStorageAzureClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageAzureClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetStorageAzureClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageAzureClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetStorageAzureClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageAzureClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::LabelStudio.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcs.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcs.JsonSerializerContext.g.cs deleted file mode 100644 index bf6840a6..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcs.JsonSerializerContext.g.cs +++ /dev/null @@ -1,193 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StorageStatusEnum), TypeInfoPropertyName = "StorageStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageAvailableDataType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSDatasetStorageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StorageStatusEnum?), TypeInfoPropertyName = "NullableStorageStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class DatasetStorageGcsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class DatasetStorageGcsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static DatasetStorageGcsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private DatasetStorageGcsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::LabelStudio.StorageStatusEnum) - - || typeToConvert == typeof(global::LabelStudio.StorageStatusEnum?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::LabelStudio.StorageStatusEnum)) - { - return new global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::LabelStudio.StorageStatusEnum?)) - { - return new global::LabelStudio.JsonConverters.StorageStatusEnumNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new DatasetStorageGcsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs deleted file mode 100644 index fd9441e9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs +++ /dev/null @@ -1,567 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsCheckForRecordsCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesGcsCheckForRecordsCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCheckForRecordsCreateAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsCheckForRecordsCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsCheckForRecordsCreateAsResponseAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsCheckForRecordsCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirements, - operationName: "ApiDatasetStoragesGcsCheckForRecordsCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/gcs/check-for-records/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsCheckForRecordsCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCheckForRecordsCreate", - methodName: "ApiDatasetStoragesGcsCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCheckForRecordsCreate", - methodName: "ApiDatasetStoragesGcsCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCheckForRecordsCreate", - methodName: "ApiDatasetStoragesGcsCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCheckForRecordsCreate", - methodName: "ApiDatasetStoragesGcsCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCheckForRecordsCreate", - methodName: "ApiDatasetStoragesGcsCheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCheckForRecordsCreateAsync( - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.GCSDatasetStorageRequest - { - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - GoogleApplicationCredentials = googleApplicationCredentials, - GoogleProjectId = googleProjectId, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesGcsCheckForRecordsCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs deleted file mode 100644 index 5b78e443..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsColumnsRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesGcsColumnsRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesGcsColumnsRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsColumnsRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsColumnsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsColumnsRetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsColumnsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsColumnsRetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirements, - operationName: "ApiDatasetStoragesGcsColumnsRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/gcs/{id}/columns/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsColumnsRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsColumnsRetrieve", - methodName: "ApiDatasetStoragesGcsColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsColumnsRetrieve", - methodName: "ApiDatasetStoragesGcsColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsColumnsRetrieve", - methodName: "ApiDatasetStoragesGcsColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsColumnsRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsColumnsRetrieve", - methodName: "ApiDatasetStoragesGcsColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsColumnsRetrieve", - methodName: "ApiDatasetStoragesGcsColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsColumnsRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetStorageColumnsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetStorageColumnsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs deleted file mode 100644 index b90e0ea3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs +++ /dev/null @@ -1,567 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesGcsCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesGcsCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create import storage
- /// Create a new GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCreateAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create import storage
- /// Create a new GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsCreateAsResponseAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsCreateSecurityRequirements, - operationName: "ApiDatasetStoragesGcsCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/gcs/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCreate", - methodName: "ApiDatasetStoragesGcsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCreate", - methodName: "ApiDatasetStoragesGcsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCreate", - methodName: "ApiDatasetStoragesGcsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCreate", - methodName: "ApiDatasetStoragesGcsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsCreate", - methodName: "ApiDatasetStoragesGcsCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create import storage
- /// Create a new GCS import storage connection. - ///
- /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCreateAsync( - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.GCSDatasetStorageRequest - { - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - GoogleApplicationCredentials = googleApplicationCredentials, - GoogleProjectId = googleProjectId, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesGcsCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs deleted file mode 100644 index 488f9c6e..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs +++ /dev/null @@ -1,403 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsDestroySecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsDestroySecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsDestroySecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsDestroyArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesGcsDestroyRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesGcsDestroyResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete import storage
- /// Delete a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsDestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetStoragesGcsDestroyAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete import storage
- /// Delete a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsDestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsDestroyArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsDestroySecurityRequirements, - operationName: "ApiDatasetStoragesGcsDestroyAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/gcs/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsDestroyRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsDestroy", - methodName: "ApiDatasetStoragesGcsDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsDestroy", - methodName: "ApiDatasetStoragesGcsDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsDestroy", - methodName: "ApiDatasetStoragesGcsDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsDestroyResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsDestroy", - methodName: "ApiDatasetStoragesGcsDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsDestroy", - methodName: "ApiDatasetStoragesGcsDestroyAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs deleted file mode 100644 index bb1edabd..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs +++ /dev/null @@ -1,439 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsListSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsListSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsListSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsListArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? dataset, - ref string? ordering); - partial void PrepareApiDatasetStoragesGcsListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? dataset, - string? ordering); - partial void ProcessApiDatasetStoragesGcsListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsListResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get all import storage
- /// Get a list of all GCS import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsListAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsListAsResponseAsync( - dataset: dataset, - ordering: ordering, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get all import storage
- /// Get a list of all GCS import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task>> ApiDatasetStoragesGcsListAsResponseAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsListArguments( - httpClient: HttpClient, - dataset: ref dataset, - ordering: ref ordering); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsListSecurityRequirements, - operationName: "ApiDatasetStoragesGcsListAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/gcs/", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("dataset", dataset?.ToString()) - .AddOptionalParameter("ordering", ordering) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - dataset: dataset, - ordering: ordering); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsList", - methodName: "ApiDatasetStoragesGcsListAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsList", - methodName: "ApiDatasetStoragesGcsListAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsList", - methodName: "ApiDatasetStoragesGcsListAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsList", - methodName: "ApiDatasetStoragesGcsListAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsList", - methodName: "ApiDatasetStoragesGcsListAsync", - pathTemplate: "\"/api/dataset-storages/gcs/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsListResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs deleted file mode 100644 index f7811dd3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs +++ /dev/null @@ -1,579 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsPartialUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.PatchedGCSDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesGcsPartialUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.PatchedGCSDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesGcsPartialUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update import storage
- /// Update a specific GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsPartialUpdateAsync( - int id, - - global::LabelStudio.PatchedGCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsPartialUpdateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update import storage
- /// Update a specific GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsPartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedGCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsPartialUpdateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirements, - operationName: "ApiDatasetStoragesGcsPartialUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/gcs/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsPartialUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsPartialUpdate", - methodName: "ApiDatasetStoragesGcsPartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsPartialUpdate", - methodName: "ApiDatasetStoragesGcsPartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsPartialUpdate", - methodName: "ApiDatasetStoragesGcsPartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsPartialUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsPartialUpdate", - methodName: "ApiDatasetStoragesGcsPartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsPartialUpdate", - methodName: "ApiDatasetStoragesGcsPartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update import storage
- /// Update a specific GCS import storage connection. - ///
- /// - /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsPartialUpdateAsync( - int id, - string? bucket = default, - int? dataset = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.PatchedGCSDatasetStorageRequest - { - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - GoogleApplicationCredentials = googleApplicationCredentials, - GoogleProjectId = googleProjectId, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesGcsPartialUpdateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs deleted file mode 100644 index 75815927..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesGcsRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesGcsRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get import storage
- /// Get a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsRetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get import storage
- /// Get a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsRetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsRetrieveSecurityRequirements, - operationName: "ApiDatasetStoragesGcsRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/gcs/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsRetrieve", - methodName: "ApiDatasetStoragesGcsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsRetrieve", - methodName: "ApiDatasetStoragesGcsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsRetrieve", - methodName: "ApiDatasetStoragesGcsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsRetrieve", - methodName: "ApiDatasetStoragesGcsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsRetrieve", - methodName: "ApiDatasetStoragesGcsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs deleted file mode 100644 index c07b9719..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs +++ /dev/null @@ -1,579 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsSyncCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsSyncCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsSyncCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsSyncCreateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesGcsSyncCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesGcsSyncCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsSyncCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Sync import storage
- /// Sync tasks from an GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsSyncCreateAsync( - int id, - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsSyncCreateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Sync import storage
- /// Sync tasks from an GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsSyncCreateAsResponseAsync( - int id, - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsSyncCreateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsSyncCreateSecurityRequirements, - operationName: "ApiDatasetStoragesGcsSyncCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/gcs/{id}/sync/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsSyncCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsSyncCreate", - methodName: "ApiDatasetStoragesGcsSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsSyncCreate", - methodName: "ApiDatasetStoragesGcsSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsSyncCreate", - methodName: "ApiDatasetStoragesGcsSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsSyncCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsSyncCreate", - methodName: "ApiDatasetStoragesGcsSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsSyncCreate", - methodName: "ApiDatasetStoragesGcsSyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/gcs/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsSyncCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Sync import storage
- /// Sync tasks from an GCS import storage connection. - ///
- /// - /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsSyncCreateAsync( - int id, - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.GCSDatasetStorageRequest - { - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - GoogleApplicationCredentials = googleApplicationCredentials, - GoogleProjectId = googleProjectId, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesGcsSyncCreateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs deleted file mode 100644 index 9e0509f4..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs +++ /dev/null @@ -1,567 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageGcsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsValidateCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsValidateCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesGcsValidateCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesGcsValidateCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void PrepareApiDatasetStoragesGcsValidateCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.GCSDatasetStorageRequest request); - partial void ProcessApiDatasetStoragesGcsValidateCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesGcsValidateCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Validate import storage
- /// Validate a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsValidateCreateAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesGcsValidateCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Validate import storage
- /// Validate a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsValidateCreateAsResponseAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesGcsValidateCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesGcsValidateCreateSecurityRequirements, - operationName: "ApiDatasetStoragesGcsValidateCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/gcs/validate/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesGcsValidateCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsValidateCreate", - methodName: "ApiDatasetStoragesGcsValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsValidateCreate", - methodName: "ApiDatasetStoragesGcsValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsValidateCreate", - methodName: "ApiDatasetStoragesGcsValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesGcsValidateCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsValidateCreate", - methodName: "ApiDatasetStoragesGcsValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesGcsValidateCreate", - methodName: "ApiDatasetStoragesGcsValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/gcs/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesGcsValidateCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Validate import storage
- /// Validate a specific GCS import storage connection. - ///
- /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesGcsValidateCreateAsync( - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.GCSDatasetStorageRequest - { - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - GoogleApplicationCredentials = googleApplicationCredentials, - GoogleProjectId = googleProjectId, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesGcsValidateCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs deleted file mode 100644 index 141a913e..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs +++ /dev/null @@ -1,143 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class DatasetStorageGcsClient : global::LabelStudio.IDatasetStorageGcsClient, global::System.IDisposable - { - /// - /// Label Studio - /// - public const string DefaultBaseUrl = "http://localhost:8000/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - internal global::System.Lazy? JsonSerializerContextProvider { get; set; } - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider?.Value ?? global::LabelStudio.DatasetStorageGcsSourceGenerationContext.Default; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the DatasetStorageGcsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageGcsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetStorageGcsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageGcsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetStorageGcsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageGcsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::LabelStudio.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3.JsonSerializerContext.g.cs deleted file mode 100644 index 17377132..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3.JsonSerializerContext.g.cs +++ /dev/null @@ -1,193 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StorageStatusEnum), TypeInfoPropertyName = "StorageStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageAvailableDataType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedS3DatasetStorageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3DatasetStorage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3DatasetStorageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StorageStatusEnum?), TypeInfoPropertyName = "NullableStorageStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class DatasetStorageS3SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class DatasetStorageS3SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static DatasetStorageS3SourceGenerationContext Default { get; } = new(DefaultOptions); - - private DatasetStorageS3SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::LabelStudio.StorageStatusEnum) - - || typeToConvert == typeof(global::LabelStudio.StorageStatusEnum?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::LabelStudio.StorageStatusEnum)) - { - return new global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter(); - } - - if (typeToConvert == typeof(global::LabelStudio.StorageStatusEnum?)) - { - return new global::LabelStudio.JsonConverters.StorageStatusEnumNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new DatasetStorageS3SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs deleted file mode 100644 index 79d5bca8..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs +++ /dev/null @@ -1,587 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3CheckForRecordsCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.S3DatasetStorageRequest request); - partial void PrepareApiDatasetStoragesS3CheckForRecordsCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.S3DatasetStorageRequest request); - partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3CheckForRecordsCreateAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3CheckForRecordsCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3CheckForRecordsCreateAsResponseAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3CheckForRecordsCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirements, - operationName: "ApiDatasetStoragesS3CheckForRecordsCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/s3/check-for-records/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3CheckForRecordsCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3CheckForRecordsCreate", - methodName: "ApiDatasetStoragesS3CheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3CheckForRecordsCreate", - methodName: "ApiDatasetStoragesS3CheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3CheckForRecordsCreate", - methodName: "ApiDatasetStoragesS3CheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3CheckForRecordsCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3CheckForRecordsCreate", - methodName: "ApiDatasetStoragesS3CheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3CheckForRecordsCreate", - methodName: "ApiDatasetStoragesS3CheckForRecordsCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/check-for-records/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3CheckForRecordsCreateAsync( - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.S3DatasetStorageRequest - { - AwsAccessKeyId = awsAccessKeyId, - AwsSecretAccessKey = awsSecretAccessKey, - AwsSessionToken = awsSessionToken, - AwsSseKmsKeyId = awsSseKmsKeyId, - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - RegionName = regionName, - S3Endpoint = s3Endpoint, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesS3CheckForRecordsCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs deleted file mode 100644 index f53c7cf3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3ColumnsRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesS3ColumnsRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesS3ColumnsRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3ColumnsRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3ColumnsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3ColumnsRetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3ColumnsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3ColumnsRetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirements, - operationName: "ApiDatasetStoragesS3ColumnsRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/s3/{id}/columns/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3ColumnsRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ColumnsRetrieve", - methodName: "ApiDatasetStoragesS3ColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ColumnsRetrieve", - methodName: "ApiDatasetStoragesS3ColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ColumnsRetrieve", - methodName: "ApiDatasetStoragesS3ColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3ColumnsRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ColumnsRetrieve", - methodName: "ApiDatasetStoragesS3ColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ColumnsRetrieve", - methodName: "ApiDatasetStoragesS3ColumnsRetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/columns/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3ColumnsRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetStorageColumnsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetStorageColumnsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs deleted file mode 100644 index 23aa6f47..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs +++ /dev/null @@ -1,587 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3CreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3CreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3CreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3CreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.S3DatasetStorageRequest request); - partial void PrepareApiDatasetStoragesS3CreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.S3DatasetStorageRequest request); - partial void ProcessApiDatasetStoragesS3CreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3CreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create import storage
- /// Create a new S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3CreateAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3CreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create import storage
- /// Create a new S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3CreateAsResponseAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3CreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3CreateSecurityRequirements, - operationName: "ApiDatasetStoragesS3CreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/s3/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3CreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Create", - methodName: "ApiDatasetStoragesS3CreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Create", - methodName: "ApiDatasetStoragesS3CreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Create", - methodName: "ApiDatasetStoragesS3CreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3CreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Create", - methodName: "ApiDatasetStoragesS3CreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Create", - methodName: "ApiDatasetStoragesS3CreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3CreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create import storage
- /// Create a new S3 import storage connection. - ///
- /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3CreateAsync( - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.S3DatasetStorageRequest - { - AwsAccessKeyId = awsAccessKeyId, - AwsSecretAccessKey = awsSecretAccessKey, - AwsSessionToken = awsSessionToken, - AwsSseKmsKeyId = awsSseKmsKeyId, - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - RegionName = regionName, - S3Endpoint = s3Endpoint, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesS3CreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs deleted file mode 100644 index cad6f363..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs +++ /dev/null @@ -1,403 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3DestroySecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3DestroySecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3DestroySecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3DestroyArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesS3DestroyRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesS3DestroyResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete import storage
- /// Delete a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3DestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetStoragesS3DestroyAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete import storage
- /// Delete a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3DestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3DestroyArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3DestroySecurityRequirements, - operationName: "ApiDatasetStoragesS3DestroyAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/s3/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3DestroyRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Destroy", - methodName: "ApiDatasetStoragesS3DestroyAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Destroy", - methodName: "ApiDatasetStoragesS3DestroyAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Destroy", - methodName: "ApiDatasetStoragesS3DestroyAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3DestroyResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Destroy", - methodName: "ApiDatasetStoragesS3DestroyAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Destroy", - methodName: "ApiDatasetStoragesS3DestroyAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs deleted file mode 100644 index 6e35f92b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs +++ /dev/null @@ -1,439 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3ListSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3ListSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3ListSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3ListArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? dataset, - ref string? ordering); - partial void PrepareApiDatasetStoragesS3ListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? dataset, - string? ordering); - partial void ProcessApiDatasetStoragesS3ListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3ListResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get all import storage
- /// Get a list of all S3 import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3ListAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3ListAsResponseAsync( - dataset: dataset, - ordering: ordering, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get all import storage
- /// Get a list of all S3 import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task>> ApiDatasetStoragesS3ListAsResponseAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3ListArguments( - httpClient: HttpClient, - dataset: ref dataset, - ordering: ref ordering); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3ListSecurityRequirements, - operationName: "ApiDatasetStoragesS3ListAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/s3/", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("dataset", dataset?.ToString()) - .AddOptionalParameter("ordering", ordering) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3ListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - dataset: dataset, - ordering: ordering); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3List", - methodName: "ApiDatasetStoragesS3ListAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3List", - methodName: "ApiDatasetStoragesS3ListAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3List", - methodName: "ApiDatasetStoragesS3ListAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3ListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3List", - methodName: "ApiDatasetStoragesS3ListAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3List", - methodName: "ApiDatasetStoragesS3ListAsync", - pathTemplate: "\"/api/dataset-storages/s3/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3ListResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs deleted file mode 100644 index 79fd6324..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs +++ /dev/null @@ -1,599 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3PartialUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3PartialUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3PartialUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3PartialUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.PatchedS3DatasetStorageRequest request); - partial void PrepareApiDatasetStoragesS3PartialUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.PatchedS3DatasetStorageRequest request); - partial void ProcessApiDatasetStoragesS3PartialUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3PartialUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update import storage
- /// Update a specific S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3PartialUpdateAsync( - int id, - - global::LabelStudio.PatchedS3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3PartialUpdateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update import storage
- /// Update a specific S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3PartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedS3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3PartialUpdateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3PartialUpdateSecurityRequirements, - operationName: "ApiDatasetStoragesS3PartialUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/s3/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3PartialUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3PartialUpdate", - methodName: "ApiDatasetStoragesS3PartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3PartialUpdate", - methodName: "ApiDatasetStoragesS3PartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3PartialUpdate", - methodName: "ApiDatasetStoragesS3PartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3PartialUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3PartialUpdate", - methodName: "ApiDatasetStoragesS3PartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3PartialUpdate", - methodName: "ApiDatasetStoragesS3PartialUpdateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3PartialUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update import storage
- /// Update a specific S3 import storage connection. - ///
- /// - /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3PartialUpdateAsync( - int id, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - int? dataset = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.PatchedS3DatasetStorageRequest - { - AwsAccessKeyId = awsAccessKeyId, - AwsSecretAccessKey = awsSecretAccessKey, - AwsSessionToken = awsSessionToken, - AwsSseKmsKeyId = awsSseKmsKeyId, - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - RegionName = regionName, - S3Endpoint = s3Endpoint, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesS3PartialUpdateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs deleted file mode 100644 index 8871198b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3RetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3RetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3RetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3RetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetStoragesS3RetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetStoragesS3RetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3RetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get import storage
- /// Get a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3RetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3RetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get import storage
- /// Get a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3RetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3RetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3RetrieveSecurityRequirements, - operationName: "ApiDatasetStoragesS3RetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/s3/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3RetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Retrieve", - methodName: "ApiDatasetStoragesS3RetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Retrieve", - methodName: "ApiDatasetStoragesS3RetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Retrieve", - methodName: "ApiDatasetStoragesS3RetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3RetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Retrieve", - methodName: "ApiDatasetStoragesS3RetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3Retrieve", - methodName: "ApiDatasetStoragesS3RetrieveAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3RetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs deleted file mode 100644 index 5389b0a9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs +++ /dev/null @@ -1,599 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3SyncCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3SyncCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3SyncCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3SyncCreateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.S3DatasetStorageRequest request); - partial void PrepareApiDatasetStoragesS3SyncCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.S3DatasetStorageRequest request); - partial void ProcessApiDatasetStoragesS3SyncCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3SyncCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Sync import storage
- /// Sync tasks from an S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3SyncCreateAsync( - int id, - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3SyncCreateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Sync import storage
- /// Sync tasks from an S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3SyncCreateAsResponseAsync( - int id, - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3SyncCreateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3SyncCreateSecurityRequirements, - operationName: "ApiDatasetStoragesS3SyncCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/dataset-storages/s3/{id}/sync/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3SyncCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3SyncCreate", - methodName: "ApiDatasetStoragesS3SyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3SyncCreate", - methodName: "ApiDatasetStoragesS3SyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3SyncCreate", - methodName: "ApiDatasetStoragesS3SyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3SyncCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3SyncCreate", - methodName: "ApiDatasetStoragesS3SyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3SyncCreate", - methodName: "ApiDatasetStoragesS3SyncCreateAsync", - pathTemplate: "$\"/api/dataset-storages/s3/{id}/sync/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3SyncCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Sync import storage
- /// Sync tasks from an S3 import storage connection. - ///
- /// - /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3SyncCreateAsync( - int id, - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.S3DatasetStorageRequest - { - AwsAccessKeyId = awsAccessKeyId, - AwsSecretAccessKey = awsSecretAccessKey, - AwsSessionToken = awsSessionToken, - AwsSseKmsKeyId = awsSseKmsKeyId, - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - RegionName = regionName, - S3Endpoint = s3Endpoint, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesS3SyncCreateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs deleted file mode 100644 index 7c546227..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs +++ /dev/null @@ -1,587 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetStorageS3Client - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3ValidateCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3ValidateCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesS3ValidateCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesS3ValidateCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.S3DatasetStorageRequest request); - partial void PrepareApiDatasetStoragesS3ValidateCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.S3DatasetStorageRequest request); - partial void ProcessApiDatasetStoragesS3ValidateCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetStoragesS3ValidateCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Validate import storage
- /// Validate a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3ValidateCreateAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetStoragesS3ValidateCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Validate import storage
- /// Validate a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetStoragesS3ValidateCreateAsResponseAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesS3ValidateCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesS3ValidateCreateSecurityRequirements, - operationName: "ApiDatasetStoragesS3ValidateCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/s3/validate/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesS3ValidateCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ValidateCreate", - methodName: "ApiDatasetStoragesS3ValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ValidateCreate", - methodName: "ApiDatasetStoragesS3ValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ValidateCreate", - methodName: "ApiDatasetStoragesS3ValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesS3ValidateCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ValidateCreate", - methodName: "ApiDatasetStoragesS3ValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesS3ValidateCreate", - methodName: "ApiDatasetStoragesS3ValidateCreateAsync", - pathTemplate: "\"/api/dataset-storages/s3/validate/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetStoragesS3ValidateCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Validate import storage
- /// Validate a specific S3 import storage connection. - ///
- /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesS3ValidateCreateAsync( - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.S3DatasetStorageRequest - { - AwsAccessKeyId = awsAccessKeyId, - AwsSecretAccessKey = awsSecretAccessKey, - AwsSessionToken = awsSessionToken, - AwsSseKmsKeyId = awsSseKmsKeyId, - Bucket = bucket, - Dataset = dataset, - Description = description, - GlobPattern = globPattern, - LastSync = lastSync, - LastSyncCount = lastSyncCount, - LastSyncJob = lastSyncJob, - Meta = meta, - Prefix = prefix, - Presign = presign, - PresignTtl = presignTtl, - RecursiveScan = recursiveScan, - RegexFilter = regexFilter, - RegionName = regionName, - S3Endpoint = s3Endpoint, - Status = status, - Synced = synced, - Synchronizable = synchronizable, - Title = title, - Traceback = traceback, - UseBlobUrls = useBlobUrls, - }; - - return await ApiDatasetStoragesS3ValidateCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs deleted file mode 100644 index b29dbb6d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs +++ /dev/null @@ -1,143 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class DatasetStorageS3Client : global::LabelStudio.IDatasetStorageS3Client, global::System.IDisposable - { - /// - /// Label Studio - /// - public const string DefaultBaseUrl = "http://localhost:8000/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - internal global::System.Lazy? JsonSerializerContextProvider { get; set; } - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider?.Value ?? global::LabelStudio.DatasetStorageS3SourceGenerationContext.Default; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the DatasetStorageS3Client. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageS3Client( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetStorageS3Client with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageS3Client( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetStorageS3Client. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetStorageS3Client( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::LabelStudio.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Datasets.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Datasets.JsonSerializerContext.g.cs deleted file mode 100644 index ccfaf68d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Datasets.JsonSerializerContext.g.cs +++ /dev/null @@ -1,183 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimple))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilterRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Dataset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetImportCandidatesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetMember))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetMemberRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetView))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetViewLockedBy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetViewRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroupRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Filter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetViewRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class DatasetsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class DatasetsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static DatasetsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private DatasetsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::LabelStudio.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new DatasetsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs deleted file mode 100644 index 12e2f94e..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs +++ /dev/null @@ -1,488 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetsCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.DatasetRequest request); - partial void PrepareApiDatasetsCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.DatasetRequest request); - partial void ProcessApiDatasetsCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create dataset
- /// Create a new dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsCreateAsync( - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create dataset
- /// Create a new dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsCreateAsResponseAsync( - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsCreateSecurityRequirements, - operationName: "ApiDatasetsCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsCreate", - methodName: "ApiDatasetsCreateAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsCreate", - methodName: "ApiDatasetsCreateAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsCreate", - methodName: "ApiDatasetsCreateAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsCreate", - methodName: "ApiDatasetsCreateAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsCreate", - methodName: "ApiDatasetsCreateAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create dataset
- /// Create a new dataset. - ///
- /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// Dataset title - /// - /// - /// - /// Dataset name for weaviate schema - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsCreateAsync( - string title, - object? columns = default, - global::LabelStudio.UserSimpleRequest? createdBy = default, - string? description = default, - int? organization = default, - int? totalEntities = default, - string? vectorDbDatasetName = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.DatasetRequest - { - Columns = columns, - CreatedBy = createdBy, - Description = description, - Organization = organization, - Title = title, - TotalEntities = totalEntities, - VectorDbDatasetName = vectorDbDatasetName, - }; - - return await ApiDatasetsCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsDestroy.g.cs deleted file mode 100644 index ba33d9d9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsDestroy.g.cs +++ /dev/null @@ -1,403 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsDestroySecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsDestroySecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsDestroySecurityRequirement0, - }; - partial void PrepareApiDatasetsDestroyArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetsDestroyRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetsDestroyResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete dataset
- /// Delete a dataset by ID - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsDestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetsDestroyAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete dataset
- /// Delete a dataset by ID - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsDestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsDestroyArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsDestroySecurityRequirements, - operationName: "ApiDatasetsDestroyAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsDestroyRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsDestroy", - methodName: "ApiDatasetsDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsDestroy", - methodName: "ApiDatasetsDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsDestroy", - methodName: "ApiDatasetsDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsDestroyResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsDestroy", - methodName: "ApiDatasetsDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsDestroy", - methodName: "ApiDatasetsDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsImportPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsImportPartialUpdate.g.cs deleted file mode 100644 index 3e3fe28f..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsImportPartialUpdate.g.cs +++ /dev/null @@ -1,493 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsImportPartialUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsImportPartialUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsImportPartialUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetsImportPartialUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? jobId, - ref string? signal, - global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest request); - partial void PrepareApiDatasetsImportPartialUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? jobId, - string? signal, - global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest request); - partial void ProcessApiDatasetsImportPartialUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsImportPartialUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsImportPartialUpdateAsync( - - global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest request, - int? jobId = default, - string? signal = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsImportPartialUpdateAsResponseAsync( - - request: request, - jobId: jobId, - signal: signal, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsImportPartialUpdateAsResponseAsync( - - global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest request, - int? jobId = default, - string? signal = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsImportPartialUpdateArguments( - httpClient: HttpClient, - jobId: ref jobId, - signal: ref signal, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsImportPartialUpdateSecurityRequirements, - operationName: "ApiDatasetsImportPartialUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/import", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("job_id", jobId?.ToString()) - .AddOptionalParameter("signal", signal) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsImportPartialUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - jobId: jobId, - signal: signal, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportPartialUpdate", - methodName: "ApiDatasetsImportPartialUpdateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportPartialUpdate", - methodName: "ApiDatasetsImportPartialUpdateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportPartialUpdate", - methodName: "ApiDatasetsImportPartialUpdateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsImportPartialUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportPartialUpdate", - methodName: "ApiDatasetsImportPartialUpdateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsImportPartialUpdate", - methodName: "ApiDatasetsImportPartialUpdateAsync", - pathTemplate: "\"/api/datasets/import\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsImportPartialUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetImportCandidatesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetImportCandidatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project. - ///
- /// - /// - /// - /// - /// Operation type. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsImportPartialUpdateAsync( - int? jobId = default, - string? signal = default, - int? requestJobId = default, - string? requestSignal = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest - { - JobId = requestJobId, - Signal = requestSignal, - }; - - return await ApiDatasetsImportPartialUpdateAsync( - jobId: jobId, - signal: signal, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs deleted file mode 100644 index 563375e2..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs +++ /dev/null @@ -1,429 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsListSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsListSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsListSecurityRequirement0, - }; - partial void PrepareApiDatasetsListArguments( - global::System.Net.Http.HttpClient httpClient, - ref string? ordering); - partial void PrepareApiDatasetsListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? ordering); - partial void ProcessApiDatasetsListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsListResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List datasets
- /// List all datasets. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsListAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsListAsResponseAsync( - ordering: ordering, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List datasets
- /// List all datasets. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task>> ApiDatasetsListAsResponseAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsListArguments( - httpClient: HttpClient, - ordering: ref ordering); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsListSecurityRequirements, - operationName: "ApiDatasetsListAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("ordering", ordering) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - ordering: ordering); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsList", - methodName: "ApiDatasetsListAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsList", - methodName: "ApiDatasetsListAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsList", - methodName: "ApiDatasetsListAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsList", - methodName: "ApiDatasetsListAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsList", - methodName: "ApiDatasetsListAsync", - pathTemplate: "\"/api/datasets/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsListResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs deleted file mode 100644 index 0a7c175c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs +++ /dev/null @@ -1,472 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsMembersCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsMembersCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsMembersCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetsMembersCreateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.DatasetMemberRequest request); - partial void PrepareApiDatasetsMembersCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.DatasetMemberRequest request); - partial void ProcessApiDatasetsMembersCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsMembersCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Add dataset member
- /// Add a member to a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsMembersCreateAsync( - int id, - - global::LabelStudio.DatasetMemberRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsMembersCreateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Add dataset member
- /// Add a member to a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsMembersCreateAsResponseAsync( - int id, - - global::LabelStudio.DatasetMemberRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsMembersCreateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsMembersCreateSecurityRequirements, - operationName: "ApiDatasetsMembersCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/{id}/members", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsMembersCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersCreate", - methodName: "ApiDatasetsMembersCreateAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersCreate", - methodName: "ApiDatasetsMembersCreateAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersCreate", - methodName: "ApiDatasetsMembersCreateAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsMembersCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersCreate", - methodName: "ApiDatasetsMembersCreateAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersCreate", - methodName: "ApiDatasetsMembersCreateAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsMembersCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetMember.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetMember.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Add dataset member
- /// Add a member to a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsMembersCreateAsync( - int id, - int user, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.DatasetMemberRequest - { - User = user, - }; - - return await ApiDatasetsMembersCreateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersDestroy.g.cs deleted file mode 100644 index 56886f0f..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersDestroy.g.cs +++ /dev/null @@ -1,415 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsMembersDestroySecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsMembersDestroySecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsMembersDestroySecurityRequirement0, - }; - partial void PrepareApiDatasetsMembersDestroyArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - ref int? projectMember); - partial void PrepareApiDatasetsMembersDestroyRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - int? projectMember); - partial void ProcessApiDatasetsMembersDestroyResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Remove member from dataset
- /// Remove a member from a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsMembersDestroyAsync( - int id, - int? projectMember = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetsMembersDestroyAsResponseAsync( - id: id, - projectMember: projectMember, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Remove member from dataset
- /// Remove a member from a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsMembersDestroyAsResponseAsync( - int id, - int? projectMember = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsMembersDestroyArguments( - httpClient: HttpClient, - id: ref id, - projectMember: ref projectMember); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsMembersDestroySecurityRequirements, - operationName: "ApiDatasetsMembersDestroyAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/{id}/members", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("project_member", projectMember?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsMembersDestroyRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - projectMember: projectMember); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersDestroy", - methodName: "ApiDatasetsMembersDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersDestroy", - methodName: "ApiDatasetsMembersDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersDestroy", - methodName: "ApiDatasetsMembersDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsMembersDestroyResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersDestroy", - methodName: "ApiDatasetsMembersDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersDestroy", - methodName: "ApiDatasetsMembersDestroyAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs deleted file mode 100644 index bc866fd3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs +++ /dev/null @@ -1,438 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsMembersListSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsMembersListSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsMembersListSecurityRequirement0, - }; - partial void PrepareApiDatasetsMembersListArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - ref string? ordering); - partial void PrepareApiDatasetsMembersListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - string? ordering); - partial void ProcessApiDatasetsMembersListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsMembersListResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get datasets members
- /// Retrieve the members for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsMembersListAsync( - int id, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsMembersListAsResponseAsync( - id: id, - ordering: ordering, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get datasets members
- /// Retrieve the members for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task>> ApiDatasetsMembersListAsResponseAsync( - int id, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsMembersListArguments( - httpClient: HttpClient, - id: ref id, - ordering: ref ordering); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsMembersListSecurityRequirements, - operationName: "ApiDatasetsMembersListAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/{id}/members", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("ordering", ordering) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsMembersListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - ordering: ordering); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersList", - methodName: "ApiDatasetsMembersListAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersList", - methodName: "ApiDatasetsMembersListAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersList", - methodName: "ApiDatasetsMembersListAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsMembersListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersList", - methodName: "ApiDatasetsMembersListAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsMembersList", - methodName: "ApiDatasetsMembersListAsync", - pathTemplate: "$\"/api/datasets/{id}/members\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsMembersListResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs deleted file mode 100644 index 319bb06c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs +++ /dev/null @@ -1,500 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsPartialUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsPartialUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsPartialUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetsPartialUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.PatchedDatasetRequest request); - partial void PrepareApiDatasetsPartialUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.PatchedDatasetRequest request); - partial void ProcessApiDatasetsPartialUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsPartialUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update dataset
- /// Update a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsPartialUpdateAsync( - int id, - - global::LabelStudio.PatchedDatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsPartialUpdateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update dataset
- /// Update a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsPartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedDatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsPartialUpdateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsPartialUpdateSecurityRequirements, - operationName: "ApiDatasetsPartialUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsPartialUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsPartialUpdate", - methodName: "ApiDatasetsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsPartialUpdate", - methodName: "ApiDatasetsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsPartialUpdate", - methodName: "ApiDatasetsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsPartialUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsPartialUpdate", - methodName: "ApiDatasetsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsPartialUpdate", - methodName: "ApiDatasetsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsPartialUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update dataset
- /// Update a specific dataset by ID. - ///
- /// - /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// Dataset title - /// - /// - /// - /// Dataset name for weaviate schema - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsPartialUpdateAsync( - int id, - object? columns = default, - global::LabelStudio.UserSimpleRequest? createdBy = default, - string? description = default, - int? organization = default, - string? title = default, - int? totalEntities = default, - string? vectorDbDatasetName = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.PatchedDatasetRequest - { - Columns = columns, - CreatedBy = createdBy, - Description = description, - Organization = organization, - Title = title, - TotalEntities = totalEntities, - VectorDbDatasetName = vectorDbDatasetName, - }; - - return await ApiDatasetsPartialUpdateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs deleted file mode 100644 index 97bca53b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetsRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareApiDatasetsRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessApiDatasetsRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get dataset
- /// Retrieve a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsRetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get dataset
- /// Retrieve a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsRetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsRetrieveSecurityRequirements, - operationName: "ApiDatasetsRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsRetrieve", - methodName: "ApiDatasetsRetrieveAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsRetrieve", - methodName: "ApiDatasetsRetrieveAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsRetrieve", - methodName: "ApiDatasetsRetrieveAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsRetrieve", - methodName: "ApiDatasetsRetrieveAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsRetrieve", - methodName: "ApiDatasetsRetrieveAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs deleted file mode 100644 index fd754445..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs +++ /dev/null @@ -1,500 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetsUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::LabelStudio.DatasetRequest request); - partial void PrepareApiDatasetsUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::LabelStudio.DatasetRequest request); - partial void ProcessApiDatasetsUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Put dataset
- /// Overwrite a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsUpdateAsync( - int id, - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsUpdateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Put dataset
- /// Overwrite a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsUpdateAsResponseAsync( - int id, - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsUpdateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsUpdateSecurityRequirements, - operationName: "ApiDatasetsUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Put, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsUpdate", - methodName: "ApiDatasetsUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsUpdate", - methodName: "ApiDatasetsUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsUpdate", - methodName: "ApiDatasetsUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsUpdate", - methodName: "ApiDatasetsUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsUpdate", - methodName: "ApiDatasetsUpdateAsync", - pathTemplate: "$\"/api/datasets/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Put dataset
- /// Overwrite a specific dataset by ID. - ///
- /// - /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// Dataset title - /// - /// - /// - /// Dataset name for weaviate schema - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsUpdateAsync( - int id, - string title, - object? columns = default, - global::LabelStudio.UserSimpleRequest? createdBy = default, - string? description = default, - int? organization = default, - int? totalEntities = default, - string? vectorDbDatasetName = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.DatasetRequest - { - Columns = columns, - CreatedBy = createdBy, - Description = description, - Organization = organization, - Title = title, - TotalEntities = totalEntities, - VectorDbDatasetName = vectorDbDatasetName, - }; - - return await ApiDatasetsUpdateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs deleted file mode 100644 index f84c1b1b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs +++ /dev/null @@ -1,500 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsCreateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsCreateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsViewsCreateSecurityRequirement0, - }; - partial void PrepareApiDatasetsViewsCreateArguments( - global::System.Net.Http.HttpClient httpClient, - global::LabelStudio.DatasetViewRequest request); - partial void PrepareApiDatasetsViewsCreateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LabelStudio.DatasetViewRequest request); - partial void ProcessApiDatasetsViewsCreateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsViewsCreateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create dataset view
- /// Create a view for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsCreateAsync( - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsViewsCreateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create dataset view
- /// Create a view for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsViewsCreateAsResponseAsync( - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsViewsCreateArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsViewsCreateSecurityRequirements, - operationName: "ApiDatasetsViewsCreateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/views/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsViewsCreateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsCreate", - methodName: "ApiDatasetsViewsCreateAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsCreate", - methodName: "ApiDatasetsViewsCreateAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsCreate", - methodName: "ApiDatasetsViewsCreateAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsViewsCreateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsCreate", - methodName: "ApiDatasetsViewsCreateAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsCreate", - methodName: "ApiDatasetsViewsCreateAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsViewsCreateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create dataset view
- /// Create a view for a specific dataset. - ///
- /// - /// Custom view data - /// - /// - /// Dataset ID - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsCreateAsync( - int dataset, - object? data = default, - global::LabelStudio.FilterGroupRequest? filterGroup = default, - bool? isLocked = default, - global::System.DateTime? lockedAt = default, - int? order = default, - object? ordering = default, - object? selectedItems = default, - int? user = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.DatasetViewRequest - { - Data = data, - Dataset = dataset, - FilterGroup = filterGroup, - IsLocked = isLocked, - LockedAt = lockedAt, - Order = order, - Ordering = ordering, - SelectedItems = selectedItems, - User = user, - }; - - return await ApiDatasetsViewsCreateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsDestroy.g.cs deleted file mode 100644 index dce5060c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsDestroy.g.cs +++ /dev/null @@ -1,403 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsDestroySecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsDestroySecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsViewsDestroySecurityRequirement0, - }; - partial void PrepareApiDatasetsViewsDestroyArguments( - global::System.Net.Http.HttpClient httpClient, - ref string id); - partial void PrepareApiDatasetsViewsDestroyRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string id); - partial void ProcessApiDatasetsViewsDestroyResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete dataset view
- /// Delete a specific view by ID. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsDestroyAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetsViewsDestroyAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete dataset view
- /// Delete a specific view by ID. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsDestroyAsResponseAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsViewsDestroyArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsViewsDestroySecurityRequirements, - operationName: "ApiDatasetsViewsDestroyAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsViewsDestroyRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsDestroy", - methodName: "ApiDatasetsViewsDestroyAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsDestroy", - methodName: "ApiDatasetsViewsDestroyAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsDestroy", - methodName: "ApiDatasetsViewsDestroyAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsViewsDestroyResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsDestroy", - methodName: "ApiDatasetsViewsDestroyAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsDestroy", - methodName: "ApiDatasetsViewsDestroyAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs deleted file mode 100644 index f6e211bf..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs +++ /dev/null @@ -1,429 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsListSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsListSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsViewsListSecurityRequirement0, - }; - partial void PrepareApiDatasetsViewsListArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? dataset); - partial void PrepareApiDatasetsViewsListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? dataset); - partial void ProcessApiDatasetsViewsListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsViewsListResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List dataset views
- /// List all views for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsViewsListAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsViewsListAsResponseAsync( - dataset: dataset, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List dataset views
- /// List all views for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task>> ApiDatasetsViewsListAsResponseAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsViewsListArguments( - httpClient: HttpClient, - dataset: ref dataset); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsViewsListSecurityRequirements, - operationName: "ApiDatasetsViewsListAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/views/", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("dataset", dataset?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsViewsListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - dataset: dataset); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsList", - methodName: "ApiDatasetsViewsListAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsList", - methodName: "ApiDatasetsViewsListAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsList", - methodName: "ApiDatasetsViewsListAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsViewsListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsList", - methodName: "ApiDatasetsViewsListAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsList", - methodName: "ApiDatasetsViewsListAsync", - pathTemplate: "\"/api/datasets/views/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsViewsListResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse>( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs deleted file mode 100644 index a7750d72..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs +++ /dev/null @@ -1,512 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsPartialUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsPartialUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsViewsPartialUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetsViewsPartialUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref string id, - global::LabelStudio.PatchedDatasetViewRequest request); - partial void PrepareApiDatasetsViewsPartialUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string id, - global::LabelStudio.PatchedDatasetViewRequest request); - partial void ProcessApiDatasetsViewsPartialUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsViewsPartialUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update dataset view
- /// Update view data with additional filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsPartialUpdateAsync( - string id, - - global::LabelStudio.PatchedDatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsViewsPartialUpdateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update dataset view
- /// Update view data with additional filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsViewsPartialUpdateAsResponseAsync( - string id, - - global::LabelStudio.PatchedDatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsViewsPartialUpdateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsViewsPartialUpdateSecurityRequirements, - operationName: "ApiDatasetsViewsPartialUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsViewsPartialUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsPartialUpdate", - methodName: "ApiDatasetsViewsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsPartialUpdate", - methodName: "ApiDatasetsViewsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsPartialUpdate", - methodName: "ApiDatasetsViewsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsViewsPartialUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsPartialUpdate", - methodName: "ApiDatasetsViewsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsPartialUpdate", - methodName: "ApiDatasetsViewsPartialUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsViewsPartialUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update dataset view
- /// Update view data with additional filters and other information for a specific dataset. - ///
- /// - /// - /// Custom view data - /// - /// - /// Dataset ID - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsPartialUpdateAsync( - string id, - object? data = default, - int? dataset = default, - global::LabelStudio.FilterGroupRequest? filterGroup = default, - bool? isLocked = default, - global::System.DateTime? lockedAt = default, - int? order = default, - object? ordering = default, - object? selectedItems = default, - int? user = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.PatchedDatasetViewRequest - { - Data = data, - Dataset = dataset, - FilterGroup = filterGroup, - IsLocked = isLocked, - LockedAt = lockedAt, - Order = order, - Ordering = ordering, - SelectedItems = selectedItems, - User = user, - }; - - return await ApiDatasetsViewsPartialUpdateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsResetDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsResetDestroy.g.cs deleted file mode 100644 index 3bc98bbe..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsResetDestroy.g.cs +++ /dev/null @@ -1,394 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsResetDestroySecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsResetDestroySecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsViewsResetDestroySecurityRequirement0, - }; - partial void PrepareApiDatasetsViewsResetDestroyArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareApiDatasetsViewsResetDestroyRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessApiDatasetsViewsResetDestroyResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Reset dataset views
- /// Reset all views for a specific dataset. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsResetDestroyAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetsViewsResetDestroyAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Reset dataset views
- /// Reset all views for a specific dataset. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsResetDestroyAsResponseAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsViewsResetDestroyArguments( - httpClient: HttpClient); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsViewsResetDestroySecurityRequirements, - operationName: "ApiDatasetsViewsResetDestroyAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/datasets/views/reset/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsViewsResetDestroyRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsResetDestroy", - methodName: "ApiDatasetsViewsResetDestroyAsync", - pathTemplate: "\"/api/datasets/views/reset/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsResetDestroy", - methodName: "ApiDatasetsViewsResetDestroyAsync", - pathTemplate: "\"/api/datasets/views/reset/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsResetDestroy", - methodName: "ApiDatasetsViewsResetDestroyAsync", - pathTemplate: "\"/api/datasets/views/reset/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsViewsResetDestroyResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsResetDestroy", - methodName: "ApiDatasetsViewsResetDestroyAsync", - pathTemplate: "\"/api/datasets/views/reset/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsResetDestroy", - methodName: "ApiDatasetsViewsResetDestroyAsync", - pathTemplate: "\"/api/datasets/views/reset/\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs deleted file mode 100644 index ae4d5784..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs +++ /dev/null @@ -1,426 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsViewsRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetsViewsRetrieveArguments( - global::System.Net.Http.HttpClient httpClient, - ref string id); - partial void PrepareApiDatasetsViewsRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string id); - partial void ProcessApiDatasetsViewsRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsViewsRetrieveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get dataset view details
- /// Get the details about a specific view in the data manager - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsRetrieveAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsViewsRetrieveAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get dataset view details
- /// Get the details about a specific view in the data manager - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsViewsRetrieveAsResponseAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsViewsRetrieveArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsViewsRetrieveSecurityRequirements, - operationName: "ApiDatasetsViewsRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsViewsRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsRetrieve", - methodName: "ApiDatasetsViewsRetrieveAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsRetrieve", - methodName: "ApiDatasetsViewsRetrieveAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsRetrieve", - methodName: "ApiDatasetsViewsRetrieveAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsViewsRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsRetrieve", - methodName: "ApiDatasetsViewsRetrieveAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsRetrieve", - methodName: "ApiDatasetsViewsRetrieveAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsViewsRetrieveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs deleted file mode 100644 index f7c2645b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs +++ /dev/null @@ -1,512 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class DatasetsClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsUpdateSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsUpdateSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetsViewsUpdateSecurityRequirement0, - }; - partial void PrepareApiDatasetsViewsUpdateArguments( - global::System.Net.Http.HttpClient httpClient, - ref string id, - global::LabelStudio.DatasetViewRequest request); - partial void PrepareApiDatasetsViewsUpdateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string id, - global::LabelStudio.DatasetViewRequest request); - partial void ProcessApiDatasetsViewsUpdateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessApiDatasetsViewsUpdateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Put dataset view
- /// Overwrite view data with updated filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsUpdateAsync( - string id, - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ApiDatasetsViewsUpdateAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Put dataset view
- /// Overwrite view data with updated filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> ApiDatasetsViewsUpdateAsResponseAsync( - string id, - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareApiDatasetsViewsUpdateArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetsViewsUpdateSecurityRequirements, - operationName: "ApiDatasetsViewsUpdateAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Put, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetsViewsUpdateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsUpdate", - methodName: "ApiDatasetsViewsUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsUpdate", - methodName: "ApiDatasetsViewsUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsUpdate", - methodName: "ApiDatasetsViewsUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetsViewsUpdateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsUpdate", - methodName: "ApiDatasetsViewsUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetsViewsUpdate", - methodName: "ApiDatasetsViewsUpdateAsync", - pathTemplate: "$\"/api/datasets/views/{id}/\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessApiDatasetsViewsUpdateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Put dataset view
- /// Overwrite view data with updated filters and other information for a specific dataset. - ///
- /// - /// - /// Custom view data - /// - /// - /// Dataset ID - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetsViewsUpdateAsync( - string id, - int dataset, - object? data = default, - global::LabelStudio.FilterGroupRequest? filterGroup = default, - bool? isLocked = default, - global::System.DateTime? lockedAt = default, - int? order = default, - object? ordering = default, - object? selectedItems = default, - int? user = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::LabelStudio.DatasetViewRequest - { - Data = data, - Dataset = dataset, - FilterGroup = filterGroup, - IsLocked = isLocked, - LockedAt = lockedAt, - Order = order, - Ordering = ordering, - SelectedItems = selectedItems, - User = user, - }; - - return await ApiDatasetsViewsUpdateAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs deleted file mode 100644 index c8900f80..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs +++ /dev/null @@ -1,143 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class DatasetsClient : global::LabelStudio.IDatasetsClient, global::System.IDisposable - { - /// - /// Label Studio - /// - public const string DefaultBaseUrl = "http://localhost:8000/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - internal global::System.Lazy? JsonSerializerContextProvider { get; set; } - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider?.Value ?? global::LabelStudio.DatasetsSourceGenerationContext.Default; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the DatasetsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DatasetsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DatasetsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::LabelStudio.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::LabelStudio.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Export.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Export.JsonSerializerContext.g.cs index 4c06a5b2..4830d3d2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Export.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Export.JsonSerializerContext.g.cs @@ -25,7 +25,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectImportStatusEnum), TypeInfoPropertyName = "ProjectImportStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConvertedFormatRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DataManagerFilterModeEnum), TypeInfoPropertyName = "DataManagerFilterModeEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Export))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ExportConvertRequest))] @@ -36,6 +35,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskFilterOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseExportCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SerializationOptionsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskFilterOptionsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs deleted file mode 100644 index d5653305..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDataExplorerClient - { - /// - /// Get data explorer columns
- /// Retrieve the data explorer columns available for a specific Dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsColumnsRetrieveAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get data explorer columns
- /// Retrieve the data explorer columns available for a specific Dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsColumnsRetrieveAsResponseAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsImportCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsImportCreate.g.cs deleted file mode 100644 index 6fc7ad38..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsImportCreate.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDataExplorerClient - { - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsImportCreateAsync( - - global::LabelStudio.DatasetImportCandidatesCreateRequest request, - object? additionalFilters = default, - int? dataset = default, - object? excluded = default, - object? included = default, - int? project = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsImportCreateAsResponseAsync( - - global::LabelStudio.DatasetImportCandidatesCreateRequest request, - object? additionalFilters = default, - int? dataset = default, - object? excluded = default, - object? included = default, - int? project = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// - /// Default Value: {} - /// - /// - /// - /// Default Value: {} - /// - /// - /// Default Value: {} - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsImportCreateAsync( - int requestDataset, - object? additionalFilters = default, - int? dataset = default, - object? excluded = default, - object? included = default, - int? project = default, - int? view = default, - object? requestAdditionalFilters = default, - object? requestExcluded = default, - object? requestIncluded = default, - int? requestProject = default, - int? requestView = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs deleted file mode 100644 index 0a1f0271..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDataExplorerClient - { - /// - /// Get Candidate task metadata
- /// Retrieve Candidate task metadata for a specific dataset, by using candidate_task_id or weaviate_id.
- /// - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsTasksMetadataRetrieveAsync( - string? candidateTaskId = default, - int? dataset = default, - string? vectordbId = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get Candidate task metadata
- /// Retrieve Candidate task metadata for a specific dataset, by using candidate_task_id or weaviate_id.
- /// - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsTasksMetadataRetrieveAsResponseAsync( - string? candidateTaskId = default, - int? dataset = default, - string? vectordbId = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsTasksRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsTasksRetrieve.g.cs deleted file mode 100644 index 668f9b80..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.ApiDatasetsTasksRetrieve.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDataExplorerClient - { - /// - /// Get Data Explorer tasks list
- /// Retrieve a list of Data Explorer tasks with pagination for a specific view or dataset, by using filters and ordering.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsTasksRetrieveAsync( - int? dataset = default, - double? maxThreshold = default, - double? minThreshold = default, - int? page = default, - int? pageSize = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get Data Explorer tasks list
- /// Retrieve a list of Data Explorer tasks with pagination for a specific view or dataset, by using filters and ordering.
- /// - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsTasksRetrieveAsResponseAsync( - int? dataset = default, - double? maxThreshold = default, - double? minThreshold = default, - int? page = default, - int? pageSize = default, - int? view = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs deleted file mode 100644 index 5b782c55..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IDataExplorerClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs deleted file mode 100644 index 154943e5..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs +++ /dev/null @@ -1,133 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCheckForRecordsCreateAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureCheckForRecordsCreateAsResponseAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCheckForRecordsCreateAsync( - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs deleted file mode 100644 index c14c463c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureColumnsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureColumnsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs deleted file mode 100644 index ff2460ce..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs +++ /dev/null @@ -1,133 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Create import storage
- /// Create a new Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCreateAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create import storage
- /// Create a new Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureCreateAsResponseAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create import storage
- /// Create a new Azure import storage connection. - ///
- /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureCreateAsync( - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs deleted file mode 100644 index 752aa7fe..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Delete import storage
- /// Delete a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureDestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete import storage
- /// Delete a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureDestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs deleted file mode 100644 index 0025509c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Get all import storage
- /// Get a list of all Azure import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureListAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get all import storage
- /// Get a list of all Azure import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task>> ApiDatasetStoragesAzureListAsResponseAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs deleted file mode 100644 index f9f34054..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs +++ /dev/null @@ -1,139 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Update import storage
- /// Update a specific Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzurePartialUpdateAsync( - int id, - - global::LabelStudio.PatchedAzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update import storage
- /// Update a specific Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzurePartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedAzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update import storage
- /// Update a specific Azure import storage connection. - ///
- /// - /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzurePartialUpdateAsync( - int id, - string? accountKey = default, - string? accountName = default, - string? container = default, - int? dataset = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs deleted file mode 100644 index a2d1dadf..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Get import storage
- /// Get a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get import storage
- /// Get a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs deleted file mode 100644 index 64e0c8dc..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs +++ /dev/null @@ -1,139 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Sync import storage
- /// Sync tasks from an Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureSyncCreateAsync( - int id, - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Sync import storage
- /// Sync tasks from an Azure import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureSyncCreateAsResponseAsync( - int id, - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Sync import storage
- /// Sync tasks from an Azure import storage connection. - ///
- /// - /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureSyncCreateAsync( - int id, - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs deleted file mode 100644 index ab511da0..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs +++ /dev/null @@ -1,133 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageAzureClient - { - /// - /// Validate import storage
- /// Validate a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureValidateCreateAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Validate import storage
- /// Validate a specific Azure import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesAzureValidateCreateAsResponseAsync( - - global::LabelStudio.AzureDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Validate import storage
- /// Validate a specific Azure import storage connection. - ///
- /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesAzureValidateCreateAsync( - int dataset, - string? accountKey = default, - string? accountName = default, - string? container = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs deleted file mode 100644 index 0449bf61..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IDatasetStorageAzureClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs deleted file mode 100644 index 4570fb83..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs +++ /dev/null @@ -1,133 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCheckForRecordsCreateAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsCheckForRecordsCreateAsResponseAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCheckForRecordsCreateAsync( - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs deleted file mode 100644 index d47e1869..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsColumnsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsColumnsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs deleted file mode 100644 index 2f522e8d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs +++ /dev/null @@ -1,133 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Create import storage
- /// Create a new GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCreateAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create import storage
- /// Create a new GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsCreateAsResponseAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create import storage
- /// Create a new GCS import storage connection. - ///
- /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsCreateAsync( - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs deleted file mode 100644 index 8a99df15..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Delete import storage
- /// Delete a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsDestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete import storage
- /// Delete a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsDestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs deleted file mode 100644 index c761c3d3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Get all import storage
- /// Get a list of all GCS import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsListAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get all import storage
- /// Get a list of all GCS import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task>> ApiDatasetStoragesGcsListAsResponseAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs deleted file mode 100644 index 4ff61cf2..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs +++ /dev/null @@ -1,139 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Update import storage
- /// Update a specific GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsPartialUpdateAsync( - int id, - - global::LabelStudio.PatchedGCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update import storage
- /// Update a specific GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsPartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedGCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update import storage
- /// Update a specific GCS import storage connection. - ///
- /// - /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsPartialUpdateAsync( - int id, - string? bucket = default, - int? dataset = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs deleted file mode 100644 index b2c85919..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Get import storage
- /// Get a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get import storage
- /// Get a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs deleted file mode 100644 index 2f3de677..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs +++ /dev/null @@ -1,139 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Sync import storage
- /// Sync tasks from an GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsSyncCreateAsync( - int id, - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Sync import storage
- /// Sync tasks from an GCS import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsSyncCreateAsResponseAsync( - int id, - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Sync import storage
- /// Sync tasks from an GCS import storage connection. - ///
- /// - /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsSyncCreateAsync( - int id, - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs deleted file mode 100644 index f52564cb..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs +++ /dev/null @@ -1,133 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageGcsClient - { - /// - /// Validate import storage
- /// Validate a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsValidateCreateAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Validate import storage
- /// Validate a specific GCS import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesGcsValidateCreateAsResponseAsync( - - global::LabelStudio.GCSDatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Validate import storage
- /// Validate a specific GCS import storage connection. - ///
- /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesGcsValidateCreateAsync( - int dataset, - string? bucket = default, - string? description = default, - string? globPattern = default, - string? googleApplicationCredentials = default, - string? googleProjectId = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs deleted file mode 100644 index 96bce2ee..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IDatasetStorageGcsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs deleted file mode 100644 index abca14f9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs +++ /dev/null @@ -1,149 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3CheckForRecordsCreateAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3CheckForRecordsCreateAsResponseAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Check for records given the file pattern
- /// Checks for existence of records matching the file pattern in the bucket/prefix - ///
- /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3CheckForRecordsCreateAsync( - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs deleted file mode 100644 index f79dfd0f..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3ColumnsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get data column names from storage
- /// Retrieves column names from users JSON/blob data in bucket - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3ColumnsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs deleted file mode 100644 index 0bbf2955..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs +++ /dev/null @@ -1,149 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Create import storage
- /// Create a new S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3CreateAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create import storage
- /// Create a new S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3CreateAsResponseAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create import storage
- /// Create a new S3 import storage connection. - ///
- /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3CreateAsync( - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs deleted file mode 100644 index 07c2c3be..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Delete import storage
- /// Delete a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3DestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete import storage
- /// Delete a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3DestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs deleted file mode 100644 index 66504995..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Get all import storage
- /// Get a list of all S3 import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3ListAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get all import storage
- /// Get a list of all S3 import storage connections. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task>> ApiDatasetStoragesS3ListAsResponseAsync( - int? dataset = default, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs deleted file mode 100644 index 89dcaec3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs +++ /dev/null @@ -1,155 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Update import storage
- /// Update a specific S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3PartialUpdateAsync( - int id, - - global::LabelStudio.PatchedS3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update import storage
- /// Update a specific S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3PartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedS3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update import storage
- /// Update a specific S3 import storage connection. - ///
- /// - /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3PartialUpdateAsync( - int id, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - int? dataset = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs deleted file mode 100644 index bc420ee7..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Get import storage
- /// Get a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3RetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get import storage
- /// Get a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3RetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs deleted file mode 100644 index 37a5190e..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs +++ /dev/null @@ -1,155 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Sync import storage
- /// Sync tasks from an S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3SyncCreateAsync( - int id, - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Sync import storage
- /// Sync tasks from an S3 import storage connection. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3SyncCreateAsResponseAsync( - int id, - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Sync import storage
- /// Sync tasks from an S3 import storage connection. - ///
- /// - /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3SyncCreateAsync( - int id, - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs deleted file mode 100644 index ed21957d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs +++ /dev/null @@ -1,149 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetStorageS3Client - { - /// - /// Validate import storage
- /// Validate a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3ValidateCreateAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Validate import storage
- /// Validate a specific S3 import storage connection. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetStoragesS3ValidateCreateAsResponseAsync( - - global::LabelStudio.S3DatasetStorageRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Validate import storage
- /// Validate a specific S3 import storage connection. - ///
- /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesS3ValidateCreateAsync( - int dataset, - string? awsAccessKeyId = default, - string? awsSecretAccessKey = default, - string? awsSessionToken = default, - string? awsSseKmsKeyId = default, - string? bucket = default, - string? description = default, - string? globPattern = default, - global::System.DateTime? lastSync = default, - int? lastSyncCount = default, - string? lastSyncJob = default, - object? meta = default, - string? prefix = default, - bool? presign = default, - int? presignTtl = default, - bool? recursiveScan = default, - string? regexFilter = default, - string? regionName = default, - string? s3Endpoint = default, - global::LabelStudio.StorageStatusEnum? status = default, - bool? synced = default, - bool? synchronizable = default, - string? title = default, - string? traceback = default, - bool? useBlobUrls = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs deleted file mode 100644 index a09262b9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IDatasetStorageS3Client : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsCreate.g.cs deleted file mode 100644 index d3eea99d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsCreate.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Create dataset
- /// Create a new dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsCreateAsync( - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create dataset
- /// Create a new dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsCreateAsResponseAsync( - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create dataset
- /// Create a new dataset. - ///
- /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// Dataset title - /// - /// - /// - /// Dataset name for weaviate schema - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsCreateAsync( - string title, - object? columns = default, - global::LabelStudio.UserSimpleRequest? createdBy = default, - string? description = default, - int? organization = default, - int? totalEntities = default, - string? vectorDbDatasetName = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsDestroy.g.cs deleted file mode 100644 index d06bd562..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsDestroy.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Delete dataset
- /// Delete a dataset by ID - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsDestroyAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete dataset
- /// Delete a dataset by ID - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsDestroyAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsImportPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsImportPartialUpdate.g.cs deleted file mode 100644 index 72767a1c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsImportPartialUpdate.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsImportPartialUpdateAsync( - - global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest request, - int? jobId = default, - string? signal = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsImportPartialUpdateAsResponseAsync( - - global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest request, - int? jobId = default, - string? signal = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Export candidate tasks to project
- /// Export Candidate task for a specific dataset to project. - ///
- /// - /// - /// - /// - /// Operation type. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsImportPartialUpdateAsync( - int? jobId = default, - string? signal = default, - int? requestJobId = default, - string? requestSignal = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsList.g.cs deleted file mode 100644 index 9bf6cbbb..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsList.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// List datasets
- /// List all datasets. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsListAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List datasets
- /// List all datasets. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task>> ApiDatasetsListAsResponseAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersCreate.g.cs deleted file mode 100644 index fe5bdc59..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersCreate.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Add dataset member
- /// Add a member to a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsMembersCreateAsync( - int id, - - global::LabelStudio.DatasetMemberRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Add dataset member
- /// Add a member to a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsMembersCreateAsResponseAsync( - int id, - - global::LabelStudio.DatasetMemberRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Add dataset member
- /// Add a member to a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsMembersCreateAsync( - int id, - int user, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersDestroy.g.cs deleted file mode 100644 index 1d6f2060..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersDestroy.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Remove member from dataset
- /// Remove a member from a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsMembersDestroyAsync( - int id, - int? projectMember = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Remove member from dataset
- /// Remove a member from a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsMembersDestroyAsResponseAsync( - int id, - int? projectMember = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersList.g.cs deleted file mode 100644 index 364d6470..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsMembersList.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Get datasets members
- /// Retrieve the members for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsMembersListAsync( - int id, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get datasets members
- /// Retrieve the members for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task>> ApiDatasetsMembersListAsResponseAsync( - int id, - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsPartialUpdate.g.cs deleted file mode 100644 index 8b5b60f4..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsPartialUpdate.g.cs +++ /dev/null @@ -1,74 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Update dataset
- /// Update a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsPartialUpdateAsync( - int id, - - global::LabelStudio.PatchedDatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update dataset
- /// Update a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsPartialUpdateAsResponseAsync( - int id, - - global::LabelStudio.PatchedDatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update dataset
- /// Update a specific dataset by ID. - ///
- /// - /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// Dataset title - /// - /// - /// - /// Dataset name for weaviate schema - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsPartialUpdateAsync( - int id, - object? columns = default, - global::LabelStudio.UserSimpleRequest? createdBy = default, - string? description = default, - int? organization = default, - string? title = default, - int? totalEntities = default, - string? vectorDbDatasetName = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsRetrieve.g.cs deleted file mode 100644 index 4debcf14..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Get dataset
- /// Retrieve a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsRetrieveAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get dataset
- /// Retrieve a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsRetrieveAsResponseAsync( - int id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsUpdate.g.cs deleted file mode 100644 index 7ef2a34d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsUpdate.g.cs +++ /dev/null @@ -1,74 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Put dataset
- /// Overwrite a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsUpdateAsync( - int id, - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Put dataset
- /// Overwrite a specific dataset by ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsUpdateAsResponseAsync( - int id, - - global::LabelStudio.DatasetRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Put dataset
- /// Overwrite a specific dataset by ID. - ///
- /// - /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// Dataset title - /// - /// - /// - /// Dataset name for weaviate schema - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsUpdateAsync( - int id, - string title, - object? columns = default, - global::LabelStudio.UserSimpleRequest? createdBy = default, - string? description = default, - int? organization = default, - int? totalEntities = default, - string? vectorDbDatasetName = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsCreate.g.cs deleted file mode 100644 index 1830dcc3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsCreate.g.cs +++ /dev/null @@ -1,78 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Create dataset view
- /// Create a view for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsCreateAsync( - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create dataset view
- /// Create a view for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsViewsCreateAsResponseAsync( - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create dataset view
- /// Create a view for a specific dataset. - ///
- /// - /// Custom view data - /// - /// - /// Dataset ID - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsCreateAsync( - int dataset, - object? data = default, - global::LabelStudio.FilterGroupRequest? filterGroup = default, - bool? isLocked = default, - global::System.DateTime? lockedAt = default, - int? order = default, - object? ordering = default, - object? selectedItems = default, - int? user = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsDestroy.g.cs deleted file mode 100644 index 947e03b9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsDestroy.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Delete dataset view
- /// Delete a specific view by ID. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsDestroyAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete dataset view
- /// Delete a specific view by ID. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsDestroyAsResponseAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsList.g.cs deleted file mode 100644 index 2a74a8c1..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsList.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// List dataset views
- /// List all views for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsViewsListAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List dataset views
- /// List all views for a specific dataset. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task>> ApiDatasetsViewsListAsResponseAsync( - int? dataset = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs deleted file mode 100644 index 9159daf8..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs +++ /dev/null @@ -1,84 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Update dataset view
- /// Update view data with additional filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsPartialUpdateAsync( - string id, - - global::LabelStudio.PatchedDatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update dataset view
- /// Update view data with additional filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsViewsPartialUpdateAsResponseAsync( - string id, - - global::LabelStudio.PatchedDatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update dataset view
- /// Update view data with additional filters and other information for a specific dataset. - ///
- /// - /// - /// Custom view data - /// - /// - /// Dataset ID - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsPartialUpdateAsync( - string id, - object? data = default, - int? dataset = default, - global::LabelStudio.FilterGroupRequest? filterGroup = default, - bool? isLocked = default, - global::System.DateTime? lockedAt = default, - int? order = default, - object? ordering = default, - object? selectedItems = default, - int? user = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsResetDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsResetDestroy.g.cs deleted file mode 100644 index a3e0a3f7..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsResetDestroy.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Reset dataset views
- /// Reset all views for a specific dataset. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsResetDestroyAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Reset dataset views
- /// Reset all views for a specific dataset. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsResetDestroyAsResponseAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsRetrieve.g.cs deleted file mode 100644 index 7d78f0bb..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsRetrieve.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Get dataset view details
- /// Get the details about a specific view in the data manager - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsRetrieveAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get dataset view details
- /// Get the details about a specific view in the data manager - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsViewsRetrieveAsResponseAsync( - string id, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsUpdate.g.cs deleted file mode 100644 index 4294416b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.ApiDatasetsViewsUpdate.g.cs +++ /dev/null @@ -1,84 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IDatasetsClient - { - /// - /// Put dataset view
- /// Overwrite view data with updated filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsUpdateAsync( - string id, - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Put dataset view
- /// Overwrite view data with updated filters and other information for a specific dataset. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ApiDatasetsViewsUpdateAsResponseAsync( - string id, - - global::LabelStudio.DatasetViewRequest request, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Put dataset view
- /// Overwrite view data with updated filters and other information for a specific dataset. - ///
- /// - /// - /// Custom view data - /// - /// - /// Dataset ID - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetsViewsUpdateAsync( - string id, - int dataset, - object? data = default, - global::LabelStudio.FilterGroupRequest? filterGroup = default, - bool? isLocked = default, - global::System.DateTime? lockedAt = default, - int? order = default, - object? ordering = default, - object? selectedItems = default, - int? user = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs deleted file mode 100644 index 955f3b58..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IDatasetsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::LabelStudio.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs index a9e505f6..076f7909 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs @@ -115,36 +115,11 @@ public partial interface ILabelStudioClient : global::System.IDisposable /// public Comments2Client Comments2 { get; } - /// - /// - /// - public DataExplorerClient DataExplorer { get; } - /// /// /// public DataManagerClient DataManager { get; } - /// - /// - /// - public DatasetStorageAzureClient DatasetStorageAzure { get; } - - /// - /// - /// - public DatasetStorageGcsClient DatasetStorageGcs { get; } - - /// - /// - /// - public DatasetStorageS3Client DatasetStorageS3 { get; } - - /// - /// - /// - public DatasetsClient Datasets { get; } - /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesRetrieve.g.cs index 2c66c462..19d07c1d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesRetrieve.g.cs @@ -8,22 +8,26 @@ public partial interface ILearningResourcesClient /// ✨ Get a learning resource /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ApiLearningResourcesRetrieveAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// ✨ Get a learning resource /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task> ApiLearningResourcesRetrieveAsResponseAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs index e3e40f55..1ba59956 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs @@ -15,11 +15,13 @@ public partial interface ILearningResourcesClient /// Get a published learning resource available for standalone access. /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ApiLearningResourcesTakeRetrieveAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -33,11 +35,13 @@ public partial interface ILearningResourcesClient /// Get a published learning resource available for standalone access. /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task> ApiLearningResourcesTakeRetrieveAsResponseAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.ApiDatasetStoragesList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.ApiDatasetStoragesList.g.cs deleted file mode 100644 index 8e2dfa72..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.ApiDatasetStoragesList.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IStorageClient - { - /// - /// List all dataset storages from the project
- /// Retrieve a list of the dataset storages of all types with their IDs. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesListAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List all dataset storages from the project
- /// Retrieve a list of the dataset storages of all types with their IDs. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesListAsResponseAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.ApiDatasetStoragesTypesRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.ApiDatasetStoragesTypesRetrieve.g.cs deleted file mode 100644 index 620545fd..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.ApiDatasetStoragesTypesRetrieve.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public partial interface IStorageClient - { - /// - /// List all dataset storages types
- /// Retrieve a list of the dataset storages types. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesTypesRetrieveAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List all dataset storages types
- /// Retrieve a list of the dataset storages types. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ApiDatasetStoragesTypesRetrieveAsResponseAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs index 0515def1..8b93688f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs @@ -95,8 +95,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureBlobImportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureBlobImportStorageValidateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureBlobImportStorageWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureDatasetStorage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureDatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureServicePrincipalExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureServicePrincipalExportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureServicePrincipalImportStorage))] @@ -133,7 +131,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChatMessageRoleEnum), TypeInfoPropertyName = "ChatMessageRoleEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CheckMatchingFunctionRequestRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilterRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CollectionModeEnum), TypeInfoPropertyName = "CollectionModeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Comment))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CommentRequest))] @@ -178,28 +175,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksImportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksImportStorageValidateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksImportStorageWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Dataset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetColumn))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetColumnVisibilityDefaults))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetColumnsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetImportCandidatesCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetImportCandidatesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetMember))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetMemberRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageAvailableDataType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetStorageColumnsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetTasksMetadataResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetView))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetViewLockedBy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetViewRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroupRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DefaultModelVersionNameResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DefaultRole))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationRoleEnum), TypeInfoPropertyName = "OrganizationRoleEnum2")] @@ -221,16 +196,12 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FileUpload))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Filter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroup))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilteredLabelDistributionUnavailable))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FlexActiveBlock))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCPCustomFunctionUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSExportStorageValidateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSExportStorageWriteRequest))] @@ -336,6 +307,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskFilterOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseExportCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SerializationOptionsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskFilterOptionsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseFields))] @@ -515,27 +487,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedProjectMember))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedProjectImportListList))] - internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_5a49480f2bfb3744")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_a4839e20384287f3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "ApiProjectsStatsTotalAgreementRetrieveResponseVariant2_34675e999e90b30b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectImportList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedProjectReimportListList))] @@ -560,22 +511,38 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAnnotationReviewRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureBlobExportStorageWriteRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureBlobImportStorageWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureDatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedBlueprintUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedCommentRequest))] + internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_5a49480f2bfb3744")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_a4839e20384287f3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "ApiProjectsStatsTotalAgreementRetrieveResponseVariant2_34675e999e90b30b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedCoursePageUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatabricksExportStorageWriteRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatabricksImportStorageWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetViewRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDefaultRoleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDimensionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedFewShotExampleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedFileUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSDatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSExportStorageWriteRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSImportStorageWriteRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSSAExportStorageRequest))] @@ -615,7 +582,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedProjectTemplateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedRedisExportStorageWriteRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedRedisImportStorageWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedS3DatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedS3ExportStorageWriteRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedS3ImportStorageWriteRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedSessionTimeoutPolicyRequest))] @@ -713,8 +679,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReviewSettingsSamplingEnum), TypeInfoPropertyName = "ReviewSettingsSamplingEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RevokeCertificateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RevokeInviteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3DatasetStorage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3DatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3ExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3ExportStorageValidateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3ExportStorageWriteRequest))] @@ -821,12 +785,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiCurrentUserResetTokenCreateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiCurrentUserTokenRetrieveResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1025,27 +983,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationPermissionRoleEnum?), TypeInfoPropertyName = "NullableOrganizationPermissionRoleEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RoleBasedTask?), TypeInfoPropertyName = "NullableRoleBasedTask2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StandardUserTypeEnum?), TypeInfoPropertyName = "NullableStandardUserTypeEnum2")] - internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_5a49480f2bfb3744")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_a4839e20384287f3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "ApiProjectsStatsTotalAgreementRetrieveResponseVariant2_34675e999e90b30b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReasonEnum?), TypeInfoPropertyName = "NullableReasonEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterFilter?), TypeInfoPropertyName = "NullablePrepareParamsFiltersRequestItemChildFilterFilter2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterOperator?), TypeInfoPropertyName = "NullablePrepareParamsFiltersRequestItemChildFilterOperator2")] @@ -1088,6 +1025,27 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsGcpCustomFunctionRetrieveResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>?), TypeInfoPropertyName = "NullableOneOfIListIListDoubleDictionaryStringIListIListDouble2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>?), TypeInfoPropertyName = "NullableOneOfDoubleDictionaryStringDouble2")] + internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_5a49480f2bfb3744")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList), TypeInfoPropertyName = "IListDouble_System_Collections_Generic_IList_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "IListIListDouble_System_Collections_Generic_IList_global_System_Collections_Generic_IList_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "AnnotationBulkSerializerWithSelectedItemsRequestSelectedItemsAllTrue_a4839e20384287f3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "ApiProjectsStatsTotalAgreementRetrieveResponseVariant2_34675e999e90b30b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1102,14 +1060,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1201,12 +1154,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs index ae966df5..b3d0d15c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs @@ -318,407 +318,407 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::LabelStudio.AzureDatasetStorage? Type70 { get; set; } + public global::LabelStudio.AzureServicePrincipalExportStorage? Type70 { get; set; } /// /// /// - public global::LabelStudio.AzureDatasetStorageRequest? Type71 { get; set; } + public global::LabelStudio.AzureServicePrincipalExportStorageRequest? Type71 { get; set; } /// /// /// - public global::LabelStudio.AzureServicePrincipalExportStorage? Type72 { get; set; } + public global::LabelStudio.AzureServicePrincipalImportStorage? Type72 { get; set; } /// /// /// - public global::LabelStudio.AzureServicePrincipalExportStorageRequest? Type73 { get; set; } + public global::LabelStudio.AzureServicePrincipalImportStorageRequest? Type73 { get; set; } /// /// /// - public global::LabelStudio.AzureServicePrincipalImportStorage? Type74 { get; set; } + public global::LabelStudio.BatchFailedPredictions? Type74 { get; set; } /// /// /// - public global::LabelStudio.AzureServicePrincipalImportStorageRequest? Type75 { get; set; } + public global::LabelStudio.BatchFailedPredictionsRequestRequest? Type75 { get; set; } /// /// /// - public global::LabelStudio.BatchFailedPredictions? Type76 { get; set; } + public global::LabelStudio.BatchPredictions? Type76 { get; set; } /// /// /// - public global::LabelStudio.BatchFailedPredictionsRequestRequest? Type77 { get; set; } + public global::LabelStudio.BatchPredictionsRequestRequest? Type77 { get; set; } /// /// /// - public global::LabelStudio.BatchPredictions? Type78 { get; set; } + public global::LabelStudio.BillingChecks? Type78 { get; set; } /// /// /// - public global::LabelStudio.BatchPredictionsRequestRequest? Type79 { get; set; } + public global::LabelStudio.CountLimit? Type79 { get; set; } /// /// /// - public global::LabelStudio.BillingChecks? Type80 { get; set; } + public global::LabelStudio.FlexChecks? Type80 { get; set; } /// /// /// - public global::LabelStudio.CountLimit? Type81 { get; set; } + public global::LabelStudio.PromptsStatusEnum? Type81 { get; set; } /// /// /// - public global::LabelStudio.FlexChecks? Type82 { get; set; } + public global::LabelStudio.BillingFlags? Type82 { get; set; } /// /// /// - public global::LabelStudio.PromptsStatusEnum? Type83 { get; set; } + public global::LabelStudio.BillingInfoResponse? Type83 { get; set; } /// /// /// - public global::LabelStudio.BillingFlags? Type84 { get; set; } + public global::LabelStudio.Blueprint? Type84 { get; set; } /// /// /// - public global::LabelStudio.BillingInfoResponse? Type85 { get; set; } + public global::LabelStudio.BlueprintRequest? Type85 { get; set; } /// /// /// - public global::LabelStudio.Blueprint? Type86 { get; set; } + public global::LabelStudio.BudgetResetPeriodEnum? Type86 { get; set; } /// /// /// - public global::LabelStudio.BlueprintRequest? Type87 { get; set; } + public global::LabelStudio.BulkIndicatorRun? Type87 { get; set; } /// /// /// - public global::LabelStudio.BudgetResetPeriodEnum? Type88 { get; set; } + public global::LabelStudio.BulkIndicatorsResponse? Type88 { get; set; } /// /// /// - public global::LabelStudio.BulkIndicatorRun? Type89 { get; set; } + public global::System.Collections.Generic.IList? Type89 { get; set; } /// /// /// - public global::LabelStudio.BulkIndicatorsResponse? Type90 { get; set; } + public global::LabelStudio.BulkOrganizationMemberTagAssignmentRequest? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type91 { get; set; } + public global::LabelStudio.BulkProjectLearningAssignmentRequest? Type91 { get; set; } /// /// /// - public global::LabelStudio.BulkOrganizationMemberTagAssignmentRequest? Type92 { get; set; } + public global::LabelStudio.BulkResetCourseProgressRequest? Type92 { get; set; } /// /// /// - public global::LabelStudio.BulkProjectLearningAssignmentRequest? Type93 { get; set; } + public global::LabelStudio.BulkTaskAssigneesRequestRequest? Type93 { get; set; } /// /// /// - public global::LabelStudio.BulkResetCourseProgressRequest? Type94 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequest? Type94 { get; set; } /// /// /// - public global::LabelStudio.BulkTaskAssigneesRequestRequest? Type95 { get; set; } + public global::LabelStudio.OneOf? Type95 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequest? Type96 { get; set; } + public global::LabelStudio.BulkTaskAssigneesRequestRequestSelectedItemsAllFalse? Type96 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type97 { get; set; } + public global::LabelStudio.BulkTaskAssigneesRequestRequestSelectedItemsAllTrue? Type97 { get; set; } /// /// /// - public global::LabelStudio.BulkTaskAssigneesRequestRequestSelectedItemsAllFalse? Type98 { get; set; } + public global::LabelStudio.CancelModelRunResponse? Type98 { get; set; } /// /// /// - public global::LabelStudio.BulkTaskAssigneesRequestRequestSelectedItemsAllTrue? Type99 { get; set; } + public global::LabelStudio.Certificate? Type99 { get; set; } /// /// /// - public global::LabelStudio.CancelModelRunResponse? Type100 { get; set; } + public global::LabelStudio.ChatCompletionRequestRequest? Type100 { get; set; } /// /// /// - public global::LabelStudio.Certificate? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::LabelStudio.ChatCompletionRequestRequest? Type102 { get; set; } + public global::LabelStudio.ChatMessageRequest? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::LabelStudio.ChatMessageRoleEnum? Type103 { get; set; } /// /// /// - public global::LabelStudio.ChatMessageRequest? Type104 { get; set; } + public global::LabelStudio.CheckMatchingFunctionRequestRequest? Type104 { get; set; } /// /// /// - public global::LabelStudio.ChatMessageRoleEnum? Type105 { get; set; } + public global::LabelStudio.ChildFilter? Type105 { get; set; } /// /// /// - public global::LabelStudio.CheckMatchingFunctionRequestRequest? Type106 { get; set; } + public global::LabelStudio.CollectionModeEnum? Type106 { get; set; } /// /// /// - public global::LabelStudio.ChildFilter? Type107 { get; set; } + public global::LabelStudio.Comment? Type107 { get; set; } /// /// /// - public global::LabelStudio.ChildFilterRequest? Type108 { get; set; } + public global::LabelStudio.CommentRequest? Type108 { get; set; } /// /// /// - public global::LabelStudio.CollectionModeEnum? Type109 { get; set; } + public global::LabelStudio.CommentSerializerWithExpandedUser? Type109 { get; set; } /// /// /// - public global::LabelStudio.Comment? Type110 { get; set; } + public global::LabelStudio.LseUser? Type110 { get; set; } /// /// /// - public global::LabelStudio.CommentRequest? Type111 { get; set; } + public global::LabelStudio.ConfigurablePermissionOption? Type111 { get; set; } /// /// /// - public global::LabelStudio.CommentSerializerWithExpandedUser? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::LabelStudio.LseUser? Type113 { get; set; } + public global::LabelStudio.ConjunctionEnum? Type113 { get; set; } /// /// /// - public global::LabelStudio.ConfigurablePermissionOption? Type114 { get; set; } + public global::System.Collections.Generic.Dictionary? Type114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type115 { get; set; } + public global::LabelStudio.ControlTagWeightRequest? Type115 { get; set; } /// /// /// - public global::LabelStudio.ConjunctionEnum? Type116 { get; set; } + public global::LabelStudio.ConvertedFormat? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type117 { get; set; } + public global::LabelStudio.ProjectImportStatusEnum? Type117 { get; set; } /// /// /// - public global::LabelStudio.ControlTagWeightRequest? Type118 { get; set; } + public global::LabelStudio.ConvertedFormatRequest? Type118 { get; set; } /// /// /// - public global::LabelStudio.ConvertedFormat? Type119 { get; set; } + public global::LabelStudio.CourseEditingSession? Type119 { get; set; } /// /// /// - public global::LabelStudio.ProjectImportStatusEnum? Type120 { get; set; } + public global::LabelStudio.CourseEditingSessionHeartbeatRequest? Type120 { get; set; } /// /// /// - public global::LabelStudio.ConvertedFormatRequest? Type121 { get; set; } + public global::LabelStudio.CourseEditingSessionResponse? Type121 { get; set; } /// /// /// - public global::LabelStudio.CourseEditingSession? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::LabelStudio.CourseEditingSessionHeartbeatRequest? Type123 { get; set; } + public global::LabelStudio.CourseModule? Type123 { get; set; } /// /// /// - public global::LabelStudio.CourseEditingSessionResponse? Type124 { get; set; } + public global::LabelStudio.CourseOutline? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::LabelStudio.CourseModule? Type126 { get; set; } + public global::LabelStudio.CourseOutlineModule? Type126 { get; set; } /// /// /// - public global::LabelStudio.CourseOutline? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type128 { get; set; } + public global::LabelStudio.CourseOutlinePage? Type128 { get; set; } /// /// /// - public global::LabelStudio.CourseOutlineModule? Type129 { get; set; } + public global::LabelStudio.CoursePageSaveResponse? Type129 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type130 { get; set; } + public global::LabelStudio.CourseProgressImportResult? Type130 { get; set; } /// /// /// - public global::LabelStudio.CourseOutlinePage? Type131 { get; set; } + public global::LabelStudio.CourseStructureOpRequest? Type131 { get; set; } /// /// /// - public global::LabelStudio.CoursePageSaveResponse? Type132 { get; set; } + public global::LabelStudio.OpEnum? Type132 { get; set; } /// /// /// - public global::LabelStudio.CourseProgressImportResult? Type133 { get; set; } + public global::LabelStudio.CourseStructureOpResponse? Type133 { get; set; } /// /// /// - public global::LabelStudio.CourseStructureOpRequest? Type134 { get; set; } + public global::System.Collections.Generic.IList? Type134 { get; set; } /// /// /// - public global::LabelStudio.OpEnum? Type135 { get; set; } + public global::LabelStudio.CreateProjectFromTemplateRequestRequest? Type135 { get; set; } /// /// /// - public global::LabelStudio.CourseStructureOpResponse? Type136 { get; set; } + public global::LabelStudio.CustomFunctionCodeRequestRequest? Type136 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type137 { get; set; } + public global::LabelStudio.DataManagerFilterModeEnum? Type137 { get; set; } /// /// /// - public global::LabelStudio.CreateProjectFromTemplateRequestRequest? Type138 { get; set; } + public global::LabelStudio.DataQualityAgreementConfusionMatrix? Type138 { get; set; } /// /// /// - public global::LabelStudio.CustomFunctionCodeRequestRequest? Type139 { get; set; } + public global::System.Collections.Generic.IList>? Type139 { get; set; } /// /// /// - public global::LabelStudio.DataManagerFilterModeEnum? Type140 { get; set; } + public global::System.Collections.Generic.IList? Type140 { get; set; } /// /// /// - public global::LabelStudio.DataQualityAgreementConfusionMatrix? Type141 { get; set; } + public global::LabelStudio.DataQualityConfusionPair? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type142 { get; set; } + public global::LabelStudio.DataQualityAgreementDimensions? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::LabelStudio.DataQualityAgreementDistribution? Type143 { get; set; } /// /// /// - public global::LabelStudio.DataQualityConfusionPair? Type144 { get; set; } + public global::LabelStudio.DatabricksExportStorage? Type144 { get; set; } /// /// /// - public global::LabelStudio.DataQualityAgreementDimensions? Type145 { get; set; } + public global::LabelStudio.DatabricksExportStorageValidateRequest? Type145 { get; set; } /// /// /// - public global::LabelStudio.DataQualityAgreementDistribution? Type146 { get; set; } + public global::LabelStudio.DatabricksExportStorageWriteRequest? Type146 { get; set; } /// /// /// - public global::LabelStudio.DatabricksExportStorage? Type147 { get; set; } + public global::LabelStudio.DatabricksImportStorage? Type147 { get; set; } /// /// /// - public global::LabelStudio.DatabricksExportStorageValidateRequest? Type148 { get; set; } + public global::LabelStudio.DatabricksImportStorageValidateRequest? Type148 { get; set; } /// /// /// - public global::LabelStudio.DatabricksExportStorageWriteRequest? Type149 { get; set; } + public global::LabelStudio.DatabricksImportStorageWriteRequest? Type149 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorage? Type150 { get; set; } + public global::LabelStudio.DefaultModelVersionNameResponse? Type150 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorageValidateRequest? Type151 { get; set; } + public global::LabelStudio.DefaultRole? Type151 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorageWriteRequest? Type152 { get; set; } + public global::LabelStudio.OrganizationRoleEnum? Type152 { get; set; } /// /// /// - public global::LabelStudio.Dataset? Type153 { get; set; } + public global::LabelStudio.Dimension? Type153 { get; set; } /// /// /// - public global::LabelStudio.DatasetColumn? Type154 { get; set; } + public global::LabelStudio.DimensionCreateRequest? Type154 { get; set; } /// /// /// - public global::LabelStudio.DatasetColumnVisibilityDefaults? Type155 { get; set; } + public global::LabelStudio.DimensionList? Type155 { get; set; } /// /// /// - public global::LabelStudio.DatasetColumnsResponse? Type156 { get; set; } + public global::LabelStudio.DimensionRequest? Type156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type157 { get; set; } + public global::LabelStudio.DuplicateLearningResourceRequest? Type157 { get; set; } /// /// /// - public global::LabelStudio.DatasetImportCandidatesCreateRequest? Type158 { get; set; } + public global::LabelStudio.EditionEnum? Type158 { get; set; } /// /// /// - public global::LabelStudio.DatasetImportCandidatesResponse? Type159 { get; set; } + public global::LabelStudio.EstimatedDurationUnitEnum? Type159 { get; set; } /// /// /// - public global::LabelStudio.DatasetMember? Type160 { get; set; } + public global::LabelStudio.Export? Type160 { get; set; } /// /// /// - public global::LabelStudio.DatasetMemberRequest? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::LabelStudio.DatasetRequest? Type162 { get; set; } + public global::LabelStudio.ExportConvertRequest? Type162 { get; set; } /// /// /// - public global::LabelStudio.UserSimpleRequest? Type163 { get; set; } + public global::LabelStudio.FSMTransitionExecuteRequestRequest? Type163 { get; set; } /// /// /// - public global::LabelStudio.DatasetStorageAvailableDataType? Type164 { get; set; } + public global::LabelStudio.FSMTransitionExecuteResponse? Type164 { get; set; } /// /// /// - public global::LabelStudio.DatasetStorageColumnType? Type165 { get; set; } + public global::LabelStudio.StateModel? Type165 { get; set; } /// /// /// - public global::LabelStudio.DatasetStorageColumnsResponse? Type166 { get; set; } + public global::LabelStudio.FewShotExample? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::LabelStudio.FewShotExampleRequest? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::LabelStudio.FileUpload? Type168 { get; set; } /// /// /// - public global::LabelStudio.DatasetTasksMetadataResponse? Type169 { get; set; } + public global::LabelStudio.Filter? Type169 { get; set; } /// /// /// - public global::LabelStudio.DatasetView? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// @@ -726,2947 +726,2779 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::LabelStudio.DatasetViewLockedBy? Type172 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::LabelStudio.DatasetViewRequest? Type173 { get; set; } + public global::LabelStudio.FilteredLabelDistributionUnavailable? Type173 { get; set; } /// /// /// - public global::LabelStudio.FilterGroupRequest? Type174 { get; set; } + public global::LabelStudio.FlexActiveBlock? Type174 { get; set; } /// /// /// - public global::LabelStudio.DefaultModelVersionNameResponse? Type175 { get; set; } + public global::System.Collections.Generic.IList? Type175 { get; set; } /// /// /// - public global::LabelStudio.DefaultRole? Type176 { get; set; } + public global::LabelStudio.GCPCustomFunctionUpdateRequest? Type176 { get; set; } /// /// /// - public global::LabelStudio.OrganizationRoleEnum? Type177 { get; set; } + public global::LabelStudio.GCSExportStorage? Type177 { get; set; } /// /// /// - public global::LabelStudio.Dimension? Type178 { get; set; } + public global::LabelStudio.GCSExportStorageValidateRequest? Type178 { get; set; } /// /// /// - public global::LabelStudio.DimensionCreateRequest? Type179 { get; set; } + public global::LabelStudio.GCSExportStorageWriteRequest? Type179 { get; set; } /// /// /// - public global::LabelStudio.DimensionList? Type180 { get; set; } + public global::LabelStudio.GCSImportStorage? Type180 { get; set; } /// /// /// - public global::LabelStudio.DimensionRequest? Type181 { get; set; } + public global::LabelStudio.GCSImportStorageValidateRequest? Type181 { get; set; } /// /// /// - public global::LabelStudio.DuplicateLearningResourceRequest? Type182 { get; set; } + public global::LabelStudio.GCSImportStorageWriteRequest? Type182 { get; set; } /// /// /// - public global::LabelStudio.EditionEnum? Type183 { get; set; } + public global::LabelStudio.GCSSAExportStorage? Type183 { get; set; } /// /// /// - public global::LabelStudio.EstimatedDurationUnitEnum? Type184 { get; set; } + public global::LabelStudio.GCSSAExportStorageRequest? Type184 { get; set; } /// /// /// - public global::LabelStudio.Export? Type185 { get; set; } + public global::LabelStudio.GCSSAImportStorage? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::LabelStudio.GCSSAImportStorageRequest? Type186 { get; set; } /// /// /// - public global::LabelStudio.ExportConvertRequest? Type187 { get; set; } + public global::LabelStudio.GCSWIFExportStorage? Type187 { get; set; } /// /// /// - public global::LabelStudio.FSMTransitionExecuteRequestRequest? Type188 { get; set; } + public global::LabelStudio.GCSWIFExportStorageRequest? Type188 { get; set; } /// /// /// - public global::LabelStudio.FSMTransitionExecuteResponse? Type189 { get; set; } + public global::LabelStudio.GCSWIFImportStorage? Type189 { get; set; } /// /// /// - public global::LabelStudio.StateModel? Type190 { get; set; } + public global::LabelStudio.GCSWIFImportStorageRequest? Type190 { get; set; } /// /// /// - public global::LabelStudio.FewShotExample? Type191 { get; set; } + public global::LabelStudio.Hotkeys? Type191 { get; set; } /// /// /// - public global::LabelStudio.FewShotExampleRequest? Type192 { get; set; } + public global::LabelStudio.ImportApiRequest? Type192 { get; set; } /// /// /// - public global::LabelStudio.FileUpload? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::LabelStudio.Filter? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::LabelStudio.PredictionRequest? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::LabelStudio.InferenceRunCostEstimate? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::LabelStudio.InterfaceMoveBlockerEnum? Type197 { get; set; } /// /// /// - public global::LabelStudio.FilterRequest? Type198 { get; set; } + public global::LabelStudio.InterfaceMoveBlockingReasonEnum? Type198 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type199 { get; set; } + public global::LabelStudio.InterfaceMoveCodeEnum? Type199 { get; set; } /// /// /// - public global::LabelStudio.FilteredLabelDistributionUnavailable? Type200 { get; set; } + public global::LabelStudio.InterfaceMoveNoticeEnum? Type200 { get; set; } /// /// /// - public global::LabelStudio.FlexActiveBlock? Type201 { get; set; } + public global::LabelStudio.InterfaceMoveOutcomeEnum? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::LabelStudio.JobDetail? Type202 { get; set; } /// /// /// - public global::LabelStudio.GCPCustomFunctionUpdateRequest? Type203 { get; set; } + public global::LabelStudio.JobException? Type203 { get; set; } /// /// /// - public global::LabelStudio.GCSDatasetStorage? Type204 { get; set; } + public global::LabelStudio.JobListEntry? Type204 { get; set; } /// /// /// - public global::LabelStudio.GCSDatasetStorageRequest? Type205 { get; set; } + public global::LabelStudio.JobQuota? Type205 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorage? Type206 { get; set; } + public global::LabelStudio.JobsListResponse? Type206 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorageValidateRequest? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorageWriteRequest? Type208 { get; set; } + public global::LabelStudio.JobsSummary? Type208 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorage? Type209 { get; set; } + public global::LabelStudio.KPIDetailResponse? Type209 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorageValidateRequest? Type210 { get; set; } + public global::LabelStudio.KPIProjectSegment? Type210 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorageWriteRequest? Type211 { get; set; } + public global::LabelStudio.KPIUserSegment? Type211 { get; set; } /// /// /// - public global::LabelStudio.GCSSAExportStorage? Type212 { get; set; } + public global::LabelStudio.KPIUserProjectSegment? Type212 { get; set; } /// /// /// - public global::LabelStudio.GCSSAExportStorageRequest? Type213 { get; set; } + public global::LabelStudio.KPIMatrixSegment? Type213 { get; set; } /// /// /// - public global::LabelStudio.GCSSAImportStorage? Type214 { get; set; } + public global::LabelStudio.KPIProjectMatrixSegment? Type214 { get; set; } /// /// /// - public global::LabelStudio.GCSSAImportStorageRequest? Type215 { get; set; } + public global::LabelStudio.SegmentationEnum? Type215 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorage? Type216 { get; set; } + public global::LabelStudio.KPITimeSegment? Type216 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorageRequest? Type217 { get; set; } + public global::LabelStudio.KPIValue? Type217 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorage? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorageRequest? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::LabelStudio.Hotkeys? Type220 { get; set; } + public global::LabelStudio.KPIUserInfo? Type220 { get; set; } /// /// /// - public global::LabelStudio.ImportApiRequest? Type221 { get; set; } + public global::LabelStudio.KPIMetadata? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::LabelStudio.KPIProjectInfo? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::LabelStudio.PredictionRequest? Type224 { get; set; } + public global::System.Collections.Generic.IList?>? Type224 { get; set; } /// /// /// - public global::LabelStudio.InferenceRunCostEstimate? Type225 { get; set; } + public global::LabelStudio.OneOf? Type225 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveBlockerEnum? Type226 { get; set; } + public global::LabelStudio.KPIUserProjectInfo? Type226 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveBlockingReasonEnum? Type227 { get; set; } + public global::System.Collections.Generic.IList? Type227 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveCodeEnum? Type228 { get; set; } + public global::LabelStudio.LSAPITokenBlacklistRequest? Type228 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveNoticeEnum? Type229 { get; set; } + public global::LabelStudio.LSAPITokenRotateRequest? Type229 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveOutcomeEnum? Type230 { get; set; } + public global::LabelStudio.LSEAPITokenCreate? Type230 { get; set; } /// /// /// - public global::LabelStudio.JobDetail? Type231 { get; set; } + public global::LabelStudio.LSEAPITokenList? Type231 { get; set; } /// /// /// - public global::LabelStudio.JobException? Type232 { get; set; } + public global::LabelStudio.LSEJWTSettings? Type232 { get; set; } /// /// /// - public global::LabelStudio.JobListEntry? Type233 { get; set; } + public global::LabelStudio.LSEJWTSettingsRequest? Type233 { get; set; } /// /// /// - public global::LabelStudio.JobQuota? Type234 { get; set; } + public global::LabelStudio.LSEKeyIndicatorValue? Type234 { get; set; } /// /// /// - public global::LabelStudio.JobsListResponse? Type235 { get; set; } + public global::LabelStudio.Label? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type236 { get; set; } + public global::LabelStudio.LabelBulkUpdateRequest? Type236 { get; set; } /// /// /// - public global::LabelStudio.JobsSummary? Type237 { get; set; } + public global::LabelStudio.LabelBulkUpdateResponse? Type237 { get; set; } /// /// /// - public global::LabelStudio.KPIDetailResponse? Type238 { get; set; } + public global::LabelStudio.LabelCreate? Type238 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectSegment? Type239 { get; set; } + public global::LabelStudio.LabelCreateRequest? Type239 { get; set; } /// /// /// - public global::LabelStudio.KPIUserSegment? Type240 { get; set; } + public global::LabelStudio.LabelDistributionCountsResponse? Type240 { get; set; } /// /// /// - public global::LabelStudio.KPIUserProjectSegment? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::LabelStudio.KPIMatrixSegment? Type242 { get; set; } + public global::LabelStudio.LabelDistributionCountsRow? Type242 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectMatrixSegment? Type243 { get; set; } + public global::LabelStudio.LabelDistributionCountsTotals? Type243 { get; set; } /// /// /// - public global::LabelStudio.SegmentationEnum? Type244 { get; set; } + public global::LabelStudio.LabelDistributionStructureDimension? Type244 { get; set; } /// /// /// - public global::LabelStudio.KPITimeSegment? Type245 { get; set; } + public global::LabelStudio.LabelDistributionStructureResponse? Type245 { get; set; } /// /// /// - public global::LabelStudio.KPIValue? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::LabelStudio.LabelDistributionValidationError? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::LabelStudio.LabelDistributionValidationErrors? Type248 { get; set; } /// /// /// - public global::LabelStudio.KPIUserInfo? Type249 { get; set; } + public global::LabelStudio.OneOf>? Type249 { get; set; } /// /// /// - public global::LabelStudio.KPIMetadata? Type250 { get; set; } + public global::LabelStudio.LabelLink? Type250 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectInfo? Type251 { get; set; } + public global::LabelStudio.LabelLinkRequest? Type251 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type252 { get; set; } + public global::LabelStudio.LearningProgressResponse? Type252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type253 { get; set; } + public global::LabelStudio.LearningProgressUpdateRequest? Type253 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type254 { get; set; } + public global::LabelStudio.LearningResource? Type254 { get; set; } /// /// /// - public global::LabelStudio.KPIUserProjectInfo? Type255 { get; set; } + public global::LabelStudio.LearningResourceAssignmentSummary? Type255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type256 { get; set; } + public global::LabelStudio.UserLearningProgress? Type256 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenBlacklistRequest? Type257 { get; set; } + public global::LabelStudio.LearningResourceCountsItem? Type257 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenRotateRequest? Type258 { get; set; } + public global::LabelStudio.LearningResourceCountsResponse? Type258 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenCreate? Type259 { get; set; } + public global::System.Collections.Generic.IList? Type259 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenList? Type260 { get; set; } + public global::LabelStudio.LearningResourceCreate? Type260 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettings? Type261 { get; set; } + public global::LabelStudio.LearningResourceCreateRequest? Type261 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettingsRequest? Type262 { get; set; } + public global::LabelStudio.LearningResourceDetail? Type262 { get; set; } /// /// /// - public global::LabelStudio.LSEKeyIndicatorValue? Type263 { get; set; } + public global::LabelStudio.LearningResourceList? Type263 { get; set; } /// /// /// - public global::LabelStudio.Label? Type264 { get; set; } + public global::LabelStudio.LearningResourceRequest? Type264 { get; set; } /// /// /// - public global::LabelStudio.LabelBulkUpdateRequest? Type265 { get; set; } + public global::LabelStudio.LearningResourceUpdate? Type265 { get; set; } /// /// /// - public global::LabelStudio.LabelBulkUpdateResponse? Type266 { get; set; } + public global::LabelStudio.LearningResourceUploadResponse? Type266 { get; set; } /// /// /// - public global::LabelStudio.LabelCreate? Type267 { get; set; } + public global::LabelStudio.LocalFilesExportStorage? Type267 { get; set; } /// /// /// - public global::LabelStudio.LabelCreateRequest? Type268 { get; set; } + public global::LabelStudio.LocalFilesExportStorageValidateRequest? Type268 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsResponse? Type269 { get; set; } + public global::LabelStudio.LocalFilesExportStorageWriteRequest? Type269 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type270 { get; set; } + public global::LabelStudio.LocalFilesImportStorage? Type270 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsRow? Type271 { get; set; } + public global::LabelStudio.LocalFilesImportStorageValidateRequest? Type271 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsTotals? Type272 { get; set; } + public global::LabelStudio.LocalFilesImportStorageWriteRequest? Type272 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureDimension? Type273 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptions? Type273 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureResponse? Type274 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type274 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type275 { get; set; } + public global::LabelStudio.LseExportCreate? Type275 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionValidationError? Type276 { get; set; } + public global::LabelStudio.SerializationOptions? Type276 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionValidationErrors? Type277 { get; set; } + public global::LabelStudio.LseTaskFilterOptions? Type277 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type278 { get; set; } + public global::LabelStudio.LseExportCreateRequest? Type278 { get; set; } /// /// /// - public global::LabelStudio.LabelLink? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// /// /// - public global::LabelStudio.LabelLinkRequest? Type280 { get; set; } + public global::LabelStudio.UserSimpleRequest? Type280 { get; set; } /// /// /// - public global::LabelStudio.LearningProgressResponse? Type281 { get; set; } + public global::LabelStudio.SerializationOptionsRequest? Type281 { get; set; } /// /// /// - public global::LabelStudio.LearningProgressUpdateRequest? Type282 { get; set; } + public global::LabelStudio.LseTaskFilterOptionsRequest? Type282 { get; set; } /// /// /// - public global::LabelStudio.LearningResource? Type283 { get; set; } + public global::LabelStudio.LseFields? Type283 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceAssignmentSummary? Type284 { get; set; } + public global::LabelStudio.OnboardingStateEnum? Type284 { get; set; } /// /// /// - public global::LabelStudio.UserLearningProgress? Type285 { get; set; } + public global::LabelStudio.TrialRoleEnum? Type285 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCountsItem? Type286 { get; set; } + public global::LabelStudio.LseFieldsRequest? Type286 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCountsResponse? Type287 { get; set; } + public global::LabelStudio.LseInterface? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::LabelStudio.LseInterfaceAppendVersionRequest? Type288 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCreate? Type289 { get; set; } + public global::LabelStudio.LseInterfaceAppendVersionsRequest? Type289 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCreateRequest? Type290 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceDetail? Type291 { get; set; } + public global::LabelStudio.LseInterfaceDuplicateRequestModeEnum? Type291 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceList? Type292 { get; set; } + public global::LabelStudio.LseInterfaceDuplicateRequestRequest? Type292 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceRequest? Type293 { get; set; } + public global::LabelStudio.LseInterfaceList? Type293 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceUpdate? Type294 { get; set; } + public global::LabelStudio.LseInterfaceMovePlan? Type294 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceUploadResponse? Type295 { get; set; } + public global::System.Collections.Generic.IList? Type295 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorage? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorageValidateRequest? Type297 { get; set; } + public global::LabelStudio.LseInterfaceMoveWorkspace? Type297 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorageWriteRequest? Type298 { get; set; } + public global::System.Collections.Generic.IList? Type298 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorage? Type299 { get; set; } + public global::LabelStudio.LseInterfaceMoveWorkspaceGroup? Type299 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorageValidateRequest? Type300 { get; set; } + public global::LabelStudio.LseInterfaceMoveProject? Type300 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorageWriteRequest? Type301 { get; set; } + public global::System.Collections.Generic.IList? Type301 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptions? Type302 { get; set; } + public global::LabelStudio.LseInterfaceMoveRequestRequest? Type302 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type303 { get; set; } + public global::System.Collections.Generic.IList? Type303 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreate? Type304 { get; set; } + public global::LabelStudio.LseInterfaceRequest? Type304 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptions? Type305 { get; set; } + public global::LabelStudio.LseInterfaceVersionDescriptionRequest? Type305 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptions? Type306 { get; set; } + public global::LabelStudio.LseInterfaceVersionIdRequest? Type306 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreateRequest? Type307 { get; set; } + public global::LabelStudio.LseOrganization? Type307 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type308 { get; set; } + public global::LabelStudio.OrganizationBilling? Type308 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionsRequest? Type309 { get; set; } + public global::LabelStudio.LseOrganizationMemberList? Type309 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptionsRequest? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::LabelStudio.LseFields? Type311 { get; set; } + public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type311 { get; set; } /// /// /// - public global::LabelStudio.OnboardingStateEnum? Type312 { get; set; } + public global::System.Collections.Generic.IList? Type312 { get; set; } /// /// /// - public global::LabelStudio.TrialRoleEnum? Type313 { get; set; } + public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type313 { get; set; } /// /// /// - public global::LabelStudio.LseFieldsRequest? Type314 { get; set; } + public global::LabelStudio.RoleSourceEnum? Type314 { get; set; } /// /// /// - public global::LabelStudio.LseInterface? Type315 { get; set; } + public global::System.Collections.Generic.IList? Type315 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceAppendVersionRequest? Type316 { get; set; } + public global::LabelStudio.MemberSkill? Type316 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceAppendVersionsRequest? Type317 { get; set; } + public global::System.Collections.Generic.IList? Type317 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type318 { get; set; } + public global::LabelStudio.SimpleOrganizationMemberTag? Type318 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceDuplicateRequestModeEnum? Type319 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberList? Type319 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceDuplicateRequestRequest? Type320 { get; set; } + public global::LabelStudio.LseProject? Type320 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceList? Type321 { get; set; } + public global::LabelStudio.LseProjectDmColumnDefaults? Type321 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMovePlan? Type322 { get; set; } + public global::LabelStudio.LseProjectDmColumnDefaultsExplore? Type322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type323 { get; set; } + public global::LabelStudio.LseProjectDmColumnDefaultsLabeling? Type323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type324 { get; set; } + public global::LabelStudio.LseProjectCounts? Type324 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveWorkspace? Type325 { get; set; } + public global::LabelStudio.LseProjectCreate? Type325 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type326 { get; set; } + public global::LabelStudio.LseProjectCreateDmColumnDefaults? Type326 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveWorkspaceGroup? Type327 { get; set; } + public global::LabelStudio.LseProjectCreateDmColumnDefaultsExplore? Type327 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveProject? Type328 { get; set; } + public global::LabelStudio.LseProjectCreateDmColumnDefaultsLabeling? Type328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::LabelStudio.LseProjectCreateRequest? Type329 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveRequestRequest? Type330 { get; set; } + public global::System.Collections.Generic.Dictionary? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::LabelStudio.LseProjectCreateRequestDmColumnDefaults? Type331 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceRequest? Type332 { get; set; } + public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsExplore? Type332 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceVersionDescriptionRequest? Type333 { get; set; } + public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsLabeling? Type333 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceVersionIdRequest? Type334 { get; set; } + public global::LabelStudio.LseProjectParams? Type334 { get; set; } /// /// /// - public global::LabelStudio.LseOrganization? Type335 { get; set; } + public global::LabelStudio.LseProjectParamsRequest? Type335 { get; set; } /// /// /// - public global::LabelStudio.OrganizationBilling? Type336 { get; set; } + public global::LabelStudio.LseProjectResponse? Type336 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberList? Type337 { get; set; } + public global::LabelStudio.LseProjectResponseDmColumnDefaults? Type337 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type338 { get; set; } + public global::LabelStudio.LseProjectResponseDmColumnDefaultsExplore? Type338 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type339 { get; set; } + public global::LabelStudio.LseProjectResponseDmColumnDefaultsLabeling? Type339 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type340 { get; set; } + public global::LabelStudio.LseProjectStateResponse? Type340 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type341 { get; set; } + public global::LabelStudio.LseS3ExportStorage? Type341 { get; set; } /// /// /// - public global::LabelStudio.RoleSourceEnum? Type342 { get; set; } + public global::LabelStudio.LseS3ExportStorageRequest? Type342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type343 { get; set; } + public global::LabelStudio.LseS3ImportStorage? Type343 { get; set; } /// /// /// - public global::LabelStudio.MemberSkill? Type344 { get; set; } + public global::LabelStudio.LseS3ImportStorageRequest? Type344 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type345 { get; set; } + public global::LabelStudio.LseTask? Type345 { get; set; } /// /// /// - public global::LabelStudio.SimpleOrganizationMemberTag? Type346 { get; set; } + public global::System.Collections.Generic.IList? Type346 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberList? Type347 { get; set; } + public global::LabelStudio.LseTaskDraft? Type347 { get; set; } /// /// /// - public global::LabelStudio.LseProject? Type348 { get; set; } + public global::System.Collections.Generic.IList? Type348 { get; set; } /// /// /// - public global::LabelStudio.LseProjectDmColumnDefaults? Type349 { get; set; } + public global::LabelStudio.LseTaskPrediction? Type349 { get; set; } /// /// /// - public global::LabelStudio.LseProjectDmColumnDefaultsExplore? Type350 { get; set; } + public global::LabelStudio.LseTaskRequest? Type350 { get; set; } /// /// /// - public global::LabelStudio.LseProjectDmColumnDefaultsLabeling? Type351 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotators? Type351 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCounts? Type352 { get; set; } + public global::System.Collections.Generic.IList? Type352 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreate? Type353 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type353 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateDmColumnDefaults? Type354 { get; set; } + public global::System.Collections.Generic.IList? Type354 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateDmColumnDefaultsExplore? Type355 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type355 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateDmColumnDefaultsLabeling? Type356 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewers? Type356 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequest? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type358 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type358 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequestDmColumnDefaults? Type359 { get; set; } + public global::System.Collections.Generic.IList? Type359 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsExplore? Type360 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type360 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsLabeling? Type361 { get; set; } + public global::System.Collections.Generic.Dictionary? Type361 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParams? Type362 { get; set; } + public global::System.Collections.Generic.IList? Type362 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParamsRequest? Type363 { get; set; } + public global::LabelStudio.OrganizationMembership? Type363 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponse? Type364 { get; set; } + public global::LabelStudio.LseUserAPI? Type364 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponseDmColumnDefaults? Type365 { get; set; } + public global::System.Collections.Generic.IList? Type365 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponseDmColumnDefaultsExplore? Type366 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type366 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponseDmColumnDefaultsLabeling? Type367 { get; set; } + public global::System.Collections.Generic.IList? Type367 { get; set; } /// /// /// - public global::LabelStudio.LseProjectStateResponse? Type368 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type368 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorage? Type369 { get; set; } + public global::LabelStudio.LseUserRequest? Type369 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorageRequest? Type370 { get; set; } + public global::LabelStudio.MLBackend? Type370 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorage? Type371 { get; set; } + public global::LabelStudio.StateEnum? Type371 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorageRequest? Type372 { get; set; } + public global::LabelStudio.MLBackendRequest? Type372 { get; set; } /// /// /// - public global::LabelStudio.LseTask? Type373 { get; set; } + public global::LabelStudio.MLBackendRequestRequest? Type373 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type374 { get; set; } + public global::LabelStudio.MLBackendTrainRequestRequest? Type374 { get; set; } /// /// /// - public global::LabelStudio.LseTaskDraft? Type375 { get; set; } + public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type375 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type376 { get; set; } + public global::LabelStudio.MappingStatusEnum? Type376 { get; set; } /// /// /// - public global::LabelStudio.LseTaskPrediction? Type377 { get; set; } + public global::LabelStudio.MaybeExpandedComment? Type377 { get; set; } /// /// /// - public global::LabelStudio.LseTaskRequest? Type378 { get; set; } + public global::LabelStudio.MemberSkillStatusEnum? Type378 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotators? Type379 { get; set; } + public global::LabelStudio.MetricParam? Type379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type380 { get; set; } + public global::LabelStudio.MetricParamUpdateRequest? Type380 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type381 { get; set; } + public global::LabelStudio.ModelInterface? Type381 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type382 { get; set; } + public global::LabelStudio.SkillNameEnum? Type382 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type383 { get; set; } + public global::LabelStudio.ModelInterfaceRequest? Type383 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewers? Type384 { get; set; } + public global::LabelStudio.ModelInterfaceSerializerGET? Type384 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type385 { get; set; } + public global::System.Collections.Generic.IList? Type385 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type386 { get; set; } + public global::LabelStudio.ModelProviderConnection? Type386 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type387 { get; set; } + public global::LabelStudio.ProviderEnum? Type387 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type388 { get; set; } + public global::LabelStudio.ScopeEnum? Type388 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type389 { get; set; } + public global::LabelStudio.ModelProviderConnectionRequest? Type389 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type390 { get; set; } + public global::LabelStudio.ModelRun? Type390 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembership? Type391 { get; set; } + public global::LabelStudio.ProjectSubsetEnum? Type391 { get; set; } /// /// /// - public global::LabelStudio.LseUserAPI? Type392 { get; set; } + public global::LabelStudio.ModelRunStatusEnum? Type392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type393 { get; set; } + public global::LabelStudio.ModelRunRequestRequest? Type393 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type394 { get; set; } + public global::LabelStudio.OperatorEnum? Type394 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type395 { get; set; } + public global::LabelStudio.OrganizationId? Type395 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type396 { get; set; } + public global::LabelStudio.OrganizationInvite? Type396 { get; set; } /// /// /// - public global::LabelStudio.LseUserRequest? Type397 { get; set; } + public global::LabelStudio.OrganizationMember? Type397 { get; set; } /// /// /// - public global::LabelStudio.MLBackend? Type398 { get; set; } + public global::System.Collections.Generic.IList? Type398 { get; set; } /// /// /// - public global::LabelStudio.StateEnum? Type399 { get; set; } + public global::LabelStudio.OrganizationMemberContributedToProject? Type399 { get; set; } /// /// /// - public global::LabelStudio.MLBackendRequest? Type400 { get; set; } + public global::System.Collections.Generic.IList? Type400 { get; set; } /// /// /// - public global::LabelStudio.MLBackendRequestRequest? Type401 { get; set; } + public global::LabelStudio.OrganizationMemberCreatedProject? Type401 { get; set; } /// /// /// - public global::LabelStudio.MLBackendTrainRequestRequest? Type402 { get; set; } + public global::LabelStudio.OrganizationMemberFilterRequestRequest? Type402 { get; set; } /// /// /// - public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type403 { get; set; } + public global::LabelStudio.OrganizationMemberFilterSchema? Type403 { get; set; } /// /// /// - public global::LabelStudio.MappingStatusEnum? Type404 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipOption? Type404 { get; set; } /// /// /// - public global::LabelStudio.MaybeExpandedComment? Type405 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipOptionKindEnum? Type405 { get; set; } /// /// /// - public global::LabelStudio.MemberSkillStatusEnum? Type406 { get; set; } + public global::System.Collections.Generic.IList? Type406 { get; set; } /// /// /// - public global::LabelStudio.MetricParam? Type407 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipProjectOption? Type407 { get; set; } /// /// /// - public global::LabelStudio.MetricParamUpdateRequest? Type408 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipProjectOptionKindEnum? Type408 { get; set; } /// /// /// - public global::LabelStudio.ModelInterface? Type409 { get; set; } + public global::LabelStudio.OrganizationMemberSkillsOption? Type409 { get; set; } /// /// /// - public global::LabelStudio.SkillNameEnum? Type410 { get; set; } + public global::LabelStudio.OrganizationMemberTag? Type410 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceRequest? Type411 { get; set; } + public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type411 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceSerializerGET? Type412 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type413 { get; set; } + public byte[]? Type413 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnection? Type414 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatus? Type414 { get; set; } /// /// /// - public global::LabelStudio.ProviderEnum? Type415 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type415 { get; set; } /// /// /// - public global::LabelStudio.ScopeEnum? Type416 { get; set; } + public global::LabelStudio.OrganizationMemberTagRequest? Type416 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnectionRequest? Type417 { get; set; } + public global::LabelStudio.OrganizationMembershipRequest? Type417 { get; set; } /// /// /// - public global::LabelStudio.ModelRun? Type418 { get; set; } + public global::LabelStudio.OrganizationPermission? Type418 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetEnum? Type419 { get; set; } + public global::System.Collections.Generic.IList? Type419 { get; set; } /// /// /// - public global::LabelStudio.ModelRunStatusEnum? Type420 { get; set; } + public global::LabelStudio.OrganizationPermissionRoleEnum? Type420 { get; set; } /// /// /// - public global::LabelStudio.ModelRunRequestRequest? Type421 { get; set; } + public global::System.Collections.Generic.IList? Type421 { get; set; } /// /// /// - public global::LabelStudio.OperatorEnum? Type422 { get; set; } + public global::LabelStudio.OrganizationPermissionRequest? Type422 { get; set; } /// /// /// - public global::LabelStudio.OrganizationId? Type423 { get; set; } + public global::LabelStudio.OrganizationRoleAssignment? Type423 { get; set; } /// /// /// - public global::LabelStudio.OrganizationInvite? Type424 { get; set; } + public global::LabelStudio.PaginatedAllRolesProjectListList? Type424 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMember? Type425 { get; set; } + public global::System.Collections.Generic.IList? Type425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type426 { get; set; } + public global::LabelStudio.PaginatedAnnotationHistoryList? Type426 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberContributedToProject? Type427 { get; set; } + public global::System.Collections.Generic.IList? Type427 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type428 { get; set; } + public global::LabelStudio.PaginatedCertificateList? Type428 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberCreatedProject? Type429 { get; set; } + public global::System.Collections.Generic.IList? Type429 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberFilterRequestRequest? Type430 { get; set; } + public global::LabelStudio.PaginatedCourseModuleList? Type430 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberFilterSchema? Type431 { get; set; } + public global::LabelStudio.PaginatedLabelCreateList? Type431 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipOption? Type432 { get; set; } + public global::System.Collections.Generic.IList? Type432 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipOptionKindEnum? Type433 { get; set; } + public global::LabelStudio.PaginatedLabelLinkList? Type433 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type434 { get; set; } + public global::System.Collections.Generic.IList? Type434 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipProjectOption? Type435 { get; set; } + public global::LabelStudio.PaginatedLabelList? Type435 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipProjectOptionKindEnum? Type436 { get; set; } + public global::System.Collections.Generic.IList? Type436 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberSkillsOption? Type437 { get; set; } + public global::LabelStudio.PaginatedLearningResourceListList? Type437 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTag? Type438 { get; set; } + public global::System.Collections.Generic.IList? Type438 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type439 { get; set; } + public global::LabelStudio.PaginatedLseInterfaceListList? Type439 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type440 { get; set; } + public global::System.Collections.Generic.IList? Type440 { get; set; } /// /// /// - public byte[]? Type441 { get; set; } + public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type441 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatus? Type442 { get; set; } + public global::System.Collections.Generic.IList? Type442 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type443 { get; set; } + public global::LabelStudio.PaginatedLseProjectCountsList? Type443 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagRequest? Type444 { get; set; } + public global::System.Collections.Generic.IList? Type444 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembershipRequest? Type445 { get; set; } + public global::LabelStudio.PaginatedLseUserList? Type445 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermission? Type446 { get; set; } + public global::System.Collections.Generic.IList? Type446 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type447 { get; set; } + public global::LabelStudio.PaginatedModelInterfaceSerializerGETList? Type447 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermissionRoleEnum? Type448 { get; set; } + public global::System.Collections.Generic.IList? Type448 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type449 { get; set; } + public global::LabelStudio.PaginatedOrganizationMemberTagList? Type449 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermissionRequest? Type450 { get; set; } + public global::System.Collections.Generic.IList? Type450 { get; set; } /// /// /// - public global::LabelStudio.OrganizationRoleAssignment? Type451 { get; set; } + public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type451 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAllRolesProjectListList? Type452 { get; set; } + public global::System.Collections.Generic.IList? Type452 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type453 { get; set; } + public global::LabelStudio.PaginatedProjectMember? Type453 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAnnotationHistoryList? Type454 { get; set; } + public global::LabelStudio.PaginatedProjectImportListList? Type454 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type455 { get; set; } + public global::System.Collections.Generic.IList? Type455 { get; set; } /// /// /// - public global::LabelStudio.PaginatedCertificateList? Type456 { get; set; } + public global::LabelStudio.ProjectImportList? Type456 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type457 { get; set; } + public global::LabelStudio.PaginatedProjectReimportListList? Type457 { get; set; } /// /// /// - public global::LabelStudio.PaginatedCourseModuleList? Type458 { get; set; } + public global::System.Collections.Generic.IList? Type458 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelCreateList? Type459 { get; set; } + public global::LabelStudio.ProjectReimportList? Type459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type460 { get; set; } + public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type460 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelLinkList? Type461 { get; set; } + public global::System.Collections.Generic.IList? Type461 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type462 { get; set; } + public global::LabelStudio.ProjectSubsetTasksResponse? Type462 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelList? Type463 { get; set; } + public global::LabelStudio.PaginatedRoleBasedTaskList? Type463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type464 { get; set; } + public global::System.Collections.Generic.IList? Type464 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLearningResourceListList? Type465 { get; set; } + public global::LabelStudio.RoleBasedTask? Type465 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type466 { get; set; } + public global::LabelStudio.PaginatedSeatReportList? Type466 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseInterfaceListList? Type467 { get; set; } + public global::System.Collections.Generic.IList? Type467 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type468 { get; set; } + public global::LabelStudio.SeatReport? Type468 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type469 { get; set; } + public global::LabelStudio.PaginatedStateModelList? Type469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type470 { get; set; } + public global::System.Collections.Generic.IList? Type470 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseProjectCountsList? Type471 { get; set; } + public global::LabelStudio.PaginatedUserLearningProgressListList? Type471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type472 { get; set; } + public global::System.Collections.Generic.IList? Type472 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseUserList? Type473 { get; set; } + public global::LabelStudio.UserLearningProgressList? Type473 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type474 { get; set; } + public global::LabelStudio.PatchedAnalyticsViewRequest? Type474 { get; set; } /// /// /// - public global::LabelStudio.PaginatedModelInterfaceSerializerGETList? Type475 { get; set; } + public global::LabelStudio.PatchedAnnotationRequest? Type475 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type476 { get; set; } + public global::LabelStudio.PatchedAnnotationReviewRequest? Type476 { get; set; } /// /// /// - public global::LabelStudio.PaginatedOrganizationMemberTagList? Type477 { get; set; } + public global::LabelStudio.PatchedAzureBlobExportStorageWriteRequest? Type477 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type478 { get; set; } + public global::LabelStudio.PatchedAzureBlobImportStorageWriteRequest? Type478 { get; set; } /// /// /// - public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type479 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type479 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type480 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type480 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectMember? Type481 { get; set; } + public global::LabelStudio.PatchedBlueprintUpdateRequest? Type481 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectImportListList? Type482 { get; set; } + public global::LabelStudio.PatchedCommentRequest? Type482 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type483 { get; set; } + public global::LabelStudio.PatchedCoursePageUpdateRequest? Type483 { get; set; } /// /// /// - public global::LabelStudio.ProjectImportList? Type484 { get; set; } + public global::LabelStudio.PatchedDatabricksExportStorageWriteRequest? Type484 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectReimportListList? Type485 { get; set; } + public global::LabelStudio.PatchedDatabricksImportStorageWriteRequest? Type485 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type486 { get; set; } + public global::LabelStudio.PatchedDefaultRoleRequest? Type486 { get; set; } /// /// /// - public global::LabelStudio.ProjectReimportList? Type487 { get; set; } + public global::LabelStudio.PatchedDimensionRequest? Type487 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type488 { get; set; } + public global::LabelStudio.PatchedFewShotExampleRequest? Type488 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type489 { get; set; } + public global::LabelStudio.PatchedFileUploadRequest? Type489 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTasksResponse? Type490 { get; set; } + public global::LabelStudio.PatchedGCSExportStorageWriteRequest? Type490 { get; set; } /// /// /// - public global::LabelStudio.PaginatedRoleBasedTaskList? Type491 { get; set; } + public global::LabelStudio.PatchedGCSImportStorageWriteRequest? Type491 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type492 { get; set; } + public global::LabelStudio.PatchedGCSSAExportStorageRequest? Type492 { get; set; } /// /// /// - public global::LabelStudio.RoleBasedTask? Type493 { get; set; } + public global::LabelStudio.PatchedGCSSAImportStorageRequest? Type493 { get; set; } /// /// /// - public global::LabelStudio.PaginatedSeatReportList? Type494 { get; set; } + public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type494 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type495 { get; set; } + public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type495 { get; set; } /// /// /// - public global::LabelStudio.SeatReport? Type496 { get; set; } + public global::LabelStudio.PatchedHotkeysRequest? Type496 { get; set; } /// /// /// - public global::LabelStudio.PaginatedStateModelList? Type497 { get; set; } + public global::LabelStudio.PatchedLabelLinkRequest? Type497 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type498 { get; set; } + public global::LabelStudio.PatchedLabelRequest? Type498 { get; set; } /// /// /// - public global::LabelStudio.PaginatedUserLearningProgressListList? Type499 { get; set; } + public global::LabelStudio.PatchedLearningResourceRequest? Type499 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type500 { get; set; } + public global::LabelStudio.PatchedLearningResourceUpdateRequest? Type500 { get; set; } /// /// /// - public global::LabelStudio.UserLearningProgressList? Type501 { get; set; } + public global::LabelStudio.PatchedLocalFilesExportStorageWriteRequest? Type501 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnalyticsViewRequest? Type502 { get; set; } + public global::LabelStudio.PatchedLocalFilesImportStorageWriteRequest? Type502 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnnotationRequest? Type503 { get; set; } + public global::LabelStudio.PatchedLseInterfaceRequest? Type503 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnnotationReviewRequest? Type504 { get; set; } + public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type504 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureBlobExportStorageWriteRequest? Type505 { get; set; } + public global::System.Collections.Generic.IList>? Type505 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureBlobImportStorageWriteRequest? Type506 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequest? Type506 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureDatasetStorageRequest? Type507 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaults? Type507 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type508 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsExplore? Type508 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type509 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsLabeling? Type509 { get; set; } /// /// /// - public global::LabelStudio.PatchedBlueprintUpdateRequest? Type510 { get; set; } + public global::LabelStudio.ReviewSettingsRequest? Type510 { get; set; } /// /// /// - public global::LabelStudio.PatchedCommentRequest? Type511 { get; set; } + public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type511 { get; set; } /// /// /// - public global::LabelStudio.PatchedCoursePageUpdateRequest? Type512 { get; set; } + public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type512 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksExportStorageWriteRequest? Type513 { get; set; } + public global::LabelStudio.PatchedLseTaskRequest? Type513 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksImportStorageWriteRequest? Type514 { get; set; } + public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type514 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest? Type515 { get; set; } + public global::LabelStudio.PatchedMLBackendRequestRequest? Type515 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatasetRequest? Type516 { get; set; } + public global::LabelStudio.PatchedModelInterfaceRequest? Type516 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatasetViewRequest? Type517 { get; set; } + public global::LabelStudio.PatchedModelProviderConnectionRequest? Type517 { get; set; } /// /// /// - public global::LabelStudio.PatchedDefaultRoleRequest? Type518 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type518 { get; set; } /// /// /// - public global::LabelStudio.PatchedDimensionRequest? Type519 { get; set; } + public global::LabelStudio.StandardUserTypeEnum? Type519 { get; set; } /// /// /// - public global::LabelStudio.PatchedFewShotExampleRequest? Type520 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type520 { get; set; } /// /// /// - public global::LabelStudio.PatchedFileUploadRequest? Type521 { get; set; } + public global::LabelStudio.PatchedOrganizationPermissionRequest? Type521 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSDatasetStorageRequest? Type522 { get; set; } + public global::LabelStudio.PatchedPauseRequest? Type522 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSExportStorageWriteRequest? Type523 { get; set; } + public global::LabelStudio.ReasonEnum? Type523 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSImportStorageWriteRequest? Type524 { get; set; } + public global::LabelStudio.PatchedPredictionRequest? Type524 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSSAExportStorageRequest? Type525 { get; set; } + public global::LabelStudio.PatchedProjectLearningAssignmentRequest? Type525 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSSAImportStorageRequest? Type526 { get; set; } + public global::LabelStudio.PatchedProjectTemplateRequest? Type526 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type527 { get; set; } + public global::LabelStudio.PatchedRedisExportStorageWriteRequest? Type527 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type528 { get; set; } + public global::LabelStudio.PatchedRedisImportStorageWriteRequest? Type528 { get; set; } /// /// /// - public global::LabelStudio.PatchedHotkeysRequest? Type529 { get; set; } + public global::LabelStudio.PatchedS3ExportStorageWriteRequest? Type529 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelLinkRequest? Type530 { get; set; } + public global::LabelStudio.PatchedS3ImportStorageWriteRequest? Type530 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelRequest? Type531 { get; set; } + public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type531 { get; set; } /// /// /// - public global::LabelStudio.PatchedLearningResourceRequest? Type532 { get; set; } + public global::LabelStudio.PatchedTaskAssigneesMutationRequest? Type532 { get; set; } /// /// /// - public global::LabelStudio.PatchedLearningResourceUpdateRequest? Type533 { get; set; } + public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type533 { get; set; } /// /// /// - public global::LabelStudio.PatchedLocalFilesExportStorageWriteRequest? Type534 { get; set; } + public global::LabelStudio.PatchedViewRequestRequest? Type534 { get; set; } /// /// /// - public global::LabelStudio.PatchedLocalFilesImportStorageWriteRequest? Type535 { get; set; } + public global::LabelStudio.ViewDataRequestRequest? Type535 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseInterfaceRequest? Type536 { get; set; } + public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type536 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type537 { get; set; } + public global::System.Collections.Generic.IList? Type537 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type538 { get; set; } + public global::LabelStudio.PatchedWorkspaceRequest? Type538 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequest? Type539 { get; set; } + public global::LabelStudio.Pause? Type539 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaults? Type540 { get; set; } + public global::LabelStudio.PauseRequest? Type540 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsExplore? Type541 { get; set; } + public global::LabelStudio.Prediction? Type541 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsLabeling? Type542 { get; set; } + public global::LabelStudio.PredictionCountResponse? Type542 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsRequest? Type543 { get; set; } + public global::System.Collections.Generic.IList? Type543 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type544 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItem? Type544 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type545 { get; set; } + public global::System.Collections.Generic.IList? Type545 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseTaskRequest? Type546 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilter? Type546 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type547 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterFilter? Type547 { get; set; } /// /// /// - public global::LabelStudio.PatchedMLBackendRequestRequest? Type548 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterOperator? Type548 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelInterfaceRequest? Type549 { get; set; } + public global::LabelStudio.OneOf? Type549 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelProviderConnectionRequest? Type550 { get; set; } + public float? Type550 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type551 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemFilter? Type551 { get; set; } /// /// /// - public global::LabelStudio.StandardUserTypeEnum? Type552 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemOperator? Type552 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type553 { get; set; } + public global::System.Collections.Generic.IList? Type553 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationPermissionRequest? Type554 { get; set; } + public global::LabelStudio.PrepareParamsOrderingRequestItem? Type554 { get; set; } /// /// /// - public global::LabelStudio.PatchedPauseRequest? Type555 { get; set; } + public global::LabelStudio.PrepareParamsRequestRequest? Type555 { get; set; } /// /// /// - public global::LabelStudio.ReasonEnum? Type556 { get; set; } + public global::LabelStudio.OneOf? Type556 { get; set; } /// /// /// - public global::LabelStudio.PatchedPredictionRequest? Type557 { get; set; } + public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllFalse? Type557 { get; set; } /// /// /// - public global::LabelStudio.PatchedProjectLearningAssignmentRequest? Type558 { get; set; } + public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllTrue? Type558 { get; set; } /// /// /// - public global::LabelStudio.PatchedProjectTemplateRequest? Type559 { get; set; } + public global::LabelStudio.Project? Type559 { get; set; } /// /// /// - public global::LabelStudio.PatchedRedisExportStorageWriteRequest? Type560 { get; set; } + public global::LabelStudio.ProjectAnnotationsBrowseItem? Type560 { get; set; } /// /// /// - public global::LabelStudio.PatchedRedisImportStorageWriteRequest? Type561 { get; set; } + public global::LabelStudio.ProjectAnnotationsBrowseResponse? Type561 { get; set; } /// /// /// - public global::LabelStudio.PatchedS3DatasetStorageRequest? Type562 { get; set; } + public global::System.Collections.Generic.IList? Type562 { get; set; } /// /// /// - public global::LabelStudio.PatchedS3ExportStorageWriteRequest? Type563 { get; set; } + public global::LabelStudio.ProjectDuplicateModeEnum? Type563 { get; set; } /// /// /// - public global::LabelStudio.PatchedS3ImportStorageWriteRequest? Type564 { get; set; } + public global::LabelStudio.ProjectDuplicateRequest? Type564 { get; set; } /// /// /// - public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type565 { get; set; } + public global::LabelStudio.ProjectGroup? Type565 { get; set; } /// /// /// - public global::LabelStudio.PatchedTaskAssigneesMutationRequest? Type566 { get; set; } + public global::LabelStudio.ProjectGroupRoleEnum? Type566 { get; set; } /// /// /// - public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type567 { get; set; } + public global::LabelStudio.ProjectGroupRequest? Type567 { get; set; } /// /// /// - public global::LabelStudio.PatchedViewRequestRequest? Type568 { get; set; } + public global::LabelStudio.ProjectImport? Type568 { get; set; } /// /// /// - public global::LabelStudio.ViewDataRequestRequest? Type569 { get; set; } + public global::LabelStudio.ProjectLabelConfig? Type569 { get; set; } /// /// /// - public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type570 { get; set; } + public global::LabelStudio.ProjectLabelConfigRequest? Type570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type571 { get; set; } + public global::LabelStudio.ProjectLearningAssignment? Type571 { get; set; } /// /// /// - public global::LabelStudio.PatchedWorkspaceRequest? Type572 { get; set; } + public global::LabelStudio.ProjectLearningAssignmentCreateRequest? Type572 { get; set; } /// /// /// - public global::LabelStudio.Pause? Type573 { get; set; } + public global::LabelStudio.ProjectMember? Type573 { get; set; } /// /// /// - public global::LabelStudio.PauseRequest? Type574 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRequest? Type574 { get; set; } /// /// /// - public global::LabelStudio.Prediction? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::LabelStudio.PredictionCountResponse? Type576 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignResponse? Type577 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItem? Type578 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRolesRoleEnum? Type578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type579 { get; set; } + public global::LabelStudio.ProjectMemberIdentityVerificationError? Type579 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilter? Type580 { get; set; } + public global::LabelStudio.ProjectMemberRequest? Type580 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterFilter? Type581 { get; set; } + public global::LabelStudio.ProjectReimport? Type581 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterOperator? Type582 { get; set; } + public global::LabelStudio.ProjectRole? Type582 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type583 { get; set; } + public global::LabelStudio.ProjectRoleAssignment? Type583 { get; set; } /// /// /// - public float? Type584 { get; set; } + public global::LabelStudio.ProjectRoleRequest? Type584 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemFilter? Type585 { get; set; } + public global::LabelStudio.ProjectSubsetItem? Type585 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemOperator? Type586 { get; set; } + public global::LabelStudio.ProjectSubsetTaskItem? Type586 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type587 { get; set; } + public global::System.Collections.Generic.IList? Type587 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsOrderingRequestItem? Type588 { get; set; } + public global::LabelStudio.ProjectTemplate? Type588 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsRequestRequest? Type589 { get; set; } + public global::LabelStudio.ProjectTemplateRequest? Type589 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type590 { get; set; } + public global::LabelStudio.PromptPreviewResponse? Type590 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllFalse? Type591 { get; set; } + public global::LabelStudio.PublishLearningResourceRequest? Type591 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllTrue? Type592 { get; set; } + public global::LabelStudio.RetakeScopeEnum? Type592 { get; set; } /// /// /// - public global::LabelStudio.Project? Type593 { get; set; } + public global::LabelStudio.QuizAttempt? Type593 { get; set; } /// /// /// - public global::LabelStudio.ProjectAnnotationsBrowseItem? Type594 { get; set; } + public global::System.Collections.Generic.IList? Type594 { get; set; } /// /// /// - public global::LabelStudio.ProjectAnnotationsBrowseResponse? Type595 { get; set; } + public global::LabelStudio.QuizAttemptQuestion? Type595 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type596 { get; set; } + public global::LabelStudio.QuizAttemptHistory? Type596 { get; set; } /// /// /// - public global::LabelStudio.ProjectDuplicateModeEnum? Type597 { get; set; } + public global::System.Collections.Generic.IList? Type597 { get; set; } /// /// /// - public global::LabelStudio.ProjectDuplicateRequest? Type598 { get; set; } + public global::LabelStudio.QuizAttemptHistoryQuiz? Type598 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroup? Type599 { get; set; } + public global::System.Collections.Generic.IList? Type599 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRoleEnum? Type600 { get; set; } + public global::LabelStudio.QuizLegacyResult? Type600 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRequest? Type601 { get; set; } + public global::System.Collections.Generic.Dictionary? Type601 { get; set; } /// /// /// - public global::LabelStudio.ProjectImport? Type602 { get; set; } + public global::LabelStudio.ReEvaluate? Type602 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfig? Type603 { get; set; } + public global::LabelStudio.ReEvaluateModeEnum? Type603 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfigRequest? Type604 { get; set; } + public global::LabelStudio.ReEvaluateRequest? Type604 { get; set; } /// /// /// - public global::LabelStudio.ProjectLearningAssignment? Type605 { get; set; } + public global::LabelStudio.RedisExportStorage? Type605 { get; set; } /// /// /// - public global::LabelStudio.ProjectLearningAssignmentCreateRequest? Type606 { get; set; } + public global::LabelStudio.RedisExportStorageValidateRequest? Type606 { get; set; } /// /// /// - public global::LabelStudio.ProjectMember? Type607 { get; set; } + public global::LabelStudio.RedisExportStorageWriteRequest? Type607 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRequest? Type608 { get; set; } + public global::LabelStudio.RedisImportStorage? Type608 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type609 { get; set; } + public global::LabelStudio.RedisImportStorageValidateRequest? Type609 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type610 { get; set; } + public global::LabelStudio.RedisImportStorageWriteRequest? Type610 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignResponse? Type611 { get; set; } + public global::LabelStudio.RefinePromptRequestRequest? Type611 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRolesRoleEnum? Type612 { get; set; } + public global::LabelStudio.RefinedPromptResponse? Type612 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberIdentityVerificationError? Type613 { get; set; } + public global::LabelStudio.ThirdPartyModelVersion? Type613 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberRequest? Type614 { get; set; } + public global::LabelStudio.RegressionSummary? Type614 { get; set; } /// /// /// - public global::LabelStudio.ProjectReimport? Type615 { get; set; } + public global::LabelStudio.RegressionsResponse? Type615 { get; set; } /// /// /// - public global::LabelStudio.ProjectRole? Type616 { get; set; } + public global::LabelStudio.RequeueRejectedTasksModeEnum? Type616 { get; set; } /// /// /// - public global::LabelStudio.ProjectRoleAssignment? Type617 { get; set; } + public global::LabelStudio.RetakeReasonEnum? Type617 { get; set; } /// /// /// - public global::LabelStudio.ProjectRoleRequest? Type618 { get; set; } + public global::LabelStudio.ReviewCriteriaEnum? Type618 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetItem? Type619 { get; set; } + public global::LabelStudio.ReviewRoutingRule? Type619 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTaskItem? Type620 { get; set; } + public global::LabelStudio.ReviewRoutingRuleRequestRequest? Type620 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type621 { get; set; } + public global::LabelStudio.ReviewRoutingRulesReplaceRequest? Type621 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplate? Type622 { get; set; } + public global::System.Collections.Generic.IList? Type622 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplateRequest? Type623 { get; set; } + public global::System.Collections.Generic.IList? Type623 { get; set; } /// /// /// - public global::LabelStudio.PromptPreviewResponse? Type624 { get; set; } + public global::LabelStudio.ReviewSettingsSamplingEnum? Type624 { get; set; } /// /// /// - public global::LabelStudio.PublishLearningResourceRequest? Type625 { get; set; } + public global::LabelStudio.RevokeCertificateRequest? Type625 { get; set; } /// /// /// - public global::LabelStudio.RetakeScopeEnum? Type626 { get; set; } + public global::LabelStudio.RevokeInviteRequest? Type626 { get; set; } /// /// /// - public global::LabelStudio.QuizAttempt? Type627 { get; set; } + public global::LabelStudio.S3ExportStorage? Type627 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type628 { get; set; } + public global::LabelStudio.S3ExportStorageValidateRequest? Type628 { get; set; } /// /// /// - public global::LabelStudio.QuizAttemptQuestion? Type629 { get; set; } + public global::LabelStudio.S3ExportStorageWriteRequest? Type629 { get; set; } /// /// /// - public global::LabelStudio.QuizAttemptHistory? Type630 { get; set; } + public global::LabelStudio.S3ImportStorage? Type630 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type631 { get; set; } + public global::LabelStudio.S3ImportStorageValidateRequest? Type631 { get; set; } /// /// /// - public global::LabelStudio.QuizAttemptHistoryQuiz? Type632 { get; set; } + public global::LabelStudio.S3ImportStorageWriteRequest? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type633 { get; set; } + public global::LabelStudio.SamlSettings? Type633 { get; set; } /// /// /// - public global::LabelStudio.QuizLegacyResult? Type634 { get; set; } + public global::System.Collections.Generic.IList? Type634 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type635 { get; set; } + public global::System.Collections.Generic.IList>? Type635 { get; set; } /// /// /// - public global::LabelStudio.ReEvaluate? Type636 { get; set; } + public global::LabelStudio.SamlSettingsUpdate? Type636 { get; set; } /// /// /// - public global::LabelStudio.ReEvaluateModeEnum? Type637 { get; set; } + public global::LabelStudio.SamlSettingsUpdateRequest? Type637 { get; set; } /// /// /// - public global::LabelStudio.ReEvaluateRequest? Type638 { get; set; } + public global::System.Collections.Generic.IList? Type638 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorage? Type639 { get; set; } + public global::LabelStudio.ScimSettings? Type639 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorageValidateRequest? Type640 { get; set; } + public global::LabelStudio.ScimSettingsUpdate? Type640 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorageWriteRequest? Type641 { get; set; } + public global::LabelStudio.ScimSettingsUpdateRequest? Type641 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorage? Type642 { get; set; } + public global::System.Collections.Generic.IList? Type642 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorageValidateRequest? Type643 { get; set; } + public global::System.Collections.Generic.IList? Type643 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorageWriteRequest? Type644 { get; set; } + public global::System.Collections.Generic.IList? Type644 { get; set; } /// /// /// - public global::LabelStudio.RefinePromptRequestRequest? Type645 { get; set; } + public global::LabelStudio.WorkspaceAccessAssignment? Type645 { get; set; } /// /// /// - public global::LabelStudio.RefinedPromptResponse? Type646 { get; set; } + public global::LabelStudio.SendInviteRequest? Type646 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersion? Type647 { get; set; } + public global::LabelStudio.SerializationOption? Type647 { get; set; } /// /// /// - public global::LabelStudio.RegressionSummary? Type648 { get; set; } + public global::LabelStudio.SerializationOptionRequest? Type648 { get; set; } /// /// /// - public global::LabelStudio.RegressionsResponse? Type649 { get; set; } + public global::LabelStudio.SessionTimeoutPolicy? Type649 { get; set; } /// /// /// - public global::LabelStudio.RequeueRejectedTasksModeEnum? Type650 { get; set; } + public global::LabelStudio.StateBackfillCancelResponse? Type650 { get; set; } /// /// /// - public global::LabelStudio.RetakeReasonEnum? Type651 { get; set; } + public global::LabelStudio.StateBackfillErrorResponse? Type651 { get; set; } /// /// /// - public global::LabelStudio.ReviewCriteriaEnum? Type652 { get; set; } + public global::LabelStudio.StateBackfillJobItem? Type652 { get; set; } /// /// /// - public global::LabelStudio.ReviewRoutingRule? Type653 { get; set; } + public global::LabelStudio.StateBackfillJobItemResponse? Type653 { get; set; } /// /// /// - public global::LabelStudio.ReviewRoutingRuleRequestRequest? Type654 { get; set; } + public global::LabelStudio.StateBackfillProgress? Type654 { get; set; } /// /// /// - public global::LabelStudio.ReviewRoutingRulesReplaceRequest? Type655 { get; set; } + public global::LabelStudio.StateTriggeredBy? Type655 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type656 { get; set; } + public global::LabelStudio.StateBackfillJobListResponse? Type656 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type657 { get; set; } + public global::System.Collections.Generic.IList? Type657 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsSamplingEnum? Type658 { get; set; } + public global::LabelStudio.StateBackfillOrgStatus? Type658 { get; set; } /// /// /// - public global::LabelStudio.RevokeCertificateRequest? Type659 { get; set; } + public global::LabelStudio.StateBackfillResponse? Type659 { get; set; } /// /// /// - public global::LabelStudio.RevokeInviteRequest? Type660 { get; set; } + public global::System.Collections.Generic.IList? Type660 { get; set; } /// /// /// - public global::LabelStudio.S3DatasetStorage? Type661 { get; set; } + public global::LabelStudio.StateBackfillStatusResponse? Type661 { get; set; } /// /// /// - public global::LabelStudio.S3DatasetStorageRequest? Type662 { get; set; } + public global::LabelStudio.TriggeredBy2? Type662 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorage? Type663 { get; set; } + public global::LabelStudio.TaskAgreementMatrixResponse? Type663 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorageValidateRequest? Type664 { get; set; } + public global::LabelStudio.TaskAssigneesMutationRequest? Type664 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorageWriteRequest? Type665 { get; set; } + public global::LabelStudio.TaskAssignment? Type665 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorage? Type666 { get; set; } + public global::LabelStudio.TaskEvent? Type666 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorageValidateRequest? Type667 { get; set; } + public global::LabelStudio.TaskEventRequest? Type667 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorageWriteRequest? Type668 { get; set; } + public global::LabelStudio.TaskSimple? Type668 { get; set; } /// /// /// - public global::LabelStudio.SamlSettings? Type669 { get; set; } + public global::System.Collections.Generic.IList? Type669 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type670 { get; set; } + public global::System.Collections.Generic.IList? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type671 { get; set; } + public global::LabelStudio.ThirdPartyModelVersionRequest? Type671 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdate? Type672 { get; set; } + public global::LabelStudio.TokenDetailError? Type672 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdateRequest? Type673 { get; set; } + public global::LabelStudio.TokenRefreshRequest? Type673 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type674 { get; set; } + public global::LabelStudio.TokenRefreshResponse? Type674 { get; set; } /// /// /// - public global::LabelStudio.ScimSettings? Type675 { get; set; } + public global::LabelStudio.TokenRotateResponse? Type675 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdate? Type676 { get; set; } + public global::LabelStudio.TryTaskRequestRequest? Type676 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdateRequest? Type677 { get; set; } + public global::LabelStudio.TryTaskResponse? Type677 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type678 { get; set; } + public global::LabelStudio.ValidateSamlDomainRequestRequest? Type678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type679 { get; set; } + public global::LabelStudio.ValidateSamlDomainResponse? Type679 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type680 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type680 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceAccessAssignment? Type681 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type681 { get; set; } /// /// /// - public global::LabelStudio.SendInviteRequest? Type682 { get; set; } + public global::LabelStudio.ValueCountsBackfillJob? Type682 { get; set; } /// /// /// - public global::LabelStudio.SerializationOption? Type683 { get; set; } + public global::LabelStudio.VersionResponse? Type683 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionRequest? Type684 { get; set; } + public global::LabelStudio.View? Type684 { get; set; } /// /// /// - public global::LabelStudio.SessionTimeoutPolicy? Type685 { get; set; } + public global::LabelStudio.ViewLockedBy? Type685 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillCancelResponse? Type686 { get; set; } + public global::LabelStudio.ViewOrderRequest? Type686 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillErrorResponse? Type687 { get; set; } + public global::LabelStudio.ViewRequestRequest? Type687 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItem? Type688 { get; set; } + public global::LabelStudio.Webhook? Type688 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItemResponse? Type689 { get; set; } + public global::LabelStudio.WebhookRequest? Type689 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillProgress? Type690 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdate? Type690 { get; set; } /// /// /// - public global::LabelStudio.StateTriggeredBy? Type691 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdateRequest? Type691 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobListResponse? Type692 { get; set; } + public global::LabelStudio.WhoAmILseFields? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type693 { get; set; } + public global::LabelStudio.WhoAmIUser? Type693 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillOrgStatus? Type694 { get; set; } + public global::LabelStudio.Workspace? Type694 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillResponse? Type695 { get; set; } + public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type695 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type696 { get; set; } + public global::LabelStudio.WorkspaceMemberCreate? Type696 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillStatusResponse? Type697 { get; set; } + public global::LabelStudio.WorkspaceMemberCreateRequest? Type697 { get; set; } /// /// /// - public global::LabelStudio.TriggeredBy2? Type698 { get; set; } + public global::LabelStudio.WorkspaceMemberList? Type698 { get; set; } /// /// /// - public global::LabelStudio.TaskAgreementMatrixResponse? Type699 { get; set; } + public global::LabelStudio.WorkspaceProjectsRequest? Type699 { get; set; } /// /// /// - public global::LabelStudio.TaskAssigneesMutationRequest? Type700 { get; set; } + public global::LabelStudio.WorkspaceRequest? Type700 { get; set; } /// /// /// - public global::LabelStudio.TaskAssignment? Type701 { get; set; } + public global::System.Collections.Generic.IList? Type701 { get; set; } /// /// /// - public global::LabelStudio.TaskEvent? Type702 { get; set; } + public global::LabelStudio.ApiLearningResourcesUserProgressImportCreateRequest? Type702 { get; set; } /// /// /// - public global::LabelStudio.TaskEventRequest? Type703 { get; set; } + public global::System.Collections.Generic.IList? Type703 { get; set; } /// /// /// - public global::LabelStudio.TaskSimple? Type704 { get; set; } + public global::LabelStudio.ApiActivityLogsListMethod? Type704 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type705 { get; set; } + public global::LabelStudio.ApiAnalyticsKpisRetrieveSegmentByTime? Type705 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type706 { get; set; } + public global::LabelStudio.ApiDmActionsCreateId? Type706 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersionRequest? Type707 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? Type707 { get; set; } /// /// /// - public global::LabelStudio.TokenDetailError? Type708 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? Type708 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshRequest? Type709 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? Type709 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshResponse? Type710 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? Type710 { get; set; } /// /// /// - public global::LabelStudio.TokenRotateResponse? Type711 { get; set; } + public global::LabelStudio.ApiOrganizationsJobsListStatus? Type711 { get; set; } /// /// /// - public global::LabelStudio.TryTaskRequestRequest? Type712 { get; set; } + public global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode? Type712 { get; set; } /// /// /// - public global::LabelStudio.TryTaskResponse? Type713 { get; set; } + public global::LabelStudio.ApiProjectsMembersPaginatedListTagsOperator? Type713 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlDomainRequestRequest? Type714 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable? Type714 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlDomainResponse? Type715 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveTable? Type715 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type716 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveTable? Type716 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type717 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type717 { get; set; } /// /// /// - public global::LabelStudio.ValueCountsBackfillJob? Type718 { get; set; } + public global::LabelStudio.ApiProjectsSubsetTasksListAlignmentOutcome? Type718 { get; set; } /// /// /// - public global::LabelStudio.VersionResponse? Type719 { get; set; } + public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type719 { get; set; } /// /// /// - public global::LabelStudio.View? Type720 { get; set; } + public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type720 { get; set; } /// /// /// - public global::LabelStudio.ViewLockedBy? Type721 { get; set; } + public global::LabelStudio.ApiTasksListFields? Type721 { get; set; } /// /// /// - public global::LabelStudio.ViewOrderRequest? Type722 { get; set; } + public global::System.Collections.Generic.IList? Type722 { get; set; } /// /// /// - public global::LabelStudio.ViewRequestRequest? Type723 { get; set; } + public global::System.Collections.Generic.IList? Type723 { get; set; } /// /// /// - public global::LabelStudio.Webhook? Type724 { get; set; } + public global::System.Collections.Generic.IList? Type724 { get; set; } /// /// /// - public global::LabelStudio.WebhookRequest? Type725 { get; set; } + public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type725 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdate? Type726 { get; set; } + public global::System.Collections.Generic.IList? Type726 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdateRequest? Type727 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type727 { get; set; } /// /// /// - public global::LabelStudio.WhoAmILseFields? Type728 { get; set; } + public global::System.Collections.Generic.IList? Type728 { get; set; } /// /// /// - public global::LabelStudio.WhoAmIUser? Type729 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type729 { get; set; } /// /// /// - public global::LabelStudio.Workspace? Type730 { get; set; } + public global::System.Collections.Generic.IList? Type730 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type731 { get; set; } + public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type731 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreate? Type732 { get; set; } + public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type732 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreateRequest? Type733 { get; set; } + public global::System.Collections.Generic.IList? Type733 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberList? Type734 { get; set; } + public global::System.Collections.Generic.IList? Type734 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceProjectsRequest? Type735 { get; set; } + public global::System.Collections.Generic.IList? Type735 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceRequest? Type736 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type736 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type737 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type737 { get; set; } /// /// /// - public global::LabelStudio.ApiLearningResourcesUserProgressImportCreateRequest? Type738 { get; set; } + public global::System.Collections.Generic.IList? Type738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type739 { get; set; } + public global::System.Collections.Generic.IList? Type739 { get; set; } /// /// /// - public global::LabelStudio.ApiActivityLogsListMethod? Type740 { get; set; } + public global::LabelStudio.ApiInferenceRunsIndicatorsListResponseItem? Type740 { get; set; } /// /// /// - public global::LabelStudio.ApiAnalyticsKpisRetrieveSegmentByTime? Type741 { get; set; } + public global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse? Type741 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateId? Type742 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse? Type742 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? Type743 { get; set; } + public global::System.Collections.Generic.IList? Type743 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? Type744 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? Type744 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? Type745 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? Type745 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? Type746 { get; set; } + public global::System.DateTimeOffset? Type746 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsJobsListStatus? Type747 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? Type747 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode? Type748 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2? Type748 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersPaginatedListTagsOperator? Type749 { get; set; } + public global::System.Collections.Generic.IList? Type749 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable? Type750 { get; set; } + public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type750 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveTable? Type751 { get; set; } + public global::System.Collections.Generic.IList? Type751 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveTable? Type752 { get; set; } + public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type752 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type753 { get; set; } + public global::System.Collections.Generic.IList? Type753 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsSubsetTasksListAlignmentOutcome? Type754 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type754 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type755 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type755 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type756 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type756 { get; set; } /// /// /// - public global::LabelStudio.ApiTasksListFields? Type757 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type757 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type758 { get; set; } + public global::System.Collections.Generic.IList? Type758 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type759 { get; set; } + public global::System.Collections.Generic.IList? Type759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type760 { get; set; } + public global::System.Collections.Generic.IList? Type760 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type761 { get; set; } + public global::System.Collections.Generic.IList? Type761 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type762 { get; set; } + public global::System.Collections.Generic.IList? Type762 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type763 { get; set; } + public global::System.Collections.Generic.IList? Type763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type764 { get; set; } + public global::System.Collections.Generic.IList? Type764 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type765 { get; set; } + public global::System.Collections.Generic.IList? Type765 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type766 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type766 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type767 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type767 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type768 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type768 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type769 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type769 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type770 { get; set; } + public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type771 { get; set; } + public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::System.Collections.Generic.IList? Type772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type773 { get; set; } + public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type773 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type774 { get; set; } + public global::System.Collections.Generic.IList? Type774 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type775 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type775 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type776 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type776 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type777 { get; set; } + public global::LabelStudio.ApiProjectsImportCreateResponse? Type777 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type778 { get; set; } + public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type778 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type779 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type779 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type780 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type780 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type781 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type781 { get; set; } /// /// /// - public global::LabelStudio.ApiInferenceRunsIndicatorsListResponseItem? Type782 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type782 { get; set; } /// /// /// - public global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse? Type783 { get; set; } + public global::System.Collections.Generic.IList? Type783 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse? Type784 { get; set; } + public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type785 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? Type786 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type786 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? Type787 { get; set; } + public global::LabelStudio.OneOf>? Type787 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type788 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type788 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? Type789 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type789 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2? Type790 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type790 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type791 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type791 { get; set; } /// /// /// - public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type792 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type792 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type793 { get; set; } + public global::System.Collections.Generic.IList? Type793 { get; set; } /// /// /// - public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type794 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type794 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type795 { get; set; } + public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type795 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type796 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type796 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type797 { get; set; } + public global::System.Collections.Generic.IList? Type797 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type798 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type798 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type799 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type799 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type800 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type800 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type801 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type801 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type802 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type802 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type803 { get; set; } + public global::System.Collections.Generic.IList? Type803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type804 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type804 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type805 { get; set; } + public global::System.Collections.Generic.IList? Type805 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type806 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type806 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type807 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type807 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type808 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type808 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type809 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type809 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type810 { get; set; } + public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type810 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type811 { get; set; } + public global::System.Collections.Generic.IList? Type811 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type812 { get; set; } + public global::System.Collections.Generic.IList? Type812 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type813 { get; set; } + public global::System.Collections.Generic.IList? Type813 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type814 { get; set; } + public global::System.Collections.Generic.IList? Type814 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type815 { get; set; } + public global::System.Collections.Generic.IList? Type815 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type816 { get; set; } + public global::System.Collections.Generic.IList? Type816 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type817 { get; set; } + public global::System.Collections.Generic.IList? Type817 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type818 { get; set; } + public global::System.Collections.Generic.IList? Type818 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportCreateResponse? Type819 { get; set; } + public global::System.Collections.Generic.IList? Type819 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type820 { get; set; } + public global::System.Collections.Generic.IList? Type820 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type821 { get; set; } + public global::System.Collections.Generic.IList? Type821 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type822 { get; set; } + public global::System.Collections.Generic.IList? Type822 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type823 { get; set; } + public global::System.Collections.Generic.IList? Type823 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type824 { get; set; } + public global::System.Collections.Generic.IList? Type824 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type825 { get; set; } + public global::System.Collections.Generic.IList? Type825 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type826 { get; set; } + public global::System.Collections.Generic.IList? Type826 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type827 { get; set; } + public global::System.Collections.Generic.IList? Type827 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type828 { get; set; } + public global::System.Collections.Generic.IList? Type828 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type829 { get; set; } + public global::System.Collections.Generic.IList? Type829 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type830 { get; set; } + public global::System.Collections.Generic.IList? Type830 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type831 { get; set; } + public global::System.Collections.Generic.IList? Type831 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type832 { get; set; } + public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type832 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type833 { get; set; } + public global::System.Collections.Generic.IList? Type833 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type834 { get; set; } + public global::System.Collections.Generic.IList? Type834 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type835 { get; set; } + public global::System.Collections.Generic.IList? Type835 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type836 { get; set; } + public global::System.Collections.Generic.IList? Type836 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type837 { get; set; } + public global::System.Collections.Generic.IList? Type837 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type838 { get; set; } + public global::System.Collections.Generic.IList? Type838 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type839 { get; set; } + public global::System.Collections.Generic.IList? Type839 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type840 { get; set; } + public global::System.Collections.Generic.IList? Type840 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type841 { get; set; } + public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type841 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type842 { get; set; } + public global::System.Collections.Generic.IList? Type842 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type843 { get; set; } + public global::System.Collections.Generic.IList? Type843 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type844 { get; set; } + public global::System.Collections.Generic.IList? Type844 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type845 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type845 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type846 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type846 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type847 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type847 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type848 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type848 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type849 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type849 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type850 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type850 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type851 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type851 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type852 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type852 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type853 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type853 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type854 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type854 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type855 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type855 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type856 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type856 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type857 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type857 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type858 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type858 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type859 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type859 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type860 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type861 { get; set; } + public global::System.Collections.Generic.IList? Type861 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type862 { get; set; } + public global::System.Collections.Generic.IList? Type862 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type863 { get; set; } + public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type863 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type864 { get; set; } + public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type864 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type865 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type866 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type867 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type868 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type869 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type870 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type871 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type872 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type873 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type874 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type875 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type876 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type877 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type878 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type879 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type880 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type881 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type882 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type883 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type884 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type885 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type886 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type887 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type888 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type889 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type890 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type891 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type892 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type893 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type894 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type895 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type896 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type897 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type898 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type899 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type900 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type901 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type902 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type903 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type904 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type905 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type906 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type907 { get; set; } + public global::System.Collections.Generic.IList? Type865 { get; set; } /// /// @@ -3731,666 +3563,622 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType16 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType17 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType18 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType19 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType20 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType21 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType22 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType23 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType24 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType25 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List?>? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List?>? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::LabelStudio.OneOf>? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List>? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List>? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType110 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType126 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType137 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType138 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType139 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? ListType140 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? ListType141 { get; set; } + public global::System.Collections.Generic.Dictionary>>? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType142 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType143 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType144 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType145 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType146 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType147 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType148 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType149 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType150 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType151 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType152 { get; set; } + public global::System.Collections.Generic.List? ListType141 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType153 { get; set; } + public global::System.Collections.Generic.List? ListType142 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType154 { get; set; } + public global::System.Collections.Generic.List? ListType143 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType155 { get; set; } + public global::System.Collections.Generic.List? ListType144 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType156 { get; set; } + public global::System.Collections.Generic.List? ListType145 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType157 { get; set; } + public global::System.Collections.Generic.List? ListType146 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType158 { get; set; } + public global::System.Collections.Generic.List? ListType147 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType159 { get; set; } + public global::System.Collections.Generic.List? ListType148 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType160 { get; set; } + public global::System.Collections.Generic.List? ListType149 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType161 { get; set; } + public global::System.Collections.Generic.List? ListType150 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType162 { get; set; } + public global::System.Collections.Generic.List? ListType151 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType163 { get; set; } + public global::System.Collections.Generic.List? ListType152 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType164 { get; set; } + public global::System.Collections.Generic.List? ListType153 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType165 { get; set; } + public global::System.Collections.Generic.List? ListType154 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType166 { get; set; } + public global::System.Collections.Generic.List? ListType155 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType167 { get; set; } + public global::System.Collections.Generic.List? ListType156 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType168 { get; set; } + public global::System.Collections.Generic.List? ListType157 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType169 { get; set; } + public global::System.Collections.Generic.List? ListType158 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType170 { get; set; } + public global::System.Collections.Generic.List? ListType159 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType171 { get; set; } + public global::System.Collections.Generic.List? ListType160 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType172 { get; set; } + public global::System.Collections.Generic.List? ListType161 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType173 { get; set; } + public global::System.Collections.Generic.List? ListType162 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType174 { get; set; } + public global::System.Collections.Generic.List? ListType163 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType175 { get; set; } + public global::System.Collections.Generic.List? ListType164 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType176 { get; set; } + public global::System.Collections.Generic.List? ListType165 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType177 { get; set; } + public global::System.Collections.Generic.List? ListType166 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType178 { get; set; } + public global::System.Collections.Generic.List? ListType167 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType179 { get; set; } + public global::System.Collections.Generic.List? ListType168 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType180 { get; set; } + public global::System.Collections.Generic.List? ListType169 { get; set; } } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs index 8a88d396..0afa39c6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs @@ -173,15 +173,6 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio JsonSerializerContextProvider = JsonSerializerContextProvider, }; - /// - /// - /// - public DataExplorerClient DataExplorer => new DataExplorerClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - }; - /// /// /// @@ -191,42 +182,6 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio JsonSerializerContextProvider = JsonSerializerContextProvider, }; - /// - /// - /// - public DatasetStorageAzureClient DatasetStorageAzure => new DatasetStorageAzureClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - }; - - /// - /// - /// - public DatasetStorageGcsClient DatasetStorageGcs => new DatasetStorageGcsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - }; - - /// - /// - /// - public DatasetStorageS3Client DatasetStorageS3 => new DatasetStorageS3Client(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - }; - - /// - /// - /// - public DatasetsClient Datasets => new DatasetsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - }; - /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesRetrieve.g.cs index 0bb82e6c..ff4ba2be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesRetrieve.g.cs @@ -27,11 +27,13 @@ public partial class LearningResourcesClient }; partial void PrepareApiLearningResourcesRetrieveArguments( global::System.Net.Http.HttpClient httpClient, - ref int id); + ref int id, + ref string? omit); partial void PrepareApiLearningResourcesRetrieveRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); + int id, + string? omit); partial void ProcessApiLearningResourcesRetrieveResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -45,16 +47,19 @@ partial void ProcessApiLearningResourcesRetrieveResponseContent( /// ✨ Get a learning resource /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ApiLearningResourcesRetrieveAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ApiLearningResourcesRetrieveAsResponseAsync( id: id, + omit: omit, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -65,11 +70,13 @@ partial void ProcessApiLearningResourcesRetrieveResponseContent( /// ✨ Get a learning resource /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ApiLearningResourcesRetrieveAsResponseAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -77,7 +84,8 @@ partial void ProcessApiLearningResourcesRetrieveResponseContent( client: HttpClient); PrepareApiLearningResourcesRetrieveArguments( httpClient: HttpClient, - id: ref id); + id: ref id, + omit: ref omit); var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( @@ -105,6 +113,9 @@ partial void ProcessApiLearningResourcesRetrieveResponseContent( var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/learning-resources/{id}/", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("omit", omit) + ; var __path = __pathBuilder.ToString(); __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -145,7 +156,8 @@ partial void ProcessApiLearningResourcesRetrieveResponseContent( PrepareApiLearningResourcesRetrieveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id, + omit: omit); return __httpRequest; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs index b827d7dc..a3a5f1f8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesTakeRetrieve.g.cs @@ -27,11 +27,13 @@ public partial class LearningResourcesClient }; partial void PrepareApiLearningResourcesTakeRetrieveArguments( global::System.Net.Http.HttpClient httpClient, - ref int id); + ref int id, + ref string? omit); partial void PrepareApiLearningResourcesTakeRetrieveRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); + int id, + string? omit); partial void ProcessApiLearningResourcesTakeRetrieveResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -52,16 +54,19 @@ partial void ProcessApiLearningResourcesTakeRetrieveResponseContent( /// Get a published learning resource available for standalone access. /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ApiLearningResourcesTakeRetrieveAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ApiLearningResourcesTakeRetrieveAsResponseAsync( id: id, + omit: omit, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -79,11 +84,13 @@ partial void ProcessApiLearningResourcesTakeRetrieveResponseContent( /// Get a published learning resource available for standalone access. /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ApiLearningResourcesTakeRetrieveAsResponseAsync( int id, + string? omit = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -91,7 +98,8 @@ partial void ProcessApiLearningResourcesTakeRetrieveResponseContent( client: HttpClient); PrepareApiLearningResourcesTakeRetrieveArguments( httpClient: HttpClient, - id: ref id); + id: ref id, + omit: ref omit); var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( @@ -119,6 +127,9 @@ partial void ProcessApiLearningResourcesTakeRetrieveResponseContent( var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/learning-resources/{id}/take/", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("omit", omit) + ; var __path = __pathBuilder.ToString(); __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -159,7 +170,8 @@ partial void ProcessApiLearningResourcesTakeRetrieveResponseContent( PrepareApiLearningResourcesTakeRetrieveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id, + omit: omit); return __httpRequest; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReview.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReview.g.cs index 42e1a7d1..c39e6100 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReview.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReview.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// AnnotationReview Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class AnnotationReview { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReviewRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReviewRequest.g.cs index 0711f9b0..5d221ae5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReviewRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.AnnotationReviewRequest.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// AnnotationReview Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class AnnotationReviewRequest { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters.Json.g.cs deleted file mode 100644 index 45757669..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class ApiDatasetsImportCreateAdditionalFilters - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters), - jsonSerializerContext) as global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters.g.cs deleted file mode 100644 index 4e56bbf8..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class ApiDatasetsImportCreateAdditionalFilters - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters2.Json.g.cs deleted file mode 100644 index 1a3125fc..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class ApiDatasetsImportCreateAdditionalFilters2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters2), - jsonSerializerContext) as global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters2? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters2), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiDatasetsImportCreateAdditionalFilters2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters2.g.cs deleted file mode 100644 index 6431aacf..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateAdditionalFilters2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class ApiDatasetsImportCreateAdditionalFilters2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded.Json.g.cs deleted file mode 100644 index 3cdd3a9d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class ApiDatasetsImportCreateExcluded - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateExcluded? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.ApiDatasetsImportCreateExcluded), - jsonSerializerContext) as global::LabelStudio.ApiDatasetsImportCreateExcluded; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateExcluded? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.ApiDatasetsImportCreateExcluded? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.ApiDatasetsImportCreateExcluded), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiDatasetsImportCreateExcluded; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded.g.cs deleted file mode 100644 index 38fc7348..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class ApiDatasetsImportCreateExcluded - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded2.Json.g.cs deleted file mode 100644 index 6e4c3cc7..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class ApiDatasetsImportCreateExcluded2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateExcluded2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.ApiDatasetsImportCreateExcluded2), - jsonSerializerContext) as global::LabelStudio.ApiDatasetsImportCreateExcluded2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateExcluded2? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.ApiDatasetsImportCreateExcluded2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.ApiDatasetsImportCreateExcluded2), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiDatasetsImportCreateExcluded2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded2.g.cs deleted file mode 100644 index 2872c771..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateExcluded2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class ApiDatasetsImportCreateExcluded2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded.Json.g.cs deleted file mode 100644 index 3dca8db4..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class ApiDatasetsImportCreateIncluded - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateIncluded? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.ApiDatasetsImportCreateIncluded), - jsonSerializerContext) as global::LabelStudio.ApiDatasetsImportCreateIncluded; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateIncluded? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.ApiDatasetsImportCreateIncluded? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.ApiDatasetsImportCreateIncluded), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiDatasetsImportCreateIncluded; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded.g.cs deleted file mode 100644 index d2b3e727..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class ApiDatasetsImportCreateIncluded - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded2.Json.g.cs deleted file mode 100644 index d72dd512..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class ApiDatasetsImportCreateIncluded2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateIncluded2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.ApiDatasetsImportCreateIncluded2), - jsonSerializerContext) as global::LabelStudio.ApiDatasetsImportCreateIncluded2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.ApiDatasetsImportCreateIncluded2? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.ApiDatasetsImportCreateIncluded2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.ApiDatasetsImportCreateIncluded2), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiDatasetsImportCreateIncluded2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded2.g.cs deleted file mode 100644 index f5bccb13..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiDatasetsImportCreateIncluded2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class ApiDatasetsImportCreateIncluded2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorage.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorage.Json.g.cs deleted file mode 100644 index 25f7b52a..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class AzureDatasetStorage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.AzureDatasetStorage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.AzureDatasetStorage), - jsonSerializerContext) as global::LabelStudio.AzureDatasetStorage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.AzureDatasetStorage? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.AzureDatasetStorage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.AzureDatasetStorage), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.AzureDatasetStorage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorage.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorage.g.cs deleted file mode 100644 index 7744f5c2..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorage.g.cs +++ /dev/null @@ -1,341 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class AzureDatasetStorage - { - /// - /// Azure Blob account key - /// - [global::System.Text.Json.Serialization.JsonPropertyName("account_key")] - public string? AccountKey { get; set; } - - /// - /// Azure Blob account name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("account_name")] - public string? AccountName { get; set; } - - /// - /// Azure blob container - /// - [global::System.Text.Json.Serialization.JsonPropertyName("container")] - public string? Container { get; set; } - - /// - /// Creation time
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime CreatedAt { get; set; } = default!; - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// Included only in responses - /// - /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int Id { get; set; } = default!; - - /// - /// Included only in responses - /// - [global::System.Text.Json.Serialization.JsonPropertyName("job_id")] - public string? JobId { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// Azure blob prefix name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the container content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Default Value: azure
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string Type { get; set; } = default!; - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Included only in responses - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// - /// Creation time
- /// Included only in responses - /// - /// - /// Included only in responses - /// - /// - /// Default Value: azure
- /// Included only in responses - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AzureDatasetStorage( - int dataset, - string? accountKey, - string? accountName, - string? container, - string? description, - string? globPattern, - string? jobId, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls, - global::System.DateTime createdAt = default!, - int id = default!, - string type = default!) - { - this.AccountKey = accountKey; - this.AccountName = accountName; - this.Container = container; - this.CreatedAt = createdAt; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.Id = id; - this.JobId = jobId; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.Type = type; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public AzureDatasetStorage() - { - } - - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static AzureDatasetStorage FromDataset(int dataset) - { - return new AzureDatasetStorage - { - Dataset = dataset, - }; - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorageRequest.Json.g.cs deleted file mode 100644 index 0f4ab7ad..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorageRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class AzureDatasetStorageRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.AzureDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.AzureDatasetStorageRequest), - jsonSerializerContext) as global::LabelStudio.AzureDatasetStorageRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.AzureDatasetStorageRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.AzureDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.AzureDatasetStorageRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.AzureDatasetStorageRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorageRequest.g.cs deleted file mode 100644 index bd8fbc04..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AzureDatasetStorageRequest.g.cs +++ /dev/null @@ -1,278 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class AzureDatasetStorageRequest - { - /// - /// Azure Blob account key - /// - [global::System.Text.Json.Serialization.JsonPropertyName("account_key")] - public string? AccountKey { get; set; } - - /// - /// Azure Blob account name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("account_name")] - public string? AccountName { get; set; } - - /// - /// Azure blob container - /// - [global::System.Text.Json.Serialization.JsonPropertyName("container")] - public string? Container { get; set; } - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// Azure blob prefix name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the container content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AzureDatasetStorageRequest( - int dataset, - string? accountKey, - string? accountName, - string? container, - string? description, - string? globPattern, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls) - { - this.AccountKey = accountKey; - this.AccountName = accountName; - this.Container = container; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public AzureDatasetStorageRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ChildFilterRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ChildFilterRequest.Json.g.cs deleted file mode 100644 index 28bb113d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ChildFilterRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class ChildFilterRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.ChildFilterRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.ChildFilterRequest), - jsonSerializerContext) as global::LabelStudio.ChildFilterRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.ChildFilterRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.ChildFilterRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.ChildFilterRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ChildFilterRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ChildFilterRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ChildFilterRequest.g.cs deleted file mode 100644 index 86f6b8cc..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ChildFilterRequest.g.cs +++ /dev/null @@ -1,104 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class ChildFilterRequest - { - /// - /// Field name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("column")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Column { get; set; } - - /// - /// Display order among root filters only - /// - [global::System.Text.Json.Serialization.JsonPropertyName("index")] - public int? Index { get; set; } - - /// - /// Filter operator - /// - [global::System.Text.Json.Serialization.JsonPropertyName("operator")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Operator { get; set; } - - /// - /// Optional parent filter to create one-level hierarchy (child filters are AND-merged with parent) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parent")] - public int? Parent { get; set; } - - /// - /// Field type - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Type { get; set; } - - /// - /// Filter value - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public object? Value { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Field name - /// - /// - /// Filter operator - /// - /// - /// Field type - /// - /// - /// Display order among root filters only - /// - /// - /// Optional parent filter to create one-level hierarchy (child filters are AND-merged with parent) - /// - /// - /// Filter value - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ChildFilterRequest( - string column, - string @operator, - string type, - int? index, - int? parent, - object? value) - { - this.Column = column ?? throw new global::System.ArgumentNullException(nameof(column)); - this.Index = index; - this.Operator = @operator ?? throw new global::System.ArgumentNullException(nameof(@operator)); - this.Parent = parent; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Value = value; - } - - /// - /// Initializes a new instance of the class. - /// - public ChildFilterRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.Comment.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.Comment.g.cs index 77067a89..4e519a4a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.Comment.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.Comment.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// Comment Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class Comment { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentRequest.g.cs index e24ec7ad..087bf977 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentRequest.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// Comment Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class CommentRequest { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentSerializerWithExpandedUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentSerializerWithExpandedUser.g.cs index cc73e6b5..fe30016f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentSerializerWithExpandedUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CommentSerializerWithExpandedUser.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// Comment Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class CommentSerializerWithExpandedUser { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.Dataset.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.Dataset.Json.g.cs deleted file mode 100644 index 9326cc39..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.Dataset.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class Dataset - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.Dataset? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.Dataset), - jsonSerializerContext) as global::LabelStudio.Dataset; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.Dataset? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.Dataset? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.Dataset), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.Dataset; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.Dataset.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.Dataset.g.cs deleted file mode 100644 index 71678dc4..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.Dataset.g.cs +++ /dev/null @@ -1,161 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class Dataset - { - /// - /// All data columns found in Dataset tasks - /// - [global::System.Text.Json.Serialization.JsonPropertyName("columns")] - public object? Columns { get; set; } - - /// - /// Creation time
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime CreatedAt { get; set; } = default!; - - /// - /// User who created Dataset - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - public global::LabelStudio.UserSimple? CreatedBy { get; set; } - - /// - /// Dataset description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Included only in responses - /// - /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int Id { get; set; } = default!; - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - - /// - /// Dataset title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_entities")] - public int? TotalEntities { get; set; } - - /// - /// Last updated time
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime UpdatedAt { get; set; } = default!; - - /// - /// Dataset name for weaviate schema - /// - [global::System.Text.Json.Serialization.JsonPropertyName("vector_db_dataset_name")] - public string? VectorDbDatasetName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Dataset title - /// - /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// - /// Dataset name for weaviate schema - /// - /// - /// Creation time
- /// Included only in responses - /// - /// - /// Included only in responses - /// - /// - /// Last updated time
- /// Included only in responses - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Dataset( - string title, - object? columns, - global::LabelStudio.UserSimple? createdBy, - string? description, - int? organization, - int? totalEntities, - string? vectorDbDatasetName, - global::System.DateTime createdAt = default!, - int id = default!, - global::System.DateTime updatedAt = default!) - { - this.Columns = columns; - this.CreatedAt = createdAt; - this.CreatedBy = createdBy; - this.Description = description; - this.Id = id; - this.Organization = organization; - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.TotalEntities = totalEntities; - this.UpdatedAt = updatedAt; - this.VectorDbDatasetName = vectorDbDatasetName; - } - - /// - /// Initializes a new instance of the class. - /// - public Dataset() - { - } - - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static Dataset FromTitle(string title) - { - return new Dataset - { - Title = title, - }; - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumn.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumn.Json.g.cs deleted file mode 100644 index bb7e273f..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumn.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetColumn - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetColumn? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetColumn), - jsonSerializerContext) as global::LabelStudio.DatasetColumn; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetColumn? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetColumn? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetColumn), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetColumn; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumn.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumn.g.cs deleted file mode 100644 index 1306f188..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumn.g.cs +++ /dev/null @@ -1,102 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetColumn - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("children")] - public global::System.Collections.Generic.IList? Children { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parent")] - public string? Parent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("target")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Target { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility_defaults")] - public global::LabelStudio.DatasetColumnVisibilityDefaults? VisibilityDefaults { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetColumn( - string id, - string target, - string title, - string type, - global::System.Collections.Generic.IList? children, - string? parent, - global::LabelStudio.DatasetColumnVisibilityDefaults? visibilityDefaults) - { - this.Children = children; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Parent = parent; - this.Target = target ?? throw new global::System.ArgumentNullException(nameof(target)); - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.VisibilityDefaults = visibilityDefaults; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetColumn() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnVisibilityDefaults.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnVisibilityDefaults.Json.g.cs deleted file mode 100644 index 2d5bdd7f..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnVisibilityDefaults.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetColumnVisibilityDefaults - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetColumnVisibilityDefaults? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetColumnVisibilityDefaults), - jsonSerializerContext) as global::LabelStudio.DatasetColumnVisibilityDefaults; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetColumnVisibilityDefaults? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetColumnVisibilityDefaults? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetColumnVisibilityDefaults), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetColumnVisibilityDefaults; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnVisibilityDefaults.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnVisibilityDefaults.g.cs deleted file mode 100644 index b97da844..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnVisibilityDefaults.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetColumnVisibilityDefaults - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("explore")] - public bool? Explore { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter")] - public bool? Filter { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetColumnVisibilityDefaults( - bool? explore, - bool? filter) - { - this.Explore = explore; - this.Filter = filter; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetColumnVisibilityDefaults() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnsResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnsResponse.Json.g.cs deleted file mode 100644 index 20d2758c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetColumnsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetColumnsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetColumnsResponse), - jsonSerializerContext) as global::LabelStudio.DatasetColumnsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetColumnsResponse? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetColumnsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetColumnsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetColumnsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnsResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnsResponse.g.cs deleted file mode 100644 index da8a83be..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetColumnsResponse.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetColumnsResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("columns")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Columns { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetColumnsResponse( - global::System.Collections.Generic.IList columns) - { - this.Columns = columns ?? throw new global::System.ArgumentNullException(nameof(columns)); - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetColumnsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequest.Json.g.cs deleted file mode 100644 index c4c6baae..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetImportCandidatesCreateRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequest), - jsonSerializerContext) as global::LabelStudio.DatasetImportCandidatesCreateRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetImportCandidatesCreateRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetImportCandidatesCreateRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequest.g.cs deleted file mode 100644 index 1a56eacb..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequest.g.cs +++ /dev/null @@ -1,96 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetImportCandidatesCreateRequest - { - /// - /// Default Value: {} - /// - [global::System.Text.Json.Serialization.JsonPropertyName("additional_filters")] - public object? AdditionalFilters { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// Default Value: {} - /// - [global::System.Text.Json.Serialization.JsonPropertyName("excluded")] - public object? Excluded { get; set; } - - /// - /// Default Value: {} - /// - [global::System.Text.Json.Serialization.JsonPropertyName("included")] - public object? Included { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("project")] - public int? Project { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("view")] - public int? View { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Default Value: {} - /// - /// - /// Default Value: {} - /// - /// - /// Default Value: {} - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetImportCandidatesCreateRequest( - int dataset, - object? additionalFilters, - object? excluded, - object? included, - int? project, - int? view) - { - this.AdditionalFilters = additionalFilters; - this.Dataset = dataset; - this.Excluded = excluded; - this.Included = included; - this.Project = project; - this.View = view; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetImportCandidatesCreateRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestAdditionalFilters.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestAdditionalFilters.Json.g.cs deleted file mode 100644 index 9c87c2c5..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestAdditionalFilters.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetImportCandidatesCreateRequestAdditionalFilters - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequestAdditionalFilters? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequestAdditionalFilters), - jsonSerializerContext) as global::LabelStudio.DatasetImportCandidatesCreateRequestAdditionalFilters; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequestAdditionalFilters? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetImportCandidatesCreateRequestAdditionalFilters? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequestAdditionalFilters), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetImportCandidatesCreateRequestAdditionalFilters; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestAdditionalFilters.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestAdditionalFilters.g.cs deleted file mode 100644 index 7fa8b4c8..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestAdditionalFilters.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// Default Value: {} - /// - public sealed partial class DatasetImportCandidatesCreateRequestAdditionalFilters - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestExcluded.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestExcluded.Json.g.cs deleted file mode 100644 index a988f262..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestExcluded.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetImportCandidatesCreateRequestExcluded - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequestExcluded? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequestExcluded), - jsonSerializerContext) as global::LabelStudio.DatasetImportCandidatesCreateRequestExcluded; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequestExcluded? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetImportCandidatesCreateRequestExcluded? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequestExcluded), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetImportCandidatesCreateRequestExcluded; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestExcluded.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestExcluded.g.cs deleted file mode 100644 index 3d2a7138..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestExcluded.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// Default Value: {} - /// - public sealed partial class DatasetImportCandidatesCreateRequestExcluded - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestIncluded.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestIncluded.Json.g.cs deleted file mode 100644 index ea91fc38..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestIncluded.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetImportCandidatesCreateRequestIncluded - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequestIncluded? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequestIncluded), - jsonSerializerContext) as global::LabelStudio.DatasetImportCandidatesCreateRequestIncluded; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesCreateRequestIncluded? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetImportCandidatesCreateRequestIncluded? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetImportCandidatesCreateRequestIncluded), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetImportCandidatesCreateRequestIncluded; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestIncluded.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestIncluded.g.cs deleted file mode 100644 index 9b892c8c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesCreateRequestIncluded.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// Default Value: {} - /// - public sealed partial class DatasetImportCandidatesCreateRequestIncluded - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesResponse.Json.g.cs deleted file mode 100644 index a9102596..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetImportCandidatesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetImportCandidatesResponse), - jsonSerializerContext) as global::LabelStudio.DatasetImportCandidatesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetImportCandidatesResponse? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetImportCandidatesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetImportCandidatesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetImportCandidatesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesResponse.g.cs deleted file mode 100644 index 3f7bb43d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetImportCandidatesResponse.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetImportCandidatesResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("detail")] - public string? Detail { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("job")] - public int? Job { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("project_tasks")] - public int? ProjectTasks { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] - public int? Skipped { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total")] - public int? Total { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetImportCandidatesResponse( - string? detail, - int? job, - int? projectTasks, - int? skipped, - int? total) - { - this.Detail = detail; - this.Job = job; - this.ProjectTasks = projectTasks; - this.Skipped = skipped; - this.Total = total; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetImportCandidatesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMember.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMember.Json.g.cs deleted file mode 100644 index 987a5789..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMember.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetMember - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetMember? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetMember), - jsonSerializerContext) as global::LabelStudio.DatasetMember; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetMember? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetMember? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetMember), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetMember; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMember.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMember.g.cs deleted file mode 100644 index f31ce24a..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMember.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetMember - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int User { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetMember( - int user) - { - this.User = user; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetMember() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMemberRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMemberRequest.Json.g.cs deleted file mode 100644 index bc4ff080..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMemberRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetMemberRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetMemberRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetMemberRequest), - jsonSerializerContext) as global::LabelStudio.DatasetMemberRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetMemberRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetMemberRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetMemberRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetMemberRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMemberRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMemberRequest.g.cs deleted file mode 100644 index 4f03d76c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetMemberRequest.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetMemberRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int User { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetMemberRequest( - int user) - { - this.User = user; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetMemberRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetRequest.Json.g.cs deleted file mode 100644 index 9cfb60b9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetRequest), - jsonSerializerContext) as global::LabelStudio.DatasetRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetRequest.g.cs deleted file mode 100644 index e9e71494..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetRequest.g.cs +++ /dev/null @@ -1,109 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetRequest - { - /// - /// All data columns found in Dataset tasks - /// - [global::System.Text.Json.Serialization.JsonPropertyName("columns")] - public object? Columns { get; set; } - - /// - /// User who created Dataset - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - public global::LabelStudio.UserSimpleRequest? CreatedBy { get; set; } - - /// - /// Dataset description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - - /// - /// Dataset title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_entities")] - public int? TotalEntities { get; set; } - - /// - /// Dataset name for weaviate schema - /// - [global::System.Text.Json.Serialization.JsonPropertyName("vector_db_dataset_name")] - public string? VectorDbDatasetName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Dataset title - /// - /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// - /// Dataset name for weaviate schema - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetRequest( - string title, - object? columns, - global::LabelStudio.UserSimpleRequest? createdBy, - string? description, - int? organization, - int? totalEntities, - string? vectorDbDatasetName) - { - this.Columns = columns; - this.CreatedBy = createdBy; - this.Description = description; - this.Organization = organization; - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.TotalEntities = totalEntities; - this.VectorDbDatasetName = vectorDbDatasetName; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageAvailableDataType.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageAvailableDataType.Json.g.cs deleted file mode 100644 index 80171c2d..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageAvailableDataType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetStorageAvailableDataType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetStorageAvailableDataType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetStorageAvailableDataType), - jsonSerializerContext) as global::LabelStudio.DatasetStorageAvailableDataType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetStorageAvailableDataType? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetStorageAvailableDataType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetStorageAvailableDataType), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetStorageAvailableDataType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageAvailableDataType.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageAvailableDataType.g.cs deleted file mode 100644 index 5624394c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageAvailableDataType.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetStorageAvailableDataType - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string DisplayName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("indexable")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Indexable { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("internal_name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string InternalName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("short_display_name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ShortDisplayName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetStorageAvailableDataType( - string displayName, - bool indexable, - string internalName, - string shortDisplayName) - { - this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName)); - this.Indexable = indexable; - this.InternalName = internalName ?? throw new global::System.ArgumentNullException(nameof(internalName)); - this.ShortDisplayName = shortDisplayName ?? throw new global::System.ArgumentNullException(nameof(shortDisplayName)); - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetStorageAvailableDataType() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnType.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnType.Json.g.cs deleted file mode 100644 index 4aac625b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetStorageColumnType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetStorageColumnType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetStorageColumnType), - jsonSerializerContext) as global::LabelStudio.DatasetStorageColumnType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetStorageColumnType? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetStorageColumnType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetStorageColumnType), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetStorageColumnType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnType.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnType.g.cs deleted file mode 100644 index 54716ddb..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetStorageColumnType - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetStorageColumnType( - string? name, - string? type) - { - this.Name = name; - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetStorageColumnType() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnsResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnsResponse.Json.g.cs deleted file mode 100644 index 95801399..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetStorageColumnsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetStorageColumnsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetStorageColumnsResponse), - jsonSerializerContext) as global::LabelStudio.DatasetStorageColumnsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetStorageColumnsResponse? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetStorageColumnsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetStorageColumnsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetStorageColumnsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnsResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnsResponse.g.cs deleted file mode 100644 index 7348a3fa..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetStorageColumnsResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetStorageColumnsResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("available_data_types")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList AvailableDataTypes { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("columns_with_types")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList ColumnsWithTypes { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetStorageColumnsResponse( - global::System.Collections.Generic.IList availableDataTypes, - global::System.Collections.Generic.IList columnsWithTypes) - { - this.AvailableDataTypes = availableDataTypes ?? throw new global::System.ArgumentNullException(nameof(availableDataTypes)); - this.ColumnsWithTypes = columnsWithTypes ?? throw new global::System.ArgumentNullException(nameof(columnsWithTypes)); - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetStorageColumnsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponse.Json.g.cs deleted file mode 100644 index dc1612bf..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetTasksMetadataResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetTasksMetadataResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetTasksMetadataResponse), - jsonSerializerContext) as global::LabelStudio.DatasetTasksMetadataResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetTasksMetadataResponse? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetTasksMetadataResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetTasksMetadataResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetTasksMetadataResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponse.g.cs deleted file mode 100644 index 9089e7b9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetTasksMetadataResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("candidate_task_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CandidateTaskId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Metadata { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetTasksMetadataResponse( - string candidateTaskId, - object metadata) - { - this.CandidateTaskId = candidateTaskId ?? throw new global::System.ArgumentNullException(nameof(candidateTaskId)); - this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetTasksMetadataResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponseMetadata.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponseMetadata.Json.g.cs deleted file mode 100644 index f03fdfa6..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponseMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetTasksMetadataResponseMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetTasksMetadataResponseMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetTasksMetadataResponseMetadata), - jsonSerializerContext) as global::LabelStudio.DatasetTasksMetadataResponseMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetTasksMetadataResponseMetadata? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetTasksMetadataResponseMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetTasksMetadataResponseMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetTasksMetadataResponseMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponseMetadata.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponseMetadata.g.cs deleted file mode 100644 index 67fa5692..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetTasksMetadataResponseMetadata.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetTasksMetadataResponseMetadata - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetView.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetView.Json.g.cs deleted file mode 100644 index 79023b00..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetView.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetView - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetView? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetView), - jsonSerializerContext) as global::LabelStudio.DatasetView; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetView? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetView? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetView), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetView; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetView.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetView.g.cs deleted file mode 100644 index 815155e3..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetView.g.cs +++ /dev/null @@ -1,168 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetView - { - /// - /// Custom view data - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public object? Data { get; set; } - - /// - /// Dataset ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter_group")] - public global::LabelStudio.FilterGroup? FilterGroup { get; set; } - - /// - /// Included only in responses - /// - /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int Id { get; set; } = default!; - - /// - /// Whether this data manager tab is locked against configuration changes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_locked")] - public bool? IsLocked { get; set; } - - /// - /// Time when this view was locked - /// - [global::System.Text.Json.Serialization.JsonPropertyName("locked_at")] - public global::System.DateTime? LockedAt { get; set; } - - /// - /// Included only in responses - /// - [global::System.Text.Json.Serialization.JsonPropertyName("locked_by")] - public global::LabelStudio.DatasetViewLockedBy? LockedBy { get; set; } - - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - [global::System.Text.Json.Serialization.JsonPropertyName("order")] - public int? Order { get; set; } - - /// - /// Ordering parameters - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ordering")] - public object? Ordering { get; set; } - - /// - /// Selected items - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selected_items")] - public object? SelectedItems { get; set; } - - /// - /// User who made this view - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public int? User { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Dataset ID - /// - /// - /// Custom view data - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Included only in responses - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// - /// - /// Included only in responses - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetView( - int dataset, - object? data, - global::LabelStudio.FilterGroup? filterGroup, - bool? isLocked, - global::System.DateTime? lockedAt, - global::LabelStudio.DatasetViewLockedBy? lockedBy, - int? order, - object? ordering, - object? selectedItems, - int? user, - int id = default!) - { - this.Data = data; - this.Dataset = dataset; - this.FilterGroup = filterGroup; - this.Id = id; - this.IsLocked = isLocked; - this.LockedAt = lockedAt; - this.LockedBy = lockedBy; - this.Order = order; - this.Ordering = ordering; - this.SelectedItems = selectedItems; - this.User = user; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetView() - { - } - - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static DatasetView FromDataset(int dataset) - { - return new DatasetView - { - Dataset = dataset, - }; - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewLockedBy.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewLockedBy.Json.g.cs deleted file mode 100644 index 45f5fb21..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewLockedBy.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetViewLockedBy - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetViewLockedBy? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetViewLockedBy), - jsonSerializerContext) as global::LabelStudio.DatasetViewLockedBy; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetViewLockedBy? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetViewLockedBy? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetViewLockedBy), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetViewLockedBy; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewLockedBy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewLockedBy.g.cs deleted file mode 100644 index 2b369b81..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewLockedBy.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// Included only in responses - /// - public sealed partial class DatasetViewLockedBy - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("email")] - public string? Email { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int? Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetViewLockedBy( - string? email, - int? id, - string? name) - { - this.Email = email; - this.Id = id; - this.Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetViewLockedBy() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewRequest.Json.g.cs deleted file mode 100644 index 55a86967..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class DatasetViewRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.DatasetViewRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.DatasetViewRequest), - jsonSerializerContext) as global::LabelStudio.DatasetViewRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.DatasetViewRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.DatasetViewRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.DatasetViewRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.DatasetViewRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewRequest.g.cs deleted file mode 100644 index aa20745c..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DatasetViewRequest.g.cs +++ /dev/null @@ -1,133 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class DatasetViewRequest - { - /// - /// Custom view data - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public object? Data { get; set; } - - /// - /// Dataset ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter_group")] - public global::LabelStudio.FilterGroupRequest? FilterGroup { get; set; } - - /// - /// Whether this data manager tab is locked against configuration changes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_locked")] - public bool? IsLocked { get; set; } - - /// - /// Time when this view was locked - /// - [global::System.Text.Json.Serialization.JsonPropertyName("locked_at")] - public global::System.DateTime? LockedAt { get; set; } - - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - [global::System.Text.Json.Serialization.JsonPropertyName("order")] - public int? Order { get; set; } - - /// - /// Ordering parameters - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ordering")] - public object? Ordering { get; set; } - - /// - /// Selected items - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selected_items")] - public object? SelectedItems { get; set; } - - /// - /// User who made this view - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public int? User { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Dataset ID - /// - /// - /// Custom view data - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DatasetViewRequest( - int dataset, - object? data, - global::LabelStudio.FilterGroupRequest? filterGroup, - bool? isLocked, - global::System.DateTime? lockedAt, - int? order, - object? ordering, - object? selectedItems, - int? user) - { - this.Data = data; - this.Dataset = dataset; - this.FilterGroup = filterGroup; - this.IsLocked = isLocked; - this.LockedAt = lockedAt; - this.Order = order; - this.Ordering = ordering; - this.SelectedItems = selectedItems; - this.User = user; - } - - /// - /// Initializes a new instance of the class. - /// - public DatasetViewRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterGroupRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterGroupRequest.Json.g.cs deleted file mode 100644 index e8891557..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterGroupRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class FilterGroupRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.FilterGroupRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.FilterGroupRequest), - jsonSerializerContext) as global::LabelStudio.FilterGroupRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.FilterGroupRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.FilterGroupRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.FilterGroupRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.FilterGroupRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterGroupRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterGroupRequest.g.cs deleted file mode 100644 index ef740fea..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterGroupRequest.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class FilterGroupRequest - { - /// - /// Type of conjunction - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conjunction")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Conjunction { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Filters { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Type of conjunction - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FilterGroupRequest( - string conjunction, - global::System.Collections.Generic.IList filters) - { - this.Conjunction = conjunction ?? throw new global::System.ArgumentNullException(nameof(conjunction)); - this.Filters = filters ?? throw new global::System.ArgumentNullException(nameof(filters)); - } - - /// - /// Initializes a new instance of the class. - /// - public FilterGroupRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterRequest.Json.g.cs deleted file mode 100644 index 9ae152a9..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class FilterRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.FilterRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.FilterRequest), - jsonSerializerContext) as global::LabelStudio.FilterRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.FilterRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.FilterRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.FilterRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.FilterRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterRequest.g.cs deleted file mode 100644 index 8b25fe19..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.FilterRequest.g.cs +++ /dev/null @@ -1,113 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class FilterRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("child_filters")] - public global::System.Collections.Generic.IList? ChildFilters { get; set; } - - /// - /// Field name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("column")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Column { get; set; } - - /// - /// Display order among root filters only - /// - [global::System.Text.Json.Serialization.JsonPropertyName("index")] - public int? Index { get; set; } - - /// - /// Filter operator - /// - [global::System.Text.Json.Serialization.JsonPropertyName("operator")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Operator { get; set; } - - /// - /// Optional parent filter to create one-level hierarchy (child filters are AND-merged with parent) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parent")] - public int? Parent { get; set; } - - /// - /// Field type - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Type { get; set; } - - /// - /// Filter value - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public object? Value { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Field name - /// - /// - /// Filter operator - /// - /// - /// Field type - /// - /// - /// - /// Display order among root filters only - /// - /// - /// Optional parent filter to create one-level hierarchy (child filters are AND-merged with parent) - /// - /// - /// Filter value - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FilterRequest( - string column, - string @operator, - string type, - global::System.Collections.Generic.IList? childFilters, - int? index, - int? parent, - object? value) - { - this.ChildFilters = childFilters; - this.Column = column ?? throw new global::System.ArgumentNullException(nameof(column)); - this.Index = index; - this.Operator = @operator ?? throw new global::System.ArgumentNullException(nameof(@operator)); - this.Parent = parent; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Value = value; - } - - /// - /// Initializes a new instance of the class. - /// - public FilterRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorage.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorage.Json.g.cs deleted file mode 100644 index dc7a3d01..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class GCSDatasetStorage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.GCSDatasetStorage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.GCSDatasetStorage), - jsonSerializerContext) as global::LabelStudio.GCSDatasetStorage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.GCSDatasetStorage? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.GCSDatasetStorage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.GCSDatasetStorage), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.GCSDatasetStorage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorage.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorage.g.cs deleted file mode 100644 index 8bbe95a4..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorage.g.cs +++ /dev/null @@ -1,341 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class GCSDatasetStorage - { - /// - /// GCS bucket name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] - public string? Bucket { get; set; } - - /// - /// Creation time
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime CreatedAt { get; set; } = default!; - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google_application_credentials")] - public string? GoogleApplicationCredentials { get; set; } - - /// - /// Google project ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] - public string? GoogleProjectId { get; set; } - - /// - /// Included only in responses - /// - /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int Id { get; set; } = default!; - - /// - /// Included only in responses - /// - [global::System.Text.Json.Serialization.JsonPropertyName("job_id")] - public string? JobId { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// GCS bucket prefix - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the bucket content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Default Value: gcs
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string Type { get; set; } = default!; - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// GCS bucket name - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Included only in responses - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// - /// Creation time
- /// Included only in responses - /// - /// - /// Included only in responses - /// - /// - /// Default Value: gcs
- /// Included only in responses - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GCSDatasetStorage( - int dataset, - string? bucket, - string? description, - string? globPattern, - string? googleApplicationCredentials, - string? googleProjectId, - string? jobId, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls, - global::System.DateTime createdAt = default!, - int id = default!, - string type = default!) - { - this.Bucket = bucket; - this.CreatedAt = createdAt; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.GoogleApplicationCredentials = googleApplicationCredentials; - this.GoogleProjectId = googleProjectId; - this.Id = id; - this.JobId = jobId; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.Type = type; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public GCSDatasetStorage() - { - } - - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static GCSDatasetStorage FromDataset(int dataset) - { - return new GCSDatasetStorage - { - Dataset = dataset, - }; - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorageRequest.Json.g.cs deleted file mode 100644 index 2116dc89..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorageRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class GCSDatasetStorageRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.GCSDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.GCSDatasetStorageRequest), - jsonSerializerContext) as global::LabelStudio.GCSDatasetStorageRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.GCSDatasetStorageRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.GCSDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.GCSDatasetStorageRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.GCSDatasetStorageRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorageRequest.g.cs deleted file mode 100644 index 95e5710b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSDatasetStorageRequest.g.cs +++ /dev/null @@ -1,278 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class GCSDatasetStorageRequest - { - /// - /// GCS bucket name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] - public string? Bucket { get; set; } - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google_application_credentials")] - public string? GoogleApplicationCredentials { get; set; } - - /// - /// Google project ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] - public string? GoogleProjectId { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// GCS bucket prefix - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the bucket content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// GCS bucket name - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GCSDatasetStorageRequest( - int dataset, - string? bucket, - string? description, - string? globPattern, - string? googleApplicationCredentials, - string? googleProjectId, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls) - { - this.Bucket = bucket; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.GoogleApplicationCredentials = googleApplicationCredentials; - this.GoogleProjectId = googleProjectId; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public GCSDatasetStorageRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceDetail.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceDetail.g.cs index 51f84f8d..fbf9817d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceDetail.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceDetail.g.cs @@ -4,7 +4,8 @@ namespace LabelStudio { /// - /// + /// Full course payload. `content`, `learner_content` and `modules` each carry the whole course, so clients pass
+ /// `omit` for the ones they do not read: an omitted field is never computed. ///
public sealed partial class LearningResourceDetail { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.MaybeExpandedComment.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.MaybeExpandedComment.g.cs index 22e3d19e..1dda4b82 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.MaybeExpandedComment.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.MaybeExpandedComment.g.cs @@ -12,10 +12,7 @@ namespace LabelStudio /// /// Comment Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
#if NET6_0_OR_GREATER public global::LabelStudio.Comment? Comment { get; init; } @@ -54,10 +51,7 @@ public bool TryPickComment( /// /// Comment Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
#if NET6_0_OR_GREATER public global::LabelStudio.CommentSerializerWithExpandedUser? SerializerWithUser { get; init; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAnnotationReviewRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAnnotationReviewRequest.g.cs index a6c7e6f6..94f3c725 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAnnotationReviewRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAnnotationReviewRequest.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// AnnotationReview Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class PatchedAnnotationReviewRequest { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAzureDatasetStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAzureDatasetStorageRequest.Json.g.cs deleted file mode 100644 index 20500b51..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAzureDatasetStorageRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class PatchedAzureDatasetStorageRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.PatchedAzureDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.PatchedAzureDatasetStorageRequest), - jsonSerializerContext) as global::LabelStudio.PatchedAzureDatasetStorageRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.PatchedAzureDatasetStorageRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.PatchedAzureDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.PatchedAzureDatasetStorageRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedAzureDatasetStorageRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAzureDatasetStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAzureDatasetStorageRequest.g.cs deleted file mode 100644 index fd6a43f0..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedAzureDatasetStorageRequest.g.cs +++ /dev/null @@ -1,277 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class PatchedAzureDatasetStorageRequest - { - /// - /// Azure Blob account key - /// - [global::System.Text.Json.Serialization.JsonPropertyName("account_key")] - public string? AccountKey { get; set; } - - /// - /// Azure Blob account name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("account_name")] - public string? AccountName { get; set; } - - /// - /// Azure blob container - /// - [global::System.Text.Json.Serialization.JsonPropertyName("container")] - public string? Container { get; set; } - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - public int? Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// Azure blob prefix name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the container content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Azure Blob account key - /// - /// - /// Azure Blob account name - /// - /// - /// Azure blob container - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// Azure blob prefix name - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the container content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchedAzureDatasetStorageRequest( - string? accountKey, - string? accountName, - string? container, - int? dataset, - string? description, - string? globPattern, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls) - { - this.AccountKey = accountKey; - this.AccountName = accountName; - this.Container = container; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchedAzureDatasetStorageRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedCommentRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedCommentRequest.g.cs index 2abf6cd5..6d4e270c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedCommentRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedCommentRequest.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// Comment Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class PatchedCommentRequest { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetImportCandidatesPatchRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetImportCandidatesPatchRequest.Json.g.cs deleted file mode 100644 index af47093b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetImportCandidatesPatchRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class PatchedDatasetImportCandidatesPatchRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest), - jsonSerializerContext) as global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedDatasetImportCandidatesPatchRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetImportCandidatesPatchRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetImportCandidatesPatchRequest.g.cs deleted file mode 100644 index 8f4f6a71..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetImportCandidatesPatchRequest.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class PatchedDatasetImportCandidatesPatchRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("job_id")] - public int? JobId { get; set; } - - /// - /// Operation type. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signal")] - public string? Signal { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Operation type. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchedDatasetImportCandidatesPatchRequest( - int? jobId, - string? signal) - { - this.JobId = jobId; - this.Signal = signal; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchedDatasetImportCandidatesPatchRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetRequest.Json.g.cs deleted file mode 100644 index 8d192011..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class PatchedDatasetRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.PatchedDatasetRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.PatchedDatasetRequest), - jsonSerializerContext) as global::LabelStudio.PatchedDatasetRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.PatchedDatasetRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.PatchedDatasetRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.PatchedDatasetRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedDatasetRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetRequest.g.cs deleted file mode 100644 index cb0da090..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetRequest.g.cs +++ /dev/null @@ -1,108 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class PatchedDatasetRequest - { - /// - /// All data columns found in Dataset tasks - /// - [global::System.Text.Json.Serialization.JsonPropertyName("columns")] - public object? Columns { get; set; } - - /// - /// User who created Dataset - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - public global::LabelStudio.UserSimpleRequest? CreatedBy { get; set; } - - /// - /// Dataset description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - - /// - /// Dataset title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_entities")] - public int? TotalEntities { get; set; } - - /// - /// Dataset name for weaviate schema - /// - [global::System.Text.Json.Serialization.JsonPropertyName("vector_db_dataset_name")] - public string? VectorDbDatasetName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// All data columns found in Dataset tasks - /// - /// - /// User who created Dataset - /// - /// - /// Dataset description - /// - /// - /// - /// Dataset title - /// - /// - /// - /// Dataset name for weaviate schema - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchedDatasetRequest( - object? columns, - global::LabelStudio.UserSimpleRequest? createdBy, - string? description, - int? organization, - string? title, - int? totalEntities, - string? vectorDbDatasetName) - { - this.Columns = columns; - this.CreatedBy = createdBy; - this.Description = description; - this.Organization = organization; - this.Title = title; - this.TotalEntities = totalEntities; - this.VectorDbDatasetName = vectorDbDatasetName; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchedDatasetRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetViewRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetViewRequest.Json.g.cs deleted file mode 100644 index a5dcbd0b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetViewRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class PatchedDatasetViewRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.PatchedDatasetViewRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.PatchedDatasetViewRequest), - jsonSerializerContext) as global::LabelStudio.PatchedDatasetViewRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.PatchedDatasetViewRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.PatchedDatasetViewRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.PatchedDatasetViewRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedDatasetViewRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetViewRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetViewRequest.g.cs deleted file mode 100644 index d87e1f75..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDatasetViewRequest.g.cs +++ /dev/null @@ -1,132 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class PatchedDatasetViewRequest - { - /// - /// Custom view data - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public object? Data { get; set; } - - /// - /// Dataset ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - public int? Dataset { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter_group")] - public global::LabelStudio.FilterGroupRequest? FilterGroup { get; set; } - - /// - /// Whether this data manager tab is locked against configuration changes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_locked")] - public bool? IsLocked { get; set; } - - /// - /// Time when this view was locked - /// - [global::System.Text.Json.Serialization.JsonPropertyName("locked_at")] - public global::System.DateTime? LockedAt { get; set; } - - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - [global::System.Text.Json.Serialization.JsonPropertyName("order")] - public int? Order { get; set; } - - /// - /// Ordering parameters - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ordering")] - public object? Ordering { get; set; } - - /// - /// Selected items - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selected_items")] - public object? SelectedItems { get; set; } - - /// - /// User who made this view - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public int? User { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Custom view data - /// - /// - /// Dataset ID - /// - /// - /// - /// Whether this data manager tab is locked against configuration changes - /// - /// - /// Time when this view was locked - /// - /// - /// Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - /// - /// - /// Ordering parameters - /// - /// - /// Selected items - /// - /// - /// User who made this view - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchedDatasetViewRequest( - object? data, - int? dataset, - global::LabelStudio.FilterGroupRequest? filterGroup, - bool? isLocked, - global::System.DateTime? lockedAt, - int? order, - object? ordering, - object? selectedItems, - int? user) - { - this.Data = data; - this.Dataset = dataset; - this.FilterGroup = filterGroup; - this.IsLocked = isLocked; - this.LockedAt = lockedAt; - this.Order = order; - this.Ordering = ordering; - this.SelectedItems = selectedItems; - this.User = user; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchedDatasetViewRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSDatasetStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSDatasetStorageRequest.Json.g.cs deleted file mode 100644 index 29428187..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSDatasetStorageRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class PatchedGCSDatasetStorageRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.PatchedGCSDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.PatchedGCSDatasetStorageRequest), - jsonSerializerContext) as global::LabelStudio.PatchedGCSDatasetStorageRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.PatchedGCSDatasetStorageRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.PatchedGCSDatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.PatchedGCSDatasetStorageRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedGCSDatasetStorageRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSDatasetStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSDatasetStorageRequest.g.cs deleted file mode 100644 index aebdec17..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSDatasetStorageRequest.g.cs +++ /dev/null @@ -1,277 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class PatchedGCSDatasetStorageRequest - { - /// - /// GCS bucket name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] - public string? Bucket { get; set; } - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - public int? Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google_application_credentials")] - public string? GoogleApplicationCredentials { get; set; } - - /// - /// Google project ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] - public string? GoogleProjectId { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// GCS bucket prefix - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the bucket content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// GCS bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// The content of GOOGLE_APPLICATION_CREDENTIALS json file - /// - /// - /// Google project ID - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// GCS bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchedGCSDatasetStorageRequest( - string? bucket, - int? dataset, - string? description, - string? globPattern, - string? googleApplicationCredentials, - string? googleProjectId, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls) - { - this.Bucket = bucket; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.GoogleApplicationCredentials = googleApplicationCredentials; - this.GoogleProjectId = googleProjectId; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchedGCSDatasetStorageRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedS3DatasetStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedS3DatasetStorageRequest.Json.g.cs deleted file mode 100644 index 70b42512..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedS3DatasetStorageRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class PatchedS3DatasetStorageRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.PatchedS3DatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.PatchedS3DatasetStorageRequest), - jsonSerializerContext) as global::LabelStudio.PatchedS3DatasetStorageRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.PatchedS3DatasetStorageRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.PatchedS3DatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.PatchedS3DatasetStorageRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedS3DatasetStorageRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedS3DatasetStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedS3DatasetStorageRequest.g.cs deleted file mode 100644 index 1cdc4ad7..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedS3DatasetStorageRequest.g.cs +++ /dev/null @@ -1,321 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class PatchedS3DatasetStorageRequest - { - /// - /// AWS_ACCESS_KEY_ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_access_key_id")] - public string? AwsAccessKeyId { get; set; } - - /// - /// AWS_SECRET_ACCESS_KEY - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_secret_access_key")] - public string? AwsSecretAccessKey { get; set; } - - /// - /// AWS_SESSION_TOKEN - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_session_token")] - public string? AwsSessionToken { get; set; } - - /// - /// AWS SSE KMS Key ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_sse_kms_key_id")] - public string? AwsSseKmsKeyId { get; set; } - - /// - /// S3 bucket name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] - public string? Bucket { get; set; } - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - public int? Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// S3 bucket prefix - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the bucket content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// AWS Region - /// - [global::System.Text.Json.Serialization.JsonPropertyName("region_name")] - public string? RegionName { get; set; } - - /// - /// S3 Endpoint - /// - [global::System.Text.Json.Serialization.JsonPropertyName("s3_endpoint")] - public string? S3Endpoint { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchedS3DatasetStorageRequest( - string? awsAccessKeyId, - string? awsSecretAccessKey, - string? awsSessionToken, - string? awsSseKmsKeyId, - string? bucket, - int? dataset, - string? description, - string? globPattern, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - string? regionName, - string? s3Endpoint, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls) - { - this.AwsAccessKeyId = awsAccessKeyId; - this.AwsSecretAccessKey = awsSecretAccessKey; - this.AwsSessionToken = awsSessionToken; - this.AwsSseKmsKeyId = awsSseKmsKeyId; - this.Bucket = bucket; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.RegionName = regionName; - this.S3Endpoint = s3Endpoint; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchedS3DatasetStorageRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorage.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorage.Json.g.cs deleted file mode 100644 index ede0ecfd..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class S3DatasetStorage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.S3DatasetStorage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.S3DatasetStorage), - jsonSerializerContext) as global::LabelStudio.S3DatasetStorage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.S3DatasetStorage? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.S3DatasetStorage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.S3DatasetStorage), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.S3DatasetStorage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorage.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorage.g.cs deleted file mode 100644 index 1a6187cc..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorage.g.cs +++ /dev/null @@ -1,385 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class S3DatasetStorage - { - /// - /// AWS_ACCESS_KEY_ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_access_key_id")] - public string? AwsAccessKeyId { get; set; } - - /// - /// AWS_SECRET_ACCESS_KEY - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_secret_access_key")] - public string? AwsSecretAccessKey { get; set; } - - /// - /// AWS_SESSION_TOKEN - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_session_token")] - public string? AwsSessionToken { get; set; } - - /// - /// AWS SSE KMS Key ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_sse_kms_key_id")] - public string? AwsSseKmsKeyId { get; set; } - - /// - /// S3 bucket name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] - public string? Bucket { get; set; } - - /// - /// Creation time
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime CreatedAt { get; set; } = default!; - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// Included only in responses - /// - /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int Id { get; set; } = default!; - - /// - /// Included only in responses - /// - [global::System.Text.Json.Serialization.JsonPropertyName("job_id")] - public string? JobId { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// S3 bucket prefix - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the bucket content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// AWS Region - /// - [global::System.Text.Json.Serialization.JsonPropertyName("region_name")] - public string? RegionName { get; set; } - - /// - /// S3 Endpoint - /// - [global::System.Text.Json.Serialization.JsonPropertyName("s3_endpoint")] - public string? S3Endpoint { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Default Value: s3
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string Type { get; set; } = default!; - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Included only in responses - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// - /// - /// Creation time
- /// Included only in responses - /// - /// - /// Included only in responses - /// - /// - /// Default Value: s3
- /// Included only in responses - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public S3DatasetStorage( - int dataset, - string? awsAccessKeyId, - string? awsSecretAccessKey, - string? awsSessionToken, - string? awsSseKmsKeyId, - string? bucket, - string? description, - string? globPattern, - string? jobId, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - string? regionName, - string? s3Endpoint, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls, - global::System.DateTime createdAt = default!, - int id = default!, - string type = default!) - { - this.AwsAccessKeyId = awsAccessKeyId; - this.AwsSecretAccessKey = awsSecretAccessKey; - this.AwsSessionToken = awsSessionToken; - this.AwsSseKmsKeyId = awsSseKmsKeyId; - this.Bucket = bucket; - this.CreatedAt = createdAt; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.Id = id; - this.JobId = jobId; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.RegionName = regionName; - this.S3Endpoint = s3Endpoint; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.Type = type; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public S3DatasetStorage() - { - } - - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static S3DatasetStorage FromDataset(int dataset) - { - return new S3DatasetStorage - { - Dataset = dataset, - }; - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorageRequest.Json.g.cs deleted file mode 100644 index 3bc98e8b..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorageRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace LabelStudio -{ - public sealed partial class S3DatasetStorageRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::LabelStudio.S3DatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::LabelStudio.S3DatasetStorageRequest), - jsonSerializerContext) as global::LabelStudio.S3DatasetStorageRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::LabelStudio.S3DatasetStorageRequest? FromJson( - string json) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::LabelStudio.S3DatasetStorageRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::LabelStudio.S3DatasetStorageRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.S3DatasetStorageRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::LabelStudio.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorageRequest.g.cs deleted file mode 100644 index 6253ce40..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.S3DatasetStorageRequest.g.cs +++ /dev/null @@ -1,322 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - /// - /// - /// - public sealed partial class S3DatasetStorageRequest - { - /// - /// AWS_ACCESS_KEY_ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_access_key_id")] - public string? AwsAccessKeyId { get; set; } - - /// - /// AWS_SECRET_ACCESS_KEY - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_secret_access_key")] - public string? AwsSecretAccessKey { get; set; } - - /// - /// AWS_SESSION_TOKEN - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_session_token")] - public string? AwsSessionToken { get; set; } - - /// - /// AWS SSE KMS Key ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aws_sse_kms_key_id")] - public string? AwsSseKmsKeyId { get; set; } - - /// - /// S3 bucket name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] - public string? Bucket { get; set; } - - /// - /// A unique integer value identifying this dataset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Dataset { get; set; } - - /// - /// Cloud storage description - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Glob pattern for syncing from bucket - /// - [global::System.Text.Json.Serialization.JsonPropertyName("glob_pattern")] - public string? GlobPattern { get; set; } - - /// - /// Last sync finished time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] - public global::System.DateTime? LastSync { get; set; } - - /// - /// Count of tasks synced last time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] - public int? LastSyncCount { get; set; } - - /// - /// Last sync job ID - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] - public string? LastSyncJob { get; set; } - - /// - /// Meta and debug information about storage processes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// S3 bucket prefix - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign")] - public bool? Presign { get; set; } - - /// - /// Presigned URLs TTL (in minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] - public int? PresignTtl { get; set; } - - /// - /// Perform recursive scan over the bucket content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] - public bool? RecursiveScan { get; set; } - - /// - /// Cloud storage regex for filtering objects - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] - public string? RegexFilter { get; set; } - - /// - /// AWS Region - /// - [global::System.Text.Json.Serialization.JsonPropertyName("region_name")] - public string? RegionName { get; set; } - - /// - /// S3 Endpoint - /// - [global::System.Text.Json.Serialization.JsonPropertyName("s3_endpoint")] - public string? S3Endpoint { get; set; } - - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StorageStatusEnumJsonConverter))] - public global::LabelStudio.StorageStatusEnum? Status { get; set; } - - /// - /// Flag if dataset has been previously synced or not - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synced")] - public bool? Synced { get; set; } - - /// - /// Default Value: true - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] - public bool? Synchronizable { get; set; } - - /// - /// Cloud storage title - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Traceback report for the last failed sync - /// - [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] - public string? Traceback { get; set; } - - /// - /// Interpret objects as BLOBs and generate URLs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] - public bool? UseBlobUrls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique integer value identifying this dataset. - /// - /// - /// AWS_ACCESS_KEY_ID - /// - /// - /// AWS_SECRET_ACCESS_KEY - /// - /// - /// AWS_SESSION_TOKEN - /// - /// - /// AWS SSE KMS Key ID - /// - /// - /// S3 bucket name - /// - /// - /// Cloud storage description - /// - /// - /// Glob pattern for syncing from bucket - /// - /// - /// Last sync finished time - /// - /// - /// Count of tasks synced last time - /// - /// - /// Last sync job ID - /// - /// - /// Meta and debug information about storage processes - /// - /// - /// S3 bucket prefix - /// - /// - /// Default Value: true - /// - /// - /// Presigned URLs TTL (in minutes) - /// - /// - /// Perform recursive scan over the bucket content - /// - /// - /// Cloud storage regex for filtering objects - /// - /// - /// AWS Region - /// - /// - /// S3 Endpoint - /// - /// - /// * `initialized` - Initialized
- /// * `queued` - Queued
- /// * `in_progress` - In progress
- /// * `failed` - Failed
- /// * `completed` - Completed
- /// * `completed_with_errors` - Completed with errors - /// - /// - /// Flag if dataset has been previously synced or not - /// - /// - /// Default Value: true - /// - /// - /// Cloud storage title - /// - /// - /// Traceback report for the last failed sync - /// - /// - /// Interpret objects as BLOBs and generate URLs - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public S3DatasetStorageRequest( - int dataset, - string? awsAccessKeyId, - string? awsSecretAccessKey, - string? awsSessionToken, - string? awsSseKmsKeyId, - string? bucket, - string? description, - string? globPattern, - global::System.DateTime? lastSync, - int? lastSyncCount, - string? lastSyncJob, - object? meta, - string? prefix, - bool? presign, - int? presignTtl, - bool? recursiveScan, - string? regexFilter, - string? regionName, - string? s3Endpoint, - global::LabelStudio.StorageStatusEnum? status, - bool? synced, - bool? synchronizable, - string? title, - string? traceback, - bool? useBlobUrls) - { - this.AwsAccessKeyId = awsAccessKeyId; - this.AwsSecretAccessKey = awsSecretAccessKey; - this.AwsSessionToken = awsSessionToken; - this.AwsSseKmsKeyId = awsSseKmsKeyId; - this.Bucket = bucket; - this.Dataset = dataset; - this.Description = description; - this.GlobPattern = globPattern; - this.LastSync = lastSync; - this.LastSyncCount = lastSyncCount; - this.LastSyncJob = lastSyncJob; - this.Meta = meta; - this.Prefix = prefix; - this.Presign = presign; - this.PresignTtl = presignTtl; - this.RecursiveScan = recursiveScan; - this.RegexFilter = regexFilter; - this.RegionName = regionName; - this.S3Endpoint = s3Endpoint; - this.Status = status; - this.Synced = synced; - this.Synchronizable = synchronizable; - this.Title = title; - this.Traceback = traceback; - this.UseBlobUrls = useBlobUrls; - } - - /// - /// Initializes a new instance of the class. - /// - public S3DatasetStorageRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.TaskAssignment.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.TaskAssignment.g.cs index 8e4e6a9c..17b47510 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.TaskAssignment.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.TaskAssignment.g.cs @@ -6,10 +6,7 @@ namespace LabelStudio /// /// TaskAssignment Serializer with FSM state support.
/// Note: The 'state' field will be populated from the queryset annotation
- /// if present, preventing N+1 queries. Use .with_state() on your queryset.
- /// The state field display is controlled by both:
- /// - fflag_feat_fit_568_finite_state_management (FSM background calculations)
- /// - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) + /// if present, preventing N+1 queries. Use .with_state() on your queryset. ///
public sealed partial class TaskAssignment { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects.JsonSerializerContext.g.cs index ea5953a7..2213cb9d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects.JsonSerializerContext.g.cs @@ -53,8 +53,8 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ControlTagWeightRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectImportStatusEnum), TypeInfoPropertyName = "ProjectImportStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CustomFunctionCodeRequestRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCPCustomFunctionUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseFields))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OnboardingStateEnum), TypeInfoPropertyName = "OnboardingStateEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TrialRoleEnum), TypeInfoPropertyName = "TrialRoleEnum2")] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts.JsonSerializerContext.g.cs index 09547124..2fd7c057 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts.JsonSerializerContext.g.cs @@ -51,12 +51,12 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CancelModelRunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DefaultModelVersionNameResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FewShotExample))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FewShotExampleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.InferenceRunCostEstimate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSEKeyIndicatorValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelInterface))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SkillNameEnum), TypeInfoPropertyName = "SkillNameEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelInterfaceRequest))] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesList.g.cs deleted file mode 100644 index 0f3c51fc..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesList.g.cs +++ /dev/null @@ -1,406 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class StorageClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesListSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesListSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesListSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesListArguments( - global::System.Net.Http.HttpClient httpClient, - ref string? ordering); - partial void PrepareApiDatasetStoragesListRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? ordering); - partial void ProcessApiDatasetStoragesListResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// List all dataset storages from the project
- /// Retrieve a list of the dataset storages of all types with their IDs. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesListAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetStoragesListAsResponseAsync( - ordering: ordering, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// List all dataset storages from the project
- /// Retrieve a list of the dataset storages of all types with their IDs. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesListAsResponseAsync( - string? ordering = default, - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesListArguments( - httpClient: HttpClient, - ordering: ref ordering); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesListSecurityRequirements, - operationName: "ApiDatasetStoragesListAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("ordering", ordering) - ; - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesListRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - ordering: ordering); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesList", - methodName: "ApiDatasetStoragesListAsync", - pathTemplate: "\"/api/dataset-storages/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesList", - methodName: "ApiDatasetStoragesListAsync", - pathTemplate: "\"/api/dataset-storages/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesList", - methodName: "ApiDatasetStoragesListAsync", - pathTemplate: "\"/api/dataset-storages/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesListResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesList", - methodName: "ApiDatasetStoragesListAsync", - pathTemplate: "\"/api/dataset-storages/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesList", - methodName: "ApiDatasetStoragesListAsync", - pathTemplate: "\"/api/dataset-storages/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesTypesRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesTypesRetrieve.g.cs deleted file mode 100644 index 1c704786..00000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesTypesRetrieve.g.cs +++ /dev/null @@ -1,394 +0,0 @@ - -#nullable enable - -namespace LabelStudio -{ - public partial class StorageClient - { - - - private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesTypesRetrieveSecurityRequirement0 = - new global::LabelStudio.EndPointSecurityRequirement - { - Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] - { new global::LabelStudio.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "Token", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesTypesRetrieveSecurityRequirements = - new global::LabelStudio.EndPointSecurityRequirement[] - { s_ApiDatasetStoragesTypesRetrieveSecurityRequirement0, - }; - partial void PrepareApiDatasetStoragesTypesRetrieveArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareApiDatasetStoragesTypesRetrieveRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessApiDatasetStoragesTypesRetrieveResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// List all dataset storages types
- /// Retrieve a list of the dataset storages types. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesTypesRetrieveAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await ApiDatasetStoragesTypesRetrieveAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// List all dataset storages types
- /// Retrieve a list of the dataset storages types. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task ApiDatasetStoragesTypesRetrieveAsResponseAsync( - global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareApiDatasetStoragesTypesRetrieveArguments( - httpClient: HttpClient); - - - var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ApiDatasetStoragesTypesRetrieveSecurityRequirements, - operationName: "ApiDatasetStoragesTypesRetrieveAsync"); - - using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::LabelStudio.PathBuilder( - path: "/api/dataset-storages/types/", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareApiDatasetStoragesTypesRetrieveRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesTypesRetrieve", - methodName: "ApiDatasetStoragesTypesRetrieveAsync", - pathTemplate: "\"/api/dataset-storages/types/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesTypesRetrieve", - methodName: "ApiDatasetStoragesTypesRetrieveAsync", - pathTemplate: "\"/api/dataset-storages/types/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesTypesRetrieve", - methodName: "ApiDatasetStoragesTypesRetrieveAsync", - pathTemplate: "\"/api/dataset-storages/types/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessApiDatasetStoragesTypesRetrieveResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesTypesRetrieve", - methodName: "ApiDatasetStoragesTypesRetrieveAsync", - pathTemplate: "\"/api/dataset-storages/types/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ApiDatasetStoragesTypesRetrieve", - methodName: "ApiDatasetStoragesTypesRetrieveAsync", - pathTemplate: "\"/api/dataset-storages/types/\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::LabelStudio.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index c0980b3f..6074b608 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -1948,1473 +1948,6 @@ paths: - public x-fern-sdk-group-name: users x-fern-sdk-method-name: whoami - /api/dataset-storages/: - get: - description: Retrieve a list of the dataset storages of all types with their IDs. - operationId: api_dataset_storages_list - parameters: - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - description: List of DatasetStorageSerializer - security: - - Token: [] - summary: List all dataset storages from the project - tags: - - Storage - x-fern-audiences: - - internal - /api/dataset-storages/azure/: - get: - description: Get a list of all Azure import storage connections. - operationId: api_dataset_storages_azure_list - parameters: - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/AzureDatasetStorage' - type: array - description: '' - security: - - Token: [] - summary: Get all import storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - post: - description: Create a new Azure import storage connection. - operationId: api_dataset_storages_azure_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorage' - description: '' - security: - - Token: [] - summary: Create import storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - /api/dataset-storages/azure/check-for-records/: - post: - description: Checks for existence of records matching the file pattern in the bucket/prefix - operationId: api_dataset_storages_azure_check_for_records_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorage' - description: '' - security: - - Token: [] - summary: Check for records given the file pattern - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - /api/dataset-storages/azure/validate/: - post: - description: Validate a specific Azure import storage connection. - operationId: api_dataset_storages_azure_validate_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorage' - description: '' - security: - - Token: [] - summary: Validate import storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - /api/dataset-storages/azure/{id}/: - delete: - description: Delete a specific Azure import storage connection. - operationId: api_dataset_storages_azure_destroy - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '204': - description: No response body - security: - - Token: [] - summary: Delete import storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - get: - description: Get a specific Azure import storage connection. - operationId: api_dataset_storages_azure_retrieve - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorage' - description: '' - security: - - Token: [] - summary: Get import storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - patch: - description: Update a specific Azure import storage connection. - operationId: api_dataset_storages_azure_partial_update - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedAzureDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/PatchedAzureDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedAzureDatasetStorageRequest' - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorage' - description: '' - security: - - Token: [] - summary: Update import storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - /api/dataset-storages/azure/{id}/columns/: - get: - description: Retrieves column names from users JSON/blob data in bucket - operationId: api_dataset_storages_azure_columns_retrieve - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetStorageColumnsResponse' - description: '' - security: - - Token: [] - summary: Get data column names from storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - /api/dataset-storages/azure/{id}/sync/: - post: - description: Sync tasks from an Azure import storage connection. - operationId: api_dataset_storages_azure_sync_create - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/AzureDatasetStorageRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/AzureDatasetStorage' - description: '' - security: - - Token: [] - summary: Sync import storage - tags: - - 'Dataset Storage: Azure' - x-fern-audiences: - - internal - /api/dataset-storages/gcs/: - get: - description: Get a list of all GCS import storage connections. - operationId: api_dataset_storages_gcs_list - parameters: - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/GCSDatasetStorage' - type: array - description: '' - security: - - Token: [] - summary: Get all import storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - post: - description: Create a new GCS import storage connection. - operationId: api_dataset_storages_gcs_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorage' - description: '' - security: - - Token: [] - summary: Create import storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - /api/dataset-storages/gcs/check-for-records/: - post: - description: Checks for existence of records matching the file pattern in the bucket/prefix - operationId: api_dataset_storages_gcs_check_for_records_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorage' - description: '' - security: - - Token: [] - summary: Check for records given the file pattern - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - /api/dataset-storages/gcs/validate/: - post: - description: Validate a specific GCS import storage connection. - operationId: api_dataset_storages_gcs_validate_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorage' - description: '' - security: - - Token: [] - summary: Validate import storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - /api/dataset-storages/gcs/{id}/: - delete: - description: Delete a specific GCS import storage connection. - operationId: api_dataset_storages_gcs_destroy - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '204': - description: No response body - security: - - Token: [] - summary: Delete import storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - get: - description: Get a specific GCS import storage connection. - operationId: api_dataset_storages_gcs_retrieve - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorage' - description: '' - security: - - Token: [] - summary: Get import storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - patch: - description: Update a specific GCS import storage connection. - operationId: api_dataset_storages_gcs_partial_update - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedGCSDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/PatchedGCSDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedGCSDatasetStorageRequest' - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorage' - description: '' - security: - - Token: [] - summary: Update import storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - /api/dataset-storages/gcs/{id}/columns/: - get: - description: Retrieves column names from users JSON/blob data in bucket - operationId: api_dataset_storages_gcs_columns_retrieve - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetStorageColumnsResponse' - description: '' - security: - - Token: [] - summary: Get data column names from storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - /api/dataset-storages/gcs/{id}/sync/: - post: - description: Sync tasks from an GCS import storage connection. - operationId: api_dataset_storages_gcs_sync_create - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GCSDatasetStorageRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/GCSDatasetStorage' - description: '' - security: - - Token: [] - summary: Sync import storage - tags: - - 'Dataset Storage: GCS' - x-fern-audiences: - - internal - /api/dataset-storages/s3/: - get: - description: Get a list of all S3 import storage connections. - operationId: api_dataset_storages_s3_list - parameters: - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/S3DatasetStorage' - type: array - description: '' - security: - - Token: [] - summary: Get all import storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - post: - description: Create a new S3 import storage connection. - operationId: api_dataset_storages_s3_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorage' - description: '' - security: - - Token: [] - summary: Create import storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - /api/dataset-storages/s3/check-for-records/: - post: - description: Checks for existence of records matching the file pattern in the bucket/prefix - operationId: api_dataset_storages_s3_check_for_records_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorage' - description: '' - security: - - Token: [] - summary: Check for records given the file pattern - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - /api/dataset-storages/s3/validate/: - post: - description: Validate a specific S3 import storage connection. - operationId: api_dataset_storages_s3_validate_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorage' - description: '' - security: - - Token: [] - summary: Validate import storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - /api/dataset-storages/s3/{id}/: - delete: - description: Delete a specific S3 import storage connection. - operationId: api_dataset_storages_s3_destroy - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '204': - description: No response body - security: - - Token: [] - summary: Delete import storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - get: - description: Get a specific S3 import storage connection. - operationId: api_dataset_storages_s3_retrieve - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorage' - description: '' - security: - - Token: [] - summary: Get import storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - patch: - description: Update a specific S3 import storage connection. - operationId: api_dataset_storages_s3_partial_update - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedS3DatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/PatchedS3DatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedS3DatasetStorageRequest' - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorage' - description: '' - security: - - Token: [] - summary: Update import storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - /api/dataset-storages/s3/{id}/columns/: - get: - description: Retrieves column names from users JSON/blob data in bucket - operationId: api_dataset_storages_s3_columns_retrieve - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetStorageColumnsResponse' - description: '' - security: - - Token: [] - summary: Get data column names from storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - /api/dataset-storages/s3/{id}/sync/: - post: - description: Sync tasks from an S3 import storage connection. - operationId: api_dataset_storages_s3_sync_create - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/S3DatasetStorageRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/S3DatasetStorage' - description: '' - security: - - Token: [] - summary: Sync import storage - tags: - - 'Dataset Storage: S3' - x-fern-audiences: - - internal - /api/dataset-storages/types/: - get: - description: Retrieve a list of the dataset storages types. - operationId: api_dataset_storages_types_retrieve - responses: - '200': - description: 'A list of dataset storages types {''name'': name, ''title'': title}.' - security: - - Token: [] - summary: List all dataset storages types - tags: - - Storage - x-fern-audiences: - - internal - /api/datasets/: - get: - description: List all datasets. - operationId: api_datasets_list - parameters: - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/Dataset' - type: array - description: '' - security: - - Token: [] - summary: List datasets - tags: - - Datasets - x-fern-audiences: - - internal - post: - description: Create a new dataset. - operationId: api_datasets_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/DatasetRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DatasetRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Dataset' - description: '' - security: - - Token: [] - summary: Create dataset - tags: - - Datasets - x-fern-audiences: - - internal - /api/datasets/columns: - get: - description: Retrieve the data explorer columns available for a specific Dataset. - operationId: api_datasets_columns_retrieve - parameters: - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetColumnsResponse' - description: '' - security: - - Token: [] - summary: Get data explorer columns - tags: - - Data Explorer - x-fern-audiences: - - internal - /api/datasets/import: - patch: - description: Export Candidate task for a specific dataset to project. - operationId: api_datasets_import_partial_update - parameters: - - description: Job ID to start or cancel - in: query - name: job_id - schema: - type: integer - - description: 'Signal type: start or cancel' - in: query - name: signal - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDatasetImportCandidatesPatchRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/PatchedDatasetImportCandidatesPatchRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedDatasetImportCandidatesPatchRequest' - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetImportCandidatesResponse' - description: '' - security: - - Token: [] - summary: Export candidate tasks to project - tags: - - Datasets - x-fern-audiences: - - internal - post: - description: "\n Export Candidate task for a specific dataset to project.\n " - operationId: api_datasets_import_create - parameters: - - description: Additional filters like page and page_size to limit export - in: query - name: additional_filters - schema: - additionalProperties: {} - type: object - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - - description: Candidate tasks IDs to exclude from export - in: query - name: excluded - schema: - additionalProperties: {} - type: object - - description: Candidate tasks IDs from vectordb database - in: query - name: included - schema: - additionalProperties: {} - type: object - - description: Project ID - in: query - name: project - schema: - type: integer - - description: View ID - in: query - name: view - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetImportCandidatesCreateRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/DatasetImportCandidatesCreateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DatasetImportCandidatesCreateRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetImportCandidatesResponse' - description: '' - security: - - Token: [] - summary: Export candidate tasks to project - tags: - - Data Explorer - x-fern-audiences: - - internal - /api/datasets/tasks: - get: - description: "\n Retrieve a list of Data Explorer tasks with pagination for a specific view or dataset, by using filters and ordering.\n " - operationId: api_datasets_tasks_retrieve - parameters: - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - - description: Maximum threshold for candidate score - in: query - name: max_threshold - schema: - type: number - - description: Minimum threshold for candidate score - in: query - name: min_threshold - schema: - type: number - - description: Page number in request - in: query - name: page - schema: - type: integer - - description: Number of tasks to return in response - in: query - name: page_size - schema: - type: integer - - description: View ID - in: query - name: view - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetView' - description: '' - security: - - Token: [] - summary: Get Data Explorer tasks list - tags: - - Data Explorer - x-fern-audiences: - - internal - /api/datasets/tasks/metadata: - get: - description: "\n Retrieve Candidate task metadata for a specific dataset, by using candidate_task_id or weaviate_id.\n " - operationId: api_datasets_tasks_metadata_retrieve - parameters: - - description: Candidate task path in the bucket - in: query - name: candidate_task_id - schema: - type: string - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - - description: Task ID from vectordb database - in: query - name: vectordb_id - schema: - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetTasksMetadataResponse' - description: '' - security: - - Token: [] - summary: Get Candidate task metadata - tags: - - Data Explorer - x-fern-audiences: - - internal - /api/datasets/views/: - get: - description: List all views for a specific dataset. - operationId: api_datasets_views_list - parameters: - - description: Dataset ID - in: query - name: dataset - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/DatasetView' - type: array - description: '' - security: - - Token: [] - summary: List dataset views - tags: - - Datasets - x-fern-audiences: - - internal - post: - description: Create a view for a specific dataset. - operationId: api_datasets_views_create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetViewRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/DatasetViewRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DatasetViewRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetView' - description: '' - security: - - Token: [] - summary: Create dataset view - tags: - - Datasets - x-fern-audiences: - - internal - /api/datasets/views/reset/: - delete: - description: Reset all views for a specific dataset. - operationId: api_datasets_views_reset_destroy - responses: - '204': - description: No response body - security: - - Token: [] - summary: Reset dataset views - tags: - - Datasets - x-fern-audiences: - - internal - /api/datasets/views/{id}/: - delete: - description: Delete a specific view by ID. - operationId: api_datasets_views_destroy - parameters: - - description: View ID - in: path - name: id - required: true - schema: - type: string - responses: - '204': - description: No response body - security: - - Token: [] - summary: Delete dataset view - tags: - - Datasets - x-fern-audiences: - - internal - get: - description: Get the details about a specific view in the data manager - operationId: api_datasets_views_retrieve - parameters: - - description: View ID - in: path - name: id - required: true - schema: - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetView' - description: '' - security: - - Token: [] - summary: Get dataset view details - tags: - - Datasets - x-fern-audiences: - - internal - patch: - description: Update view data with additional filters and other information for a specific dataset. - operationId: api_datasets_views_partial_update - parameters: - - description: View ID - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDatasetViewRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/PatchedDatasetViewRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedDatasetViewRequest' - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetView' - description: '' - security: - - Token: [] - summary: Update dataset view - tags: - - Datasets - x-fern-audiences: - - internal - put: - description: Overwrite view data with updated filters and other information for a specific dataset. - operationId: api_datasets_views_update - parameters: - - description: View ID - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetViewRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/DatasetViewRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DatasetViewRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetView' - description: '' - security: - - Token: [] - summary: Put dataset view - tags: - - Datasets - x-fern-audiences: - - internal - /api/datasets/{id}/: - delete: - description: Delete a dataset by ID - operationId: api_datasets_destroy - parameters: - - description: A unique integer value identifying this dataset. - in: path - name: id - required: true - schema: - type: integer - responses: - '204': - description: No response body - security: - - Token: [] - summary: Delete dataset - tags: - - Datasets - x-fern-audiences: - - internal - get: - description: Retrieve a specific dataset. - operationId: api_datasets_retrieve - parameters: - - description: A unique integer value identifying this dataset. - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dataset' - description: '' - security: - - Token: [] - summary: Get dataset - tags: - - Datasets - x-fern-audiences: - - internal - patch: - description: Update a specific dataset by ID. - operationId: api_datasets_partial_update - parameters: - - description: A unique integer value identifying this dataset. - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDatasetRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/PatchedDatasetRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedDatasetRequest' - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dataset' - description: '' - security: - - Token: [] - summary: Update dataset - tags: - - Datasets - x-fern-audiences: - - internal - put: - description: Overwrite a specific dataset by ID. - operationId: api_datasets_update - parameters: - - description: A unique integer value identifying this dataset. - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/DatasetRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DatasetRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dataset' - description: '' - security: - - Token: [] - summary: Put dataset - tags: - - Datasets - x-fern-audiences: - - internal - /api/datasets/{id}/members: - delete: - description: Remove a member from a specific dataset. - operationId: api_datasets_members_destroy - parameters: - - in: path - name: id - required: true - schema: - type: integer - - description: A unique integer value identifying this dataset member. - in: query - name: project_member - schema: - type: integer - responses: - '204': - description: No response body - security: - - Token: [] - summary: Remove member from dataset - tags: - - Datasets - x-fern-audiences: - - internal - get: - description: Retrieve the members for a specific dataset. - operationId: api_datasets_members_list - parameters: - - in: path - name: id - required: true - schema: - type: integer - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/DatasetMember' - type: array - description: '' - security: - - Token: [] - summary: Get datasets members - tags: - - Datasets - x-fern-audiences: - - internal - post: - description: Add a member to a specific dataset. - operationId: api_datasets_members_create - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetMemberRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/DatasetMemberRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DatasetMemberRequest' - required: true - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/DatasetMember' - description: '' - security: - - Token: [] - summary: Add dataset member - tags: - - Datasets - x-fern-audiences: - - internal /api/dimensions/backfill/: delete: description: |- @@ -6487,6 +5020,11 @@ paths: required: true schema: type: integer + - description: Comma-separated response fields to leave out, e.g. `content,modules`. `content`, `learner_content` and `modules` each carry the whole course, so leave out the ones you do not read. + in: query + name: omit + schema: + type: string responses: '200': content: @@ -7355,6 +5893,11 @@ paths: required: true schema: type: integer + - description: Comma-separated response fields to leave out, e.g. `content,modules`. `content`, `learner_content` and `modules` each carry the whole course, so leave out the ones you do not read. + in: query + name: omit + schema: + type: string responses: '200': content: @@ -26215,10 +24758,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: accepted: description: Accepted or rejected (if false) flag @@ -26282,10 +24821,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: accepted: description: Accepted or rejected (if false) flag @@ -26527,423 +25062,10 @@ components: required: - created_at - id - - project - - type - type: object - AzureBlobExportStorageValidateRequest: - properties: - account_key: - description: Azure Blob account key - nullable: true - type: string - account_name: - description: Azure Blob account name - nullable: true - type: string - can_delete_objects: - description: Deletion from storage enabled - nullable: true - type: boolean - container: - description: Azure blob container - nullable: true - type: string - description: - description: Cloud storage description - nullable: true - type: string - id: - description: Storage ID. If set, storage with specified ID will be updated - type: integer - prefix: - description: Azure blob prefix name - nullable: true - type: string - project: - description: A unique integer value identifying this project. - type: integer - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - project - type: object - AzureBlobExportStorageWriteRequest: - properties: - account_key: - description: Azure Blob account key - nullable: true - type: string - account_name: - description: Azure Blob account name - nullable: true - type: string - can_delete_objects: - description: Deletion from storage enabled - nullable: true - type: boolean - container: - description: Azure blob container - nullable: true - type: string - description: - description: Cloud storage description - nullable: true - type: string - prefix: - description: Azure blob prefix name - nullable: true - type: string - project: - description: A unique integer value identifying this project. - type: integer - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - project - type: object - AzureBlobImportStorage: - properties: - account_key: - description: Azure Blob account key - nullable: true - type: string - account_name: - description: Azure Blob account name - nullable: true - type: string - container: - description: Azure blob container - nullable: true - type: string - created_at: - description: Creation time - format: date-time - readOnly: true - type: string - description: - description: Cloud storage description - nullable: true - type: string - id: - readOnly: true - type: integer - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: Azure blob prefix name - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - project: - description: A unique integer value identifying this project. - type: integer - recursive_scan: - description: Perform recursive scan over the container content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - type: - default: azure - readOnly: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - created_at - - id - - project - - type - type: object - AzureBlobImportStorageValidateRequest: - properties: - account_key: - description: Azure Blob account key - nullable: true - type: string - account_name: - description: Azure Blob account name - nullable: true - type: string - container: - description: Azure blob container - nullable: true - type: string - description: - description: Cloud storage description - nullable: true - type: string - id: - description: Storage ID. If set, storage with specified ID will be updated - type: integer - prefix: - description: Azure blob prefix name - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - project: - description: A unique integer value identifying this project. - type: integer - recursive_scan: - description: Perform recursive scan over the container content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - project - type: object - AzureBlobImportStorageWriteRequest: - properties: - account_key: - description: Azure Blob account key - nullable: true - type: string - account_name: - description: Azure Blob account name - nullable: true - type: string - container: - description: Azure blob container - nullable: true - type: string - description: - description: Cloud storage description - nullable: true - type: string - prefix: - description: Azure blob prefix name - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - project: - description: A unique integer value identifying this project. - type: integer - recursive_scan: - description: Perform recursive scan over the container content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - project - type: object - AzureDatasetStorage: - properties: - account_key: - description: Azure Blob account key - nullable: true - type: string - account_name: - description: Azure Blob account name - nullable: true - type: string - container: - description: Azure blob container - nullable: true - type: string - created_at: - description: Creation time - format: date-time - readOnly: true - type: string - dataset: - description: A unique integer value identifying this dataset. - type: integer - description: - description: Cloud storage description - nullable: true - type: string - glob_pattern: - description: Glob pattern for syncing from bucket - nullable: true - type: string - id: - readOnly: true - type: integer - job_id: - nullable: true - readOnly: true - title: The Job ID for the GCP Dataproc job that will import the records of this dataset into the vector db - type: string - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: Azure blob prefix name - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - recursive_scan: - description: Perform recursive scan over the container content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - type: - default: azure - readOnly: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - created_at - - dataset - - id - - job_id + - project - type type: object - AzureDatasetStorageRequest: + AzureBlobExportStorageValidateRequest: properties: account_key: description: Azure Blob account key @@ -26953,21 +25075,119 @@ components: description: Azure Blob account name nullable: true type: string + can_delete_objects: + description: Deletion from storage enabled + nullable: true + type: boolean container: description: Azure blob container nullable: true type: string - dataset: - description: A unique integer value identifying this dataset. + description: + description: Cloud storage description + nullable: true + type: string + id: + description: Storage ID. If set, storage with specified ID will be updated + type: integer + prefix: + description: Azure blob prefix name + nullable: true + type: string + project: + description: A unique integer value identifying this project. type: integer + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + synchronizable: + default: true + type: boolean + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - project + type: object + AzureBlobExportStorageWriteRequest: + properties: + account_key: + description: Azure Blob account key + nullable: true + type: string + account_name: + description: Azure Blob account name + nullable: true + type: string + can_delete_objects: + description: Deletion from storage enabled + nullable: true + type: boolean + container: + description: Azure blob container + nullable: true + type: string description: description: Cloud storage description nullable: true type: string - glob_pattern: - description: Glob pattern for syncing from bucket + prefix: + description: Azure blob prefix name + nullable: true + type: string + project: + description: A unique integer value identifying this project. + type: integer + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + synchronizable: + default: true + type: boolean + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - project + type: object + AzureBlobImportStorage: + properties: + account_key: + description: Azure Blob account key + nullable: true + type: string + account_name: + description: Azure Blob account name + nullable: true + type: string + container: + description: Azure blob container nullable: true type: string + created_at: + description: Creation time + format: date-time + readOnly: true + type: string + description: + description: Cloud storage description + nullable: true + type: string + id: + readOnly: true + type: integer last_sync: description: Last sync finished time format: date-time @@ -26999,6 +25219,9 @@ components: maximum: 32767 minimum: 0 type: integer + project: + description: A unique integer value identifying this project. + type: integer recursive_scan: description: Perform recursive scan over the container content nullable: true @@ -27009,9 +25232,6 @@ components: type: string status: $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean synchronizable: default: true type: boolean @@ -27024,11 +25244,131 @@ components: description: Traceback report for the last failed sync nullable: true type: string + type: + default: azure + readOnly: true + type: string use_blob_urls: description: Interpret objects as BLOBs and generate URLs type: boolean required: - - dataset + - created_at + - id + - project + - type + type: object + AzureBlobImportStorageValidateRequest: + properties: + account_key: + description: Azure Blob account key + nullable: true + type: string + account_name: + description: Azure Blob account name + nullable: true + type: string + container: + description: Azure blob container + nullable: true + type: string + description: + description: Cloud storage description + nullable: true + type: string + id: + description: Storage ID. If set, storage with specified ID will be updated + type: integer + prefix: + description: Azure blob prefix name + nullable: true + type: string + presign: + default: true + type: boolean + presign_ttl: + description: Presigned URLs TTL (in minutes) + maximum: 32767 + minimum: 0 + type: integer + project: + description: A unique integer value identifying this project. + type: integer + recursive_scan: + description: Perform recursive scan over the container content + nullable: true + type: boolean + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + synchronizable: + default: true + type: boolean + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - project + type: object + AzureBlobImportStorageWriteRequest: + properties: + account_key: + description: Azure Blob account key + nullable: true + type: string + account_name: + description: Azure Blob account name + nullable: true + type: string + container: + description: Azure blob container + nullable: true + type: string + description: + description: Cloud storage description + nullable: true + type: string + prefix: + description: Azure blob prefix name + nullable: true + type: string + presign: + default: true + type: boolean + presign_ttl: + description: Presigned URLs TTL (in minutes) + maximum: 32767 + minimum: 0 + type: integer + project: + description: A unique integer value identifying this project. + type: integer + recursive_scan: + description: Perform recursive scan over the container content + nullable: true + type: boolean + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + synchronizable: + default: true + type: boolean + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - project type: object AzureServicePrincipalExportStorage: description: Mode-aware auth validation shared by import and export Azure SPI serializers. @@ -28124,41 +26464,6 @@ components: - operator - type type: object - ChildFilterRequest: - properties: - column: - description: Field name - maxLength: 1024 - minLength: 1 - type: string - index: - description: Display order among root filters only - maximum: 2147483647 - minimum: -2147483648 - nullable: true - type: integer - operator: - description: Filter operator - maxLength: 1024 - minLength: 1 - type: string - parent: - description: Optional parent filter to create one-level hierarchy (child filters are AND-merged with parent) - nullable: true - type: integer - type: - description: Field type - maxLength: 1024 - minLength: 1 - type: string - value: - description: Filter value - nullable: true - required: - - column - - operator - - type - type: object CollectionModeEnum: description: |- * `assigned` - Assigned @@ -28173,10 +26478,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: annotation: nullable: true @@ -28247,10 +26548,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: annotation: nullable: true @@ -28278,10 +26575,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: annotation: nullable: true @@ -29477,318 +27770,6 @@ components: - schema - volume type: object - Dataset: - properties: - columns: - description: All data columns found in Dataset tasks - nullable: true - created_at: - description: Creation time - format: date-time - readOnly: true - type: string - created_by: - allOf: - - $ref: '#/components/schemas/UserSimple' - description: User who created Dataset - description: - description: Dataset description - nullable: true - type: string - id: - readOnly: true - type: integer - organization: - nullable: true - type: integer - title: - description: Dataset title - maxLength: 1000 - type: string - total_entities: - maximum: 2147483647 - minimum: -2147483648 - nullable: true - title: The number of entities in the dataset - type: integer - updated_at: - description: Last updated time - format: date-time - readOnly: true - type: string - vector_db_dataset_name: - description: Dataset name for weaviate schema - maxLength: 37 - type: string - required: - - created_at - - id - - title - - updated_at - type: object - DatasetColumn: - properties: - children: - items: - type: string - type: array - id: - type: string - parent: - type: string - target: - type: string - title: - type: string - type: - type: string - visibility_defaults: - $ref: '#/components/schemas/DatasetColumnVisibilityDefaults' - required: - - id - - target - - title - - type - type: object - DatasetColumnVisibilityDefaults: - properties: - explore: - type: boolean - filter: - type: boolean - type: object - DatasetColumnsResponse: - properties: - columns: - items: - $ref: '#/components/schemas/DatasetColumn' - type: array - required: - - columns - type: object - DatasetImportCandidatesCreateRequest: - properties: - additional_filters: - default: {} - dataset: - type: integer - excluded: - default: {} - included: - default: {} - project: - type: integer - view: - type: integer - required: - - dataset - type: object - DatasetImportCandidatesResponse: - properties: - detail: - type: string - job: - type: integer - project_tasks: - type: integer - skipped: - type: integer - total: - type: integer - type: object - DatasetMember: - properties: - user: - type: integer - required: - - user - type: object - DatasetMemberRequest: - properties: - user: - type: integer - required: - - user - type: object - DatasetRequest: - properties: - columns: - description: All data columns found in Dataset tasks - nullable: true - created_by: - allOf: - - $ref: '#/components/schemas/UserSimpleRequest' - description: User who created Dataset - description: - description: Dataset description - nullable: true - type: string - organization: - nullable: true - type: integer - title: - description: Dataset title - maxLength: 1000 - minLength: 1 - type: string - total_entities: - maximum: 2147483647 - minimum: -2147483648 - nullable: true - title: The number of entities in the dataset - type: integer - vector_db_dataset_name: - description: Dataset name for weaviate schema - maxLength: 37 - minLength: 1 - type: string - required: - - title - type: object - DatasetStorageAvailableDataType: - properties: - display_name: - type: string - indexable: - type: boolean - internal_name: - type: string - short_display_name: - type: string - required: - - display_name - - indexable - - internal_name - - short_display_name - type: object - DatasetStorageColumnType: - properties: - name: - type: string - type: - nullable: true - type: string - type: object - DatasetStorageColumnsResponse: - properties: - available_data_types: - items: - $ref: '#/components/schemas/DatasetStorageAvailableDataType' - type: array - columns_with_types: - items: - $ref: '#/components/schemas/DatasetStorageColumnType' - type: array - required: - - available_data_types - - columns_with_types - type: object - DatasetTasksMetadataResponse: - properties: - candidate_task_id: - type: string - metadata: {} - required: - - candidate_task_id - - metadata - type: object - DatasetView: - properties: - data: - description: Custom view data - nullable: true - dataset: - description: Dataset ID - type: integer - filter_group: - $ref: '#/components/schemas/FilterGroup' - id: - readOnly: true - type: integer - is_locked: - description: Whether this data manager tab is locked against configuration changes - nullable: true - type: boolean - locked_at: - description: Time when this view was locked - format: date-time - nullable: true - type: string - locked_by: - nullable: true - properties: - email: - format: email - title: Email - type: string - id: - title: User ID - type: integer - name: - title: Display name - type: string - readOnly: true - title: Locked by user - type: object - order: - description: Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - maximum: 2147483647 - minimum: -2147483648 - nullable: true - type: integer - ordering: - description: Ordering parameters - nullable: true - selected_items: - description: Selected items - nullable: true - user: - description: User who made this view - nullable: true - type: integer - required: - - dataset - - id - - locked_by - type: object - DatasetViewRequest: - properties: - data: - description: Custom view data - nullable: true - dataset: - description: Dataset ID - type: integer - filter_group: - $ref: '#/components/schemas/FilterGroupRequest' - is_locked: - description: Whether this data manager tab is locked against configuration changes - nullable: true - type: boolean - locked_at: - description: Time when this view was locked - format: date-time - nullable: true - type: string - order: - description: Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - maximum: 2147483647 - minimum: -2147483648 - nullable: true - type: integer - ordering: - description: Ordering parameters - nullable: true - selected_items: - description: Selected items - nullable: true - user: - description: User who made this view - nullable: true - type: integer - required: - - dataset - type: object DefaultModelVersionNameResponse: properties: default_model_version_name: @@ -30370,60 +28351,6 @@ components: - filters - id type: object - FilterGroupRequest: - properties: - conjunction: - description: Type of conjunction - maxLength: 1024 - minLength: 1 - type: string - filters: - items: - $ref: '#/components/schemas/FilterRequest' - type: array - required: - - conjunction - - filters - type: object - FilterRequest: - properties: - child_filters: - items: - $ref: '#/components/schemas/ChildFilterRequest' - type: array - column: - description: Field name - maxLength: 1024 - minLength: 1 - type: string - index: - description: Display order among root filters only - maximum: 2147483647 - minimum: -2147483648 - nullable: true - type: integer - operator: - description: Filter operator - maxLength: 1024 - minLength: 1 - type: string - parent: - description: Optional parent filter to create one-level hierarchy (child filters are AND-merged with parent) - nullable: true - type: integer - type: - description: Field type - maxLength: 1024 - minLength: 1 - type: string - value: - description: Filter value - nullable: true - required: - - column - - operator - - type - type: object FilteredLabelDistributionUnavailable: properties: detail: @@ -30543,201 +28470,6 @@ components: required: - code type: object - GCSDatasetStorage: - properties: - bucket: - description: GCS bucket name - nullable: true - type: string - created_at: - description: Creation time - format: date-time - readOnly: true - type: string - dataset: - description: A unique integer value identifying this dataset. - type: integer - description: - description: Cloud storage description - nullable: true - type: string - glob_pattern: - description: Glob pattern for syncing from bucket - nullable: true - type: string - google_application_credentials: - description: The content of GOOGLE_APPLICATION_CREDENTIALS json file - nullable: true - type: string - google_project_id: - description: Google project ID - nullable: true - type: string - id: - readOnly: true - type: integer - job_id: - nullable: true - readOnly: true - title: The Job ID for the GCP Dataproc job that will import the records of this dataset into the vector db - type: string - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: GCS bucket prefix - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - recursive_scan: - description: Perform recursive scan over the bucket content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - type: - default: gcs - readOnly: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - created_at - - dataset - - id - - job_id - - type - type: object - GCSDatasetStorageRequest: - properties: - bucket: - description: GCS bucket name - nullable: true - type: string - dataset: - description: A unique integer value identifying this dataset. - type: integer - description: - description: Cloud storage description - nullable: true - type: string - glob_pattern: - description: Glob pattern for syncing from bucket - nullable: true - type: string - google_application_credentials: - description: The content of GOOGLE_APPLICATION_CREDENTIALS json file - nullable: true - type: string - google_project_id: - description: Google project ID - nullable: true - type: string - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: GCS bucket prefix - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - recursive_scan: - description: Perform recursive scan over the bucket content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - dataset - type: object GCSExportStorage: properties: bucket: @@ -33409,6 +31141,9 @@ components: type: integer type: object LearningResourceDetail: + description: |- + Full course payload. `content`, `learner_content` and `modules` each carry the whole course, so clients pass + `omit` for the ones they do not read: an omitted field is never computed. properties: allow_standalone: type: boolean @@ -40280,10 +38015,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: accepted: description: Accepted or rejected (if false) flag @@ -40411,91 +38142,6 @@ components: description: Interpret objects as BLOBs and generate URLs type: boolean type: object - PatchedAzureDatasetStorageRequest: - properties: - account_key: - description: Azure Blob account key - nullable: true - type: string - account_name: - description: Azure Blob account name - nullable: true - type: string - container: - description: Azure blob container - nullable: true - type: string - dataset: - description: A unique integer value identifying this dataset. - type: integer - description: - description: Cloud storage description - nullable: true - type: string - glob_pattern: - description: Glob pattern for syncing from bucket - nullable: true - type: string - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: Azure blob prefix name - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - recursive_scan: - description: Perform recursive scan over the container content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - type: object PatchedAzureServicePrincipalExportStorageRequest: description: Mode-aware auth validation shared by import and export Azure SPI serializers. properties: @@ -40713,10 +38359,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: annotation: nullable: true @@ -40930,84 +38572,6 @@ components: minLength: 1 type: string type: object - PatchedDatasetImportCandidatesPatchRequest: - properties: - job_id: - type: integer - signal: - description: Operation type. - minLength: 1 - type: string - type: object - PatchedDatasetRequest: - properties: - columns: - description: All data columns found in Dataset tasks - nullable: true - created_by: - allOf: - - $ref: '#/components/schemas/UserSimpleRequest' - description: User who created Dataset - description: - description: Dataset description - nullable: true - type: string - organization: - nullable: true - type: integer - title: - description: Dataset title - maxLength: 1000 - minLength: 1 - type: string - total_entities: - maximum: 2147483647 - minimum: -2147483648 - nullable: true - title: The number of entities in the dataset - type: integer - vector_db_dataset_name: - description: Dataset name for weaviate schema - maxLength: 37 - minLength: 1 - type: string - type: object - PatchedDatasetViewRequest: - properties: - data: - description: Custom view data - nullable: true - dataset: - description: Dataset ID - type: integer - filter_group: - $ref: '#/components/schemas/FilterGroupRequest' - is_locked: - description: Whether this data manager tab is locked against configuration changes - nullable: true - type: boolean - locked_at: - description: Time when this view was locked - format: date-time - nullable: true - type: string - order: - description: Position of the tab, starting at the left in data manager and increasing as the tabs go left to right - maximum: 2147483647 - minimum: -2147483648 - nullable: true - type: integer - ordering: - description: Ordering parameters - nullable: true - selected_items: - description: Selected items - nullable: true - user: - description: User who made this view - nullable: true - type: integer - type: object PatchedDefaultRoleRequest: properties: annotator_reviewer_firewall_enabled_at: @@ -41138,91 +38702,6 @@ components: format: binary type: string type: object - PatchedGCSDatasetStorageRequest: - properties: - bucket: - description: GCS bucket name - nullable: true - type: string - dataset: - description: A unique integer value identifying this dataset. - type: integer - description: - description: Cloud storage description - nullable: true - type: string - glob_pattern: - description: Glob pattern for syncing from bucket - nullable: true - type: string - google_application_credentials: - description: The content of GOOGLE_APPLICATION_CREDENTIALS json file - nullable: true - type: string - google_project_id: - description: Google project ID - nullable: true - type: string - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: GCS bucket prefix - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - recursive_scan: - description: Perform recursive scan over the bucket content - nullable: true - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - type: object PatchedGCSExportStorageWriteRequest: properties: bucket: @@ -42984,137 +40463,41 @@ components: description: Interpret objects as BLOBs and generate URLs type: boolean type: object - PatchedRedisImportStorageWriteRequest: - properties: - db: - description: Server Database - maximum: 32767 - minimum: 0 - type: integer - description: - description: Cloud storage description - nullable: true - type: string - host: - description: Server Host IP (optional) - nullable: true - type: string - password: - description: Server Password (optional) - nullable: true - type: string - path: - description: Storage prefix (optional) - nullable: true - type: string - port: - description: Server Port (optional) - nullable: true - type: string - project: - description: A unique integer value identifying this project. - type: integer - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - title: Port - type: string - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - type: object - PatchedS3DatasetStorageRequest: + PatchedRedisImportStorageWriteRequest: properties: - aws_access_key_id: - description: AWS_ACCESS_KEY_ID - nullable: true - type: string - aws_secret_access_key: - description: AWS_SECRET_ACCESS_KEY - nullable: true - type: string - aws_session_token: - description: AWS_SESSION_TOKEN - nullable: true - type: string - aws_sse_kms_key_id: - description: AWS SSE KMS Key ID - nullable: true - type: string - bucket: - description: S3 bucket name - nullable: true - type: string - dataset: - description: A unique integer value identifying this dataset. + db: + description: Server Database + maximum: 32767 + minimum: 0 type: integer description: description: Cloud storage description nullable: true type: string - glob_pattern: - description: Glob pattern for syncing from bucket + host: + description: Server Host IP (optional) nullable: true type: string - last_sync: - description: Last sync finished time - format: date-time + password: + description: Server Password (optional) nullable: true type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 + path: + description: Storage prefix (optional) nullable: true type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: S3 bucket prefix + port: + description: Server Port (optional) nullable: true type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 + project: + description: A unique integer value identifying this project. type: integer - recursive_scan: - description: Perform recursive scan over the bucket content - type: boolean regex_filter: description: Cloud storage regex for filtering objects nullable: true + title: Port type: string - region_name: - description: AWS Region - nullable: true - type: string - s3_endpoint: - description: S3 Endpoint - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean synchronizable: default: true type: boolean @@ -43123,10 +40506,6 @@ components: maxLength: 256 nullable: true type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string use_blob_urls: description: Interpret objects as BLOBs and generate URLs type: boolean @@ -46003,231 +43382,6 @@ components: - api - billing type: string - S3DatasetStorage: - properties: - aws_access_key_id: - description: AWS_ACCESS_KEY_ID - nullable: true - type: string - aws_secret_access_key: - description: AWS_SECRET_ACCESS_KEY - nullable: true - type: string - aws_session_token: - description: AWS_SESSION_TOKEN - nullable: true - type: string - aws_sse_kms_key_id: - description: AWS SSE KMS Key ID - nullable: true - type: string - bucket: - description: S3 bucket name - nullable: true - type: string - created_at: - description: Creation time - format: date-time - readOnly: true - type: string - dataset: - description: A unique integer value identifying this dataset. - type: integer - description: - description: Cloud storage description - nullable: true - type: string - glob_pattern: - description: Glob pattern for syncing from bucket - nullable: true - type: string - id: - readOnly: true - type: integer - job_id: - nullable: true - readOnly: true - title: The Job ID for the GCP Dataproc job that will import the records of this dataset into the vector db - type: string - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: S3 bucket prefix - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - recursive_scan: - description: Perform recursive scan over the bucket content - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - region_name: - description: AWS Region - nullable: true - type: string - s3_endpoint: - description: S3 Endpoint - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - type: - default: s3 - readOnly: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - created_at - - dataset - - id - - job_id - - type - type: object - S3DatasetStorageRequest: - properties: - aws_access_key_id: - description: AWS_ACCESS_KEY_ID - nullable: true - type: string - aws_secret_access_key: - description: AWS_SECRET_ACCESS_KEY - nullable: true - type: string - aws_session_token: - description: AWS_SESSION_TOKEN - nullable: true - type: string - aws_sse_kms_key_id: - description: AWS SSE KMS Key ID - nullable: true - type: string - bucket: - description: S3 bucket name - nullable: true - type: string - dataset: - description: A unique integer value identifying this dataset. - type: integer - description: - description: Cloud storage description - nullable: true - type: string - glob_pattern: - description: Glob pattern for syncing from bucket - nullable: true - type: string - last_sync: - description: Last sync finished time - format: date-time - nullable: true - type: string - last_sync_count: - description: Count of tasks synced last time - maximum: 2147483647 - minimum: 0 - nullable: true - type: integer - last_sync_job: - description: Last sync job ID - maxLength: 256 - nullable: true - type: string - meta: - description: Meta and debug information about storage processes - nullable: true - prefix: - description: S3 bucket prefix - nullable: true - type: string - presign: - default: true - type: boolean - presign_ttl: - description: Presigned URLs TTL (in minutes) - maximum: 32767 - minimum: 0 - type: integer - recursive_scan: - description: Perform recursive scan over the bucket content - type: boolean - regex_filter: - description: Cloud storage regex for filtering objects - nullable: true - type: string - region_name: - description: AWS Region - nullable: true - type: string - s3_endpoint: - description: S3 Endpoint - nullable: true - type: string - status: - $ref: '#/components/schemas/StorageStatusEnum' - synced: - description: Flag if dataset has been previously synced or not - type: boolean - synchronizable: - default: true - type: boolean - title: - description: Cloud storage title - maxLength: 256 - nullable: true - type: string - traceback: - description: Traceback report for the last failed sync - nullable: true - type: string - use_blob_urls: - description: Interpret objects as BLOBs and generate URLs - type: boolean - required: - - dataset - type: object S3ExportStorage: properties: aws_access_key_id: @@ -47695,10 +44849,6 @@ components: Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. - - The state field display is controlled by both: - - fflag_feat_fit_568_finite_state_management (FSM background calculations) - - fflag_feat_fit_710_fsm_state_fields (state field display in APIs) properties: assignee: description: Assigned user