Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 27, 2024
1 parent 3034f81 commit 408396e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

#nullable enable

namespace Tripo
{
public partial interface ITripoApi
{
/// <summary>
/// Authorize using bearer authentication.
/// </summary>
/// <param name="apiKey"></param>
public void AuthorizeUsingBearer(
string apiKey);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ namespace Tripo
{
public sealed partial class TripoApi
{
/// <summary>
/// Authorize using bearer authentication.
/// </summary>
/// <param name="apiKey"></param>
/// <inheritdoc/>
public void AuthorizeUsingBearer(
string apiKey)
{
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Tripo/Generated/Tripo.TripoApi.CreateTask.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ partial void ProcessCreateTaskResponseContent(
using 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)
{
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Tripo/Generated/Tripo.TripoApi.GetBalance.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ partial void ProcessGetBalanceResponseContent(
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
#if NET6_0_OR_GREATER
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
{
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Tripo/Generated/Tripo.TripoApi.GetTask.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ partial void ProcessGetTaskResponseContent(
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
#if NET6_0_OR_GREATER
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
{
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Tripo/Generated/Tripo.TripoApi.UploadFile.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ partial void ProcessUploadFileResponseContent(
using 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)
{
Expand Down

0 comments on commit 408396e

Please sign in to comment.