diff --git a/src/libs/Predibase/Generated/Predibase.Adapters.JsonSerializerContext.g.cs b/src/libs/Predibase/Generated/Predibase.Adapters.JsonSerializerContext.g.cs index 8ab3e0b..0c20326 100644 --- a/src/libs/Predibase/Generated/Predibase.Adapters.JsonSerializerContext.g.cs +++ b/src/libs/Predibase/Generated/Predibase.Adapters.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Predibase { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/Predibase/Generated/Predibase.Datasets.JsonSerializerContext.g.cs b/src/libs/Predibase/Generated/Predibase.Datasets.JsonSerializerContext.g.cs index bed567c..5aa7318 100644 --- a/src/libs/Predibase/Generated/Predibase.Datasets.JsonSerializerContext.g.cs +++ b/src/libs/Predibase/Generated/Predibase.Datasets.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Predibase { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/Predibase/Generated/Predibase.Deployments.JsonSerializerContext.g.cs b/src/libs/Predibase/Generated/Predibase.Deployments.JsonSerializerContext.g.cs index 53c2def..a8d1443 100644 --- a/src/libs/Predibase/Generated/Predibase.Deployments.JsonSerializerContext.g.cs +++ b/src/libs/Predibase/Generated/Predibase.Deployments.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Predibase { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/Predibase/Generated/Predibase.FineTuning.JsonSerializerContext.g.cs b/src/libs/Predibase/Generated/Predibase.FineTuning.JsonSerializerContext.g.cs index 2267304..8e78e3d 100644 --- a/src/libs/Predibase/Generated/Predibase.FineTuning.JsonSerializerContext.g.cs +++ b/src/libs/Predibase/Generated/Predibase.FineTuning.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Predibase { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/Predibase/Generated/Predibase.JsonSerializerContext.g.cs b/src/libs/Predibase/Generated/Predibase.JsonSerializerContext.g.cs index 64c53e9..4bba30a 100644 --- a/src/libs/Predibase/Generated/Predibase.JsonSerializerContext.g.cs +++ b/src/libs/Predibase/Generated/Predibase.JsonSerializerContext.g.cs @@ -1,14 +1,12 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Predibase { /// /// /// + #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant. [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] @@ -39,6 +37,7 @@ namespace Predibase typeof(global::Predibase.JsonConverters.UnixTimestampJsonConverter), })] + #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Predibase.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Predibase.Deployment))] diff --git a/src/libs/Predibase/Generated/Predibase.OptionsSupport.g.cs b/src/libs/Predibase/Generated/Predibase.OptionsSupport.g.cs index e863265..ff8019d 100644 --- a/src/libs/Predibase/Generated/Predibase.OptionsSupport.g.cs +++ b/src/libs/Predibase/Generated/Predibase.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Predibase.AutoSDK { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - if (context.Request == null) + var request = context.Request; + if (request == null) { return; } @@ -251,10 +252,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Predibase.AutoSDK { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::Predibase.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::Predibase.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Predibase.AutoSDK for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::Predibase.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::Predibase.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -486,7 +487,7 @@ public sealed class AutoSDKHookContext /// /// The outgoing HTTP request for the current attempt. /// - public global::System.Net.Http.HttpRequestMessage Request { get; set; } = null!; + public global::System.Net.Http.HttpRequestMessage? Request { get; set; } /// /// The HTTP response when one was received. @@ -501,7 +502,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::Predibase.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::Predibase.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. diff --git a/src/libs/Predibase/Generated/Predibase.Repositories.JsonSerializerContext.g.cs b/src/libs/Predibase/Generated/Predibase.Repositories.JsonSerializerContext.g.cs index 548d4cc..c122ce0 100644 --- a/src/libs/Predibase/Generated/Predibase.Repositories.JsonSerializerContext.g.cs +++ b/src/libs/Predibase/Generated/Predibase.Repositories.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Predibase { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")]