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