Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions src/libs/Vercel/Generated/Vercel.DrainsClient.CreateDrain.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ partial void ProcessCreateDrainResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared90bb7952c1db9133> CreateDrainAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKSharedefd8b1af20ec12e4> CreateDrainAsync(

global::Vercel.CreateDrainRequest request,
string? teamId = default,
Expand Down Expand Up @@ -92,7 +92,7 @@ partial void ProcessCreateDrainResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared90bb7952c1db9133>> CreateDrainAsResponseAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedefd8b1af20ec12e4>> CreateDrainAsResponseAsync(

global::Vercel.CreateDrainRequest request,
string? teamId = default,
Expand Down Expand Up @@ -581,9 +581,9 @@ partial void ProcessCreateDrainResponseContent(
{
__response.EnsureSuccessStatusCode();

var __value = global::Vercel.AutoSDKShared90bb7952c1db9133.FromJson(__content, JsonSerializerContext) ??
var __value = global::Vercel.AutoSDKSharedefd8b1af20ec12e4.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared90bb7952c1db9133>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedefd8b1af20ec12e4>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down Expand Up @@ -613,9 +613,9 @@ partial void ProcessCreateDrainResponseContent(
#endif
).ConfigureAwait(false);

var __value = await global::Vercel.AutoSDKShared90bb7952c1db9133.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
var __value = await global::Vercel.AutoSDKSharedefd8b1af20ec12e4.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared90bb7952c1db9133>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedefd8b1af20ec12e4>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down Expand Up @@ -677,7 +677,7 @@ partial void ProcessCreateDrainResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared90bb7952c1db9133> CreateDrainAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKSharedefd8b1af20ec12e4> CreateDrainAsync(
string name,
global::Vercel.CreateDrainRequestProjects projects,
global::System.Collections.Generic.Dictionary<string, global::Vercel.CreateDrainRequestSchemas2> schemas,
Expand Down
28 changes: 22 additions & 6 deletions src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrain.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ public partial class DrainsClient
partial void PrepareGetDrainArguments(
global::System.Net.Http.HttpClient httpClient,
ref string id,
ref bool? includeDeliveryStats,
ref string? teamId,
ref string? slug);
partial void PrepareGetDrainRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string id,
bool? includeDeliveryStats,
string? teamId,
string? slug);
partial void ProcessGetDrainResponse(
Expand All @@ -50,6 +52,10 @@ partial void ProcessGetDrainResponseContent(
/// Get the information for a specific Drain by passing the drain id in the URL.
/// </summary>
/// <param name="id"></param>
/// <param name="includeDeliveryStats">
/// Include `deliveryStats` with the delivery health of the drain over the last 24 hours.<br/>
/// Default Value: false
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -59,15 +65,17 @@ partial void ProcessGetDrainResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared90bb7952c1db9133> GetDrainAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared0695a89a4e02b217> GetDrainAsync(
string id,
bool? includeDeliveryStats = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await GetDrainAsResponseAsync(
id: id,
includeDeliveryStats: includeDeliveryStats,
teamId: teamId,
slug: slug,
requestOptions: requestOptions,
Expand All @@ -81,6 +89,10 @@ partial void ProcessGetDrainResponseContent(
/// Get the information for a specific Drain by passing the drain id in the URL.
/// </summary>
/// <param name="id"></param>
/// <param name="includeDeliveryStats">
/// Include `deliveryStats` with the delivery health of the drain over the last 24 hours.<br/>
/// Default Value: false
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -90,8 +102,9 @@ partial void ProcessGetDrainResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared90bb7952c1db9133>> GetDrainAsResponseAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared0695a89a4e02b217>> GetDrainAsResponseAsync(
string id,
bool? includeDeliveryStats = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -102,6 +115,7 @@ partial void ProcessGetDrainResponseContent(
PrepareGetDrainArguments(
httpClient: HttpClient,
id: ref id,
includeDeliveryStats: ref includeDeliveryStats,
teamId: ref teamId,
slug: ref slug);

Expand Down Expand Up @@ -132,6 +146,7 @@ partial void ProcessGetDrainResponseContent(
path: $"/v1/drains/{id}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("includeDeliveryStats", includeDeliveryStats?.ToString().ToLowerInvariant())
.AddOptionalParameter("teamId", teamId)
.AddOptionalParameter("slug", slug)
;
Expand Down Expand Up @@ -176,6 +191,7 @@ partial void ProcessGetDrainResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
includeDeliveryStats: includeDeliveryStats,
teamId: teamId,
slug: slug);

Expand Down Expand Up @@ -538,9 +554,9 @@ partial void ProcessGetDrainResponseContent(
{
__response.EnsureSuccessStatusCode();

var __value = global::Vercel.AutoSDKShared90bb7952c1db9133.FromJson(__content, JsonSerializerContext) ??
var __value = global::Vercel.AutoSDKShared0695a89a4e02b217.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared90bb7952c1db9133>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared0695a89a4e02b217>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down Expand Up @@ -570,9 +586,9 @@ partial void ProcessGetDrainResponseContent(
#endif
).ConfigureAwait(false);

var __value = await global::Vercel.AutoSDKShared90bb7952c1db9133.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
var __value = await global::Vercel.AutoSDKShared0695a89a4e02b217.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared90bb7952c1db9133>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared0695a89a4e02b217>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down
28 changes: 22 additions & 6 deletions src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrains.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ partial void PrepareGetDrainsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? projectId,
ref bool? includeMetadata,
ref bool? includeDeliveryStats,
ref string? teamId,
ref string? slug);
partial void PrepareGetDrainsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? projectId,
bool? includeMetadata,
bool? includeDeliveryStats,
string? teamId,
string? slug);
partial void ProcessGetDrainsResponse(
Expand All @@ -55,6 +57,10 @@ partial void ProcessGetDrainsResponseContent(
/// <param name="includeMetadata">
/// Default Value: false
/// </param>
/// <param name="includeDeliveryStats">
/// Include `deliveryStats` with the delivery health of each drain over the last 24 hours.<br/>
/// Default Value: false
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -64,9 +70,10 @@ partial void ProcessGetDrainsResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKSharedb13a6bca2ca06cfe> GetDrainsAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKSharedcb80cddcfcfd675b> GetDrainsAsync(
string? projectId = default,
bool? includeMetadata = default,
bool? includeDeliveryStats = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -75,6 +82,7 @@ partial void ProcessGetDrainsResponseContent(
var __response = await GetDrainsAsResponseAsync(
projectId: projectId,
includeMetadata: includeMetadata,
includeDeliveryStats: includeDeliveryStats,
teamId: teamId,
slug: slug,
requestOptions: requestOptions,
Expand All @@ -91,6 +99,10 @@ partial void ProcessGetDrainsResponseContent(
/// <param name="includeMetadata">
/// Default Value: false
/// </param>
/// <param name="includeDeliveryStats">
/// Include `deliveryStats` with the delivery health of each drain over the last 24 hours.<br/>
/// Default Value: false
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -100,9 +112,10 @@ partial void ProcessGetDrainsResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedb13a6bca2ca06cfe>> GetDrainsAsResponseAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedcb80cddcfcfd675b>> GetDrainsAsResponseAsync(
string? projectId = default,
bool? includeMetadata = default,
bool? includeDeliveryStats = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -114,6 +127,7 @@ partial void ProcessGetDrainsResponseContent(
httpClient: HttpClient,
projectId: ref projectId,
includeMetadata: ref includeMetadata,
includeDeliveryStats: ref includeDeliveryStats,
teamId: ref teamId,
slug: ref slug);

Expand Down Expand Up @@ -146,6 +160,7 @@ partial void ProcessGetDrainsResponseContent(
__pathBuilder
.AddOptionalParameter("projectId", projectId)
.AddOptionalParameter("includeMetadata", includeMetadata?.ToString().ToLowerInvariant())
.AddOptionalParameter("includeDeliveryStats", includeDeliveryStats?.ToString().ToLowerInvariant())
.AddOptionalParameter("teamId", teamId)
.AddOptionalParameter("slug", slug)
;
Expand Down Expand Up @@ -191,6 +206,7 @@ partial void ProcessGetDrainsResponseContent(
httpRequestMessage: __httpRequest,
projectId: projectId,
includeMetadata: includeMetadata,
includeDeliveryStats: includeDeliveryStats,
teamId: teamId,
slug: slug);

Expand Down Expand Up @@ -553,9 +569,9 @@ partial void ProcessGetDrainsResponseContent(
{
__response.EnsureSuccessStatusCode();

var __value = global::Vercel.AutoSDKSharedb13a6bca2ca06cfe.FromJson(__content, JsonSerializerContext) ??
var __value = global::Vercel.AutoSDKSharedcb80cddcfcfd675b.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedb13a6bca2ca06cfe>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedcb80cddcfcfd675b>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down Expand Up @@ -585,9 +601,9 @@ partial void ProcessGetDrainsResponseContent(
#endif
).ConfigureAwait(false);

var __value = await global::Vercel.AutoSDKSharedb13a6bca2ca06cfe.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
var __value = await global::Vercel.AutoSDKSharedcb80cddcfcfd675b.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedb13a6bca2ca06cfe>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharedcb80cddcfcfd675b>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down
Loading
Loading