From cf404fc9971bd79622b4c391255972b22df8f679 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 15 Apr 2026 19:14:33 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ient.LinkToRegistryLinkToRegistryPost.g.cs | 37 ++ .../Generated/Weave.IRegistryClient.g.cs | 48 ++ .../Weave/Generated/Weave.IWeaveClient.g.cs | 5 + .../Weave.JsonSerializerContext.g.cs | 3 + .../Weave.JsonSerializerContextTypes.g.cs | 372 +++++++------- ...eave.Models.CreateAndLinkPayload.Json.g.cs | 92 ++++ .../Weave.Models.CreateAndLinkPayload.g.cs | 65 +++ ...Weave.Models.CreateAndLinkTarget.Json.g.cs | 92 ++++ .../Weave.Models.CreateAndLinkTarget.g.cs | 64 +++ ...odels.CreateAndLinkWeaveAssetRes.Json.g.cs | 92 ++++ ...ave.Models.CreateAndLinkWeaveAssetRes.g.cs | 43 ++ ...AndLinkWeaveAssetResVersionIndex.Json.g.cs | 92 ++++ ...reateAndLinkWeaveAssetResVersionIndex.g.cs | 18 + ...ient.LinkToRegistryLinkToRegistryPost.g.cs | 458 ++++++++++++++++++ .../Weave/Generated/Weave.RegistryClient.g.cs | 115 +++++ .../Weave/Generated/Weave.WeaveClient.g.cs | 9 + src/libs/Weave/openapi.json | 110 +++++ 17 files changed, 1535 insertions(+), 180 deletions(-) create mode 100644 src/libs/Weave/Generated/Weave.IRegistryClient.LinkToRegistryLinkToRegistryPost.g.cs create mode 100644 src/libs/Weave/Generated/Weave.IRegistryClient.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkPayload.Json.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkPayload.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkTarget.Json.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkTarget.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.Json.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.Json.g.cs create mode 100644 src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.g.cs create mode 100644 src/libs/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs create mode 100644 src/libs/Weave/Generated/Weave.RegistryClient.g.cs diff --git a/src/libs/Weave/Generated/Weave.IRegistryClient.LinkToRegistryLinkToRegistryPost.g.cs b/src/libs/Weave/Generated/Weave.IRegistryClient.LinkToRegistryLinkToRegistryPost.g.cs new file mode 100644 index 0000000..5bbfda8 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.IRegistryClient.LinkToRegistryLinkToRegistryPost.g.cs @@ -0,0 +1,37 @@ +#nullable enable + +namespace Weave +{ + public partial interface IRegistryClient + { + /// + /// Link To Registry + /// + /// + /// 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 LinkToRegistryLinkToRegistryPostAsync( + + global::Weave.CreateAndLinkPayload request, + global::Weave.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Link To Registry + /// + /// + /// + /// + /// Default Value: [] + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task LinkToRegistryLinkToRegistryPostAsync( + string @ref, + global::Weave.CreateAndLinkTarget target, + global::System.Collections.Generic.IList? aliases = default, + global::Weave.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.IRegistryClient.g.cs b/src/libs/Weave/Generated/Weave.IRegistryClient.g.cs new file mode 100644 index 0000000..c2a3e69 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.IRegistryClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace Weave +{ + /// + /// 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 IRegistryClient : 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::Weave.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.IWeaveClient.g.cs b/src/libs/Weave/Generated/Weave.IWeaveClient.g.cs index f74b6c4..d0a42fb 100644 --- a/src/libs/Weave/Generated/Weave.IWeaveClient.g.cs +++ b/src/libs/Weave/Generated/Weave.IWeaveClient.g.cs @@ -130,6 +130,11 @@ public partial interface IWeaveClient : global::System.IDisposable /// public RefsClient Refs { get; } + /// + /// + /// + public RegistryClient Registry { get; } + /// /// /// diff --git a/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs b/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs index b6a5ed2..ef7a305 100644 --- a/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs +++ b/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs @@ -234,6 +234,9 @@ namespace Weave [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.CostQueryReq))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.CostQueryRes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.CreateAndLinkPayload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.CreateAndLinkTarget))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.CreateAndLinkWeaveAssetRes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.Datacenter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.DatasetCreateBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.DatasetCreateRes))] diff --git a/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs b/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs index be914b2..4c3b01d 100644 --- a/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs +++ b/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs @@ -460,723 +460,735 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Weave.Datacenter? Type108 { get; set; } + public global::Weave.CreateAndLinkPayload? Type108 { get; set; } /// /// /// - public global::Weave.DatasetCreateBody? Type109 { get; set; } + public global::Weave.CreateAndLinkTarget? Type109 { get; set; } /// /// /// - public global::Weave.DatasetCreateRes? Type110 { get; set; } + public global::Weave.CreateAndLinkWeaveAssetRes? Type110 { get; set; } /// /// /// - public global::Weave.DatasetDeleteRes? Type111 { get; set; } + public global::Weave.Datacenter? Type111 { get; set; } /// /// /// - public global::Weave.DatasetReadRes? Type112 { get; set; } + public global::Weave.DatasetCreateBody? Type112 { get; set; } /// /// /// - public global::Weave.SummaryInsertMap? Type113 { get; set; } + public global::Weave.DatasetCreateRes? Type113 { get; set; } /// /// /// - public global::Weave.EvalResultsEvaluationSummary? Type114 { get; set; } + public global::Weave.DatasetDeleteRes? Type114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type115 { get; set; } + public global::Weave.DatasetReadRes? Type115 { get; set; } /// /// /// - public global::Weave.EvalResultsScorerStats? Type116 { get; set; } + public global::Weave.SummaryInsertMap? Type116 { get; set; } /// /// /// - public global::Weave.EvalResultsQueryBody? Type117 { get; set; } + public global::Weave.EvalResultsEvaluationSummary? Type117 { get; set; } /// /// /// - public global::Weave.EvalResultsQueryRes? Type118 { get; set; } + public global::System.Collections.Generic.IList? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::Weave.EvalResultsScorerStats? Type119 { get; set; } /// /// /// - public global::Weave.EvalResultsRow? Type120 { get; set; } + public global::Weave.EvalResultsQueryBody? Type120 { get; set; } /// /// /// - public global::Weave.EvalResultsSummaryRes? Type121 { get; set; } + public global::Weave.EvalResultsQueryRes? Type121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::Weave.EvalResultsRowEvaluation? Type123 { get; set; } + public global::Weave.EvalResultsRow? Type123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type124 { get; set; } + public global::Weave.EvalResultsSummaryRes? Type124 { get; set; } /// /// /// - public global::Weave.EvalResultsTrial? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::Weave.EvalResultsScorerStatsValueType2? Type126 { get; set; } + public global::Weave.EvalResultsRowEvaluation? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type128 { get; set; } + public global::Weave.EvalResultsTrial? Type128 { get; set; } /// /// /// - public global::Weave.EvaluateModelReq? Type129 { get; set; } + public global::Weave.EvalResultsScorerStatsValueType2? Type129 { get; set; } /// /// /// - public global::Weave.EvaluateModelRes? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::Weave.EvaluationCreateBody? Type131 { get; set; } + public global::System.Collections.Generic.Dictionary? Type131 { get; set; } /// /// /// - public global::Weave.EvaluationCreateRes? Type132 { get; set; } + public global::Weave.EvaluateModelReq? Type132 { get; set; } /// /// /// - public global::Weave.EvaluationDeleteRes? Type133 { get; set; } + public global::Weave.EvaluateModelRes? Type133 { get; set; } /// /// /// - public global::Weave.EvaluationReadRes? Type134 { get; set; } + public global::Weave.EvaluationCreateBody? Type134 { get; set; } /// /// /// - public global::Weave.EvaluationRunCreateBody? Type135 { get; set; } + public global::Weave.EvaluationCreateRes? Type135 { get; set; } /// /// /// - public global::Weave.EvaluationRunCreateRes? Type136 { get; set; } + public global::Weave.EvaluationDeleteRes? Type136 { get; set; } /// /// /// - public global::Weave.EvaluationRunDeleteRes? Type137 { get; set; } + public global::Weave.EvaluationReadRes? Type137 { get; set; } /// /// /// - public global::Weave.EvaluationRunFinishBody? Type138 { get; set; } + public global::Weave.EvaluationRunCreateBody? Type138 { get; set; } /// /// /// - public global::Weave.EvaluationRunFinishRes? Type139 { get; set; } + public global::Weave.EvaluationRunCreateRes? Type139 { get; set; } /// /// /// - public global::Weave.EvaluationRunReadRes? Type140 { get; set; } + public global::Weave.EvaluationRunDeleteRes? Type140 { get; set; } /// /// /// - public global::Weave.EvaluationStatusComplete? Type141 { get; set; } + public global::Weave.EvaluationRunFinishBody? Type141 { get; set; } /// /// /// - public global::Weave.EvaluationStatusFailed? Type142 { get; set; } + public global::Weave.EvaluationRunFinishRes? Type142 { get; set; } /// /// /// - public global::Weave.EvaluationStatusNotFound? Type143 { get; set; } + public global::Weave.EvaluationRunReadRes? Type143 { get; set; } /// /// /// - public global::Weave.EvaluationStatusReq? Type144 { get; set; } + public global::Weave.EvaluationStatusComplete? Type144 { get; set; } /// /// /// - public global::Weave.EvaluationStatusRes? Type145 { get; set; } + public global::Weave.EvaluationStatusFailed? Type145 { get; set; } /// /// /// - public global::Weave.AnyOf? Type146 { get; set; } + public global::Weave.EvaluationStatusNotFound? Type146 { get; set; } /// /// /// - public global::Weave.EvaluationStatusRunning? Type147 { get; set; } + public global::Weave.EvaluationStatusReq? Type147 { get; set; } /// /// /// - public global::Weave.FeedbackCreateBatchReq? Type148 { get; set; } + public global::Weave.EvaluationStatusRes? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::Weave.AnyOf? Type149 { get; set; } /// /// /// - public global::Weave.FeedbackCreateReq? Type150 { get; set; } + public global::Weave.EvaluationStatusRunning? Type150 { get; set; } /// /// /// - public global::Weave.FeedbackCreateBatchRes? Type151 { get; set; } + public global::Weave.FeedbackCreateBatchReq? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::System.Collections.Generic.IList? Type152 { get; set; } /// /// /// - public global::Weave.FeedbackCreateRes? Type153 { get; set; } + public global::Weave.FeedbackCreateReq? Type153 { get; set; } /// /// /// - public global::Weave.FeedbackMetricSpec? Type154 { get; set; } + public global::Weave.FeedbackCreateBatchRes? Type154 { get; set; } /// /// /// - public global::Weave.FeedbackMetricSpecValueType? Type155 { get; set; } + public global::System.Collections.Generic.IList? Type155 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadPath? Type156 { get; set; } + public global::Weave.FeedbackCreateRes? Type156 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadPathValueType? Type157 { get; set; } + public global::Weave.FeedbackMetricSpec? Type157 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadSchemaReq? Type158 { get; set; } + public global::Weave.FeedbackMetricSpecValueType? Type158 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadSchemaRes? Type159 { get; set; } + public global::Weave.FeedbackPayloadPath? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type160 { get; set; } + public global::Weave.FeedbackPayloadPathValueType? Type160 { get; set; } /// /// /// - public global::Weave.FeedbackPurgeReq? Type161 { get; set; } + public global::Weave.FeedbackPayloadSchemaReq? Type161 { get; set; } /// /// /// - public global::Weave.FeedbackPurgeRes? Type162 { get; set; } + public global::Weave.FeedbackPayloadSchemaRes? Type162 { get; set; } /// /// /// - public global::Weave.FeedbackQueryReq? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::Weave.FeedbackQueryRes? Type164 { get; set; } + public global::Weave.FeedbackPurgeReq? Type164 { get; set; } /// /// /// - public global::Weave.FeedbackReplaceReq? Type165 { get; set; } + public global::Weave.FeedbackPurgeRes? Type165 { get; set; } /// /// /// - public global::Weave.FeedbackReplaceRes? Type166 { get; set; } + public global::Weave.FeedbackQueryReq? Type166 { get; set; } /// /// /// - public global::Weave.FeedbackStatsReq? Type167 { get; set; } + public global::Weave.FeedbackQueryRes? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::Weave.FeedbackReplaceReq? Type168 { get; set; } /// /// /// - public global::Weave.FeedbackStatsRes? Type169 { get; set; } + public global::Weave.FeedbackReplaceRes? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type170 { get; set; } + public global::Weave.FeedbackStatsReq? Type170 { get; set; } /// /// /// - public global::Weave.FileContentReadReq? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::Weave.FileCreateRes? Type172 { get; set; } + public global::Weave.FeedbackStatsRes? Type172 { get; set; } /// /// /// - public global::Weave.FilesStatsReq? Type173 { get; set; } + public global::System.Collections.Generic.Dictionary? Type173 { get; set; } /// /// /// - public global::Weave.FilesStatsRes? Type174 { get; set; } + public global::Weave.FileContentReadReq? Type174 { get; set; } /// /// /// - public global::Weave.Geolocation? Type175 { get; set; } + public global::Weave.FileCreateRes? Type175 { get; set; } /// /// /// - public global::Weave.GeolocationRes? Type176 { get; set; } + public global::Weave.FilesStatsReq? Type176 { get; set; } /// /// /// - public global::Weave.HTTPValidationError? Type177 { get; set; } + public global::Weave.FilesStatsRes? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::Weave.Geolocation? Type178 { get; set; } /// /// /// - public global::Weave.ValidationError? Type179 { get; set; } + public global::Weave.GeolocationRes? Type179 { get; set; } /// /// /// - public global::Weave.ImageGenerationCreateReq? Type180 { get; set; } + public global::Weave.HTTPValidationError? Type180 { get; set; } /// /// /// - public global::Weave.ImageGenerationRequestInputs? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::Weave.ImageGenerationCreateRes? Type182 { get; set; } + public global::Weave.ValidationError? Type182 { get; set; } /// /// /// - public global::Weave.LLMUsageSchema? Type183 { get; set; } + public global::Weave.ImageGenerationCreateReq? Type183 { get; set; } /// /// /// - public global::Weave.AnyOf, global::System.Collections.Generic.IList, object>? Type184 { get; set; } + public global::Weave.ImageGenerationRequestInputs? Type184 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type185 { get; set; } + public global::Weave.ImageGenerationCreateRes? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::Weave.LLMUsageSchema? Type186 { get; set; } /// /// /// - public global::Weave.ModelCreateBody? Type187 { get; set; } + public global::Weave.AnyOf, global::System.Collections.Generic.IList, object>? Type187 { get; set; } /// /// /// - public global::Weave.ModelCreateRes? Type188 { get; set; } + public global::System.Collections.Generic.Dictionary? Type188 { get; set; } /// /// /// - public global::Weave.ModelDeleteRes? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::Weave.ModelReadRes? Type190 { get; set; } + public global::Weave.ModelCreateBody? Type190 { get; set; } /// /// /// - public global::Weave.NvidiaHardwareOption? Type191 { get; set; } + public global::Weave.ModelCreateRes? Type191 { get; set; } /// /// /// - public global::Weave.NvidiaServerlessPricing? Type192 { get; set; } + public global::Weave.ModelDeleteRes? Type192 { get; set; } /// /// /// - public global::Weave.NvidiaHardwareRes? Type193 { get; set; } + public global::Weave.ModelReadRes? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::Weave.NvidiaHardwareOption? Type194 { get; set; } /// /// /// - public global::Weave.ObjAddTagsRes? Type195 { get; set; } + public global::Weave.NvidiaServerlessPricing? Type195 { get; set; } /// /// /// - public global::Weave.ObjCreateReq? Type196 { get; set; } + public global::Weave.NvidiaHardwareRes? Type196 { get; set; } /// /// /// - public global::Weave.ObjSchemaForInsert? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Weave.ObjCreateRes? Type198 { get; set; } + public global::Weave.ObjAddTagsRes? Type198 { get; set; } /// /// /// - public global::Weave.ObjDeleteReq? Type199 { get; set; } + public global::Weave.ObjCreateReq? Type199 { get; set; } /// /// /// - public global::Weave.ObjDeleteRes? Type200 { get; set; } + public global::Weave.ObjSchemaForInsert? Type200 { get; set; } /// /// /// - public global::Weave.ObjQueryReq? Type201 { get; set; } + public global::Weave.ObjCreateRes? Type201 { get; set; } /// /// /// - public global::Weave.ObjectVersionFilter? Type202 { get; set; } + public global::Weave.ObjDeleteReq? Type202 { get; set; } /// /// /// - public global::Weave.ObjQueryRes? Type203 { get; set; } + public global::Weave.ObjDeleteRes? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::Weave.ObjQueryReq? Type204 { get; set; } /// /// /// - public global::Weave.ObjSchema? Type205 { get; set; } + public global::Weave.ObjectVersionFilter? Type205 { get; set; } /// /// /// - public global::Weave.ObjReadReq? Type206 { get; set; } + public global::Weave.ObjQueryRes? Type206 { get; set; } /// /// /// - public global::Weave.ObjReadRes? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::Weave.ObjRemoveAliasesBody? Type208 { get; set; } + public global::Weave.ObjSchema? Type208 { get; set; } /// /// /// - public global::Weave.ObjRemoveAliasesRes? Type209 { get; set; } + public global::Weave.ObjReadReq? Type209 { get; set; } /// /// /// - public global::Weave.ObjRemoveTagsRes? Type210 { get; set; } + public global::Weave.ObjReadRes? Type210 { get; set; } /// /// /// - public global::Weave.ObjSetAliasesBody? Type211 { get; set; } + public global::Weave.ObjRemoveAliasesBody? Type211 { get; set; } /// /// /// - public global::Weave.ObjSetAliasesRes? Type212 { get; set; } + public global::Weave.ObjRemoveAliasesRes? Type212 { get; set; } /// /// /// - public global::Weave.ObjTagsBody? Type213 { get; set; } + public global::Weave.ObjRemoveTagsRes? Type213 { get; set; } /// /// /// - public global::Weave.OpCreateBody? Type214 { get; set; } + public global::Weave.ObjSetAliasesBody? Type214 { get; set; } /// /// /// - public global::Weave.OpCreateRes? Type215 { get; set; } + public global::Weave.ObjSetAliasesRes? Type215 { get; set; } /// /// /// - public global::Weave.OpDeleteRes? Type216 { get; set; } + public global::Weave.ObjTagsBody? Type216 { get; set; } /// /// /// - public global::Weave.OpReadRes? Type217 { get; set; } + public global::Weave.OpCreateBody? Type217 { get; set; } /// /// /// - public global::Weave.PredictionCreateBody? Type218 { get; set; } + public global::Weave.OpCreateRes? Type218 { get; set; } /// /// /// - public global::Weave.PredictionCreateRes? Type219 { get; set; } + public global::Weave.OpDeleteRes? Type219 { get; set; } /// /// /// - public global::Weave.PredictionDeleteRes? Type220 { get; set; } + public global::Weave.OpReadRes? Type220 { get; set; } /// /// /// - public global::Weave.PredictionFinishRes? Type221 { get; set; } + public global::Weave.PredictionCreateBody? Type221 { get; set; } /// /// /// - public global::Weave.PredictionReadRes? Type222 { get; set; } + public global::Weave.PredictionCreateRes? Type222 { get; set; } /// /// /// - public global::Weave.Pricing? Type223 { get; set; } + public global::Weave.PredictionDeleteRes? Type223 { get; set; } /// /// /// - public global::Weave.ProjectsInfoReq? Type224 { get; set; } + public global::Weave.PredictionFinishRes? Type224 { get; set; } /// /// /// - public global::Weave.ProjectsInfoRes? Type225 { get; set; } + public global::Weave.PredictionReadRes? Type225 { get; set; } /// /// /// - public global::Weave.RefsReadBatchReq? Type226 { get; set; } + public global::Weave.Pricing? Type226 { get; set; } /// /// /// - public global::Weave.RefsReadBatchRes? Type227 { get; set; } + public global::Weave.ProjectsInfoReq? Type227 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModel? Type228 { get; set; } + public global::Weave.ProjectsInfoRes? Type228 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelQuantization? Type229 { get; set; } + public global::Weave.RefsReadBatchReq? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::Weave.RefsReadBatchRes? Type230 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelSupportedSamplingParameter? Type231 { get; set; } + public global::Weave.RouterOpenRouterModel? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::Weave.RouterOpenRouterModelQuantization? Type232 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelSupportedFeature? Type233 { get; set; } + public global::System.Collections.Generic.IList? Type233 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type234 { get; set; } + public global::Weave.RouterOpenRouterModelSupportedSamplingParameter? Type234 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelsRes? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type236 { get; set; } + public global::Weave.RouterOpenRouterModelSupportedFeature? Type236 { get; set; } /// /// /// - public global::Weave.ScoreCreateBody? Type237 { get; set; } + public global::System.Collections.Generic.IList? Type237 { get; set; } /// /// /// - public global::Weave.ScoreCreateRes? Type238 { get; set; } + public global::Weave.RouterOpenRouterModelsRes? Type238 { get; set; } /// /// /// - public global::Weave.ScoreDeleteRes? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// /// /// - public global::Weave.ScoreReadRes? Type240 { get; set; } + public global::Weave.ScoreCreateBody? Type240 { get; set; } /// /// /// - public global::Weave.ScorerCreateBody? Type241 { get; set; } + public global::Weave.ScoreCreateRes? Type241 { get; set; } /// /// /// - public global::Weave.ScorerCreateRes? Type242 { get; set; } + public global::Weave.ScoreDeleteRes? Type242 { get; set; } /// /// /// - public global::Weave.ScorerDeleteRes? Type243 { get; set; } + public global::Weave.ScoreReadRes? Type243 { get; set; } /// /// /// - public global::Weave.ScorerReadRes? Type244 { get; set; } + public global::Weave.ScorerCreateBody? Type244 { get; set; } /// /// /// - public global::Weave.ServerInfoRes? Type245 { get; set; } + public global::Weave.ScorerCreateRes? Type245 { get; set; } /// /// /// - public global::Weave.SortByDirection? Type246 { get; set; } + public global::Weave.ScorerDeleteRes? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type247 { get; set; } + public global::Weave.ScorerReadRes? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type248 { get; set; } + public global::Weave.ServerInfoRes? Type248 { get; set; } /// /// /// - public global::Weave.TableAppendSpec? Type249 { get; set; } + public global::Weave.SortByDirection? Type249 { get; set; } /// /// /// - public global::Weave.TableAppendSpecPayload? Type250 { get; set; } + public global::System.Collections.Generic.Dictionary? Type250 { get; set; } /// /// /// - public global::Weave.TableCreateFromDigestsReq? Type251 { get; set; } + public global::System.Collections.Generic.Dictionary? Type251 { get; set; } /// /// /// - public global::Weave.TableCreateFromDigestsRes? Type252 { get; set; } + public global::Weave.TableAppendSpec? Type252 { get; set; } /// /// /// - public global::Weave.TableCreateReq? Type253 { get; set; } + public global::Weave.TableAppendSpecPayload? Type253 { get; set; } /// /// /// - public global::Weave.TableSchemaForInsert? Type254 { get; set; } + public global::Weave.TableCreateFromDigestsReq? Type254 { get; set; } /// /// /// - public global::Weave.TableCreateRes? Type255 { get; set; } + public global::Weave.TableCreateFromDigestsRes? Type255 { get; set; } /// /// /// - public global::Weave.TableInsertSpec? Type256 { get; set; } + public global::Weave.TableCreateReq? Type256 { get; set; } /// /// /// - public global::Weave.TableInsertSpecPayload? Type257 { get; set; } + public global::Weave.TableSchemaForInsert? Type257 { get; set; } /// /// /// - public global::Weave.TablePopSpec? Type258 { get; set; } + public global::Weave.TableCreateRes? Type258 { get; set; } /// /// /// - public global::Weave.TablePopSpecPayload? Type259 { get; set; } + public global::Weave.TableInsertSpec? Type259 { get; set; } /// /// /// - public global::Weave.TableQueryReq? Type260 { get; set; } + public global::Weave.TableInsertSpecPayload? Type260 { get; set; } /// /// /// - public global::Weave.TableRowFilter? Type261 { get; set; } + public global::Weave.TablePopSpec? Type261 { get; set; } /// /// /// - public global::Weave.TableQueryRes? Type262 { get; set; } + public global::Weave.TablePopSpecPayload? Type262 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type263 { get; set; } + public global::Weave.TableQueryReq? Type263 { get; set; } /// /// /// - public global::Weave.TableRowSchema? Type264 { get; set; } + public global::Weave.TableRowFilter? Type264 { get; set; } /// /// /// - public global::Weave.TableQueryStatsBatchReq? Type265 { get; set; } + public global::Weave.TableQueryRes? Type265 { get; set; } /// /// /// - public global::Weave.TableQueryStatsBatchRes? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type267 { get; set; } + public global::Weave.TableRowSchema? Type267 { get; set; } /// /// /// - public global::Weave.TableStatsRow? Type268 { get; set; } + public global::Weave.TableQueryStatsBatchReq? Type268 { get; set; } /// /// /// - public global::Weave.TableQueryStatsReq? Type269 { get; set; } + public global::Weave.TableQueryStatsBatchRes? Type269 { get; set; } /// /// /// - public global::Weave.TableQueryStatsRes? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public global::Weave.TableUpdateReq? Type271 { get; set; } + public global::Weave.TableStatsRow? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type272 { get; set; } + public global::Weave.TableQueryStatsReq? Type272 { get; set; } /// /// /// - public global::Weave.AnyOf? Type273 { get; set; } + public global::Weave.TableQueryStatsRes? Type273 { get; set; } /// /// /// - public global::Weave.TableUpdateRes? Type274 { get; set; } + public global::Weave.TableUpdateReq? Type274 { get; set; } /// /// /// - public global::Weave.TagsListRes? Type275 { get; set; } + public global::System.Collections.Generic.IList>? Type275 { get; set; } /// /// /// - public global::Weave.ThreadsQueryFilter? Type276 { get; set; } + public global::Weave.AnyOf? Type276 { get; set; } /// /// /// - public global::Weave.ThreadsQueryReq? Type277 { get; set; } + public global::Weave.TableUpdateRes? Type277 { get; set; } /// /// /// - public global::Weave.TraceStatus? Type278 { get; set; } + public global::Weave.TagsListRes? Type278 { get; set; } /// /// /// - public global::Weave.TraceUsageReq? Type279 { get; set; } + public global::Weave.ThreadsQueryFilter? Type279 { get; set; } /// /// /// - public global::Weave.TraceUsageRes? Type280 { get; set; } + public global::Weave.ThreadsQueryReq? Type280 { get; set; } /// /// /// - public global::Weave.UsageMetricSpecMetric? Type281 { get; set; } + public global::Weave.TraceStatus? Type281 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type282 { get; set; } + public global::Weave.TraceUsageReq? Type282 { get; set; } /// /// /// - public global::Weave.AnyOf? Type283 { get; set; } + public global::Weave.TraceUsageRes? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::Weave.UsageMetricSpecMetric? Type284 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type285 { get; set; } + public global::System.Collections.Generic.IList>? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type286 { get; set; } + public global::Weave.AnyOf? Type286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type287 { get; set; } + public global::System.Collections.Generic.IList? Type287 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type288 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type289 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// diff --git a/src/libs/Weave/Generated/Weave.Models.CreateAndLinkPayload.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkPayload.Json.g.cs new file mode 100644 index 0000000..800a887 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkPayload.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class CreateAndLinkPayload + { + /// + /// 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::Weave.CreateAndLinkPayload? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.CreateAndLinkPayload), + jsonSerializerContext) as global::Weave.CreateAndLinkPayload; + } + + /// + /// 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::Weave.CreateAndLinkPayload? 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::Weave.CreateAndLinkPayload), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.CreateAndLinkPayload; + } + + /// + /// 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/Weave/Generated/Weave.Models.CreateAndLinkPayload.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkPayload.g.cs new file mode 100644 index 0000000..9c5d8df --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkPayload.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Weave +{ + /// + /// + /// + public sealed partial class CreateAndLinkPayload + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ref")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Ref { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Weave.CreateAndLinkTarget Target { get; set; } + + /// + /// Default Value: [] + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aliases")] + public global::System.Collections.Generic.IList? Aliases { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Default Value: [] + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateAndLinkPayload( + string @ref, + global::Weave.CreateAndLinkTarget target, + global::System.Collections.Generic.IList? aliases) + { + this.Ref = @ref ?? throw new global::System.ArgumentNullException(nameof(@ref)); + this.Target = target ?? throw new global::System.ArgumentNullException(nameof(target)); + this.Aliases = aliases; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAndLinkPayload() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.Models.CreateAndLinkTarget.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkTarget.Json.g.cs new file mode 100644 index 0000000..ee855b8 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkTarget.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class CreateAndLinkTarget + { + /// + /// 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::Weave.CreateAndLinkTarget? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.CreateAndLinkTarget), + jsonSerializerContext) as global::Weave.CreateAndLinkTarget; + } + + /// + /// 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::Weave.CreateAndLinkTarget? 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::Weave.CreateAndLinkTarget), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.CreateAndLinkTarget; + } + + /// + /// 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/Weave/Generated/Weave.Models.CreateAndLinkTarget.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkTarget.g.cs new file mode 100644 index 0000000..02b8692 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkTarget.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace Weave +{ + /// + /// + /// + public sealed partial class CreateAndLinkTarget + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("portfolio_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PortfolioName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("entity_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EntityName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProjectName { 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 CreateAndLinkTarget( + string portfolioName, + string entityName, + string projectName) + { + this.PortfolioName = portfolioName ?? throw new global::System.ArgumentNullException(nameof(portfolioName)); + this.EntityName = entityName ?? throw new global::System.ArgumentNullException(nameof(entityName)); + this.ProjectName = projectName ?? throw new global::System.ArgumentNullException(nameof(projectName)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAndLinkTarget() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.Json.g.cs new file mode 100644 index 0000000..688e749 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class CreateAndLinkWeaveAssetRes + { + /// + /// 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::Weave.CreateAndLinkWeaveAssetRes? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.CreateAndLinkWeaveAssetRes), + jsonSerializerContext) as global::Weave.CreateAndLinkWeaveAssetRes; + } + + /// + /// 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::Weave.CreateAndLinkWeaveAssetRes? 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::Weave.CreateAndLinkWeaveAssetRes), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.CreateAndLinkWeaveAssetRes; + } + + /// + /// 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/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.g.cs new file mode 100644 index 0000000..1f3ef82 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetRes.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace Weave +{ + /// + /// + /// + public sealed partial class CreateAndLinkWeaveAssetRes + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version_index")] + public int? VersionIndex { 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 CreateAndLinkWeaveAssetRes( + int? versionIndex) + { + this.VersionIndex = versionIndex; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAndLinkWeaveAssetRes() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.Json.g.cs new file mode 100644 index 0000000..74f3d5e --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class CreateAndLinkWeaveAssetResVersionIndex + { + /// + /// 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::Weave.CreateAndLinkWeaveAssetResVersionIndex? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.CreateAndLinkWeaveAssetResVersionIndex), + jsonSerializerContext) as global::Weave.CreateAndLinkWeaveAssetResVersionIndex; + } + + /// + /// 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::Weave.CreateAndLinkWeaveAssetResVersionIndex? 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::Weave.CreateAndLinkWeaveAssetResVersionIndex), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.CreateAndLinkWeaveAssetResVersionIndex; + } + + /// + /// 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/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.g.cs b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.g.cs new file mode 100644 index 0000000..4da8206 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.CreateAndLinkWeaveAssetResVersionIndex.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Weave +{ + /// + /// + /// + public sealed partial class CreateAndLinkWeaveAssetResVersionIndex + { + + /// + /// 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/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs b/src/libs/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs new file mode 100644 index 0000000..d974266 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs @@ -0,0 +1,458 @@ + +#nullable enable + +namespace Weave +{ + public partial class RegistryClient + { + + + private static readonly global::Weave.EndPointSecurityRequirement s_LinkToRegistryLinkToRegistryPostSecurityRequirement0 = + new global::Weave.EndPointSecurityRequirement + { + Authorizations = new global::Weave.EndPointAuthorizationRequirement[] + { new global::Weave.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HTTPBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Weave.EndPointSecurityRequirement[] s_LinkToRegistryLinkToRegistryPostSecurityRequirements = + new global::Weave.EndPointSecurityRequirement[] + { s_LinkToRegistryLinkToRegistryPostSecurityRequirement0, + }; + partial void PrepareLinkToRegistryLinkToRegistryPostArguments( + global::System.Net.Http.HttpClient httpClient, + global::Weave.CreateAndLinkPayload request); + partial void PrepareLinkToRegistryLinkToRegistryPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Weave.CreateAndLinkPayload request); + partial void ProcessLinkToRegistryLinkToRegistryPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessLinkToRegistryLinkToRegistryPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Link To Registry + /// + /// + /// 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 LinkToRegistryLinkToRegistryPostAsync( + + global::Weave.CreateAndLinkPayload request, + global::Weave.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareLinkToRegistryLinkToRegistryPostArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LinkToRegistryLinkToRegistryPostSecurityRequirements, + operationName: "LinkToRegistryLinkToRegistryPostAsync"); + + using var __timeoutCancellationTokenSource = global::Weave.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Weave.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Weave.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + var __pathBuilder = new global::Weave.PathBuilder( + path: "/link_to_registry", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Weave.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::Weave.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareLinkToRegistryLinkToRegistryPostRequest( + 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::Weave.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Weave.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "LinkToRegistryLinkToRegistryPost", + methodName: "LinkToRegistryLinkToRegistryPostAsync", + pathTemplate: "\"/link_to_registry\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Weave.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Weave.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "LinkToRegistryLinkToRegistryPost", + methodName: "LinkToRegistryLinkToRegistryPostAsync", + pathTemplate: "\"/link_to_registry\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Weave.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Weave.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::Weave.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Weave.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "LinkToRegistryLinkToRegistryPost", + methodName: "LinkToRegistryLinkToRegistryPostAsync", + pathTemplate: "\"/link_to_registry\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Weave.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessLinkToRegistryLinkToRegistryPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Weave.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Weave.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "LinkToRegistryLinkToRegistryPost", + methodName: "LinkToRegistryLinkToRegistryPostAsync", + pathTemplate: "\"/link_to_registry\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Weave.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Weave.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "LinkToRegistryLinkToRegistryPost", + methodName: "LinkToRegistryLinkToRegistryPostAsync", + pathTemplate: "\"/link_to_registry\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Weave.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::Weave.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + 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); + ProcessLinkToRegistryLinkToRegistryPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::Weave.CreateAndLinkWeaveAssetRes.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::Weave.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::Weave.CreateAndLinkWeaveAssetRes.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::Weave.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Link To Registry + /// + /// + /// + /// + /// Default Value: [] + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task LinkToRegistryLinkToRegistryPostAsync( + string @ref, + global::Weave.CreateAndLinkTarget target, + global::System.Collections.Generic.IList? aliases = default, + global::Weave.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Weave.CreateAndLinkPayload + { + Ref = @ref, + Target = target, + Aliases = aliases, + }; + + return await LinkToRegistryLinkToRegistryPostAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.RegistryClient.g.cs b/src/libs/Weave/Generated/Weave.RegistryClient.g.cs new file mode 100644 index 0000000..6002a66 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.RegistryClient.g.cs @@ -0,0 +1,115 @@ + +#nullable enable + +namespace Weave +{ + /// + /// 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 RegistryClient : global::Weave.IRegistryClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://trace.wandb.ai/"; + + 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::Weave.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Weave.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the RegistryClient. + /// 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 RegistryClient( + 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 RegistryClient. + /// 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 RegistryClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + global::Weave.AutoSDKClientOptions? options = null, + 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::Weave.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/Weave/Generated/Weave.WeaveClient.g.cs b/src/libs/Weave/Generated/Weave.WeaveClient.g.cs index 4b416c6..dbadbb2 100644 --- a/src/libs/Weave/Generated/Weave.WeaveClient.g.cs +++ b/src/libs/Weave/Generated/Weave.WeaveClient.g.cs @@ -193,6 +193,15 @@ public sealed partial class WeaveClient : global::Weave.IWeaveClient, global::Sy JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public RegistryClient Registry => new RegistryClient(HttpClient, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/Weave/openapi.json b/src/libs/Weave/openapi.json index 126ec5b..f656c15 100644 --- a/src/libs/Weave/openapi.json +++ b/src/libs/Weave/openapi.json @@ -2691,6 +2691,47 @@ } } }, + "/link_to_registry": { + "post": { + "tags": [ + "Registry" + ], + "summary": "Link To Registry", + "operationId": "link_to_registry_link_to_registry_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAndLinkPayload" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAndLinkWeaveAssetRes" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, "/v2/{entity}/{project}/ops": { "post": { "tags": [ @@ -8046,6 +8087,75 @@ ], "title": "CostQueryRes" }, + "CreateAndLinkPayload": { + "properties": { + "ref": { + "type": "string", + "minLength": 1, + "title": "Ref" + }, + "target": { + "$ref": "#/components/schemas/CreateAndLinkTarget" + }, + "aliases": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Aliases", + "default": [] + } + }, + "type": "object", + "required": [ + "ref", + "target" + ], + "title": "CreateAndLinkPayload" + }, + "CreateAndLinkTarget": { + "properties": { + "portfolio_name": { + "type": "string", + "minLength": 1, + "title": "Portfolio Name" + }, + "entity_name": { + "type": "string", + "minLength": 1, + "title": "Entity Name" + }, + "project_name": { + "type": "string", + "minLength": 1, + "title": "Project Name" + } + }, + "type": "object", + "required": [ + "portfolio_name", + "entity_name", + "project_name" + ], + "title": "CreateAndLinkTarget" + }, + "CreateAndLinkWeaveAssetRes": { + "properties": { + "version_index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Version Index" + } + }, + "type": "object", + "title": "CreateAndLinkWeaveAssetRes" + }, "Datacenter": { "properties": { "country_code": {