From 2746ffc242168560e3291015eef8b7ca2431d58a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 29 Aug 2024 12:38:41 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...HuggingFace.HuggingFaceApi.Constructors.Bearer.g.cs | 10 ++++++++++ .../Generated/HuggingFace.HuggingFaceApi.g.cs | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.Constructors.Bearer.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.Constructors.Bearer.g.cs index 3ecb10f..20ca532 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.Constructors.Bearer.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.Constructors.Bearer.g.cs @@ -11,7 +11,17 @@ public HuggingFaceApi( global::System.Net.Http.HttpClient? httpClient = null, global::System.Uri? baseUri = null) : this(httpClient, baseUri) { + Authorizing(_httpClient, ref apiKey); + AuthorizeUsingBearer(apiKey); + + Authorized(_httpClient); } + + partial void Authorizing( + global::System.Net.Http.HttpClient client, + ref string apiKey); + partial void Authorized( + global::System.Net.Http.HttpClient client); } } \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.g.cs index fd67369..20f11fe 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceApi.g.cs @@ -32,6 +32,8 @@ public HuggingFaceApi( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -40,6 +42,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest(