diff --git a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.g.cs b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.g.cs index f536685..57f5e04 100644 --- a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.g.cs +++ b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.g.cs @@ -454,6 +454,15 @@ public sealed partial class DataloopClient : global::Dataloop.IDataloopClient, g JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public SettingsClient Settings => new SettingsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// @@ -526,6 +535,15 @@ public sealed partial class DataloopClient : global::Dataloop.IDataloopClient, g JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public VersionClient Version => new VersionClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/Dataloop/Generated/Dataloop.IDataloopClient.g.cs b/src/libs/Dataloop/Generated/Dataloop.IDataloopClient.g.cs index b4a0da1..3dc53d9 100644 --- a/src/libs/Dataloop/Generated/Dataloop.IDataloopClient.g.cs +++ b/src/libs/Dataloop/Generated/Dataloop.IDataloopClient.g.cs @@ -275,6 +275,11 @@ public partial interface IDataloopClient : global::System.IDisposable /// public ServicesMetricClient ServicesMetric { get; } + /// + /// + /// + public SettingsClient Settings { get; } + /// /// /// @@ -315,6 +320,11 @@ public partial interface IDataloopClient : global::System.IDisposable /// public UsersClient Users { get; } + /// + /// + /// + public VersionClient Version { get; } + /// /// /// diff --git a/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.CreateSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.CreateSetting.g.cs new file mode 100644 index 0000000..ab1a5fc --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.CreateSetting.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +namespace Dataloop +{ + public partial interface ISettingsClient + { + /// + /// Creates a new Setting.
+ /// Supply the appropriate Create Request object for either Feature flag or User setting. + ///
+ /// + /// 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> CreateSettingAsync( + + global::Dataloop.CreateSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Creates a new Setting.
+ /// Supply the appropriate Create Request object for either Feature flag or User setting. + ///
+ /// + /// 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>> CreateSettingAsResponseAsync( + + global::Dataloop.CreateSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Creates a new Setting.
+ /// Supply the appropriate Create Request object for either Feature flag or User setting. + ///
+ /// + /// the value that will be taken if no value was passed + /// + /// + /// the name of the setting + /// + /// + /// the value of the setting + /// + /// + /// + /// + /// + /// 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> CreateSettingAsync( + string name, + global::Dataloop.SettingsValueTypes valueType, + global::Dataloop.SettingScope scope, + global::Dataloop.SettingsTypes settingType, + object? defaultValue = default, + object? value = default, + global::Dataloop.Dictionary? metadata = default, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.DeleteSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.DeleteSetting.g.cs new file mode 100644 index 0000000..ef6b631 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.DeleteSetting.g.cs @@ -0,0 +1,52 @@ +#nullable enable + +namespace Dataloop +{ + public partial interface ISettingsClient + { + /// + /// Delete a setting
+ /// Supply the unique id of the setting to delete + ///
+ /// + /// + /// 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 DeleteSettingAsync( + string id, + + global::Dataloop.DeleteSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete a setting
+ /// Supply the unique id of the setting to delete + ///
+ /// + /// + /// 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> DeleteSettingAsResponseAsync( + string id, + + global::Dataloop.DeleteSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete a setting
+ /// Supply the unique id of the setting to delete + ///
+ /// + /// + /// 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 DeleteSettingAsync( + string id, + bool? force = default, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.GetSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.GetSetting.g.cs new file mode 100644 index 0000000..ffd07ae --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.GetSetting.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace Dataloop +{ + public partial interface ISettingsClient + { + /// + /// Retrieves the details of a setting.
+ /// Supply the unique setting ID to fetch it's details. + ///
+ /// + /// 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> GetSettingAsync( + string id, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieves the details of a setting.
+ /// Supply the unique setting ID to fetch it's details. + ///
+ /// + /// 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>> GetSettingAsResponseAsync( + string id, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.QuerySettings.g.cs b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.QuerySettings.g.cs new file mode 100644 index 0000000..2ddca1f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.QuerySettings.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace Dataloop +{ + public partial interface ISettingsClient + { + /// + /// Query settings
+ /// Supply the query requested to query settings + ///
+ /// + /// 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 QuerySettingsAsync( + + global::Dataloop.QueryModel request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Query settings
+ /// Supply the query requested to query settings + ///
+ /// + /// 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> QuerySettingsAsResponseAsync( + + global::Dataloop.QueryModel request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Query settings
+ /// Supply the query requested to query settings + ///
+ /// + /// + /// + /// + /// + /// + /// 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 QuerySettingsAsync( + global::Dataloop.QueryResource? resource = default, + object? filter = default, + object? sort = default, + double? page = default, + double? pageSize = default, + global::Dataloop.ModelOperationTypes? type = default, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.ResolveSettings.g.cs b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.ResolveSettings.g.cs new file mode 100644 index 0000000..f1555d7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.ResolveSettings.g.cs @@ -0,0 +1,44 @@ +#nullable enable + +namespace Dataloop +{ + public partial interface ISettingsClient + { + /// + /// Resolves the relevant settings for a specific Context.
+ /// Supply the specific Context to resolve by + ///
+ /// + /// 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>> ResolveSettingsAsync( + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Resolves the relevant settings for a specific Context.
+ /// Supply the specific Context to resolve by + ///
+ /// + /// 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>>> ResolveSettingsAsResponseAsync( + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Resolves the relevant settings for a specific Context.
+ /// Supply the specific Context to resolve by + ///
+ /// 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>> ResolveSettingsAsync( + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.UpdateSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.UpdateSetting.g.cs new file mode 100644 index 0000000..5814ff0 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.UpdateSetting.g.cs @@ -0,0 +1,50 @@ +#nullable enable + +namespace Dataloop +{ + public partial interface ISettingsClient + { + /// + /// Update a setting
+ /// Supply the unique id of the setting to update and an object describing which fields update + ///
+ /// + /// + /// 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> UpdateSettingAsync( + string id, + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update a setting
+ /// Supply the unique id of the setting to update and an object describing which fields update + ///
+ /// + /// + /// 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>> UpdateSettingAsResponseAsync( + string id, + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update a setting
+ /// Supply the unique id of the setting to update and an object describing which fields update + ///
+ /// + /// 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> UpdateSettingAsync( + string id, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.g.cs b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.g.cs new file mode 100644 index 0000000..c0eb44f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.ISettingsClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// 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 ISettingsClient : 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::Dataloop.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.IVersionClient.GetOaVersion.g.cs b/src/libs/Dataloop/Generated/Dataloop.IVersionClient.GetOaVersion.g.cs new file mode 100644 index 0000000..5c3b572 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.IVersionClient.GetOaVersion.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace Dataloop +{ + public partial interface IVersionClient + { + /// + /// Retrieves the latest OA versions. + /// + /// 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 GetOaVersionAsync( + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieves the latest OA versions. + /// + /// 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> GetOaVersionAsResponseAsync( + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.IVersionClient.g.cs b/src/libs/Dataloop/Generated/Dataloop.IVersionClient.g.cs new file mode 100644 index 0000000..411cbf6 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.IVersionClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// 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 IVersionClient : 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::Dataloop.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.MigrationSpec.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.MigrationSpec.g.cs new file mode 100644 index 0000000..97d6159 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.MigrationSpec.g.cs @@ -0,0 +1,141 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Dataloop.JsonConverters +{ + /// + public class MigrationSpecJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.MigrationSpec Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + var __score1 = 0; + if (__jsonProps.Contains("fix")) __score1++; + if (__jsonProps.Contains("report")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::Dataloop.Dictionary? dictionary = default; + global::Dataloop.MigrationSpecVariant2? migrationSpecVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.Dictionary), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.Dictionary).Name}"); + dictionary = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.MigrationSpecVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.MigrationSpecVariant2).Name}"); + migrationSpecVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (dictionary == null && migrationSpecVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.Dictionary), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.Dictionary).Name}"); + dictionary = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (dictionary == null && migrationSpecVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.MigrationSpecVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.MigrationSpecVariant2).Name}"); + migrationSpecVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Dataloop.MigrationSpec( + dictionary, + + migrationSpecVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.MigrationSpec value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsDictionary) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.Dictionary), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.Dictionary).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dictionary!, typeInfo); + } + else if (value.IsMigrationSpecVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.MigrationSpecVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.MigrationSpecVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MigrationSpecVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeId.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeId.g.cs new file mode 100644 index 0000000..b7a0603 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeId.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PartialSettingScopeIdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PartialSettingScopeId Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PartialSettingScopeIdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PartialSettingScopeId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PartialSettingScopeId); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PartialSettingScopeId value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.PartialSettingScopeIdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeIdNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeIdNullable.g.cs new file mode 100644 index 0000000..c0ed784 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeIdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PartialSettingScopeIdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PartialSettingScopeId? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PartialSettingScopeIdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PartialSettingScopeId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PartialSettingScopeId?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PartialSettingScopeId? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.PartialSettingScopeIdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeRole.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeRole.g.cs new file mode 100644 index 0000000..c58bd2b --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PartialSettingScopeRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PartialSettingScopeRole Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PartialSettingScopeRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PartialSettingScopeRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PartialSettingScopeRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PartialSettingScopeRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.PartialSettingScopeRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeRoleNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeRoleNullable.g.cs new file mode 100644 index 0000000..d294234 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PartialSettingScopeRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PartialSettingScopeRole? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PartialSettingScopeRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PartialSettingScopeRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PartialSettingScopeRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PartialSettingScopeRole? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.PartialSettingScopeRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeType.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeType.g.cs new file mode 100644 index 0000000..c739e95 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PartialSettingScopeTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PartialSettingScopeType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PartialSettingScopeTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PartialSettingScopeType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PartialSettingScopeType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PartialSettingScopeType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.PartialSettingScopeTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeTypeNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeTypeNullable.g.cs new file mode 100644 index 0000000..2aa20b0 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PartialSettingScopeTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PartialSettingScopeTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PartialSettingScopeType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PartialSettingScopeTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PartialSettingScopeType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PartialSettingScopeType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PartialSettingScopeType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.PartialSettingScopeTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PlatformEntityType.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PlatformEntityType.g.cs new file mode 100644 index 0000000..55884e5 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PlatformEntityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PlatformEntityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PlatformEntityType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PlatformEntityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PlatformEntityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PlatformEntityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PlatformEntityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.PlatformEntityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PlatformEntityTypeNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PlatformEntityTypeNullable.g.cs new file mode 100644 index 0000000..d7812ef --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.PlatformEntityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class PlatformEntityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.PlatformEntityType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.PlatformEntityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.PlatformEntityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.PlatformEntityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.PlatformEntityType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.PlatformEntityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.RemoveSettingTraceMigrationSpec.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.RemoveSettingTraceMigrationSpec.g.cs new file mode 100644 index 0000000..73dd788 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.RemoveSettingTraceMigrationSpec.g.cs @@ -0,0 +1,140 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Dataloop.JsonConverters +{ + /// + public class RemoveSettingTraceMigrationSpecJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.RemoveSettingTraceMigrationSpec Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + var __score1 = 0; + if (__jsonProps.Contains("settingName")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::Dataloop.MigrationSpec? migrationSpec = default; + global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? removeSettingTraceMigrationSpecVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.MigrationSpec), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.MigrationSpec).Name}"); + migrationSpec = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2).Name}"); + removeSettingTraceMigrationSpecVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (migrationSpec == null && removeSettingTraceMigrationSpecVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.MigrationSpec), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.MigrationSpec).Name}"); + migrationSpec = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (migrationSpec == null && removeSettingTraceMigrationSpecVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2).Name}"); + removeSettingTraceMigrationSpecVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Dataloop.RemoveSettingTraceMigrationSpec( + migrationSpec, + + removeSettingTraceMigrationSpecVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.RemoveSettingTraceMigrationSpec value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsMigrationSpec) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.MigrationSpec), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.MigrationSpec).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MigrationSpec!.Value, typeInfo); + } + else if (value.IsRemoveSettingTraceMigrationSpecVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RemoveSettingTraceMigrationSpecVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeId.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeId.g.cs new file mode 100644 index 0000000..2854ac6 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeId.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingScopeIdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingScopeId Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingScopeIdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingScopeId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingScopeId); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingScopeId value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.SettingScopeIdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeIdNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeIdNullable.g.cs new file mode 100644 index 0000000..dce6ab8 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeIdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingScopeIdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingScopeId? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingScopeIdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingScopeId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingScopeId?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingScopeId? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.SettingScopeIdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeRole.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeRole.g.cs new file mode 100644 index 0000000..ff7a3f5 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingScopeRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingScopeRole Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingScopeRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingScopeRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingScopeRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingScopeRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.SettingScopeRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeRoleNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeRoleNullable.g.cs new file mode 100644 index 0000000..8da4f0f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingScopeRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingScopeRole? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingScopeRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingScopeRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingScopeRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingScopeRole? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.SettingScopeRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeType.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeType.g.cs new file mode 100644 index 0000000..8d987d2 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingScopeTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingScopeType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingScopeTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingScopeType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingScopeType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingScopeType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.SettingScopeTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeTypeNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeTypeNullable.g.cs new file mode 100644 index 0000000..e0c6c6d --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingScopeTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingScopeTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingScopeType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingScopeTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingScopeType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingScopeType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingScopeType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.SettingScopeTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsSectionNames.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsSectionNames.g.cs new file mode 100644 index 0000000..e2c7f7f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsSectionNames.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingsSectionNamesJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingsSectionNames Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingsSectionNamesExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingsSectionNames)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingsSectionNames); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingsSectionNames value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.SettingsSectionNamesExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsSectionNamesNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsSectionNamesNullable.g.cs new file mode 100644 index 0000000..58bc268 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsSectionNamesNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingsSectionNamesNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingsSectionNames? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingsSectionNamesExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingsSectionNames)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingsSectionNames?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingsSectionNames? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.SettingsSectionNamesExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsTypes.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsTypes.g.cs new file mode 100644 index 0000000..2aaf2a7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsTypes.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingsTypesJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingsTypes Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingsTypesExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingsTypes)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingsTypes); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingsTypes value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.SettingsTypesExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsTypesNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsTypesNullable.g.cs new file mode 100644 index 0000000..4768ea8 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsTypesNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingsTypesNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingsTypes? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingsTypesExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingsTypes)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingsTypes?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingsTypes? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.SettingsTypesExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsValueTypes.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsValueTypes.g.cs new file mode 100644 index 0000000..0f459c8 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsValueTypes.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingsValueTypesJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingsValueTypes Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingsValueTypesExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingsValueTypes)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingsValueTypes); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingsValueTypes value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Dataloop.SettingsValueTypesExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsValueTypesNullable.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsValueTypesNullable.g.cs new file mode 100644 index 0000000..72f21f2 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.JsonConverters.SettingsValueTypesNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Dataloop.JsonConverters +{ + /// + public sealed class SettingsValueTypesNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Dataloop.SettingsValueTypes? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Dataloop.SettingsValueTypesExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Dataloop.SettingsValueTypes)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Dataloop.SettingsValueTypes?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Dataloop.SettingsValueTypes? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Dataloop.SettingsValueTypesExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContext.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContext.g.cs index 8d2321f..56cc3f8 100644 --- a/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContext.g.cs +++ b/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContext.g.cs @@ -713,6 +713,46 @@ namespace Dataloop typeof(global::Dataloop.JsonConverters.CommandsDomainNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsValueTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.PodTypeJsonConverter), typeof(global::Dataloop.JsonConverters.PodTypeNullableJsonConverter), @@ -801,6 +841,10 @@ namespace Dataloop typeof(global::Dataloop.JsonConverters.ComputePluginSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.MigrationSpecJsonConverter), + + typeof(global::Dataloop.JsonConverters.RemoveSettingTraceMigrationSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -1025,6 +1069,24 @@ namespace Dataloop typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), @@ -1079,6 +1141,10 @@ namespace Dataloop typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -1163,6 +1229,14 @@ namespace Dataloop typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -2386,6 +2460,46 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Dataloop.JsonConverters.CommandsDomainNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsValueTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.PodTypeJsonConverter), typeof(global::Dataloop.JsonConverters.PodTypeNullableJsonConverter), @@ -2474,6 +2588,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Dataloop.JsonConverters.ComputePluginSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.MigrationSpecJsonConverter), + + typeof(global::Dataloop.JsonConverters.RemoveSettingTraceMigrationSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -2698,6 +2816,24 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), @@ -2752,6 +2888,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -2836,6 +2976,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -4059,6 +4207,46 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Dataloop.JsonConverters.CommandsDomainNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsValueTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.PodTypeJsonConverter), typeof(global::Dataloop.JsonConverters.PodTypeNullableJsonConverter), @@ -4147,6 +4335,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Dataloop.JsonConverters.ComputePluginSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.MigrationSpecJsonConverter), + + typeof(global::Dataloop.JsonConverters.RemoveSettingTraceMigrationSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -4371,6 +4563,24 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), @@ -4425,6 +4635,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -4509,6 +4723,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -4655,6 +4877,41 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.APIPatchApp))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.IPipeline))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.IPipelineTemplate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.IVersion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.SettingsValueTypes), TypeInfoPropertyName = "SettingsValueTypes2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.PlatformEntityType), TypeInfoPropertyName = "PlatformEntityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.SettingScope))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfPlatformEntityTypeSettingScopeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.SettingScopeType), TypeInfoPropertyName = "SettingScopeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfStringSettingScopeId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.SettingScopeId), TypeInfoPropertyName = "SettingScopeId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfRoleOrgRoleSettingScopeRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.SettingScopeRole), TypeInfoPropertyName = "SettingScopeRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.SettingsTypes), TypeInfoPropertyName = "SettingsTypes2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.APIFeatureFlag))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.SettingsSectionNames), TypeInfoPropertyName = "SettingsSectionNames2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.APIUserSetting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.IUserContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.ResolverPayload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.CreateSettingRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.CreateFeatureFlagRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.CreateUserSettingRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.PartialSettingScope))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfPlatformEntityTypePartialSettingScopeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.PartialSettingScopeType), TypeInfoPropertyName = "PartialSettingScopeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfStringPartialSettingScopeId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.PartialSettingScopeId), TypeInfoPropertyName = "PartialSettingScopeId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfRoleOrgRolePartialSettingScopeRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.PartialSettingScopeRole), TypeInfoPropertyName = "PartialSettingScopeRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.PatchFeatureFlagRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.PatchUserSettingRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfAPIUserSettingAPIFeatureFlag2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.MigrationSpec), TypeInfoPropertyName = "MigrationSpec2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.MigrationSpecVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.RemoveSettingTraceMigrationSpec), TypeInfoPropertyName = "RemoveSettingTraceMigrationSpec2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.UIHours))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.APICallResourceDescriptor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.APICallSourceDescriptor))] @@ -4845,6 +5102,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.GetGlobalServicesRequestItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.RolloutServiceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfResolverPayloadIUserContext2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfPatchFeatureFlagRequestPatchUserSettingRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.DeleteSettingRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.GetProjectsActiveCountersRequest2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.GetCountersForProjectRequest2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.UpdateUserOrgRequest))] @@ -4921,6 +5181,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.GetServiceIntegrationEnvResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.GetServiceIntegrationEnvResponseEnvItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf), TypeInfoPropertyName = "AnyOfAPIFeatureFlagAPIUserSetting2")] + [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::Dataloop.GetMyGroupProjectsResponseItem))] @@ -4981,46 +5243,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::Dataloop.AnyOf>))] [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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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))] - [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))] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -5732,6 +5954,46 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Dataloop.JsonConverters.CommandsDomainNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsValueTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PlatformEntityTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingScopeRoleNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsTypesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter), + + typeof(global::Dataloop.JsonConverters.SettingsSectionNamesNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeTypeNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeIdNullableJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleJsonConverter), + + typeof(global::Dataloop.JsonConverters.PartialSettingScopeRoleNullableJsonConverter), + typeof(global::Dataloop.JsonConverters.PodTypeJsonConverter), typeof(global::Dataloop.JsonConverters.PodTypeNullableJsonConverter), @@ -5820,6 +6082,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Dataloop.JsonConverters.ComputePluginSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.MigrationSpecJsonConverter), + + typeof(global::Dataloop.JsonConverters.RemoveSettingTraceMigrationSpecJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -6044,6 +6310,24 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>), @@ -6098,6 +6382,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -6182,6 +6470,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), + typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter), @@ -6198,6 +6494,46 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf?), TypeInfoPropertyName = "PickS3DriverPayloadExcludeKeyofS3DriverPayloadPath_9a6ecea9b7debc31")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>?), TypeInfoPropertyName = "APIServiceDriver_c0617c242689fb32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dataloop.AnyOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>, global::System.Collections.Generic.List, global::System.Collections.Generic.List, global::System.Collections.Generic.List, global::System.Collections.Generic.List, global::System.Collections.Generic.List>), TypeInfoPropertyName = "APIServiceDriver_ce74abc722e1be30")] + [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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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::Dataloop.AnyOf, 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))] + [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))] [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))] @@ -6270,6 +6606,7 @@ internal sealed partial class SourceGenerationContextChunk2 : 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))] @@ -6330,6 +6667,7 @@ internal sealed partial class SourceGenerationContextChunk2 : 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))] internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -6728,6 +7066,26 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Dataloop.JsonConverters.CommandStatusNullableJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.CommandsDomainJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.CommandsDomainNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingsValueTypesNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PlatformEntityTypeJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PlatformEntityTypeNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingScopeTypeJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingScopeTypeNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingScopeIdJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingScopeIdNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingScopeRoleJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingScopeRoleNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingsTypesJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingsTypesNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.SettingsSectionNamesNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PartialSettingScopeTypeJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PartialSettingScopeTypeNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PartialSettingScopeIdJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PartialSettingScopeIdNullableJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PartialSettingScopeRoleJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.PartialSettingScopeRoleNullableJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.PodTypeJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.PodTypeNullableJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AlertStatusJsonConverter()); @@ -6772,6 +7130,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Dataloop.JsonConverters.CustomInstallationJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AppMetadataJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.ComputePluginSpecJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.MigrationSpecJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.RemoveSettingTraceMigrationSpecJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>()); @@ -6884,6 +7244,15 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter>()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter>()); @@ -6911,6 +7280,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); @@ -6953,6 +7324,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Dataloop.JsonConverters.AnyOfJsonConverter()); diff --git a/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContextTypes.g.cs b/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContextTypes.g.cs index dd79921..2dc0b8b 100644 --- a/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContextTypes.g.cs +++ b/src/libs/Dataloop/Generated/Dataloop.JsonSerializerContextTypes.g.cs @@ -4500,1083 +4500,1243 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Dataloop.UIHours? Type1118 { get; set; } + public global::Dataloop.IVersion? Type1118 { get; set; } /// /// /// - public global::Dataloop.APICallResourceDescriptor? Type1119 { get; set; } + public global::Dataloop.SettingsValueTypes? Type1119 { get; set; } /// /// /// - public global::Dataloop.APICallSourceDescriptor? Type1120 { get; set; } + public global::Dataloop.PlatformEntityType? Type1120 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type1121 { get; set; } + public global::Dataloop.SettingScope? Type1121 { get; set; } /// /// /// - public global::Dataloop.APICallDescriptor? Type1122 { get; set; } + public global::Dataloop.AnyOf? Type1122 { get; set; } /// /// /// - public global::Dataloop.StorageModificationSourceDescriptor? Type1123 { get; set; } + public global::Dataloop.SettingScopeType? Type1123 { get; set; } /// /// /// - public global::Dataloop.StorageModificationDescriptor? Type1124 { get; set; } + public global::Dataloop.AnyOf? Type1124 { get; set; } /// /// /// - public global::Dataloop.StorageDatasetDescriptor? Type1125 { get; set; } + public global::Dataloop.SettingScopeId? Type1125 { get; set; } /// /// /// - public global::Dataloop.StorageDescriptor? Type1126 { get; set; } + public global::Dataloop.AnyOf? Type1126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1127 { get; set; } + public global::Dataloop.SettingScopeRole? Type1127 { get; set; } /// /// /// - public global::Dataloop.PodType? Type1128 { get; set; } + public global::Dataloop.SettingsTypes? Type1128 { get; set; } /// /// /// - public global::Dataloop.FaasUsageServiceInstanceDescriptor? Type1129 { get; set; } + public global::Dataloop.APIFeatureFlag? Type1129 { get; set; } /// /// /// - public global::Dataloop.FaasGlobalServiceDescriptor? Type1130 { get; set; } + public global::Dataloop.SettingsSectionNames? Type1130 { get; set; } /// /// /// - public global::Dataloop.FaasUsageDescriptor? Type1131 { get; set; } + public global::Dataloop.APIUserSetting? Type1131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1132 { get; set; } + public global::Dataloop.IUserContext? Type1132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1133 { get; set; } + public global::Dataloop.ResolverPayload? Type1133 { get; set; } /// /// /// - public global::Dataloop.ItemsCount? Type1134 { get; set; } + public global::Dataloop.CreateSettingRequest? Type1134 { get; set; } /// /// /// - public global::Dataloop.IngestedDatapointsDescriptor? Type1135 { get; set; } + public global::Dataloop.CreateFeatureFlagRequest? Type1135 { get; set; } /// /// /// - public global::Dataloop.APIUsageEntry? Type1136 { get; set; } + public global::Dataloop.CreateUserSettingRequest? Type1136 { get; set; } /// /// /// - public global::Dataloop.AlertStatus? Type1137 { get; set; } + public global::Dataloop.PartialSettingScope? Type1137 { get; set; } /// /// /// - public global::Dataloop.APIAlert? Type1138 { get; set; } + public global::Dataloop.AnyOf? Type1138 { get; set; } /// /// /// - public global::Dataloop.FieldSort? Type1139 { get; set; } + public global::Dataloop.PartialSettingScopeType? Type1139 { get; set; } /// /// /// - public global::Dataloop.FieldSortField? Type1140 { get; set; } + public global::Dataloop.AnyOf? Type1140 { get; set; } /// /// /// - public global::Dataloop.FieldSortDirection? Type1141 { get; set; } + public global::Dataloop.PartialSettingScopeId? Type1141 { get; set; } /// /// /// - public global::Dataloop.ResourceAuditEventType? Type1142 { get; set; } + public global::Dataloop.AnyOf? Type1142 { get; set; } /// /// /// - public global::Dataloop.ResourceAuditLog? Type1143 { get; set; } + public global::Dataloop.PartialSettingScopeRole? Type1143 { get; set; } /// /// /// - public global::Dataloop.ResourceAuditLogCtx? Type1144 { get; set; } + public global::Dataloop.PatchFeatureFlagRequest? Type1144 { get; set; } /// /// /// - public global::Dataloop.AuditLogsCursorPage? Type1145 { get; set; } + public global::Dataloop.PatchUserSettingRequest? Type1145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1146 { get; set; } + public global::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag? Type1146 { get; set; } /// /// /// - public global::Dataloop.Address? Type1147 { get; set; } + public global::System.Collections.Generic.IList>? Type1147 { get; set; } /// /// /// - public global::Dataloop.TaxType? Type1148 { get; set; } + public global::Dataloop.AnyOf? Type1148 { get; set; } /// /// /// - public global::Dataloop.TaxData? Type1149 { get; set; } + public global::Dataloop.MigrationSpec? Type1149 { get; set; } /// /// /// - public global::Dataloop.DBBillingAccount? Type1150 { get; set; } + public global::Dataloop.MigrationSpecVariant2? Type1150 { get; set; } /// /// /// - public global::Dataloop.PartialBillingAccount? Type1151 { get; set; } + public global::Dataloop.RemoveSettingTraceMigrationSpec? Type1151 { get; set; } /// /// /// - public global::Dataloop.PartialBillingAccountTaxData? Type1152 { get; set; } + public global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? Type1152 { get; set; } /// /// /// - public global::Dataloop.PaymentDriverType? Type1153 { get; set; } + public global::Dataloop.UIHours? Type1153 { get; set; } /// /// /// - public global::Dataloop.DBPaymentDriverConfiguration? Type1154 { get; set; } + public global::Dataloop.APICallResourceDescriptor? Type1154 { get; set; } /// /// /// - public global::Dataloop.CreditCard? Type1155 { get; set; } + public global::Dataloop.APICallSourceDescriptor? Type1155 { get; set; } /// /// /// - public global::Dataloop.PaymentMethod? Type1156 { get; set; } + public global::System.Collections.Generic.Dictionary? Type1156 { get; set; } /// /// /// - public global::Dataloop.ContactAddress? Type1157 { get; set; } + public global::Dataloop.APICallDescriptor? Type1157 { get; set; } /// /// /// - public global::Dataloop.ContactInfo? Type1158 { get; set; } + public global::Dataloop.StorageModificationSourceDescriptor? Type1158 { get; set; } /// /// /// - public global::Dataloop.LineItem? Type1159 { get; set; } + public global::Dataloop.StorageModificationDescriptor? Type1159 { get; set; } /// /// /// - public global::Dataloop.InvoiceStatus? Type1160 { get; set; } + public global::Dataloop.StorageDatasetDescriptor? Type1160 { get; set; } /// /// /// - public global::Dataloop.Currency? Type1161 { get; set; } + public global::Dataloop.StorageDescriptor? Type1161 { get; set; } /// /// /// - public global::Dataloop.PaymentDetails? Type1162 { get; set; } + public global::System.Collections.Generic.IList? Type1162 { get; set; } /// /// /// - public global::Dataloop.Invoice? Type1163 { get; set; } + public global::Dataloop.PodType? Type1163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1164 { get; set; } + public global::Dataloop.FaasUsageServiceInstanceDescriptor? Type1164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1165 { get; set; } + public global::Dataloop.FaasGlobalServiceDescriptor? Type1165 { get; set; } /// /// /// - public global::Dataloop.InvoiceBilledPeriod? Type1166 { get; set; } + public global::Dataloop.FaasUsageDescriptor? Type1166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1167 { get; set; } + public global::System.Collections.Generic.IList? Type1167 { get; set; } /// /// /// - public global::Dataloop.RangeOrFeatureTier? Type1168 { get; set; } + public global::System.Collections.Generic.IList? Type1168 { get; set; } /// /// /// - public global::Dataloop.RangeOrFeatureTierRange? Type1169 { get; set; } + public global::Dataloop.ItemsCount? Type1169 { get; set; } /// /// /// - public global::Dataloop.OverQuota? Type1170 { get; set; } + public global::Dataloop.IngestedDatapointsDescriptor? Type1170 { get; set; } /// /// /// - public global::Dataloop.APIBillableResource? Type1171 { get; set; } + public global::Dataloop.APIUsageEntry? Type1171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1172 { get; set; } + public global::Dataloop.AlertStatus? Type1172 { get; set; } /// /// /// - public global::Dataloop.BillingScope? Type1173 { get; set; } + public global::Dataloop.APIAlert? Type1173 { get; set; } /// /// /// - public global::Dataloop.SubscriptionInput? Type1174 { get; set; } + public global::Dataloop.FieldSort? Type1174 { get; set; } /// /// /// - public global::Dataloop.EditSubscriptionInput? Type1175 { get; set; } + public global::Dataloop.FieldSortField? Type1175 { get; set; } /// /// /// - public global::Dataloop.RenewSubscriptionInput? Type1176 { get; set; } + public global::Dataloop.FieldSortDirection? Type1176 { get; set; } /// /// /// - public global::Dataloop.CursorPageAPISubscription? Type1177 { get; set; } + public global::Dataloop.ResourceAuditEventType? Type1177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1178 { get; set; } + public global::Dataloop.ResourceAuditLog? Type1178 { get; set; } /// /// /// - public global::Dataloop.CustomSubscriptionInput? Type1179 { get; set; } + public global::Dataloop.ResourceAuditLogCtx? Type1179 { get; set; } /// /// /// - public global::Dataloop.SubscriptionUpgradeInput? Type1180 { get; set; } + public global::Dataloop.AuditLogsCursorPage? Type1180 { get; set; } /// /// /// - public global::Dataloop.SubscriptionExtensionInput? Type1181 { get; set; } + public global::System.Collections.Generic.IList? Type1181 { get; set; } /// /// /// - public global::Dataloop.PaymentDriverTypes? Type1182 { get; set; } + public global::Dataloop.Address? Type1182 { get; set; } /// /// /// - public global::Dataloop.UsageLog? Type1183 { get; set; } + public global::Dataloop.TaxType? Type1183 { get; set; } /// /// /// - public global::Dataloop.ResourceUsage? Type1184 { get; set; } + public global::Dataloop.TaxData? Type1184 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1185 { get; set; } + public global::Dataloop.DBBillingAccount? Type1185 { get; set; } /// /// /// - public global::Dataloop.UsageReport? Type1186 { get; set; } + public global::Dataloop.PartialBillingAccount? Type1186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1187 { get; set; } + public global::Dataloop.PartialBillingAccountTaxData? Type1187 { get; set; } /// /// /// - public global::Dataloop.UsageResourcesReport? Type1188 { get; set; } + public global::Dataloop.PaymentDriverType? Type1188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1189 { get; set; } + public global::Dataloop.DBPaymentDriverConfiguration? Type1189 { get; set; } /// /// /// - public global::Dataloop.AzureWebhookEvent? Type1190 { get; set; } + public global::Dataloop.CreditCard? Type1190 { get; set; } /// /// /// - public global::Dataloop.AzureWebhookEventAction? Type1191 { get; set; } + public global::Dataloop.PaymentMethod? Type1191 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1192 { get; set; } + public global::Dataloop.ContactAddress? Type1192 { get; set; } /// /// /// - public global::Dataloop.AzureWebhookEventOperationRequestSource? Type1193 { get; set; } + public global::Dataloop.ContactInfo? Type1193 { get; set; } /// /// /// - public global::Dataloop.AzureWebhookEventSubscription? Type1194 { get; set; } + public global::Dataloop.LineItem? Type1194 { get; set; } /// /// /// - public global::Dataloop.AzureWebhookEventSubscriptionTerm? Type1195 { get; set; } + public global::Dataloop.InvoiceStatus? Type1195 { get; set; } /// /// /// - public global::Dataloop.AzureWebhookEventSubscriptionPurchaser? Type1196 { get; set; } + public global::Dataloop.Currency? Type1196 { get; set; } /// /// /// - public global::Dataloop.AzureWebhookEventSubscriptionBeneficiary? Type1197 { get; set; } + public global::Dataloop.PaymentDetails? Type1197 { get; set; } /// /// /// - public global::Dataloop.ArchiveAnnotationToStorageRequest? Type1198 { get; set; } + public global::Dataloop.Invoice? Type1198 { get; set; } /// /// /// - public global::Dataloop.RestoreArchivedAnnotationToDBRequest? Type1199 { get; set; } + public global::System.Collections.Generic.IList? Type1199 { get; set; } /// /// /// - public global::Dataloop.GetProjectsActiveCountersRequest? Type1200 { get; set; } + public global::System.Collections.Generic.IList? Type1200 { get; set; } /// /// /// - public global::Dataloop.GetCountersForProjectRequest? Type1201 { get; set; } + public global::Dataloop.InvoiceBilledPeriod? Type1201 { get; set; } /// /// /// - public global::Dataloop.CreateApiKeyRequest? Type1202 { get; set; } + public global::System.Collections.Generic.IList? Type1202 { get; set; } /// /// /// - public global::Dataloop.ResolveTemplateRequest? Type1203 { get; set; } + public global::Dataloop.RangeOrFeatureTier? Type1203 { get; set; } /// /// /// - public global::Dataloop.SetItemStatusBulkTaskRequest? Type1204 { get; set; } + public global::Dataloop.RangeOrFeatureTierRange? Type1204 { get; set; } /// /// /// - public global::Dataloop.SetItemStatusBulkAssignmentRequest? Type1205 { get; set; } + public global::Dataloop.OverQuota? Type1205 { get; set; } /// /// /// - public global::Dataloop.GetAssignmentFieldsRequest? Type1206 { get; set; } + public global::Dataloop.APIBillableResource? Type1206 { get; set; } /// /// /// - public global::Dataloop.QueryAuditLogsRequest? Type1207 { get; set; } + public global::System.Collections.Generic.IList? Type1207 { get; set; } /// /// /// - public global::Dataloop.UpdateAlertRequest? Type1208 { get; set; } + public global::Dataloop.BillingScope? Type1208 { get; set; } /// /// /// - public global::Dataloop.ListAccountAlertsRequest? Type1209 { get; set; } + public global::Dataloop.SubscriptionInput? Type1209 { get; set; } /// /// /// - public global::Dataloop.InstallRequest? Type1210 { get; set; } + public global::Dataloop.EditSubscriptionInput? Type1210 { get; set; } /// /// /// - public global::Dataloop.UninstallRequest? Type1211 { get; set; } + public global::Dataloop.RenewSubscriptionInput? Type1211 { get; set; } /// /// /// - public global::Dataloop.AllOf? Type1212 { get; set; } + public global::Dataloop.CursorPageAPISubscription? Type1212 { get; set; } /// /// /// - public global::Dataloop.UpdateComputeRequest2? Type1213 { get; set; } + public global::System.Collections.Generic.IList? Type1213 { get; set; } /// /// /// - public global::Dataloop.SchemaCleanupRequest? Type1214 { get; set; } + public global::Dataloop.CustomSubscriptionInput? Type1214 { get; set; } /// /// /// - public global::Dataloop.GetDatasetsByProjectIdsRequest? Type1215 { get; set; } + public global::Dataloop.SubscriptionUpgradeInput? Type1215 { get; set; } /// /// /// - public global::Dataloop.ListExportHistoryRequest? Type1216 { get; set; } + public global::Dataloop.SubscriptionExtensionInput? Type1216 { get; set; } /// /// /// - public global::Dataloop.ListExportHistoryRequestSortOrder? Type1217 { get; set; } + public global::Dataloop.PaymentDriverTypes? Type1217 { get; set; } /// /// /// - public global::Dataloop.ListExportHistoryRequestSortBy? Type1218 { get; set; } + public global::Dataloop.UsageLog? Type1218 { get; set; } /// /// /// - public global::Dataloop.AllOf?>? Type1219 { get; set; } + public global::Dataloop.ResourceUsage? Type1219 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1220 { get; set; } + public global::System.Collections.Generic.IList? Type1220 { get; set; } /// /// /// - public global::Dataloop.QueryDatasetsRequest? Type1221 { get; set; } + public global::Dataloop.UsageReport? Type1221 { get; set; } /// /// /// - public global::Dataloop.QueryDatasetsRequestTarget? Type1222 { get; set; } + public global::System.Collections.Generic.IList? Type1222 { get; set; } /// /// /// - public global::Dataloop.AllOf? Type1223 { get; set; } + public global::Dataloop.UsageResourcesReport? Type1223 { get; set; } /// /// /// - public global::Dataloop.RestoreDatasetRequest? Type1224 { get; set; } + public global::System.Collections.Generic.IList? Type1224 { get; set; } /// /// /// - public global::Dataloop.RemoveItemsByQueryRequest? Type1225 { get; set; } + public global::Dataloop.AzureWebhookEvent? Type1225 { get; set; } /// /// /// - public global::Dataloop.BulkUpdateMetadataRequest? Type1226 { get; set; } + public global::Dataloop.AzureWebhookEventAction? Type1226 { get; set; } /// /// /// - public global::Dataloop.BullkGenerateAnnotationThumbnailsRequest? Type1227 { get; set; } + public global::Dataloop.AnyOf? Type1227 { get; set; } /// /// /// - public global::Dataloop.BullkGenerateAnnotationThumbnailsRequestOptions? Type1228 { get; set; } + public global::Dataloop.AzureWebhookEventOperationRequestSource? Type1228 { get; set; } /// /// /// - public global::Dataloop.CreateItemCollectionRequest? Type1229 { get; set; } + public global::Dataloop.AzureWebhookEventSubscription? Type1229 { get; set; } /// /// /// - public global::Dataloop.AddItemsToItemCollectionsRequest? Type1230 { get; set; } + public global::Dataloop.AzureWebhookEventSubscriptionTerm? Type1230 { get; set; } /// /// /// - public global::Dataloop.RemoveItemsFromItemCollectionsRequest? Type1231 { get; set; } + public global::Dataloop.AzureWebhookEventSubscriptionPurchaser? Type1231 { get; set; } /// /// /// - public global::Dataloop.RenameItemCollectionRequest? Type1232 { get; set; } + public global::Dataloop.AzureWebhookEventSubscriptionBeneficiary? Type1232 { get; set; } /// /// /// - public global::Dataloop.InvalidateAnnotationThumbnailsRequest? Type1233 { get; set; } + public global::Dataloop.ArchiveAnnotationToStorageRequest? Type1233 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? Type1234 { get; set; } + public global::Dataloop.RestoreArchivedAnnotationToDBRequest? Type1234 { get; set; } /// /// /// - public global::Dataloop.MoveItemsRequest? Type1235 { get; set; } + public global::Dataloop.GetProjectsActiveCountersRequest? Type1235 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? Type1236 { get; set; } + public global::Dataloop.GetCountersForProjectRequest? Type1236 { get; set; } /// /// /// - public global::Dataloop.ArchiveDatasetItemAnnotationToStorageRequest? Type1237 { get; set; } + public global::Dataloop.CreateApiKeyRequest? Type1237 { get; set; } /// /// /// - public global::Dataloop.RestoreArchivedDatasetItemAnnotationToDBRequest? Type1238 { get; set; } + public global::Dataloop.ResolveTemplateRequest? Type1238 { get; set; } /// /// /// - public global::Dataloop.GetFilteredDatasetLabelAggregationRequest? Type1239 { get; set; } + public global::Dataloop.SetItemStatusBulkTaskRequest? Type1239 { get; set; } /// /// /// - public global::Dataloop.GetFilteredDatasetTypeAggregationRequest? Type1240 { get; set; } + public global::Dataloop.SetItemStatusBulkAssignmentRequest? Type1240 { get; set; } /// /// /// - public global::Dataloop.AnyOf, global::Dataloop.ImportItemsToDatasetRequest>? Type1241 { get; set; } + public global::Dataloop.GetAssignmentFieldsRequest? Type1241 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1242 { get; set; } + public global::Dataloop.QueryAuditLogsRequest? Type1242 { get; set; } /// /// /// - public global::Dataloop.ImportItemsToDatasetRequest? Type1243 { get; set; } + public global::Dataloop.UpdateAlertRequest? Type1243 { get; set; } /// /// /// - public global::Dataloop.SplitMlOperationRequest? Type1244 { get; set; } + public global::Dataloop.ListAccountAlertsRequest? Type1244 { get; set; } /// /// /// - public global::Dataloop.MigrateDriversIntegrationRequest? Type1245 { get; set; } + public global::Dataloop.InstallRequest? Type1245 { get; set; } /// /// /// - public global::Dataloop.CheckStorageDriversIntegrationByIntegrationIdRequest? Type1246 { get; set; } + public global::Dataloop.UninstallRequest? Type1246 { get; set; } /// /// /// - public global::Dataloop.NackRequest? Type1247 { get; set; } + public global::Dataloop.AllOf? Type1247 { get; set; } /// /// /// - public global::Dataloop.PushProgressRequest? Type1248 { get; set; } + public global::Dataloop.UpdateComputeRequest2? Type1248 { get; set; } /// /// /// - public global::Dataloop.CreateExecutionRequest? Type1249 { get; set; } + public global::Dataloop.SchemaCleanupRequest? Type1249 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? Type1250 { get; set; } + public global::Dataloop.GetDatasetsByProjectIdsRequest? Type1250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1251 { get; set; } + public global::Dataloop.ListExportHistoryRequest? Type1251 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? Type1252 { get; set; } + public global::Dataloop.ListExportHistoryRequestSortOrder? Type1252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1253 { get; set; } + public global::Dataloop.ListExportHistoryRequestSortBy? Type1253 { get; set; } /// /// /// - public global::Dataloop.AddGroupMemberRequest? Type1254 { get; set; } + public global::Dataloop.AllOf?>? Type1254 { get; set; } /// /// /// - public global::Dataloop.UpdateGroupOwnerRequest? Type1255 { get; set; } + public global::Dataloop.AnyOf? Type1255 { get; set; } /// /// /// - public global::Dataloop.AddSubGroupRequest? Type1256 { get; set; } + public global::Dataloop.QueryDatasetsRequest? Type1256 { get; set; } /// /// /// - public global::Dataloop.ArchiveItemAnnotationToStorageRequest? Type1257 { get; set; } + public global::Dataloop.QueryDatasetsRequestTarget? Type1257 { get; set; } /// /// /// - public global::Dataloop.RestoreArchivedItemAnnotationToDBRequest? Type1258 { get; set; } + public global::Dataloop.AllOf? Type1258 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? Type1259 { get; set; } + public global::Dataloop.RestoreDatasetRequest? Type1259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1260 { get; set; } + public global::Dataloop.RemoveItemsByQueryRequest? Type1260 { get; set; } /// /// /// - public global::Dataloop.GenerateModelMetricsReportRequest? Type1261 { get; set; } + public global::Dataloop.BulkUpdateMetadataRequest? Type1261 { get; set; } /// /// /// - public global::Dataloop.ModelsExecutionsRequest? Type1262 { get; set; } + public global::Dataloop.BullkGenerateAnnotationThumbnailsRequest? Type1262 { get; set; } /// /// /// - public global::Dataloop.ModelsServicesRequest? Type1263 { get; set; } + public global::Dataloop.BullkGenerateAnnotationThumbnailsRequestOptions? Type1263 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1264 { get; set; } + public global::Dataloop.CreateItemCollectionRequest? Type1264 { get; set; } /// /// /// - public global::Dataloop.DeployModelRequest? Type1265 { get; set; } + public global::Dataloop.AddItemsToItemCollectionsRequest? Type1265 { get; set; } /// /// /// - public global::Dataloop.UpdateModelDeploymentRequest? Type1266 { get; set; } + public global::Dataloop.RemoveItemsFromItemCollectionsRequest? Type1266 { get; set; } /// /// /// - public global::Dataloop.ExtractItemFeaturesRequest? Type1267 { get; set; } + public global::Dataloop.RenameItemCollectionRequest? Type1267 { get; set; } /// /// /// - public global::Dataloop.ExtractItemFeaturesRequestConfig? Type1268 { get; set; } + public global::Dataloop.InvalidateAnnotationThumbnailsRequest? Type1268 { get; set; } /// /// /// - public global::Dataloop.ExtractItemFeaturesRequestInput? Type1269 { get; set; } + public global::Dataloop.AnyOf>? Type1269 { get; set; } /// /// /// - public global::Dataloop.EvaluateModelRequest? Type1270 { get; set; } + public global::Dataloop.MoveItemsRequest? Type1270 { get; set; } /// /// /// - public global::Dataloop.EvaluateModelRequestConfig? Type1271 { get; set; } + public global::Dataloop.AnyOf>? Type1271 { get; set; } /// /// /// - public global::Dataloop.EvaluateModelRequestInput? Type1272 { get; set; } + public global::Dataloop.ArchiveDatasetItemAnnotationToStorageRequest? Type1272 { get; set; } /// /// /// - public global::Dataloop.ModelPredictionRequest? Type1273 { get; set; } + public global::Dataloop.RestoreArchivedDatasetItemAnnotationToDBRequest? Type1273 { get; set; } /// /// /// - public global::Dataloop.ModelPredictionRequestConfig? Type1274 { get; set; } + public global::Dataloop.GetFilteredDatasetLabelAggregationRequest? Type1274 { get; set; } /// /// /// - public global::Dataloop.ModelPredictionRequestInput? Type1275 { get; set; } + public global::Dataloop.GetFilteredDatasetTypeAggregationRequest? Type1275 { get; set; } /// /// /// - public global::Dataloop.TrainModelRequest? Type1276 { get; set; } + public global::Dataloop.AnyOf, global::Dataloop.ImportItemsToDatasetRequest>? Type1276 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1277 { get; set; } + public global::System.Collections.Generic.IList? Type1277 { get; set; } /// /// /// - public global::Dataloop.DeleteAttributesRequest? Type1278 { get; set; } + public global::Dataloop.ImportItemsToDatasetRequest? Type1278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1279 { get; set; } + public global::Dataloop.SplitMlOperationRequest? Type1279 { get; set; } /// /// /// - public global::Dataloop.CreateOrgRequest? Type1280 { get; set; } + public global::Dataloop.MigrateDriversIntegrationRequest? Type1280 { get; set; } /// /// /// - public global::Dataloop.PatchOrgRequest? Type1281 { get; set; } + public global::Dataloop.CheckStorageDriversIntegrationByIntegrationIdRequest? Type1281 { get; set; } /// /// /// - public global::Dataloop.CreateOrgBotRequest? Type1282 { get; set; } + public global::Dataloop.NackRequest? Type1282 { get; set; } /// /// /// - public global::Dataloop.CreateIntegrationRequest? Type1283 { get; set; } + public global::Dataloop.PushProgressRequest? Type1283 { get; set; } /// /// /// - public global::Dataloop.AddOrgMembersRequest? Type1284 { get; set; } + public global::Dataloop.CreateExecutionRequest? Type1284 { get; set; } /// /// /// - public global::Dataloop.PatchOrgMemberRequest? Type1285 { get; set; } + public global::Dataloop.AnyOf>? Type1285 { get; set; } /// /// /// - public global::Dataloop.UpdateOrgPlanRequest? Type1286 { get; set; } + public global::System.Collections.Generic.IList? Type1286 { get; set; } /// /// /// - public global::Dataloop.InstallRequest2? Type1287 { get; set; } + public global::Dataloop.AnyOf>? Type1287 { get; set; } /// /// /// - public global::Dataloop.UninstallRequest2? Type1288 { get; set; } + public global::System.Collections.Generic.IList? Type1288 { get; set; } /// /// /// - public global::Dataloop.LogsRequest? Type1289 { get; set; } + public global::Dataloop.AddGroupMemberRequest? Type1289 { get; set; } /// /// /// - public global::Dataloop.QueryBillingMetricsRequest? Type1290 { get; set; } + public global::Dataloop.UpdateGroupOwnerRequest? Type1290 { get; set; } /// /// /// - public global::Dataloop.UpdateProjectGuestRequest? Type1291 { get; set; } + public global::Dataloop.AddSubGroupRequest? Type1291 { get; set; } /// /// /// - public global::Dataloop.AddOrgToGuestRequest? Type1292 { get; set; } + public global::Dataloop.ArchiveItemAnnotationToStorageRequest? Type1292 { get; set; } /// /// /// - public global::Dataloop.PatchProjectRequest? Type1293 { get; set; } + public global::Dataloop.RestoreArchivedItemAnnotationToDBRequest? Type1293 { get; set; } /// /// /// - public global::Dataloop.SetProjectAccountRequest? Type1294 { get; set; } + public global::Dataloop.AnyOf>? Type1294 { get; set; } /// /// /// - public global::Dataloop.AddOrgToProjectRequest? Type1295 { get; set; } + public global::System.Collections.Generic.IList? Type1295 { get; set; } /// /// /// - public global::Dataloop.AddGroupRequest? Type1296 { get; set; } + public global::Dataloop.GenerateModelMetricsReportRequest? Type1296 { get; set; } /// /// /// - public global::Dataloop.UpdateGroupRequest? Type1297 { get; set; } + public global::Dataloop.ModelsExecutionsRequest? Type1297 { get; set; } /// /// /// - public global::Dataloop.QueryEntitiesRequest? Type1298 { get; set; } + public global::Dataloop.ModelsServicesRequest? Type1298 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1299 { get; set; } + public global::Dataloop.AnyOf? Type1299 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1300 { get; set; } + public global::Dataloop.DeployModelRequest? Type1300 { get; set; } /// /// /// - public global::Dataloop.CreateScoresRequest? Type1301 { get; set; } + public global::Dataloop.UpdateModelDeploymentRequest? Type1301 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1302 { get; set; } + public global::Dataloop.ExtractItemFeaturesRequest? Type1302 { get; set; } /// /// /// - public global::Dataloop.SetDefaultRequest? Type1303 { get; set; } + public global::Dataloop.ExtractItemFeaturesRequestConfig? Type1303 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1304 { get; set; } + public global::Dataloop.ExtractItemFeaturesRequestInput? Type1304 { get; set; } /// /// /// - public global::Dataloop.GetGlobalServicesRequestItem? Type1305 { get; set; } + public global::Dataloop.EvaluateModelRequest? Type1305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1306 { get; set; } + public global::Dataloop.EvaluateModelRequestConfig? Type1306 { get; set; } /// /// /// - public global::Dataloop.RolloutServiceRequest? Type1307 { get; set; } + public global::Dataloop.EvaluateModelRequestInput? Type1307 { get; set; } /// /// /// - public global::Dataloop.GetProjectsActiveCountersRequest2? Type1308 { get; set; } + public global::Dataloop.ModelPredictionRequest? Type1308 { get; set; } /// /// /// - public global::Dataloop.GetCountersForProjectRequest2? Type1309 { get; set; } + public global::Dataloop.ModelPredictionRequestConfig? Type1309 { get; set; } /// /// /// - public global::Dataloop.UpdateUserOrgRequest? Type1310 { get; set; } + public global::Dataloop.ModelPredictionRequestInput? Type1310 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1311 { get; set; } + public global::Dataloop.TrainModelRequest? Type1311 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1312 { get; set; } + public global::Dataloop.AnyOf? Type1312 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1313 { get; set; } + public global::Dataloop.DeleteAttributesRequest? Type1313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1314 { get; set; } + public global::System.Collections.Generic.IList? Type1314 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1315 { get; set; } + public global::Dataloop.CreateOrgRequest? Type1315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1316 { get; set; } + public global::Dataloop.PatchOrgRequest? Type1316 { get; set; } /// /// /// - public global::Dataloop.CreateApiKeyResponse? Type1317 { get; set; } + public global::Dataloop.CreateOrgBotRequest? Type1317 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1318 { get; set; } + public global::Dataloop.CreateIntegrationRequest? Type1318 { get; set; } /// /// /// - public global::Dataloop.UpdateResponse? Type1319 { get; set; } + public global::Dataloop.AddOrgMembersRequest? Type1319 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1320 { get; set; } + public global::Dataloop.PatchOrgMemberRequest? Type1320 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? Type1321 { get; set; } + public global::Dataloop.UpdateOrgPlanRequest? Type1321 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1322 { get; set; } + public global::Dataloop.InstallRequest2? Type1322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1323 { get; set; } + public global::Dataloop.UninstallRequest2? Type1323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1324 { get; set; } + public global::Dataloop.LogsRequest? Type1324 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1325 { get; set; } + public global::Dataloop.QueryBillingMetricsRequest? Type1325 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1326 { get; set; } + public global::Dataloop.UpdateProjectGuestRequest? Type1326 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1327 { get; set; } + public global::Dataloop.AddOrgToGuestRequest? Type1327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1328 { get; set; } + public global::Dataloop.PatchProjectRequest? Type1328 { get; set; } /// /// /// - public global::Dataloop.GetDatasetsByProjectIdsResponse? Type1329 { get; set; } + public global::Dataloop.SetProjectAccountRequest? Type1329 { get; set; } /// /// /// - public global::Dataloop.ListExportHistoryResponse? Type1330 { get; set; } + public global::Dataloop.AddOrgToProjectRequest? Type1330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1331 { get; set; } + public global::Dataloop.AddGroupRequest? Type1331 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1332 { get; set; } + public global::Dataloop.UpdateGroupRequest? Type1332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1333 { get; set; } + public global::Dataloop.QueryEntitiesRequest? Type1333 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? Type1334 { get; set; } + public global::Dataloop.AnyOf? Type1334 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1335 { get; set; } + public global::Dataloop.AnyOf? Type1335 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1336 { get; set; } + public global::Dataloop.CreateScoresRequest? Type1336 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1337 { get; set; } + public global::System.Collections.Generic.IList? Type1337 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1338 { get; set; } + public global::Dataloop.SetDefaultRequest? Type1338 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1339 { get; set; } + public global::System.Collections.Generic.IList? Type1339 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1340 { get; set; } + public global::Dataloop.GetGlobalServicesRequestItem? Type1340 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1341 { get; set; } + public global::System.Collections.Generic.IList? Type1341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1342 { get; set; } + public global::Dataloop.RolloutServiceRequest? Type1342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1343 { get; set; } + public global::Dataloop.AnyOf? Type1343 { get; set; } /// /// /// - public global::Dataloop.PublishModelMetricsResponse? Type1344 { get; set; } + public global::Dataloop.AnyOf? Type1344 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type1345 { get; set; } + public global::Dataloop.DeleteSettingRequest? Type1345 { get; set; } /// /// /// - public global::Dataloop.ModelsDatasetsCountResponse? Type1346 { get; set; } + public global::Dataloop.GetProjectsActiveCountersRequest2? Type1346 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1347 { get; set; } + public global::Dataloop.GetCountersForProjectRequest2? Type1347 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1348 { get; set; } + public global::Dataloop.UpdateUserOrgRequest? Type1348 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1349 { get; set; } + public global::System.Collections.Generic.IList? Type1349 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1350 { get; set; } + public global::Dataloop.AnyOf? Type1350 { get; set; } /// /// /// - public global::Dataloop.GetAvailableIntegrationsResponseItemVariant1? Type1351 { get; set; } + public global::Dataloop.AnyOf? Type1351 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1352 { get; set; } + public global::System.Collections.Generic.IList? Type1352 { get; set; } /// /// /// - public global::Dataloop.GetAvailableIntegrationsResponseItemVariant1Option? Type1353 { get; set; } + public global::Dataloop.AnyOf? Type1353 { get; set; } /// /// /// - public global::Dataloop.GetAvailableIntegrationsResponseItemVariant2? Type1354 { get; set; } + public global::System.Collections.Generic.IList? Type1354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1355 { get; set; } + public global::Dataloop.CreateApiKeyResponse? Type1355 { get; set; } /// /// /// - public global::Dataloop.GetAvailableIntegrationsResponseItemVariant2Option? Type1356 { get; set; } + public global::System.Collections.Generic.IList? Type1356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1357 { get; set; } + public global::Dataloop.UpdateResponse? Type1357 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1358 { get; set; } + public global::Dataloop.AnyOf? Type1358 { get; set; } /// /// /// - public global::Dataloop.QueryPipelineTableResponseItem? Type1359 { get; set; } + public global::Dataloop.AnyOf>? Type1359 { get; set; } /// /// /// - public global::Dataloop.QueryPipelineTableResponseItemTemplate? Type1360 { get; set; } + public global::Dataloop.AnyOf? Type1360 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1361 { get; set; } + public global::System.Collections.Generic.IList? Type1361 { get; set; } /// /// /// - public global::Dataloop.TerminateResponse? Type1362 { get; set; } + public global::System.Collections.Generic.IList? Type1362 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1363 { get; set; } + public global::System.Collections.Generic.IList? Type1363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1364 { get; set; } + public global::System.Collections.Generic.IList? Type1364 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1365 { get; set; } + public global::Dataloop.AnyOf? Type1365 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1366 { get; set; } + public global::System.Collections.Generic.IList? Type1366 { get; set; } /// /// /// - public global::Dataloop.AnyOf, object>? Type1367 { get; set; } + public global::Dataloop.GetDatasetsByProjectIdsResponse? Type1367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1368 { get; set; } + public global::Dataloop.ListExportHistoryResponse? Type1368 { get; set; } /// /// /// - public global::Dataloop.AnyOf, object>? Type1369 { get; set; } + public global::System.Collections.Generic.IList? Type1369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1370 { get; set; } + public global::Dataloop.AnyOf? Type1370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1371 { get; set; } + public global::System.Collections.Generic.IList? Type1371 { get; set; } /// /// /// - public global::Dataloop.QueryConfusionResponse? Type1372 { get; set; } + public global::Dataloop.AnyOf>? Type1372 { get; set; } /// /// /// - public global::Dataloop.GetTaskScoresResponse? Type1373 { get; set; } + public global::System.Collections.Generic.IList>? Type1373 { get; set; } /// /// /// - public global::Dataloop.GetTaskAnnotationScoresResponse? Type1374 { get; set; } + public global::Dataloop.AnyOf? Type1374 { get; set; } /// /// /// - public global::Dataloop.GetTaskItemScoresResponse? Type1375 { get; set; } + public global::Dataloop.AnyOf? Type1375 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1376 { get; set; } + public global::Dataloop.AnyOf? Type1376 { get; set; } /// /// /// - public global::Dataloop.GetGlobalServicesResponseItem? Type1377 { get; set; } + public global::System.Collections.Generic.IList? Type1377 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type1378 { get; set; } + public global::Dataloop.AnyOf? Type1378 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1379 { get; set; } + public global::Dataloop.AnyOf? Type1379 { get; set; } /// /// /// - public global::Dataloop.ServiceStreamResponse? Type1380 { get; set; } + public global::System.Collections.Generic.IList? Type1380 { get; set; } /// /// /// - public global::Dataloop.GetServiceIntegrationEnvResponse? Type1381 { get; set; } + public global::System.Collections.Generic.IList? Type1381 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1382 { get; set; } + public global::Dataloop.PublishModelMetricsResponse? Type1382 { get; set; } /// /// /// - public global::Dataloop.GetServiceIntegrationEnvResponseEnvItem? Type1383 { get; set; } + public global::System.Collections.Generic.Dictionary? Type1383 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1384 { get; set; } + public global::Dataloop.ModelsDatasetsCountResponse? Type1384 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1385 { get; set; } + public global::Dataloop.AnyOf? Type1385 { get; set; } /// /// /// - public global::Dataloop.GetMyGroupProjectsResponseItem? Type1386 { get; set; } + public global::System.Collections.Generic.IList? Type1386 { get; set; } /// /// /// - public global::Dataloop.AnyOf? Type1387 { get; set; } + public global::System.Collections.Generic.IList>? Type1387 { get; set; } + /// + /// + /// + public global::Dataloop.AnyOf? Type1388 { get; set; } + /// + /// + /// + public global::Dataloop.GetAvailableIntegrationsResponseItemVariant1? Type1389 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1390 { get; set; } + /// + /// + /// + public global::Dataloop.GetAvailableIntegrationsResponseItemVariant1Option? Type1391 { get; set; } + /// + /// + /// + public global::Dataloop.GetAvailableIntegrationsResponseItemVariant2? Type1392 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1393 { get; set; } + /// + /// + /// + public global::Dataloop.GetAvailableIntegrationsResponseItemVariant2Option? Type1394 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1395 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1396 { get; set; } + /// + /// + /// + public global::Dataloop.QueryPipelineTableResponseItem? Type1397 { get; set; } + /// + /// + /// + public global::Dataloop.QueryPipelineTableResponseItemTemplate? Type1398 { get; set; } + /// + /// + /// + public global::Dataloop.AnyOf? Type1399 { get; set; } + /// + /// + /// + public global::Dataloop.TerminateResponse? Type1400 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1401 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1402 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1403 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1404 { get; set; } + /// + /// + /// + public global::Dataloop.AnyOf, object>? Type1405 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1406 { get; set; } + /// + /// + /// + public global::Dataloop.AnyOf, object>? Type1407 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1408 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1409 { get; set; } + /// + /// + /// + public global::Dataloop.QueryConfusionResponse? Type1410 { get; set; } + /// + /// + /// + public global::Dataloop.GetTaskScoresResponse? Type1411 { get; set; } + /// + /// + /// + public global::Dataloop.GetTaskAnnotationScoresResponse? Type1412 { get; set; } + /// + /// + /// + public global::Dataloop.GetTaskItemScoresResponse? Type1413 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1414 { get; set; } + /// + /// + /// + public global::Dataloop.GetGlobalServicesResponseItem? Type1415 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type1416 { get; set; } + /// + /// + /// + public global::Dataloop.AnyOf? Type1417 { get; set; } + /// + /// + /// + public global::Dataloop.ServiceStreamResponse? Type1418 { get; set; } + /// + /// + /// + public global::Dataloop.GetServiceIntegrationEnvResponse? Type1419 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1420 { get; set; } + /// + /// + /// + public global::Dataloop.GetServiceIntegrationEnvResponseEnvItem? Type1421 { get; set; } + /// + /// + /// + public global::Dataloop.AnyOf? Type1422 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type1423 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1424 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1425 { get; set; } + /// + /// + /// + public global::Dataloop.GetMyGroupProjectsResponseItem? Type1426 { get; set; } + /// + /// + /// + public global::Dataloop.AnyOf? Type1427 { get; set; } /// /// @@ -6253,250 +6413,258 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType168 { get; set; } + public global::System.Collections.Generic.List>? ListType168 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType169 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType170 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType169 { get; set; } + public global::System.Collections.Generic.List? ListType171 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType170 { get; set; } + public global::System.Collections.Generic.List? ListType172 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType171 { get; set; } + public global::System.Collections.Generic.List? ListType173 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType172 { get; set; } + public global::System.Collections.Generic.List? ListType174 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType173 { get; set; } + public global::System.Collections.Generic.List? ListType175 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType174 { get; set; } + public global::System.Collections.Generic.List? ListType176 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType175 { get; set; } + public global::System.Collections.Generic.List? ListType177 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType176 { get; set; } + public global::System.Collections.Generic.List? ListType178 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType177 { get; set; } + public global::System.Collections.Generic.List? ListType179 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType178 { get; set; } + public global::System.Collections.Generic.List? ListType180 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType179 { get; set; } + public global::Dataloop.AnyOf>? ListType181 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? ListType180 { get; set; } + public global::Dataloop.AnyOf>? ListType182 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? ListType181 { get; set; } + public global::Dataloop.AnyOf, global::Dataloop.ImportItemsToDatasetRequest>? ListType183 { get; set; } /// /// /// - public global::Dataloop.AnyOf, global::Dataloop.ImportItemsToDatasetRequest>? ListType182 { get; set; } + public global::System.Collections.Generic.List? ListType184 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType183 { get; set; } + public global::Dataloop.AnyOf>? ListType185 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? ListType184 { get; set; } + public global::System.Collections.Generic.List? ListType186 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType185 { get; set; } + public global::Dataloop.AnyOf>? ListType187 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? ListType186 { get; set; } + public global::System.Collections.Generic.List? ListType188 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType187 { get; set; } + public global::Dataloop.AnyOf>? ListType189 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? ListType188 { get; set; } + public global::System.Collections.Generic.List? ListType190 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType189 { get; set; } + public global::System.Collections.Generic.List? ListType191 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType190 { get; set; } + public global::System.Collections.Generic.List? ListType192 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType191 { get; set; } + public global::System.Collections.Generic.List? ListType193 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType192 { get; set; } + public global::System.Collections.Generic.List? ListType194 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType193 { get; set; } + public global::System.Collections.Generic.List? ListType195 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType194 { get; set; } + public global::System.Collections.Generic.List? ListType196 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType195 { get; set; } + public global::System.Collections.Generic.List? ListType197 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType196 { get; set; } + public global::System.Collections.Generic.List? ListType198 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType197 { get; set; } + public global::Dataloop.AnyOf>? ListType199 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? ListType198 { get; set; } + public global::System.Collections.Generic.List? ListType200 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType199 { get; set; } + public global::System.Collections.Generic.List? ListType201 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType200 { get; set; } + public global::System.Collections.Generic.List? ListType202 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType201 { get; set; } + public global::System.Collections.Generic.List? ListType203 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType202 { get; set; } + public global::System.Collections.Generic.List? ListType204 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType203 { get; set; } + public global::System.Collections.Generic.List? ListType205 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType204 { get; set; } + public global::System.Collections.Generic.List? ListType206 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType205 { get; set; } + public global::Dataloop.AnyOf>? ListType207 { get; set; } /// /// /// - public global::Dataloop.AnyOf>? ListType206 { get; set; } + public global::System.Collections.Generic.List>? ListType208 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType207 { get; set; } + public global::System.Collections.Generic.List? ListType209 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType208 { get; set; } + public global::System.Collections.Generic.List? ListType210 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType209 { get; set; } + public global::System.Collections.Generic.List? ListType211 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType210 { get; set; } + public global::System.Collections.Generic.List? ListType212 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType211 { get; set; } + public global::System.Collections.Generic.List>? ListType213 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType212 { get; set; } + public global::System.Collections.Generic.List? ListType214 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType213 { get; set; } + public global::System.Collections.Generic.List? ListType215 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType214 { get; set; } + public global::System.Collections.Generic.List? ListType216 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType215 { get; set; } + public global::System.Collections.Generic.List? ListType217 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType216 { get; set; } + public global::System.Collections.Generic.List? ListType218 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType217 { get; set; } + public global::System.Collections.Generic.List? ListType219 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType218 { get; set; } + public global::System.Collections.Generic.List? ListType220 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType219 { get; set; } + public global::System.Collections.Generic.List? ListType221 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType220 { get; set; } + public global::Dataloop.AnyOf, object>? ListType222 { get; set; } /// /// /// - public global::Dataloop.AnyOf, object>? ListType221 { get; set; } + public global::System.Collections.Generic.List? ListType223 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType222 { get; set; } + public global::Dataloop.AnyOf, object>? ListType224 { get; set; } /// /// /// - public global::Dataloop.AnyOf, object>? ListType223 { get; set; } + public global::System.Collections.Generic.List? ListType225 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType224 { get; set; } + public global::System.Collections.Generic.List? ListType226 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType225 { get; set; } + public global::System.Collections.Generic.List? ListType227 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType226 { get; set; } + public global::System.Collections.Generic.List? ListType228 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType227 { get; set; } + public global::System.Collections.Generic.List>? ListType229 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType228 { get; set; } + public global::System.Collections.Generic.List? ListType230 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType229 { get; set; } + public global::System.Collections.Generic.List? ListType231 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlag.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlag.Json.g.cs new file mode 100644 index 0000000..4923781 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlag.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class APIFeatureFlag + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.APIFeatureFlag? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.APIFeatureFlag), + jsonSerializerContext) as global::Dataloop.APIFeatureFlag; + } + + /// + /// 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::Dataloop.APIFeatureFlag? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.APIFeatureFlag), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.APIFeatureFlag; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlag.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlag.g.cs new file mode 100644 index 0000000..92714d7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlag.g.cs @@ -0,0 +1,185 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class APIFeatureFlag + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// the value that will be taken if no value was passed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defaultValue")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object DefaultValue { get; set; } + + /// + /// the name of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// the value of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsValueTypes ValueType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingScope Scope { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.Dictionary Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settingType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsTypes SettingType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdBy")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedBy")] + public string? UpdatedBy { get; set; } + + /// + /// the date the feature flag expired + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expiredAt")] + public global::System.DateTime? ExpiredAt { get; set; } + + /// + /// value of that is interpreted from the expired at date. it signals if the flag is expired or not + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expired")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Expired { 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. + /// + /// + /// + /// the value that will be taken if no value was passed + /// + /// + /// the name of the setting + /// + /// + /// the value of the setting + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// value of that is interpreted from the expired at date. it signals if the flag is expired or not + /// + /// + /// + /// the date the feature flag expired + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public APIFeatureFlag( + string id, + object defaultValue, + string name, + object value, + global::Dataloop.SettingsValueTypes valueType, + global::Dataloop.SettingScope scope, + global::Dataloop.Dictionary metadata, + global::Dataloop.SettingsTypes settingType, + global::System.DateTime createdAt, + string createdBy, + global::System.DateTime updatedAt, + bool expired, + string? updatedBy, + global::System.DateTime? expiredAt) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.DefaultValue = defaultValue ?? throw new global::System.ArgumentNullException(nameof(defaultValue)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + this.ValueType = valueType; + this.Scope = scope ?? throw new global::System.ArgumentNullException(nameof(scope)); + this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); + this.SettingType = settingType; + this.CreatedAt = createdAt; + this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.UpdatedAt = updatedAt; + this.UpdatedBy = updatedBy; + this.ExpiredAt = expiredAt; + this.Expired = expired; + } + + /// + /// Initializes a new instance of the class. + /// + public APIFeatureFlag() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagDefaultValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagDefaultValue.Json.g.cs new file mode 100644 index 0000000..199ba2e --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagDefaultValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class APIFeatureFlagDefaultValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.APIFeatureFlagDefaultValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.APIFeatureFlagDefaultValue), + jsonSerializerContext) as global::Dataloop.APIFeatureFlagDefaultValue; + } + + /// + /// 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::Dataloop.APIFeatureFlagDefaultValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.APIFeatureFlagDefaultValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.APIFeatureFlagDefaultValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagDefaultValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagDefaultValue.g.cs new file mode 100644 index 0000000..0ad38f9 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagDefaultValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value that will be taken if no value was passed + /// + public sealed partial class APIFeatureFlagDefaultValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.APIFeatureFlagValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagValue.Json.g.cs new file mode 100644 index 0000000..ac3d131 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class APIFeatureFlagValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.APIFeatureFlagValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.APIFeatureFlagValue), + jsonSerializerContext) as global::Dataloop.APIFeatureFlagValue; + } + + /// + /// 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::Dataloop.APIFeatureFlagValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.APIFeatureFlagValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.APIFeatureFlagValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagValue.g.cs new file mode 100644 index 0000000..7fa99aa --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIFeatureFlagValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value of the setting + /// + public sealed partial class APIFeatureFlagValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.APIUserSetting.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSetting.Json.g.cs new file mode 100644 index 0000000..1c7c02c --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSetting.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class APIUserSetting + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.APIUserSetting? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.APIUserSetting), + jsonSerializerContext) as global::Dataloop.APIUserSetting; + } + + /// + /// 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::Dataloop.APIUserSetting? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.APIUserSetting), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.APIUserSetting; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSetting.g.cs new file mode 100644 index 0000000..ee675ab --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSetting.g.cs @@ -0,0 +1,229 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class APIUserSetting + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// the value that will be taken if no value was passed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defaultValue")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object DefaultValue { get; set; } + + /// + /// the name of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// the value of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsValueTypes ValueType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingScope Scope { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.Dictionary Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settingType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsTypes SettingType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdBy")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedBy")] + public string? UpdatedBy { get; set; } + + /// + /// description field for the user setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// inputs specified for the user setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Inputs { get; set; } + + /// + /// an icon for the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("icon")] + public string? Icon { get; set; } + + /// + /// a hint for the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hint")] + public string? Hint { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sectionName")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsSectionNames SectionName { get; set; } + + /// + /// the sub section that the setting belongs to + /// + [global::System.Text.Json.Serialization.JsonPropertyName("subSectionName")] + public string? SubSectionName { 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. + /// + /// + /// + /// the value that will be taken if no value was passed + /// + /// + /// the name of the setting + /// + /// + /// the value of the setting + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// inputs specified for the user setting + /// + /// + /// + /// + /// description field for the user setting + /// + /// + /// an icon for the setting + /// + /// + /// a hint for the setting + /// + /// + /// the sub section that the setting belongs to + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public APIUserSetting( + string id, + object defaultValue, + string name, + object value, + global::Dataloop.SettingsValueTypes valueType, + global::Dataloop.SettingScope scope, + global::Dataloop.Dictionary metadata, + global::Dataloop.SettingsTypes settingType, + global::System.DateTime createdAt, + string createdBy, + global::System.DateTime updatedAt, + object inputs, + global::Dataloop.SettingsSectionNames sectionName, + string? updatedBy, + string? description, + string? icon, + string? hint, + string? subSectionName) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.DefaultValue = defaultValue ?? throw new global::System.ArgumentNullException(nameof(defaultValue)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + this.ValueType = valueType; + this.Scope = scope ?? throw new global::System.ArgumentNullException(nameof(scope)); + this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); + this.SettingType = settingType; + this.CreatedAt = createdAt; + this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.UpdatedAt = updatedAt; + this.UpdatedBy = updatedBy; + this.Description = description; + this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); + this.Icon = icon; + this.Hint = hint; + this.SectionName = sectionName; + this.SubSectionName = subSectionName; + } + + /// + /// Initializes a new instance of the class. + /// + public APIUserSetting() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingDefaultValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingDefaultValue.Json.g.cs new file mode 100644 index 0000000..bb1c4cc --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingDefaultValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class APIUserSettingDefaultValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.APIUserSettingDefaultValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.APIUserSettingDefaultValue), + jsonSerializerContext) as global::Dataloop.APIUserSettingDefaultValue; + } + + /// + /// 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::Dataloop.APIUserSettingDefaultValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.APIUserSettingDefaultValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.APIUserSettingDefaultValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingDefaultValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingDefaultValue.g.cs new file mode 100644 index 0000000..69be059 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingDefaultValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value that will be taken if no value was passed + /// + public sealed partial class APIUserSettingDefaultValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.APIUserSettingInputs.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingInputs.Json.g.cs new file mode 100644 index 0000000..2507601 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingInputs.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class APIUserSettingInputs + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.APIUserSettingInputs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.APIUserSettingInputs), + jsonSerializerContext) as global::Dataloop.APIUserSettingInputs; + } + + /// + /// 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::Dataloop.APIUserSettingInputs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.APIUserSettingInputs), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.APIUserSettingInputs; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingInputs.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingInputs.g.cs new file mode 100644 index 0000000..75ee038 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingInputs.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// inputs specified for the user setting + /// + public sealed partial class APIUserSettingInputs + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.APIUserSettingValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingValue.Json.g.cs new file mode 100644 index 0000000..2582dd7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class APIUserSettingValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.APIUserSettingValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.APIUserSettingValue), + jsonSerializerContext) as global::Dataloop.APIUserSettingValue; + } + + /// + /// 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::Dataloop.APIUserSettingValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.APIUserSettingValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.APIUserSettingValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingValue.g.cs new file mode 100644 index 0000000..bd7c4a1 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.APIUserSettingValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value of the setting + /// + public sealed partial class APIUserSettingValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequest.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequest.Json.g.cs new file mode 100644 index 0000000..5eed699 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateFeatureFlagRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateFeatureFlagRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateFeatureFlagRequest), + jsonSerializerContext) as global::Dataloop.CreateFeatureFlagRequest; + } + + /// + /// 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::Dataloop.CreateFeatureFlagRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateFeatureFlagRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateFeatureFlagRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequest.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequest.g.cs new file mode 100644 index 0000000..edc8c45 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequest.g.cs @@ -0,0 +1,121 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class CreateFeatureFlagRequest + { + /// + /// the value that will be taken if no value was passed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defaultValue")] + public object? DefaultValue { get; set; } + + /// + /// the name of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// the value of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsValueTypes ValueType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingScope Scope { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::Dataloop.Dictionary? Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settingType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsTypes SettingType { get; set; } + + /// + /// the date the feature flag expired + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expiredAt")] + public global::System.DateTime? ExpiredAt { 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. + /// + /// + /// the name of the setting + /// + /// + /// + /// + /// + /// the value that will be taken if no value was passed + /// + /// + /// the value of the setting + /// + /// + /// + /// the date the feature flag expired + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateFeatureFlagRequest( + string name, + global::Dataloop.SettingsValueTypes valueType, + global::Dataloop.SettingScope scope, + global::Dataloop.SettingsTypes settingType, + object? defaultValue, + object? value, + global::Dataloop.Dictionary? metadata, + global::System.DateTime? expiredAt) + { + this.DefaultValue = defaultValue; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Value = value; + this.ValueType = valueType; + this.Scope = scope ?? throw new global::System.ArgumentNullException(nameof(scope)); + this.Metadata = metadata; + this.SettingType = settingType; + this.ExpiredAt = expiredAt; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateFeatureFlagRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestDefaultValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestDefaultValue.Json.g.cs new file mode 100644 index 0000000..8cabb56 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestDefaultValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateFeatureFlagRequestDefaultValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateFeatureFlagRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateFeatureFlagRequestDefaultValue), + jsonSerializerContext) as global::Dataloop.CreateFeatureFlagRequestDefaultValue; + } + + /// + /// 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::Dataloop.CreateFeatureFlagRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateFeatureFlagRequestDefaultValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateFeatureFlagRequestDefaultValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestDefaultValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestDefaultValue.g.cs new file mode 100644 index 0000000..3c4d77b --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestDefaultValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value that will be taken if no value was passed + /// + public sealed partial class CreateFeatureFlagRequestDefaultValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestValue.Json.g.cs new file mode 100644 index 0000000..191e887 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateFeatureFlagRequestValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateFeatureFlagRequestValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateFeatureFlagRequestValue), + jsonSerializerContext) as global::Dataloop.CreateFeatureFlagRequestValue; + } + + /// + /// 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::Dataloop.CreateFeatureFlagRequestValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateFeatureFlagRequestValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateFeatureFlagRequestValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestValue.g.cs new file mode 100644 index 0000000..515c931 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateFeatureFlagRequestValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value of the setting + /// + public sealed partial class CreateFeatureFlagRequestValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CreateSettingRequest.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequest.Json.g.cs new file mode 100644 index 0000000..d677c7f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateSettingRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateSettingRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateSettingRequest), + jsonSerializerContext) as global::Dataloop.CreateSettingRequest; + } + + /// + /// 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::Dataloop.CreateSettingRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateSettingRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateSettingRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequest.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequest.g.cs new file mode 100644 index 0000000..eb61e59 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequest.g.cs @@ -0,0 +1,110 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class CreateSettingRequest + { + /// + /// the value that will be taken if no value was passed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defaultValue")] + public object? DefaultValue { get; set; } + + /// + /// the name of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// the value of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsValueTypes ValueType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingScope Scope { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::Dataloop.Dictionary? Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settingType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsTypes SettingType { 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. + /// + /// + /// the name of the setting + /// + /// + /// + /// + /// + /// the value that will be taken if no value was passed + /// + /// + /// the value of the setting + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSettingRequest( + string name, + global::Dataloop.SettingsValueTypes valueType, + global::Dataloop.SettingScope scope, + global::Dataloop.SettingsTypes settingType, + object? defaultValue, + object? value, + global::Dataloop.Dictionary? metadata) + { + this.DefaultValue = defaultValue; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Value = value; + this.ValueType = valueType; + this.Scope = scope ?? throw new global::System.ArgumentNullException(nameof(scope)); + this.Metadata = metadata; + this.SettingType = settingType; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSettingRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestDefaultValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestDefaultValue.Json.g.cs new file mode 100644 index 0000000..104b77e --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestDefaultValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateSettingRequestDefaultValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateSettingRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateSettingRequestDefaultValue), + jsonSerializerContext) as global::Dataloop.CreateSettingRequestDefaultValue; + } + + /// + /// 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::Dataloop.CreateSettingRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateSettingRequestDefaultValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateSettingRequestDefaultValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestDefaultValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestDefaultValue.g.cs new file mode 100644 index 0000000..f59b6c2 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestDefaultValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value that will be taken if no value was passed + /// + public sealed partial class CreateSettingRequestDefaultValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CreateSettingRequestValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestValue.Json.g.cs new file mode 100644 index 0000000..39c815e --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateSettingRequestValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateSettingRequestValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateSettingRequestValue), + jsonSerializerContext) as global::Dataloop.CreateSettingRequestValue; + } + + /// + /// 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::Dataloop.CreateSettingRequestValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateSettingRequestValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateSettingRequestValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestValue.g.cs new file mode 100644 index 0000000..e005d21 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateSettingRequestValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value of the setting + /// + public sealed partial class CreateSettingRequestValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequest.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequest.Json.g.cs new file mode 100644 index 0000000..200f100 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateUserSettingRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateUserSettingRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateUserSettingRequest), + jsonSerializerContext) as global::Dataloop.CreateUserSettingRequest; + } + + /// + /// 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::Dataloop.CreateUserSettingRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateUserSettingRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateUserSettingRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequest.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequest.g.cs new file mode 100644 index 0000000..3acb55f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequest.g.cs @@ -0,0 +1,177 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class CreateUserSettingRequest + { + /// + /// the value that will be taken if no value was passed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defaultValue")] + public object? DefaultValue { get; set; } + + /// + /// the name of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// the value of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsValueTypes ValueType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingScope Scope { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::Dataloop.Dictionary? Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settingType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsTypesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.SettingsTypes SettingType { get; set; } + + /// + /// description field for the user setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// inputs specified for the user setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputs")] + public object? Inputs { get; set; } + + /// + /// an icon for the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("icon")] + public string? Icon { get; set; } + + /// + /// a hint for the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hint")] + public string? Hint { get; set; } + + /// + /// the main section that the setting belongs to + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sectionName")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter))] + public global::Dataloop.SettingsSectionNames? SectionName { get; set; } + + /// + /// the sub section that the setting belongs to + /// + [global::System.Text.Json.Serialization.JsonPropertyName("subSectionName")] + public string? SubSectionName { 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. + /// + /// + /// the name of the setting + /// + /// + /// + /// + /// + /// the value that will be taken if no value was passed + /// + /// + /// the value of the setting + /// + /// + /// + /// description field for the user setting + /// + /// + /// inputs specified for the user setting + /// + /// + /// an icon for the setting + /// + /// + /// a hint for the setting + /// + /// + /// the main section that the setting belongs to + /// + /// + /// the sub section that the setting belongs to + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateUserSettingRequest( + string name, + global::Dataloop.SettingsValueTypes valueType, + global::Dataloop.SettingScope scope, + global::Dataloop.SettingsTypes settingType, + object? defaultValue, + object? value, + global::Dataloop.Dictionary? metadata, + string? description, + object? inputs, + string? icon, + string? hint, + global::Dataloop.SettingsSectionNames? sectionName, + string? subSectionName) + { + this.DefaultValue = defaultValue; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Value = value; + this.ValueType = valueType; + this.Scope = scope ?? throw new global::System.ArgumentNullException(nameof(scope)); + this.Metadata = metadata; + this.SettingType = settingType; + this.Description = description; + this.Inputs = inputs; + this.Icon = icon; + this.Hint = hint; + this.SectionName = sectionName; + this.SubSectionName = subSectionName; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateUserSettingRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestDefaultValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestDefaultValue.Json.g.cs new file mode 100644 index 0000000..d7b2127 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestDefaultValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateUserSettingRequestDefaultValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateUserSettingRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateUserSettingRequestDefaultValue), + jsonSerializerContext) as global::Dataloop.CreateUserSettingRequestDefaultValue; + } + + /// + /// 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::Dataloop.CreateUserSettingRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateUserSettingRequestDefaultValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateUserSettingRequestDefaultValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestDefaultValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestDefaultValue.g.cs new file mode 100644 index 0000000..77e8e96 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestDefaultValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value that will be taken if no value was passed + /// + public sealed partial class CreateUserSettingRequestDefaultValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestInputs.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestInputs.Json.g.cs new file mode 100644 index 0000000..4400c28 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestInputs.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateUserSettingRequestInputs + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateUserSettingRequestInputs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateUserSettingRequestInputs), + jsonSerializerContext) as global::Dataloop.CreateUserSettingRequestInputs; + } + + /// + /// 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::Dataloop.CreateUserSettingRequestInputs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateUserSettingRequestInputs), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateUserSettingRequestInputs; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestInputs.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestInputs.g.cs new file mode 100644 index 0000000..9ba80fd --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestInputs.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// inputs specified for the user setting + /// + public sealed partial class CreateUserSettingRequestInputs + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestValue.Json.g.cs new file mode 100644 index 0000000..e2a0c44 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CreateUserSettingRequestValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CreateUserSettingRequestValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CreateUserSettingRequestValue), + jsonSerializerContext) as global::Dataloop.CreateUserSettingRequestValue; + } + + /// + /// 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::Dataloop.CreateUserSettingRequestValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CreateUserSettingRequestValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CreateUserSettingRequestValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestValue.g.cs new file mode 100644 index 0000000..9bf96b2 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CreateUserSettingRequestValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value of the setting + /// + public sealed partial class CreateUserSettingRequestValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.CursorPageAPIUserSettingOrAPIFeatureFlag.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CursorPageAPIUserSettingOrAPIFeatureFlag.Json.g.cs new file mode 100644 index 0000000..105e5e7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CursorPageAPIUserSettingOrAPIFeatureFlag.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class CursorPageAPIUserSettingOrAPIFeatureFlag + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag), + jsonSerializerContext) as global::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag; + } + + /// + /// 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::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.CursorPageAPIUserSettingOrAPIFeatureFlag; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.CursorPageAPIUserSettingOrAPIFeatureFlag.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.CursorPageAPIUserSettingOrAPIFeatureFlag.g.cs new file mode 100644 index 0000000..bc1c471 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.CursorPageAPIUserSettingOrAPIFeatureFlag.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class CursorPageAPIUserSettingOrAPIFeatureFlag + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("totalItemsCount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double TotalItemsCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Items { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("totalPagesCount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double TotalPagesCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hasNextPage")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasNextPage { 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 CursorPageAPIUserSettingOrAPIFeatureFlag( + double totalItemsCount, + global::System.Collections.Generic.IList> items, + double totalPagesCount, + bool hasNextPage) + { + this.TotalItemsCount = totalItemsCount; + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); + this.TotalPagesCount = totalPagesCount; + this.HasNextPage = hasNextPage; + } + + /// + /// Initializes a new instance of the class. + /// + public CursorPageAPIUserSettingOrAPIFeatureFlag() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.DeleteSettingRequest.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.DeleteSettingRequest.Json.g.cs new file mode 100644 index 0000000..d210621 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.DeleteSettingRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class DeleteSettingRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.DeleteSettingRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.DeleteSettingRequest), + jsonSerializerContext) as global::Dataloop.DeleteSettingRequest; + } + + /// + /// 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::Dataloop.DeleteSettingRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.DeleteSettingRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.DeleteSettingRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.DeleteSettingRequest.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.DeleteSettingRequest.g.cs new file mode 100644 index 0000000..bae98fd --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.DeleteSettingRequest.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class DeleteSettingRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("force")] + public bool? Force { 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 DeleteSettingRequest( + bool? force) + { + this.Force = force; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteSettingRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.IUserContext.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.IUserContext.Json.g.cs new file mode 100644 index 0000000..7fe7b23 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.IUserContext.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class IUserContext + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.IUserContext? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.IUserContext), + jsonSerializerContext) as global::Dataloop.IUserContext; + } + + /// + /// 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::Dataloop.IUserContext? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.IUserContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.IUserContext; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.IUserContext.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.IUserContext.g.cs new file mode 100644 index 0000000..297d170 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.IUserContext.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class IUserContext + { + /// + /// ID of the User + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UserId { get; set; } + + /// + /// ID of the Org + /// + [global::System.Text.Json.Serialization.JsonPropertyName("orgId")] + public string? OrgId { get; set; } + + /// + /// ID of the Project + /// + [global::System.Text.Json.Serialization.JsonPropertyName("projectId")] + public string? ProjectId { get; set; } + + /// + /// ID of the Task + /// + [global::System.Text.Json.Serialization.JsonPropertyName("taskId")] + public string? TaskId { get; set; } + + /// + /// ID of the Dataset + /// + [global::System.Text.Json.Serialization.JsonPropertyName("datasetId")] + public string? DatasetId { 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. + /// + /// + /// ID of the User + /// + /// + /// ID of the Org + /// + /// + /// ID of the Project + /// + /// + /// ID of the Task + /// + /// + /// ID of the Dataset + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IUserContext( + string userId, + string? orgId, + string? projectId, + string? taskId, + string? datasetId) + { + this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); + this.OrgId = orgId; + this.ProjectId = projectId; + this.TaskId = taskId; + this.DatasetId = datasetId; + } + + /// + /// Initializes a new instance of the class. + /// + public IUserContext() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.IVersion.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.IVersion.Json.g.cs new file mode 100644 index 0000000..a96b99f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.IVersion.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class IVersion + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.IVersion? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.IVersion), + jsonSerializerContext) as global::Dataloop.IVersion; + } + + /// + /// 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::Dataloop.IVersion? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.IVersion), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.IVersion; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.IVersion.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.IVersion.g.cs new file mode 100644 index 0000000..987ba90 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.IVersion.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class IVersion + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latestVersion")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string LatestVersion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latestForcedVersion")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool LatestForcedVersion { 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 IVersion( + string latestVersion, + bool latestForcedVersion) + { + this.LatestVersion = latestVersion ?? throw new global::System.ArgumentNullException(nameof(latestVersion)); + this.LatestForcedVersion = latestForcedVersion; + } + + /// + /// Initializes a new instance of the class. + /// + public IVersion() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpec.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpec.Json.g.cs new file mode 100644 index 0000000..9ebe011 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpec.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public readonly partial struct MigrationSpec + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.MigrationSpec? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.MigrationSpec), + jsonSerializerContext) as global::Dataloop.MigrationSpec?; + } + + /// + /// 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::Dataloop.MigrationSpec? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.MigrationSpec), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.MigrationSpec?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpec.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpec.g.cs new file mode 100644 index 0000000..6798403 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpec.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public readonly partial struct MigrationSpec : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Dataloop.Dictionary? Dictionary { get; init; } +#else + public global::Dataloop.Dictionary? Dictionary { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Dictionary))] +#endif + public bool IsDictionary => Dictionary != null; + + /// + /// + /// + public bool TryPickDictionary( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Dataloop.Dictionary? value) + { + value = Dictionary; + return IsDictionary; + } + + /// + /// + /// + public global::Dataloop.Dictionary PickDictionary() => IsDictionary + ? Dictionary! + : throw new global::System.InvalidOperationException($"Expected union variant 'Dictionary' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Dataloop.MigrationSpecVariant2? MigrationSpecVariant2 { get; init; } +#else + public global::Dataloop.MigrationSpecVariant2? MigrationSpecVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MigrationSpecVariant2))] +#endif + public bool IsMigrationSpecVariant2 => MigrationSpecVariant2 != null; + + /// + /// + /// + public bool TryPickMigrationSpecVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Dataloop.MigrationSpecVariant2? value) + { + value = MigrationSpecVariant2; + return IsMigrationSpecVariant2; + } + + /// + /// + /// + public global::Dataloop.MigrationSpecVariant2 PickMigrationSpecVariant2() => IsMigrationSpecVariant2 + ? MigrationSpecVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'MigrationSpecVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator MigrationSpec(global::Dataloop.Dictionary value) => new MigrationSpec((global::Dataloop.Dictionary?)value); + + /// + /// + /// + public static implicit operator global::Dataloop.Dictionary?(MigrationSpec @this) => @this.Dictionary; + + /// + /// + /// + public MigrationSpec(global::Dataloop.Dictionary? value) + { + Dictionary = value; + } + + /// + /// + /// + public static MigrationSpec FromDictionary(global::Dataloop.Dictionary? value) => new MigrationSpec(value); + + /// + /// + /// + public static implicit operator MigrationSpec(global::Dataloop.MigrationSpecVariant2 value) => new MigrationSpec((global::Dataloop.MigrationSpecVariant2?)value); + + /// + /// + /// + public static implicit operator global::Dataloop.MigrationSpecVariant2?(MigrationSpec @this) => @this.MigrationSpecVariant2; + + /// + /// + /// + public MigrationSpec(global::Dataloop.MigrationSpecVariant2? value) + { + MigrationSpecVariant2 = value; + } + + /// + /// + /// + public static MigrationSpec FromMigrationSpecVariant2(global::Dataloop.MigrationSpecVariant2? value) => new MigrationSpec(value); + + /// + /// + /// + public MigrationSpec( + global::Dataloop.Dictionary? dictionary, + global::Dataloop.MigrationSpecVariant2? migrationSpecVariant2 + ) + { + Dictionary = dictionary; + MigrationSpecVariant2 = migrationSpecVariant2; + } + + /// + /// + /// + public object? Object => + MigrationSpecVariant2 as object ?? + Dictionary as object + ; + + /// + /// + /// + public override string? ToString() => + Dictionary?.ToString() ?? + MigrationSpecVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsDictionary && IsMigrationSpecVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? dictionary = null, + global::System.Func? migrationSpecVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsDictionary && dictionary != null) + { + return dictionary(Dictionary!); + } + else if (IsMigrationSpecVariant2 && migrationSpecVariant2 != null) + { + return migrationSpecVariant2(MigrationSpecVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? dictionary = null, + + global::System.Action? migrationSpecVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsDictionary) + { + dictionary?.Invoke(Dictionary!); + } + else if (IsMigrationSpecVariant2) + { + migrationSpecVariant2?.Invoke(MigrationSpecVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? dictionary = null, + global::System.Action? migrationSpecVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsDictionary) + { + dictionary?.Invoke(Dictionary!); + } + else if (IsMigrationSpecVariant2) + { + migrationSpecVariant2?.Invoke(MigrationSpecVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Dictionary, + typeof(global::Dataloop.Dictionary), + MigrationSpecVariant2, + typeof(global::Dataloop.MigrationSpecVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(MigrationSpec other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Dictionary, other.Dictionary) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MigrationSpecVariant2, other.MigrationSpecVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(MigrationSpec obj1, MigrationSpec obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(MigrationSpec obj1, MigrationSpec obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is MigrationSpec o && Equals(o); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpecVariant2.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpecVariant2.Json.g.cs new file mode 100644 index 0000000..7c2d3e3 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpecVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class MigrationSpecVariant2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.MigrationSpecVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.MigrationSpecVariant2), + jsonSerializerContext) as global::Dataloop.MigrationSpecVariant2; + } + + /// + /// 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::Dataloop.MigrationSpecVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.MigrationSpecVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.MigrationSpecVariant2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpecVariant2.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpecVariant2.g.cs new file mode 100644 index 0000000..67fd19b --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.MigrationSpecVariant2.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class MigrationSpecVariant2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("report")] + public bool? Report { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fix")] + public bool? Fix { 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 MigrationSpecVariant2( + bool? report, + bool? fix) + { + this.Report = report; + this.Fix = fix; + } + + /// + /// Initializes a new instance of the class. + /// + public MigrationSpecVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScope.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScope.Json.g.cs new file mode 100644 index 0000000..5005a93 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScope.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PartialSettingScope + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PartialSettingScope? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PartialSettingScope), + jsonSerializerContext) as global::Dataloop.PartialSettingScope; + } + + /// + /// 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::Dataloop.PartialSettingScope? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PartialSettingScope), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PartialSettingScope; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScope.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScope.g.cs new file mode 100644 index 0000000..5d9eee7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScope.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// Make all properties in T optional + /// + public sealed partial class PartialSettingScope + { + /// + /// The type for which the setting belongs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter))] + public global::Dataloop.AnyOf? Type { get; set; } + + /// + /// The id for which the setting belongs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter))] + public global::Dataloop.AnyOf? Id { get; set; } + + /// + /// The role for which the setting belongs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter))] + public global::Dataloop.AnyOf? Role { get; set; } + + /// + /// allow other settings to override this setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("preventOverride")] + public bool? PreventOverride { get; set; } + + /// + /// a toggle if the setting is visible or not + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visible")] + public bool? Visible { 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. + /// + /// + /// The type for which the setting belongs + /// + /// + /// The id for which the setting belongs + /// + /// + /// The role for which the setting belongs + /// + /// + /// allow other settings to override this setting + /// + /// + /// a toggle if the setting is visible or not + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PartialSettingScope( + global::Dataloop.AnyOf? type, + global::Dataloop.AnyOf? id, + global::Dataloop.AnyOf? role, + bool? preventOverride, + bool? visible) + { + this.Type = type; + this.Id = id; + this.Role = role; + this.PreventOverride = preventOverride; + this.Visible = visible; + } + + /// + /// Initializes a new instance of the class. + /// + public PartialSettingScope() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeId.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeId.g.cs new file mode 100644 index 0000000..ecc1709 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeId.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum PartialSettingScopeId + { + /// + /// + /// + Multiply, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PartialSettingScopeIdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PartialSettingScopeId value) + { + return value switch + { + PartialSettingScopeId.Multiply => "*", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PartialSettingScopeId? ToEnum(string value) + { + return value switch + { + "*" => PartialSettingScopeId.Multiply, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeRole.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeRole.g.cs new file mode 100644 index 0000000..373642f --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeRole.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum PartialSettingScopeRole + { + /// + /// + /// + Multiply, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PartialSettingScopeRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PartialSettingScopeRole value) + { + return value switch + { + PartialSettingScopeRole.Multiply => "*", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PartialSettingScopeRole? ToEnum(string value) + { + return value switch + { + "*" => PartialSettingScopeRole.Multiply, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeType.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeType.g.cs new file mode 100644 index 0000000..813460e --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PartialSettingScopeType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum PartialSettingScopeType + { + /// + /// + /// + Dataloop, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PartialSettingScopeTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PartialSettingScopeType value) + { + return value switch + { + PartialSettingScopeType.Dataloop => "DATALOOP", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PartialSettingScopeType? ToEnum(string value) + { + return value switch + { + "DATALOOP" => PartialSettingScopeType.Dataloop, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequest.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequest.Json.g.cs new file mode 100644 index 0000000..209f0a7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PatchFeatureFlagRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PatchFeatureFlagRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PatchFeatureFlagRequest), + jsonSerializerContext) as global::Dataloop.PatchFeatureFlagRequest; + } + + /// + /// 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::Dataloop.PatchFeatureFlagRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PatchFeatureFlagRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PatchFeatureFlagRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequest.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequest.g.cs new file mode 100644 index 0000000..d904039 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequest.g.cs @@ -0,0 +1,100 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class PatchFeatureFlagRequest + { + /// + /// the value that will be taken if no value was passed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defaultValue")] + public object? DefaultValue { get; set; } + + /// + /// the value of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// the value type of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter))] + public global::Dataloop.SettingsValueTypes? ValueType { get; set; } + + /// + /// the scope in which the setting is defined. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + public global::Dataloop.PartialSettingScope? Scope { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::Dataloop.Dictionary? Metadata { get; set; } + + /// + /// the date the feature flag expired + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expiredAt")] + public global::System.DateTime? ExpiredAt { 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. + /// + /// + /// the value that will be taken if no value was passed + /// + /// + /// the value of the setting + /// + /// + /// the value type of the setting + /// + /// + /// the scope in which the setting is defined. + /// + /// + /// + /// the date the feature flag expired + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchFeatureFlagRequest( + object? defaultValue, + object? value, + global::Dataloop.SettingsValueTypes? valueType, + global::Dataloop.PartialSettingScope? scope, + global::Dataloop.Dictionary? metadata, + global::System.DateTime? expiredAt) + { + this.DefaultValue = defaultValue; + this.Value = value; + this.ValueType = valueType; + this.Scope = scope; + this.Metadata = metadata; + this.ExpiredAt = expiredAt; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchFeatureFlagRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestDefaultValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestDefaultValue.Json.g.cs new file mode 100644 index 0000000..458f978 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestDefaultValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PatchFeatureFlagRequestDefaultValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PatchFeatureFlagRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PatchFeatureFlagRequestDefaultValue), + jsonSerializerContext) as global::Dataloop.PatchFeatureFlagRequestDefaultValue; + } + + /// + /// 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::Dataloop.PatchFeatureFlagRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PatchFeatureFlagRequestDefaultValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PatchFeatureFlagRequestDefaultValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestDefaultValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestDefaultValue.g.cs new file mode 100644 index 0000000..b9dff06 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestDefaultValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value that will be taken if no value was passed + /// + public sealed partial class PatchFeatureFlagRequestDefaultValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestValue.Json.g.cs new file mode 100644 index 0000000..0ea7b3b --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PatchFeatureFlagRequestValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PatchFeatureFlagRequestValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PatchFeatureFlagRequestValue), + jsonSerializerContext) as global::Dataloop.PatchFeatureFlagRequestValue; + } + + /// + /// 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::Dataloop.PatchFeatureFlagRequestValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PatchFeatureFlagRequestValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PatchFeatureFlagRequestValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestValue.g.cs new file mode 100644 index 0000000..bf36dfa --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchFeatureFlagRequestValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value of the setting + /// + public sealed partial class PatchFeatureFlagRequestValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequest.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequest.Json.g.cs new file mode 100644 index 0000000..c8b32b9 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PatchUserSettingRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PatchUserSettingRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PatchUserSettingRequest), + jsonSerializerContext) as global::Dataloop.PatchUserSettingRequest; + } + + /// + /// 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::Dataloop.PatchUserSettingRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PatchUserSettingRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PatchUserSettingRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequest.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequest.g.cs new file mode 100644 index 0000000..7db4224 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequest.g.cs @@ -0,0 +1,156 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class PatchUserSettingRequest + { + /// + /// the value that will be taken if no value was passed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defaultValue")] + public object? DefaultValue { get; set; } + + /// + /// the value of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// the value type of the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsValueTypesJsonConverter))] + public global::Dataloop.SettingsValueTypes? ValueType { get; set; } + + /// + /// the scope in which the setting is defined. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + public global::Dataloop.PartialSettingScope? Scope { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::Dataloop.Dictionary? Metadata { get; set; } + + /// + /// description field for the user setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// inputs specified for the user setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputs")] + public object? Inputs { get; set; } + + /// + /// an icon for the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("icon")] + public string? Icon { get; set; } + + /// + /// a hint for the setting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hint")] + public string? Hint { get; set; } + + /// + /// the main section that the setting belongs to + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sectionName")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.SettingsSectionNamesJsonConverter))] + public global::Dataloop.SettingsSectionNames? SectionName { get; set; } + + /// + /// the sub section that the setting belongs to + /// + [global::System.Text.Json.Serialization.JsonPropertyName("subSectionName")] + public string? SubSectionName { 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. + /// + /// + /// the value that will be taken if no value was passed + /// + /// + /// the value of the setting + /// + /// + /// the value type of the setting + /// + /// + /// the scope in which the setting is defined. + /// + /// + /// + /// description field for the user setting + /// + /// + /// inputs specified for the user setting + /// + /// + /// an icon for the setting + /// + /// + /// a hint for the setting + /// + /// + /// the main section that the setting belongs to + /// + /// + /// the sub section that the setting belongs to + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchUserSettingRequest( + object? defaultValue, + object? value, + global::Dataloop.SettingsValueTypes? valueType, + global::Dataloop.PartialSettingScope? scope, + global::Dataloop.Dictionary? metadata, + string? description, + object? inputs, + string? icon, + string? hint, + global::Dataloop.SettingsSectionNames? sectionName, + string? subSectionName) + { + this.DefaultValue = defaultValue; + this.Value = value; + this.ValueType = valueType; + this.Scope = scope; + this.Metadata = metadata; + this.Description = description; + this.Inputs = inputs; + this.Icon = icon; + this.Hint = hint; + this.SectionName = sectionName; + this.SubSectionName = subSectionName; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchUserSettingRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestDefaultValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestDefaultValue.Json.g.cs new file mode 100644 index 0000000..6c2febc --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestDefaultValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PatchUserSettingRequestDefaultValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PatchUserSettingRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PatchUserSettingRequestDefaultValue), + jsonSerializerContext) as global::Dataloop.PatchUserSettingRequestDefaultValue; + } + + /// + /// 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::Dataloop.PatchUserSettingRequestDefaultValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PatchUserSettingRequestDefaultValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PatchUserSettingRequestDefaultValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestDefaultValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestDefaultValue.g.cs new file mode 100644 index 0000000..a935da0 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestDefaultValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value that will be taken if no value was passed + /// + public sealed partial class PatchUserSettingRequestDefaultValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestInputs.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestInputs.Json.g.cs new file mode 100644 index 0000000..ebbcad7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestInputs.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PatchUserSettingRequestInputs + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PatchUserSettingRequestInputs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PatchUserSettingRequestInputs), + jsonSerializerContext) as global::Dataloop.PatchUserSettingRequestInputs; + } + + /// + /// 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::Dataloop.PatchUserSettingRequestInputs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PatchUserSettingRequestInputs), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PatchUserSettingRequestInputs; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestInputs.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestInputs.g.cs new file mode 100644 index 0000000..1353c9e --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestInputs.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// inputs specified for the user setting + /// + public sealed partial class PatchUserSettingRequestInputs + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestValue.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestValue.Json.g.cs new file mode 100644 index 0000000..6116f5b --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class PatchUserSettingRequestValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.PatchUserSettingRequestValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.PatchUserSettingRequestValue), + jsonSerializerContext) as global::Dataloop.PatchUserSettingRequestValue; + } + + /// + /// 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::Dataloop.PatchUserSettingRequestValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.PatchUserSettingRequestValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.PatchUserSettingRequestValue; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestValue.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestValue.g.cs new file mode 100644 index 0000000..22fcd04 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PatchUserSettingRequestValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// the value of the setting + /// + public sealed partial class PatchUserSettingRequestValue + { + + /// + /// 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/Dataloop/Generated/Dataloop.Models.PipelineVersionListItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PipelineVersionListItem.g.cs index 1e69eab..fa75f0d 100644 --- a/src/libs/Dataloop/Generated/Dataloop.Models.PipelineVersionListItem.g.cs +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PipelineVersionListItem.g.cs @@ -8,6 +8,19 @@ namespace Dataloop /// public sealed partial class PipelineVersionListItem { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdBy")] + public string? CreatedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + /// /// /// @@ -31,17 +44,23 @@ public sealed partial class PipelineVersionListItem /// /// Initializes a new instance of the class. /// + /// /// /// /// Make all properties in T optional /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelineVersionListItem( + global::System.DateTime createdAt, double version, - global::Dataloop.PartialIPipeline snapshot) + global::Dataloop.PartialIPipeline snapshot, + string? createdBy) { + this.CreatedBy = createdBy; + this.CreatedAt = createdAt; this.Version = version; this.Snapshot = snapshot ?? throw new global::System.ArgumentNullException(nameof(snapshot)); } diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.PlatformEntityType.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.PlatformEntityType.g.cs new file mode 100644 index 0000000..d59fd17 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.PlatformEntityType.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum PlatformEntityType + { + /// + /// + /// + BillingOrg, + /// + /// + /// + BillingProject, + /// + /// + /// + Dataset, + /// + /// + /// + Org, + /// + /// + /// + Project, + /// + /// + /// + Task, + /// + /// + /// + User, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PlatformEntityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PlatformEntityType value) + { + return value switch + { + PlatformEntityType.BillingOrg => "billing-org", + PlatformEntityType.BillingProject => "billing-project", + PlatformEntityType.Dataset => "dataset", + PlatformEntityType.Org => "org", + PlatformEntityType.Project => "project", + PlatformEntityType.Task => "task", + PlatformEntityType.User => "user", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PlatformEntityType? ToEnum(string value) + { + return value switch + { + "billing-org" => PlatformEntityType.BillingOrg, + "billing-project" => PlatformEntityType.BillingProject, + "dataset" => PlatformEntityType.Dataset, + "org" => PlatformEntityType.Org, + "project" => PlatformEntityType.Project, + "task" => PlatformEntityType.Task, + "user" => PlatformEntityType.User, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.QueryModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.QueryModel.g.cs index a1c5684..aa3fad8 100644 --- a/src/libs/Dataloop/Generated/Dataloop.Models.QueryModel.g.cs +++ b/src/libs/Dataloop/Generated/Dataloop.Models.QueryModel.g.cs @@ -12,7 +12,6 @@ public sealed partial class QueryModel /// /// [global::System.Text.Json.Serialization.JsonPropertyName("resource")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.QueryResourceJsonConverter))] public global::Dataloop.QueryResource? Resource { get; set; } /// diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.QueryResource.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.QueryResource.g.cs index 58d4428..e3d7d4b 100644 --- a/src/libs/Dataloop/Generated/Dataloop.Models.QueryResource.g.cs +++ b/src/libs/Dataloop/Generated/Dataloop.Models.QueryResource.g.cs @@ -103,6 +103,10 @@ public enum QueryResource /// /// /// + Settings, + /// + /// + /// Tasks, /// /// @@ -145,6 +149,7 @@ public static string ToValueString(this QueryResource value) QueryResource.ServiceDrivers => "serviceDrivers", QueryResource.Services => "services", QueryResource.Setting => "setting", + QueryResource.Settings => "settings", QueryResource.Tasks => "tasks", QueryResource.Triggers => "triggers", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -180,6 +185,7 @@ public static string ToValueString(this QueryResource value) "serviceDrivers" => QueryResource.ServiceDrivers, "services" => QueryResource.Services, "setting" => QueryResource.Setting, + "settings" => QueryResource.Settings, "tasks" => QueryResource.Tasks, "triggers" => QueryResource.Triggers, _ => null, diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpec.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpec.Json.g.cs new file mode 100644 index 0000000..150c27d --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpec.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public readonly partial struct RemoveSettingTraceMigrationSpec + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.RemoveSettingTraceMigrationSpec? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.RemoveSettingTraceMigrationSpec), + jsonSerializerContext) as global::Dataloop.RemoveSettingTraceMigrationSpec?; + } + + /// + /// 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::Dataloop.RemoveSettingTraceMigrationSpec? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.RemoveSettingTraceMigrationSpec), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.RemoveSettingTraceMigrationSpec?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpec.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpec.g.cs new file mode 100644 index 0000000..74b1f1d --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpec.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public readonly partial struct RemoveSettingTraceMigrationSpec : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Dataloop.MigrationSpec? MigrationSpec { get; init; } +#else + public global::Dataloop.MigrationSpec? MigrationSpec { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MigrationSpec))] +#endif + public bool IsMigrationSpec => MigrationSpec != null; + + /// + /// + /// + public bool TryPickMigrationSpec( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Dataloop.MigrationSpec? value) + { + value = MigrationSpec; + return IsMigrationSpec; + } + + /// + /// + /// + public global::Dataloop.MigrationSpec PickMigrationSpec() => IsMigrationSpec + ? MigrationSpec!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'MigrationSpec' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? RemoveSettingTraceMigrationSpecVariant2 { get; init; } +#else + public global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? RemoveSettingTraceMigrationSpecVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RemoveSettingTraceMigrationSpecVariant2))] +#endif + public bool IsRemoveSettingTraceMigrationSpecVariant2 => RemoveSettingTraceMigrationSpecVariant2 != null; + + /// + /// + /// + public bool TryPickRemoveSettingTraceMigrationSpecVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? value) + { + value = RemoveSettingTraceMigrationSpecVariant2; + return IsRemoveSettingTraceMigrationSpecVariant2; + } + + /// + /// + /// + public global::Dataloop.RemoveSettingTraceMigrationSpecVariant2 PickRemoveSettingTraceMigrationSpecVariant2() => IsRemoveSettingTraceMigrationSpecVariant2 + ? RemoveSettingTraceMigrationSpecVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'RemoveSettingTraceMigrationSpecVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator RemoveSettingTraceMigrationSpec(global::Dataloop.MigrationSpec value) => new RemoveSettingTraceMigrationSpec((global::Dataloop.MigrationSpec?)value); + + /// + /// + /// + public static implicit operator global::Dataloop.MigrationSpec?(RemoveSettingTraceMigrationSpec @this) => @this.MigrationSpec; + + /// + /// + /// + public RemoveSettingTraceMigrationSpec(global::Dataloop.MigrationSpec? value) + { + MigrationSpec = value; + } + + /// + /// + /// + public static RemoveSettingTraceMigrationSpec FromMigrationSpec(global::Dataloop.MigrationSpec? value) => new RemoveSettingTraceMigrationSpec(value); + + /// + /// + /// + public static implicit operator RemoveSettingTraceMigrationSpec(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2 value) => new RemoveSettingTraceMigrationSpec((global::Dataloop.RemoveSettingTraceMigrationSpecVariant2?)value); + + /// + /// + /// + public static implicit operator global::Dataloop.RemoveSettingTraceMigrationSpecVariant2?(RemoveSettingTraceMigrationSpec @this) => @this.RemoveSettingTraceMigrationSpecVariant2; + + /// + /// + /// + public RemoveSettingTraceMigrationSpec(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? value) + { + RemoveSettingTraceMigrationSpecVariant2 = value; + } + + /// + /// + /// + public static RemoveSettingTraceMigrationSpec FromRemoveSettingTraceMigrationSpecVariant2(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? value) => new RemoveSettingTraceMigrationSpec(value); + + /// + /// + /// + public RemoveSettingTraceMigrationSpec( + global::Dataloop.MigrationSpec? migrationSpec, + global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? removeSettingTraceMigrationSpecVariant2 + ) + { + MigrationSpec = migrationSpec; + RemoveSettingTraceMigrationSpecVariant2 = removeSettingTraceMigrationSpecVariant2; + } + + /// + /// + /// + public object? Object => + RemoveSettingTraceMigrationSpecVariant2 as object ?? + MigrationSpec as object + ; + + /// + /// + /// + public override string? ToString() => + MigrationSpec?.ToString() ?? + RemoveSettingTraceMigrationSpecVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsMigrationSpec && IsRemoveSettingTraceMigrationSpecVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? migrationSpec = null, + global::System.Func? removeSettingTraceMigrationSpecVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMigrationSpec && migrationSpec != null) + { + return migrationSpec(MigrationSpec!); + } + else if (IsRemoveSettingTraceMigrationSpecVariant2 && removeSettingTraceMigrationSpecVariant2 != null) + { + return removeSettingTraceMigrationSpecVariant2(RemoveSettingTraceMigrationSpecVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? migrationSpec = null, + + global::System.Action? removeSettingTraceMigrationSpecVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMigrationSpec) + { + migrationSpec?.Invoke(MigrationSpec!); + } + else if (IsRemoveSettingTraceMigrationSpecVariant2) + { + removeSettingTraceMigrationSpecVariant2?.Invoke(RemoveSettingTraceMigrationSpecVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? migrationSpec = null, + global::System.Action? removeSettingTraceMigrationSpecVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMigrationSpec) + { + migrationSpec?.Invoke(MigrationSpec!); + } + else if (IsRemoveSettingTraceMigrationSpecVariant2) + { + removeSettingTraceMigrationSpecVariant2?.Invoke(RemoveSettingTraceMigrationSpecVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + MigrationSpec, + typeof(global::Dataloop.MigrationSpec), + RemoveSettingTraceMigrationSpecVariant2, + typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RemoveSettingTraceMigrationSpec other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(MigrationSpec, other.MigrationSpec) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RemoveSettingTraceMigrationSpecVariant2, other.RemoveSettingTraceMigrationSpecVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(RemoveSettingTraceMigrationSpec obj1, RemoveSettingTraceMigrationSpec obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RemoveSettingTraceMigrationSpec obj1, RemoveSettingTraceMigrationSpec obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RemoveSettingTraceMigrationSpec o && Equals(o); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpecVariant2.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpecVariant2.Json.g.cs new file mode 100644 index 0000000..47cd051 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpecVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class RemoveSettingTraceMigrationSpecVariant2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.RemoveSettingTraceMigrationSpecVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.RemoveSettingTraceMigrationSpecVariant2), + jsonSerializerContext) as global::Dataloop.RemoveSettingTraceMigrationSpecVariant2; + } + + /// + /// 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::Dataloop.RemoveSettingTraceMigrationSpecVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.RemoveSettingTraceMigrationSpecVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.RemoveSettingTraceMigrationSpecVariant2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpecVariant2.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpecVariant2.g.cs new file mode 100644 index 0000000..ac9ee3e --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.RemoveSettingTraceMigrationSpecVariant2.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class RemoveSettingTraceMigrationSpecVariant2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settingName")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.AnyOf> SettingName { 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 RemoveSettingTraceMigrationSpecVariant2( + global::Dataloop.AnyOf> settingName) + { + this.SettingName = settingName; + } + + /// + /// Initializes a new instance of the class. + /// + public RemoveSettingTraceMigrationSpecVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.ResolverPayload.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.ResolverPayload.Json.g.cs new file mode 100644 index 0000000..001b0d3 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.ResolverPayload.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class ResolverPayload + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.ResolverPayload? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.ResolverPayload), + jsonSerializerContext) as global::Dataloop.ResolverPayload; + } + + /// + /// 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::Dataloop.ResolverPayload? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.ResolverPayload), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.ResolverPayload; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.ResolverPayload.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.ResolverPayload.g.cs new file mode 100644 index 0000000..9ab9c83 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.ResolverPayload.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class ResolverPayload + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userCtx")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.IUserContext UserCtx { get; set; } + + /// + /// Specific flags to resolve + /// + [global::System.Text.Json.Serialization.JsonPropertyName("flags")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter>))] + public global::Dataloop.AnyOf>? Flags { 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. + /// + /// + /// + /// Specific flags to resolve + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ResolverPayload( + global::Dataloop.IUserContext userCtx, + global::Dataloop.AnyOf>? flags) + { + this.UserCtx = userCtx ?? throw new global::System.ArgumentNullException(nameof(userCtx)); + this.Flags = flags; + } + + /// + /// Initializes a new instance of the class. + /// + public ResolverPayload() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingScope.Json.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScope.Json.g.cs new file mode 100644 index 0000000..9e4293b --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScope.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Dataloop +{ + public sealed partial class SettingScope + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Dataloop.SettingScope? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dataloop.SettingScope), + jsonSerializerContext) as global::Dataloop.SettingScope; + } + + /// + /// 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::Dataloop.SettingScope? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::Dataloop.SettingScope), + jsonSerializerContext).ConfigureAwait(false)) as global::Dataloop.SettingScope; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingScope.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScope.g.cs new file mode 100644 index 0000000..8d6e28a --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScope.g.cs @@ -0,0 +1,88 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public sealed partial class SettingScope + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.AnyOf Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.AnyOf Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dataloop.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Dataloop.AnyOf Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("preventOverride")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PreventOverride { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visible")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Visible { 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 SettingScope( + global::Dataloop.AnyOf type, + global::Dataloop.AnyOf id, + global::Dataloop.AnyOf role, + bool preventOverride, + bool visible) + { + this.Type = type; + this.Id = id; + this.Role = role; + this.PreventOverride = preventOverride; + this.Visible = visible; + } + + /// + /// Initializes a new instance of the class. + /// + public SettingScope() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeId.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeId.g.cs new file mode 100644 index 0000000..29009f3 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeId.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum SettingScopeId + { + /// + /// + /// + Multiply, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SettingScopeIdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SettingScopeId value) + { + return value switch + { + SettingScopeId.Multiply => "*", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SettingScopeId? ToEnum(string value) + { + return value switch + { + "*" => SettingScopeId.Multiply, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeRole.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeRole.g.cs new file mode 100644 index 0000000..7e3f470 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeRole.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum SettingScopeRole + { + /// + /// + /// + Multiply, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SettingScopeRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SettingScopeRole value) + { + return value switch + { + SettingScopeRole.Multiply => "*", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SettingScopeRole? ToEnum(string value) + { + return value switch + { + "*" => SettingScopeRole.Multiply, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeType.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeType.g.cs new file mode 100644 index 0000000..1693921 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingScopeType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum SettingScopeType + { + /// + /// + /// + Dataloop, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SettingScopeTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SettingScopeType value) + { + return value switch + { + SettingScopeType.Dataloop => "DATALOOP", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SettingScopeType? ToEnum(string value) + { + return value switch + { + "DATALOOP" => SettingScopeType.Dataloop, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingsSectionNames.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingsSectionNames.g.cs new file mode 100644 index 0000000..8041234 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingsSectionNames.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum SettingsSectionNames + { + /// + /// + /// + Account, + /// + /// + /// + Applications, + /// + /// + /// + Contact, + /// + /// + /// + Platform, + /// + /// + /// + Sdk, + /// + /// + /// + Studio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SettingsSectionNamesExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SettingsSectionNames value) + { + return value switch + { + SettingsSectionNames.Account => "Account", + SettingsSectionNames.Applications => "Applications", + SettingsSectionNames.Contact => "Contact", + SettingsSectionNames.Platform => "Platform", + SettingsSectionNames.Sdk => "SDK", + SettingsSectionNames.Studio => "Studio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SettingsSectionNames? ToEnum(string value) + { + return value switch + { + "Account" => SettingsSectionNames.Account, + "Applications" => SettingsSectionNames.Applications, + "Contact" => SettingsSectionNames.Contact, + "Platform" => SettingsSectionNames.Platform, + "SDK" => SettingsSectionNames.Sdk, + "Studio" => SettingsSectionNames.Studio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingsTypes.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingsTypes.g.cs new file mode 100644 index 0000000..ce6b1e7 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingsTypes.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum SettingsTypes + { + /// + /// + /// + FeatureFlag, + /// + /// + /// + UserSettings, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SettingsTypesExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SettingsTypes value) + { + return value switch + { + SettingsTypes.FeatureFlag => "feature_flag", + SettingsTypes.UserSettings => "user_settings", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SettingsTypes? ToEnum(string value) + { + return value switch + { + "feature_flag" => SettingsTypes.FeatureFlag, + "user_settings" => SettingsTypes.UserSettings, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.Models.SettingsValueTypes.g.cs b/src/libs/Dataloop/Generated/Dataloop.Models.SettingsValueTypes.g.cs new file mode 100644 index 0000000..ba28347 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.Models.SettingsValueTypes.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// + /// + public enum SettingsValueTypes + { + /// + /// + /// + Array, + /// + /// + /// + Boolean, + /// + /// + /// + MultiSelect, + /// + /// + /// + Number, + /// + /// + /// + Object, + /// + /// + /// + Select, + /// + /// + /// + String, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SettingsValueTypesExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SettingsValueTypes value) + { + return value switch + { + SettingsValueTypes.Array => "array", + SettingsValueTypes.Boolean => "boolean", + SettingsValueTypes.MultiSelect => "multi-select", + SettingsValueTypes.Number => "number", + SettingsValueTypes.Object => "object", + SettingsValueTypes.Select => "select", + SettingsValueTypes.String => "string", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SettingsValueTypes? ToEnum(string value) + { + return value switch + { + "array" => SettingsValueTypes.Array, + "boolean" => SettingsValueTypes.Boolean, + "multi-select" => SettingsValueTypes.MultiSelect, + "number" => SettingsValueTypes.Number, + "object" => SettingsValueTypes.Object, + "select" => SettingsValueTypes.Select, + "string" => SettingsValueTypes.String, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.CreateSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.CreateSetting.g.cs new file mode 100644 index 0000000..fc364c2 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.CreateSetting.g.cs @@ -0,0 +1,644 @@ + +#nullable enable + +namespace Dataloop +{ + public partial class SettingsClient + { + + + private static readonly global::Dataloop.EndPointSecurityRequirement s_CreateSettingSecurityRequirement0 = + new global::Dataloop.EndPointSecurityRequirement + { + Authorizations = new global::Dataloop.EndPointAuthorizationRequirement[] + { new global::Dataloop.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Dataloop.EndPointSecurityRequirement[] s_CreateSettingSecurityRequirements = + new global::Dataloop.EndPointSecurityRequirement[] + { s_CreateSettingSecurityRequirement0, + }; + partial void PrepareCreateSettingArguments( + global::System.Net.Http.HttpClient httpClient, + global::Dataloop.CreateSettingRequest request); + partial void PrepareCreateSettingRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Dataloop.CreateSettingRequest request); + partial void ProcessCreateSettingResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateSettingResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Creates a new Setting.
+ /// Supply the appropriate Create Request object for either Feature flag or User setting. + ///
+ /// + /// 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> CreateSettingAsync( + + global::Dataloop.CreateSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateSettingAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Creates a new Setting.
+ /// Supply the appropriate Create Request object for either Feature flag or User setting. + ///
+ /// + /// 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>> CreateSettingAsResponseAsync( + + global::Dataloop.CreateSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateSettingArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Dataloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSettingSecurityRequirements, + operationName: "CreateSettingAsync"); + + using var __timeoutCancellationTokenSource = global::Dataloop.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Dataloop.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Dataloop.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Dataloop.PathBuilder( + path: "/settings", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Dataloop.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::Dataloop.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateSettingRequest( + 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::Dataloop.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSetting", + methodName: "CreateSettingAsync", + pathTemplate: "\"/settings\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSetting", + methodName: "CreateSettingAsync", + pathTemplate: "\"/settings\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Dataloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSetting", + methodName: "CreateSettingAsync", + pathTemplate: "\"/settings\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.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); + ProcessCreateSettingResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSetting", + methodName: "CreateSettingAsync", + pathTemplate: "\"/settings\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSetting", + methodName: "CreateSettingAsync", + pathTemplate: "\"/settings\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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 ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + 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); + ProcessCreateSettingResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Dataloop.AnyOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Dataloop.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Dataloop.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::Dataloop.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Dataloop.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::Dataloop.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::Dataloop.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(); + } + } + /// + /// Creates a new Setting.
+ /// Supply the appropriate Create Request object for either Feature flag or User setting. + ///
+ /// + /// the value that will be taken if no value was passed + /// + /// + /// the name of the setting + /// + /// + /// the value of the setting + /// + /// + /// + /// + /// + /// 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> CreateSettingAsync( + string name, + global::Dataloop.SettingsValueTypes valueType, + global::Dataloop.SettingScope scope, + global::Dataloop.SettingsTypes settingType, + object? defaultValue = default, + object? value = default, + global::Dataloop.Dictionary? metadata = default, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Dataloop.CreateSettingRequest + { + DefaultValue = defaultValue, + Name = name, + Value = value, + ValueType = valueType, + Scope = scope, + Metadata = metadata, + SettingType = settingType, + }; + + return await CreateSettingAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.DeleteSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.DeleteSetting.g.cs new file mode 100644 index 0000000..ce6a6a4 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.DeleteSetting.g.cs @@ -0,0 +1,628 @@ + +#nullable enable + +namespace Dataloop +{ + public partial class SettingsClient + { + + + private static readonly global::Dataloop.EndPointSecurityRequirement s_DeleteSettingSecurityRequirement0 = + new global::Dataloop.EndPointSecurityRequirement + { + Authorizations = new global::Dataloop.EndPointAuthorizationRequirement[] + { new global::Dataloop.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Dataloop.EndPointSecurityRequirement[] s_DeleteSettingSecurityRequirements = + new global::Dataloop.EndPointSecurityRequirement[] + { s_DeleteSettingSecurityRequirement0, + }; + partial void PrepareDeleteSettingArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id, + global::Dataloop.DeleteSettingRequest request); + partial void PrepareDeleteSettingRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id, + global::Dataloop.DeleteSettingRequest request); + partial void ProcessDeleteSettingResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteSettingResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete a setting
+ /// Supply the unique id of the setting to delete + ///
+ /// + /// + /// 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 DeleteSettingAsync( + string id, + + global::Dataloop.DeleteSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteSettingAsResponseAsync( + id: id, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Delete a setting
+ /// Supply the unique id of the setting to delete + ///
+ /// + /// + /// 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> DeleteSettingAsResponseAsync( + string id, + + global::Dataloop.DeleteSettingRequest request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareDeleteSettingArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::Dataloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSettingSecurityRequirements, + operationName: "DeleteSettingAsync"); + + using var __timeoutCancellationTokenSource = global::Dataloop.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Dataloop.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Dataloop.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Dataloop.PathBuilder( + path: $"/settings/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Dataloop.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); + } + } + 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::Dataloop.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteSettingRequest( + 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::Dataloop.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteSetting", + methodName: "DeleteSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteSetting", + methodName: "DeleteSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Dataloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteSetting", + methodName: "DeleteSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.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); + ProcessDeleteSettingResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteSetting", + methodName: "DeleteSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteSetting", + methodName: "DeleteSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + 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 ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + 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); + ProcessDeleteSettingResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Dataloop.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + throw global::Dataloop.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(); + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::Dataloop.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + 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::Dataloop.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(); + } + } + /// + /// Delete a setting
+ /// Supply the unique id of the setting to delete + ///
+ /// + /// + /// 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 DeleteSettingAsync( + string id, + bool? force = default, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Dataloop.DeleteSettingRequest + { + Force = force, + }; + + return await DeleteSettingAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.GetSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.GetSetting.g.cs new file mode 100644 index 0000000..0ebacd5 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.GetSetting.g.cs @@ -0,0 +1,586 @@ + +#nullable enable + +namespace Dataloop +{ + public partial class SettingsClient + { + + + private static readonly global::Dataloop.EndPointSecurityRequirement s_GetSettingSecurityRequirement0 = + new global::Dataloop.EndPointSecurityRequirement + { + Authorizations = new global::Dataloop.EndPointAuthorizationRequirement[] + { new global::Dataloop.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Dataloop.EndPointSecurityRequirement[] s_GetSettingSecurityRequirements = + new global::Dataloop.EndPointSecurityRequirement[] + { s_GetSettingSecurityRequirement0, + }; + partial void PrepareGetSettingArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id); + partial void PrepareGetSettingRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id); + partial void ProcessGetSettingResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetSettingResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Retrieves the details of a setting.
+ /// Supply the unique setting ID to fetch it's details. + ///
+ /// + /// 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> GetSettingAsync( + string id, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetSettingAsResponseAsync( + id: id, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Retrieves the details of a setting.
+ /// Supply the unique setting ID to fetch it's details. + ///
+ /// + /// 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>> GetSettingAsResponseAsync( + string id, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetSettingArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::Dataloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSettingSecurityRequirements, + operationName: "GetSettingAsync"); + + using var __timeoutCancellationTokenSource = global::Dataloop.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Dataloop.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Dataloop.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Dataloop.PathBuilder( + path: $"/settings/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Dataloop.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::Dataloop.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetSettingRequest( + 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::Dataloop.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSetting", + methodName: "GetSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSetting", + methodName: "GetSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Dataloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSetting", + methodName: "GetSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.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); + ProcessGetSettingResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSetting", + methodName: "GetSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSetting", + methodName: "GetSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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 ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + 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); + ProcessGetSettingResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Dataloop.AnyOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Dataloop.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Dataloop.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::Dataloop.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Dataloop.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::Dataloop.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::Dataloop.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/Dataloop/Generated/Dataloop.SettingsClient.QuerySettings.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.QuerySettings.g.cs new file mode 100644 index 0000000..e0d1b40 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.QuerySettings.g.cs @@ -0,0 +1,635 @@ + +#nullable enable + +namespace Dataloop +{ + public partial class SettingsClient + { + + + private static readonly global::Dataloop.EndPointSecurityRequirement s_QuerySettingsSecurityRequirement0 = + new global::Dataloop.EndPointSecurityRequirement + { + Authorizations = new global::Dataloop.EndPointAuthorizationRequirement[] + { new global::Dataloop.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Dataloop.EndPointSecurityRequirement[] s_QuerySettingsSecurityRequirements = + new global::Dataloop.EndPointSecurityRequirement[] + { s_QuerySettingsSecurityRequirement0, + }; + partial void PrepareQuerySettingsArguments( + global::System.Net.Http.HttpClient httpClient, + global::Dataloop.QueryModel request); + partial void PrepareQuerySettingsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Dataloop.QueryModel request); + partial void ProcessQuerySettingsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessQuerySettingsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Query settings
+ /// Supply the query requested to query settings + ///
+ /// + /// 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 QuerySettingsAsync( + + global::Dataloop.QueryModel request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await QuerySettingsAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Query settings
+ /// Supply the query requested to query settings + ///
+ /// + /// 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> QuerySettingsAsResponseAsync( + + global::Dataloop.QueryModel request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareQuerySettingsArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Dataloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_QuerySettingsSecurityRequirements, + operationName: "QuerySettingsAsync"); + + using var __timeoutCancellationTokenSource = global::Dataloop.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Dataloop.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Dataloop.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Dataloop.PathBuilder( + path: "/settings/query", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Dataloop.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::Dataloop.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareQuerySettingsRequest( + 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::Dataloop.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "QuerySettings", + methodName: "QuerySettingsAsync", + pathTemplate: "\"/settings/query\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "QuerySettings", + methodName: "QuerySettingsAsync", + pathTemplate: "\"/settings/query\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Dataloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "QuerySettings", + methodName: "QuerySettingsAsync", + pathTemplate: "\"/settings/query\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.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); + ProcessQuerySettingsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "QuerySettings", + methodName: "QuerySettingsAsync", + pathTemplate: "\"/settings/query\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "QuerySettings", + methodName: "QuerySettingsAsync", + pathTemplate: "\"/settings/query\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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 ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + 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); + ProcessQuerySettingsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Dataloop.CursorPageAPISetting.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Dataloop.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Dataloop.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::Dataloop.CursorPageAPISetting.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Dataloop.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Dataloop.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::Dataloop.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(); + } + } + /// + /// Query settings
+ /// Supply the query requested to query settings + ///
+ /// + /// + /// + /// + /// + /// + /// 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 QuerySettingsAsync( + global::Dataloop.QueryResource? resource = default, + object? filter = default, + object? sort = default, + double? page = default, + double? pageSize = default, + global::Dataloop.ModelOperationTypes? type = default, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Dataloop.QueryModel + { + Resource = resource, + Filter = filter, + Sort = sort, + Page = page, + PageSize = pageSize, + Type = type, + }; + + return await QuerySettingsAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.ResolveSettings.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.ResolveSettings.g.cs new file mode 100644 index 0000000..89c1d0c --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.ResolveSettings.g.cs @@ -0,0 +1,519 @@ + +#nullable enable + +namespace Dataloop +{ + public partial class SettingsClient + { + + + private static readonly global::Dataloop.EndPointSecurityRequirement s_ResolveSettingsSecurityRequirement0 = + new global::Dataloop.EndPointSecurityRequirement + { + Authorizations = new global::Dataloop.EndPointAuthorizationRequirement[] + { new global::Dataloop.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Dataloop.EndPointSecurityRequirement[] s_ResolveSettingsSecurityRequirements = + new global::Dataloop.EndPointSecurityRequirement[] + { s_ResolveSettingsSecurityRequirement0, + }; + partial void PrepareResolveSettingsArguments( + global::System.Net.Http.HttpClient httpClient, + global::Dataloop.AnyOf request); + partial void PrepareResolveSettingsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Dataloop.AnyOf request); + partial void ProcessResolveSettingsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessResolveSettingsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Resolves the relevant settings for a specific Context.
+ /// Supply the specific Context to resolve by + ///
+ /// + /// 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>> ResolveSettingsAsync( + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ResolveSettingsAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Resolves the relevant settings for a specific Context.
+ /// Supply the specific Context to resolve by + ///
+ /// + /// 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>>> ResolveSettingsAsResponseAsync( + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareResolveSettingsArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Dataloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ResolveSettingsSecurityRequirements, + operationName: "ResolveSettingsAsync"); + + using var __timeoutCancellationTokenSource = global::Dataloop.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Dataloop.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Dataloop.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Dataloop.PathBuilder( + path: "/settings/resolve", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Dataloop.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::Dataloop.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareResolveSettingsRequest( + 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::Dataloop.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ResolveSettings", + methodName: "ResolveSettingsAsync", + pathTemplate: "\"/settings/resolve\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ResolveSettings", + methodName: "ResolveSettingsAsync", + pathTemplate: "\"/settings/resolve\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Dataloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ResolveSettings", + methodName: "ResolveSettingsAsync", + pathTemplate: "\"/settings/resolve\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.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); + ProcessResolveSettingsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ResolveSettings", + methodName: "ResolveSettingsAsync", + pathTemplate: "\"/settings/resolve\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ResolveSettings", + methodName: "ResolveSettingsAsync", + pathTemplate: "\"/settings/resolve\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + 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 ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + 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); + ProcessResolveSettingsResponseContent( + 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::Dataloop.AutoSDKHttpResponse>>( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Dataloop.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::Dataloop.AutoSDKHttpResponse>>( + statusCode: __response.StatusCode, + headers: global::Dataloop.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::Dataloop.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(); + } + } + /// + /// Resolves the relevant settings for a specific Context.
+ /// Supply the specific Context to resolve by + ///
+ /// 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>> ResolveSettingsAsync( + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Dataloop.AnyOf + { + }; + + return await ResolveSettingsAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.UpdateSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.UpdateSetting.g.cs new file mode 100644 index 0000000..572f4fc --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.UpdateSetting.g.cs @@ -0,0 +1,627 @@ + +#nullable enable + +namespace Dataloop +{ + public partial class SettingsClient + { + + + private static readonly global::Dataloop.EndPointSecurityRequirement s_UpdateSettingSecurityRequirement0 = + new global::Dataloop.EndPointSecurityRequirement + { + Authorizations = new global::Dataloop.EndPointAuthorizationRequirement[] + { new global::Dataloop.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Dataloop.EndPointSecurityRequirement[] s_UpdateSettingSecurityRequirements = + new global::Dataloop.EndPointSecurityRequirement[] + { s_UpdateSettingSecurityRequirement0, + }; + partial void PrepareUpdateSettingArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id, + global::Dataloop.AnyOf request); + partial void PrepareUpdateSettingRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id, + global::Dataloop.AnyOf request); + partial void ProcessUpdateSettingResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateSettingResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update a setting
+ /// Supply the unique id of the setting to update and an object describing which fields update + ///
+ /// + /// + /// 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> UpdateSettingAsync( + string id, + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateSettingAsResponseAsync( + id: id, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update a setting
+ /// Supply the unique id of the setting to update and an object describing which fields update + ///
+ /// + /// + /// 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>> UpdateSettingAsResponseAsync( + string id, + + global::Dataloop.AnyOf request, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareUpdateSettingArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::Dataloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSettingSecurityRequirements, + operationName: "UpdateSettingAsync"); + + using var __timeoutCancellationTokenSource = global::Dataloop.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Dataloop.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Dataloop.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Dataloop.PathBuilder( + path: $"/settings/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Dataloop.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::Dataloop.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateSettingRequest( + 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::Dataloop.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSetting", + methodName: "UpdateSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSetting", + methodName: "UpdateSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Dataloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSetting", + methodName: "UpdateSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.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); + ProcessUpdateSettingResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSetting", + methodName: "UpdateSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSetting", + methodName: "UpdateSettingAsync", + pathTemplate: "$\"/settings/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + 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 ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Dataloop.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + 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); + ProcessUpdateSettingResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Dataloop.AnyOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Dataloop.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Dataloop.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::Dataloop.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Dataloop.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::Dataloop.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::Dataloop.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 a setting
+ /// Supply the unique id of the setting to update and an object describing which fields update + ///
+ /// + /// 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> UpdateSettingAsync( + string id, + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Dataloop.AnyOf + { + }; + + return await UpdateSettingAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.g.cs new file mode 100644 index 0000000..af78814 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// 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 SettingsClient : global::Dataloop.ISettingsClient, global::System.IDisposable + { + /// + /// Main Dataloop Gateway + /// + public const string DefaultBaseUrl = "https://gate.dataloop.ai/api/v1"; + + 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::Dataloop.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Dataloop.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the SettingsClient. + /// 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 SettingsClient( + 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 SettingsClient 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 SettingsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Dataloop.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the SettingsClient. + /// 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 SettingsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::Dataloop.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::Dataloop.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/Dataloop/Generated/Dataloop.VersionClient.GetOaVersion.g.cs b/src/libs/Dataloop/Generated/Dataloop.VersionClient.GetOaVersion.g.cs new file mode 100644 index 0000000..0864cea --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.VersionClient.GetOaVersion.g.cs @@ -0,0 +1,415 @@ + +#nullable enable + +namespace Dataloop +{ + public partial class VersionClient + { + + + private static readonly global::Dataloop.EndPointSecurityRequirement s_GetOaVersionSecurityRequirement0 = + new global::Dataloop.EndPointSecurityRequirement + { + Authorizations = new global::Dataloop.EndPointAuthorizationRequirement[] + { new global::Dataloop.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Dataloop.EndPointSecurityRequirement[] s_GetOaVersionSecurityRequirements = + new global::Dataloop.EndPointSecurityRequirement[] + { s_GetOaVersionSecurityRequirement0, + }; + partial void PrepareGetOaVersionArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGetOaVersionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGetOaVersionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetOaVersionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Retrieves the latest OA versions. + /// + /// 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 GetOaVersionAsync( + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetOaVersionAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Retrieves the latest OA versions. + /// + /// 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> GetOaVersionAsResponseAsync( + global::Dataloop.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetOaVersionArguments( + httpClient: HttpClient); + + + var __authorizations = global::Dataloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetOaVersionSecurityRequirements, + operationName: "GetOaVersionAsync"); + + using var __timeoutCancellationTokenSource = global::Dataloop.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Dataloop.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Dataloop.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Dataloop.PathBuilder( + path: "/ui-status", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Dataloop.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::Dataloop.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetOaVersionRequest( + 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::Dataloop.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetOaVersion", + methodName: "GetOaVersionAsync", + pathTemplate: "\"/ui-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetOaVersion", + methodName: "GetOaVersionAsync", + pathTemplate: "\"/ui-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Dataloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Dataloop.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetOaVersion", + methodName: "GetOaVersionAsync", + pathTemplate: "\"/ui-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.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); + ProcessGetOaVersionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Dataloop.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetOaVersion", + methodName: "GetOaVersionAsync", + pathTemplate: "\"/ui-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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::Dataloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Dataloop.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetOaVersion", + methodName: "GetOaVersionAsync", + pathTemplate: "\"/ui-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + 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); + ProcessGetOaVersionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Dataloop.IVersion.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Dataloop.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Dataloop.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Dataloop.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::Dataloop.IVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Dataloop.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Dataloop.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::Dataloop.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/Dataloop/Generated/Dataloop.VersionClient.g.cs b/src/libs/Dataloop/Generated/Dataloop.VersionClient.g.cs new file mode 100644 index 0000000..eea9ab9 --- /dev/null +++ b/src/libs/Dataloop/Generated/Dataloop.VersionClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace Dataloop +{ + /// + /// 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 VersionClient : global::Dataloop.IVersionClient, global::System.IDisposable + { + /// + /// Main Dataloop Gateway + /// + public const string DefaultBaseUrl = "https://gate.dataloop.ai/api/v1"; + + 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::Dataloop.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Dataloop.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the VersionClient. + /// 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 VersionClient( + 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 VersionClient 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 VersionClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Dataloop.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the VersionClient. + /// 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 VersionClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::Dataloop.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::Dataloop.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/Dataloop/openapi.yaml b/src/libs/Dataloop/openapi.yaml index ee7068d..02cc0e2 100644 --- a/src/libs/Dataloop/openapi.yaml +++ b/src/libs/Dataloop/openapi.yaml @@ -491,6 +491,13 @@ "createdAt", "type", "progress", + "spec", + "id", + "url", + "status", + "createdAt", + "type", + "progress", "spec" ], "type": "object", @@ -721,7 +728,9 @@ "apps", "dpks", "compute", - "serviceDrivers" + "serviceDrivers", + "settings", + "setting" ], "type": "string" }, @@ -10930,6 +10939,10 @@ "owner", "annotator", "engineer", + "annotationManager", + "owner", + "annotator", + "engineer", "annotationManager" ], "type": "string" @@ -11515,6 +11528,10 @@ }, "OrgRole": { "enum": [ + "owner", + "admin", + "member", + "worker", "owner", "admin", "member", @@ -13604,7 +13621,15 @@ }, "items": { "items": { - "$ref": "#/components/schemas/APIModel" + "$ref": "#/components/schemas/APIModel", + "anyOf": [ + { + "$ref": "#/components/schemas/APIFeatureFlag" + }, + { + "$ref": "#/components/schemas/APIUserSetting" + } + ] }, "type": "array" }, @@ -13617,6 +13642,10 @@ } }, "required": [ + "totalItemsCount", + "items", + "totalPagesCount", + "hasNextPage", "totalItemsCount", "items", "totalPagesCount", @@ -13892,6 +13921,9 @@ "properties": { "resource": { "allOf": [ + { + "$ref": "#/components/schemas/QueryResource" + }, { "$ref": "#/components/schemas/QueryResource" } @@ -13924,6 +13956,7 @@ } }, "required": [ + "filter", "filter" ], "type": "object", @@ -23367,6 +23400,13 @@ }, "PipelineVersionListItem": { "properties": { + "createdBy": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, "version": { "type": "number", "format": "double" @@ -23376,6 +23416,7 @@ } }, "required": [ + "createdAt", "version", "snapshot" ], @@ -25133,6 +25174,758 @@ "type": "object", "additionalProperties": false }, + "IVersion": { + "properties": { + "latestVersion": { + "type": "string" + }, + "latestForcedVersion": { + "type": "boolean" + } + }, + "required": [ + "latestVersion", + "latestForcedVersion" + ], + "type": "object", + "additionalProperties": true + }, + "SettingsValueTypes": { + "enum": [ + "boolean", + "number", + "select", + "multi-select", + "string", + "object", + "array" + ], + "type": "string" + }, + "PlatformEntityType": { + "enum": [ + "user", + "task", + "dataset", + "project", + "billing-project", + "org", + "billing-org" + ], + "type": "string" + }, + "SettingScope": { + "properties": { + "type": { + "anyOf": [ + { + "$ref": "#/components/schemas/PlatformEntityType" + }, + { + "type": "string", + "enum": [ + "DATALOOP" + ] + } + ] + }, + "id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "string", + "enum": [ + "*" + ] + } + ] + }, + "role": { + "anyOf": [ + { + "$ref": "#/components/schemas/Role" + }, + { + "$ref": "#/components/schemas/OrgRole" + }, + { + "type": "string", + "enum": [ + "*" + ] + } + ] + }, + "preventOverride": { + "type": "boolean" + }, + "visible": { + "type": "boolean" + } + }, + "required": [ + "type", + "id", + "role", + "preventOverride", + "visible" + ], + "type": "object", + "additionalProperties": true + }, + "SettingsTypes": { + "enum": [ + "feature_flag", + "user_settings" + ], + "type": "string" + }, + "APIFeatureFlag": { + "properties": { + "id": { + "type": "string" + }, + "defaultValue": { + "description": "the value that will be taken if no value was passed" + }, + "name": { + "type": "string", + "description": "the name of the setting" + }, + "value": { + "description": "the value of the setting" + }, + "valueType": { + "$ref": "#/components/schemas/SettingsValueTypes", + "description": "the value type of the setting" + }, + "scope": { + "$ref": "#/components/schemas/SettingScope", + "description": "the scope in which the setting is defined." + }, + "metadata": { + "$ref": "#/components/schemas/Dictionary" + }, + "settingType": { + "$ref": "#/components/schemas/SettingsTypes", + "description": "the setting type\ncan either be UserSetting or FeatureFlag" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "updatedBy": { + "type": "string" + }, + "expiredAt": { + "type": "string", + "format": "date-time", + "description": "the date the feature flag expired" + }, + "expired": { + "type": "boolean", + "description": "value of that is interpreted from the expired at date. it signals if the flag is expired or not" + } + }, + "required": [ + "id", + "defaultValue", + "name", + "value", + "valueType", + "scope", + "metadata", + "settingType", + "createdAt", + "createdBy", + "updatedAt", + "expired" + ], + "type": "object", + "additionalProperties": true + }, + "SettingsSectionNames": { + "enum": [ + "Account", + "Contact", + "Applications", + "Studio", + "Platform", + "SDK" + ], + "type": "string" + }, + "APIUserSetting": { + "properties": { + "id": { + "type": "string" + }, + "defaultValue": { + "description": "the value that will be taken if no value was passed" + }, + "name": { + "type": "string", + "description": "the name of the setting" + }, + "value": { + "description": "the value of the setting" + }, + "valueType": { + "$ref": "#/components/schemas/SettingsValueTypes", + "description": "the value type of the setting" + }, + "scope": { + "$ref": "#/components/schemas/SettingScope", + "description": "the scope in which the setting is defined." + }, + "metadata": { + "$ref": "#/components/schemas/Dictionary" + }, + "settingType": { + "$ref": "#/components/schemas/SettingsTypes", + "description": "the setting type\ncan either be UserSetting or FeatureFlag" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "updatedBy": { + "type": "string" + }, + "description": { + "type": "string", + "description": "description field for the user setting" + }, + "inputs": { + "description": "inputs specified for the user setting" + }, + "icon": { + "type": "string", + "description": "an icon for the setting" + }, + "hint": { + "type": "string", + "description": "a hint for the setting" + }, + "sectionName": { + "$ref": "#/components/schemas/SettingsSectionNames", + "description": "the main section that the setting belongs to" + }, + "subSectionName": { + "type": "string", + "description": "the sub section that the setting belongs to" + } + }, + "required": [ + "id", + "defaultValue", + "name", + "value", + "valueType", + "scope", + "metadata", + "settingType", + "createdAt", + "createdBy", + "updatedAt", + "inputs", + "sectionName" + ], + "type": "object", + "additionalProperties": true + }, + "IUserContext": { + "properties": { + "userId": { + "type": "string", + "description": "ID of the User" + }, + "orgId": { + "type": "string", + "description": "ID of the Org" + }, + "projectId": { + "type": "string", + "description": "ID of the Project" + }, + "taskId": { + "type": "string", + "description": "ID of the Task" + }, + "datasetId": { + "type": "string", + "description": "ID of the Dataset" + } + }, + "required": [ + "userId" + ], + "type": "object", + "additionalProperties": true + }, + "ResolverPayload": { + "properties": { + "userCtx": { + "$ref": "#/components/schemas/IUserContext", + "description": "User Context" + }, + "flags": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "description": "Specific flags to resolve" + } + }, + "required": [ + "userCtx" + ], + "type": "object", + "additionalProperties": true + }, + "CreateSettingRequest": { + "properties": { + "defaultValue": { + "description": "the value that will be taken if no value was passed" + }, + "name": { + "type": "string", + "description": "the name of the setting" + }, + "value": { + "description": "the value of the setting" + }, + "valueType": { + "$ref": "#/components/schemas/SettingsValueTypes", + "description": "the value type of the setting" + }, + "scope": { + "$ref": "#/components/schemas/SettingScope", + "description": "the scope in which the setting is defined." + }, + "metadata": { + "allOf": [ + { + "$ref": "#/components/schemas/Dictionary" + } + ], + "nullable": true + }, + "settingType": { + "$ref": "#/components/schemas/SettingsTypes", + "description": "the setting type\ncan either be UserSetting or FeatureFlag" + } + }, + "required": [ + "name", + "valueType", + "scope", + "settingType" + ], + "type": "object", + "additionalProperties": true + }, + "CreateFeatureFlagRequest": { + "properties": { + "defaultValue": { + "description": "the value that will be taken if no value was passed" + }, + "name": { + "type": "string", + "description": "the name of the setting" + }, + "value": { + "description": "the value of the setting" + }, + "valueType": { + "$ref": "#/components/schemas/SettingsValueTypes", + "description": "the value type of the setting" + }, + "scope": { + "$ref": "#/components/schemas/SettingScope", + "description": "the scope in which the setting is defined." + }, + "metadata": { + "allOf": [ + { + "$ref": "#/components/schemas/Dictionary" + } + ], + "nullable": true + }, + "settingType": { + "$ref": "#/components/schemas/SettingsTypes", + "description": "the setting type\ncan either be UserSetting or FeatureFlag" + }, + "expiredAt": { + "type": "string", + "format": "date-time", + "nullable": true, + "description": "the date the feature flag expired" + } + }, + "required": [ + "name", + "valueType", + "scope", + "settingType" + ], + "type": "object", + "additionalProperties": true + }, + "CreateUserSettingRequest": { + "properties": { + "defaultValue": { + "description": "the value that will be taken if no value was passed" + }, + "name": { + "type": "string", + "description": "the name of the setting" + }, + "value": { + "description": "the value of the setting" + }, + "valueType": { + "$ref": "#/components/schemas/SettingsValueTypes", + "description": "the value type of the setting" + }, + "scope": { + "$ref": "#/components/schemas/SettingScope", + "description": "the scope in which the setting is defined." + }, + "metadata": { + "allOf": [ + { + "$ref": "#/components/schemas/Dictionary" + } + ], + "nullable": true + }, + "settingType": { + "$ref": "#/components/schemas/SettingsTypes", + "description": "the setting type\ncan either be UserSetting or FeatureFlag" + }, + "description": { + "type": "string", + "nullable": true, + "description": "description field for the user setting" + }, + "inputs": { + "description": "inputs specified for the user setting" + }, + "icon": { + "type": "string", + "nullable": true, + "description": "an icon for the setting" + }, + "hint": { + "type": "string", + "nullable": true, + "description": "a hint for the setting" + }, + "sectionName": { + "allOf": [ + { + "$ref": "#/components/schemas/SettingsSectionNames" + } + ], + "nullable": true, + "description": "the main section that the setting belongs to" + }, + "subSectionName": { + "type": "string", + "nullable": true, + "description": "the sub section that the setting belongs to" + } + }, + "required": [ + "name", + "valueType", + "scope", + "settingType", + "sectionName" + ], + "type": "object", + "additionalProperties": true + }, + "Partial_SettingScope_": { + "properties": { + "type": { + "anyOf": [ + { + "$ref": "#/components/schemas/PlatformEntityType" + }, + { + "type": "string", + "enum": [ + "DATALOOP" + ] + } + ], + "description": "The type for which the setting belongs" + }, + "id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "string", + "enum": [ + "*" + ] + } + ], + "description": "The id for which the setting belongs" + }, + "role": { + "anyOf": [ + { + "$ref": "#/components/schemas/Role" + }, + { + "$ref": "#/components/schemas/OrgRole" + }, + { + "type": "string", + "enum": [ + "*" + ] + } + ], + "description": "The role for which the setting belongs" + }, + "preventOverride": { + "type": "boolean", + "description": "allow other settings to override this setting" + }, + "visible": { + "type": "boolean", + "description": "a toggle if the setting is visible or not" + } + }, + "type": "object", + "description": "Make all properties in T optional" + }, + "PatchFeatureFlagRequest": { + "properties": { + "defaultValue": { + "description": "the value that will be taken if no value was passed" + }, + "value": { + "description": "the value of the setting" + }, + "valueType": { + "allOf": [ + { + "$ref": "#/components/schemas/SettingsValueTypes" + } + ], + "nullable": true, + "description": "the value type of the setting" + }, + "scope": { + "allOf": [ + { + "$ref": "#/components/schemas/Partial_SettingScope_" + } + ], + "nullable": true, + "description": "the scope in which the setting is defined." + }, + "metadata": { + "allOf": [ + { + "$ref": "#/components/schemas/Dictionary" + } + ], + "nullable": true + }, + "expiredAt": { + "type": "string", + "format": "date-time", + "nullable": true, + "description": "the date the feature flag expired" + } + }, + "type": "object", + "additionalProperties": true + }, + "PatchUserSettingRequest": { + "properties": { + "defaultValue": { + "description": "the value that will be taken if no value was passed" + }, + "value": { + "description": "the value of the setting" + }, + "valueType": { + "allOf": [ + { + "$ref": "#/components/schemas/SettingsValueTypes" + } + ], + "nullable": true, + "description": "the value type of the setting" + }, + "scope": { + "allOf": [ + { + "$ref": "#/components/schemas/Partial_SettingScope_" + } + ], + "nullable": true, + "description": "the scope in which the setting is defined." + }, + "metadata": { + "allOf": [ + { + "$ref": "#/components/schemas/Dictionary" + } + ], + "nullable": true + }, + "description": { + "type": "string", + "nullable": true, + "description": "description field for the user setting" + }, + "inputs": { + "description": "inputs specified for the user setting" + }, + "icon": { + "type": "string", + "nullable": true, + "description": "an icon for the setting" + }, + "hint": { + "type": "string", + "nullable": true, + "description": "a hint for the setting" + }, + "sectionName": { + "allOf": [ + { + "$ref": "#/components/schemas/SettingsSectionNames" + } + ], + "nullable": true, + "description": "the main section that the setting belongs to" + }, + "subSectionName": { + "type": "string", + "nullable": true, + "description": "the sub section that the setting belongs to" + } + }, + "type": "object", + "additionalProperties": true + }, + "CursorPage_APIUserSetting-or-APIFeatureFlag_": { + "properties": { + "totalItemsCount": { + "type": "number", + "format": "double" + }, + "items": { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIUserSetting" + }, + { + "$ref": "#/components/schemas/APIFeatureFlag" + } + ] + }, + "type": "array" + }, + "totalPagesCount": { + "type": "number", + "format": "double" + }, + "hasNextPage": { + "type": "boolean" + } + }, + "required": [ + "totalItemsCount", + "items", + "totalPagesCount", + "hasNextPage" + ], + "type": "object", + "additionalProperties": true + }, + "MigrationSpec": { + "allOf": [ + { + "$ref": "#/components/schemas/Dictionary" + }, + { + "properties": { + "report": { + "type": "boolean" + }, + "fix": { + "type": "boolean" + } + }, + "type": "object" + } + ] + }, + "RemoveSettingTraceMigrationSpec": { + "allOf": [ + { + "$ref": "#/components/schemas/MigrationSpec" + }, + { + "properties": { + "settingName": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ] + } + }, + "required": [ + "settingName" + ], + "type": "object" + } + ] + }, "UIHours": { "properties": { "sum": { @@ -46903,6 +47696,359 @@ ] } }, + "/settings": { + "post": { + "operationId": "Create Setting", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIFeatureFlag" + }, + { + "$ref": "#/components/schemas/APIUserSetting" + } + ] + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "description": "Creates a new Setting.\n\nSupply the appropriate Create Request object for either Feature flag or User setting.", + "tags": [ + "Settings" + ], + "security": [], + "parameters": [], + "requestBody": { + "description": "The setting to create", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateSettingRequest", + "description": "The setting to create" + } + } + } + } + } + }, + "/settings/query": { + "post": { + "operationId": "Query Settings", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CursorPageAPISetting" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "description": "Query settings\n\nSupply the query requested to query settings", + "tags": [ + "Settings" + ], + "security": [], + "parameters": [], + "requestBody": { + "description": "The query", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryModel", + "description": "The query" + } + } + } + } + } + }, + "/settings/resolve": { + "post": { + "operationId": "Resolve Settings", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIFeatureFlag" + }, + { + "$ref": "#/components/schemas/APIUserSetting" + } + ] + }, + "type": "array" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "500": { + "description": "Internal Server Error" + } + }, + "description": "Resolves the relevant settings for a specific Context.\n\nSupply the specific Context to resolve by", + "tags": [ + "Settings" + ], + "security": [], + "parameters": [], + "requestBody": { + "description": "The context to resolve by", + "required": true, + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ResolverPayload" + }, + { + "$ref": "#/components/schemas/IUserContext" + } + ], + "description": "The context to resolve by" + } + } + } + } + } + }, + "/settings/{id}": { + "get": { + "operationId": "Get Setting", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIFeatureFlag" + }, + { + "$ref": "#/components/schemas/APIUserSetting" + } + ] + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "description": "Retrieves the details of a setting.\n\nSupply the unique setting ID to fetch it's details.", + "tags": [ + "Settings" + ], + "security": [], + "parameters": [ + { + "description": "ID of the Setting to fetch", + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "patch": { + "operationId": "Update Setting", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIFeatureFlag" + }, + { + "$ref": "#/components/schemas/APIUserSetting" + } + ] + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "description": "Update a setting\n\nSupply the unique id of the setting to update and an object describing which fields update", + "tags": [ + "Settings" + ], + "security": [], + "parameters": [ + { + "description": "ID of the Setting to update", + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The values to update with", + "required": true, + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/PatchFeatureFlagRequest" + }, + { + "$ref": "#/components/schemas/PatchUserSettingRequest" + } + ], + "description": "The values to update with" + } + } + } + } + }, + "delete": { + "operationId": "Delete Setting", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "description": "Delete a setting\n\nSupply the unique id of the setting to delete", + "tags": [ + "Settings" + ], + "security": [], + "parameters": [ + { + "description": "ID of the Setting to delete", + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "force": { + "type": "boolean" + } + }, + "type": "object" + } + } + } + } + } + }, "/subscriptions": { "get": { "operationId": "List Subscriptions", @@ -48078,6 +49224,29 @@ ] } }, + "/ui-status": { + "get": { + "operationId": "Get OA Version", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IVersion" + } + } + } + } + }, + "description": "Retrieves the latest OA versions.", + "tags": [ + "Version" + ], + "security": [], + "parameters": [] + } + }, "/usage/accounts/{id}": { "get": { "operationId": "Get Account Usage Report",