Skip to content

Commit 117f077

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#246)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 3f9b0a0 commit 117f077

946 files changed

Lines changed: 119148 additions & 7476 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/Vercel/Generated/Vercel.ApiSecurityClient.CreateSecurityFirewallConfigByConfigVersionActivate.g.cs

Lines changed: 618 additions & 0 deletions
Large diffs are not rendered by default.

src/libs/Vercel/Generated/Vercel.ApiSecurityClient.DeleteSecurityFirewallConfigByConfigVersion.g.cs

Lines changed: 586 additions & 0 deletions
Large diffs are not rendered by default.

src/libs/Vercel/Generated/Vercel.ApiSecurityClient.GetSecurityFirewallConfig.g.cs

Lines changed: 545 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
2+
#nullable enable
3+
4+
namespace Vercel
5+
{
6+
/// <summary>
7+
/// If no httpClient is provided, a new one will be created.<br/>
8+
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
9+
/// </summary>
10+
public sealed partial class ApiSecurityClient : global::Vercel.IApiSecurityClient, global::System.IDisposable
11+
{
12+
/// <summary>
13+
/// Production API
14+
/// </summary>
15+
public const string DefaultBaseUrl = "https://api.vercel.com/";
16+
17+
private bool _disposeHttpClient = true;
18+
19+
/// <inheritdoc/>
20+
public global::System.Net.Http.HttpClient HttpClient { get; }
21+
22+
/// <inheritdoc/>
23+
public System.Uri? BaseUri => HttpClient.BaseAddress;
24+
25+
/// <inheritdoc/>
26+
public global::System.Collections.Generic.List<global::Vercel.EndPointAuthorization> Authorizations { get; }
27+
28+
/// <inheritdoc/>
29+
public bool ReadResponseAsString { get; set; }
30+
#if DEBUG
31+
= true;
32+
#endif
33+
34+
/// <inheritdoc/>
35+
public global::Vercel.AutoSDKClientOptions Options { get; }
36+
/// <summary>
37+
///
38+
/// </summary>
39+
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Vercel.SourceGenerationContext.Default;
40+
41+
42+
/// <summary>
43+
/// Creates a new instance of the ApiSecurityClient.
44+
/// If no httpClient is provided, a new one will be created.
45+
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
46+
/// </summary>
47+
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
48+
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
49+
/// <param name="authorizations">The authorizations to use for the requests.</param>
50+
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
51+
public ApiSecurityClient(
52+
global::System.Net.Http.HttpClient? httpClient = null,
53+
global::System.Uri? baseUri = null,
54+
global::System.Collections.Generic.List<global::Vercel.EndPointAuthorization>? authorizations = null,
55+
bool disposeHttpClient = true) : this(
56+
httpClient,
57+
baseUri,
58+
authorizations,
59+
options: null,
60+
disposeHttpClient: disposeHttpClient)
61+
{
62+
}
63+
64+
/// <summary>
65+
/// Creates a new instance of the ApiSecurityClient with explicit options but no base URL override.
66+
/// Skips passing <c>baseUri</c> so the default base URL from the OpenAPI spec applies.
67+
/// </summary>
68+
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
69+
/// <param name="authorizations">The authorizations to use for the requests.</param>
70+
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
71+
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
72+
public ApiSecurityClient(
73+
global::System.Net.Http.HttpClient? httpClient,
74+
global::System.Collections.Generic.List<global::Vercel.EndPointAuthorization>? authorizations,
75+
global::Vercel.AutoSDKClientOptions? options,
76+
bool disposeHttpClient = true) : this(
77+
httpClient,
78+
baseUri: null,
79+
authorizations,
80+
options,
81+
disposeHttpClient: disposeHttpClient)
82+
{
83+
}
84+
85+
/// <summary>
86+
/// Creates a new instance of the ApiSecurityClient.
87+
/// If no httpClient is provided, a new one will be created.
88+
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
89+
/// </summary>
90+
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
91+
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
92+
/// <param name="authorizations">The authorizations to use for the requests.</param>
93+
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
94+
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
95+
public ApiSecurityClient(
96+
global::System.Net.Http.HttpClient? httpClient,
97+
global::System.Uri? baseUri,
98+
global::System.Collections.Generic.List<global::Vercel.EndPointAuthorization>? authorizations,
99+
global::Vercel.AutoSDKClientOptions? options,
100+
bool disposeHttpClient = true)
101+
{
102+
103+
HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
104+
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
105+
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Vercel.EndPointAuthorization>();
106+
Options = options ?? new global::Vercel.AutoSDKClientOptions();
107+
_disposeHttpClient = disposeHttpClient;
108+
109+
Initialized(HttpClient);
110+
}
111+
112+
/// <inheritdoc/>
113+
public void Dispose()
114+
{
115+
if (_disposeHttpClient)
116+
{
117+
HttpClient.Dispose();
118+
}
119+
}
120+
121+
partial void Initialized(
122+
global::System.Net.Http.HttpClient client);
123+
partial void PrepareArguments(
124+
global::System.Net.Http.HttpClient client);
125+
partial void PrepareRequest(
126+
global::System.Net.Http.HttpClient client,
127+
global::System.Net.Http.HttpRequestMessage request);
128+
partial void ProcessResponse(
129+
global::System.Net.Http.HttpClient client,
130+
global::System.Net.Http.HttpResponseMessage response);
131+
partial void ProcessResponseContent(
132+
global::System.Net.Http.HttpClient client,
133+
global::System.Net.Http.HttpResponseMessage response,
134+
ref string content);
135+
}
136+
}

0 commit comments

Comments
 (0)