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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrain.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,38 @@ partial void ProcessGetDrainResponseContent(
h => h.Key,
h => h.Value));
}
//
if ((int)__response.StatusCode == 503)
{
string? __content_503 = null;
global::System.Exception? __exception_503 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
else
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
{
__exception_503 = __ex;
}


throw global::Vercel.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_503,
responseBody: __content_503,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}

if (__effectiveReadResponseAsString)
{
Expand Down
32 changes: 32 additions & 0 deletions src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrains.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,38 @@ partial void ProcessGetDrainsResponseContent(
h => h.Key,
h => h.Value));
}
//
if ((int)__response.StatusCode == 503)
{
string? __content_503 = null;
global::System.Exception? __exception_503 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
else
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
{
__exception_503 = __ex;
}


throw global::Vercel.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_503,
responseBody: __content_503,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}

if (__effectiveReadResponseAsString)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public sealed partial class GenerateFirewallRuleResponseRuleConditionGroupItemCo
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("neg")]
public bool? Neg { get; set; }
[global::System.Text.Json.Serialization.JsonRequired]
public required bool Neg { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -50,19 +51,19 @@ public sealed partial class GenerateFirewallRuleResponseRuleConditionGroupItemCo
/// <summary>
/// Initializes a new instance of the <see cref="GenerateFirewallRuleResponseRuleConditionGroupItemCondition" /> class.
/// </summary>
/// <param name="neg"></param>
/// <param name="op"></param>
/// <param name="type"></param>
/// <param name="key"></param>
/// <param name="neg"></param>
/// <param name="value"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public GenerateFirewallRuleResponseRuleConditionGroupItemCondition(
bool neg,
string op,
string type,
string? key,
bool? neg,
global::Vercel.OneOf<string, double?, global::System.Collections.Generic.IList<string>>? value)
{
this.Key = key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,10 @@ public enum ListEventTypeName
/// <summary>
///
/// </summary>
OrganizationSsoDeleted,
/// <summary>
///
/// </summary>
OrganizationSsoEnforced,
/// <summary>
///
Expand Down Expand Up @@ -3310,6 +3314,7 @@ public static string ToValueString(this ListEventTypeName value)
ListEventTypeName.OrganizationEmuUpdated => "organization-emu-updated",
ListEventTypeName.OrganizationNameUpdate => "organization-name-update",
ListEventTypeName.OrganizationSlugUpdate => "organization-slug-update",
ListEventTypeName.OrganizationSsoDeleted => "organization-sso-deleted",
ListEventTypeName.OrganizationSsoEnforced => "organization-sso-enforced",
ListEventTypeName.OrganizationTeamAdd => "organization-team-add",
ListEventTypeName.OrganizationTeamCreate => "organization-team-create",
Expand Down Expand Up @@ -4049,6 +4054,7 @@ public static string ToValueString(this ListEventTypeName value)
"organization-emu-updated" => ListEventTypeName.OrganizationEmuUpdated,
"organization-name-update" => ListEventTypeName.OrganizationNameUpdate,
"organization-slug-update" => ListEventTypeName.OrganizationSlugUpdate,
"organization-sso-deleted" => ListEventTypeName.OrganizationSsoDeleted,
"organization-sso-enforced" => ListEventTypeName.OrganizationSsoEnforced,
"organization-team-add" => ListEventTypeName.OrganizationTeamAdd,
"organization-team-create" => ListEventTypeName.OrganizationTeamCreate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,10 @@ public enum ListEventTypeReplacedByItem
/// <summary>
///
/// </summary>
OrganizationSsoDeleted,
/// <summary>
///
/// </summary>
OrganizationSsoEnforced,
/// <summary>
///
Expand Down Expand Up @@ -3309,6 +3313,7 @@ public static string ToValueString(this ListEventTypeReplacedByItem value)
ListEventTypeReplacedByItem.OrganizationEmuUpdated => "organization-emu-updated",
ListEventTypeReplacedByItem.OrganizationNameUpdate => "organization-name-update",
ListEventTypeReplacedByItem.OrganizationSlugUpdate => "organization-slug-update",
ListEventTypeReplacedByItem.OrganizationSsoDeleted => "organization-sso-deleted",
ListEventTypeReplacedByItem.OrganizationSsoEnforced => "organization-sso-enforced",
ListEventTypeReplacedByItem.OrganizationTeamAdd => "organization-team-add",
ListEventTypeReplacedByItem.OrganizationTeamCreate => "organization-team-create",
Expand Down Expand Up @@ -4048,6 +4053,7 @@ public static string ToValueString(this ListEventTypeReplacedByItem value)
"organization-emu-updated" => ListEventTypeReplacedByItem.OrganizationEmuUpdated,
"organization-name-update" => ListEventTypeReplacedByItem.OrganizationNameUpdate,
"organization-slug-update" => ListEventTypeReplacedByItem.OrganizationSlugUpdate,
"organization-sso-deleted" => ListEventTypeReplacedByItem.OrganizationSsoDeleted,
"organization-sso-enforced" => ListEventTypeReplacedByItem.OrganizationSsoEnforced,
"organization-team-add" => ListEventTypeReplacedByItem.OrganizationTeamAdd,
"organization-team-create" => ListEventTypeReplacedByItem.OrganizationTeamCreate,
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Vercel/Generated/Vercel.Models.Network.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed partial class Network
public required string AwsAccountId { get; set; }

/// <summary>
/// The IDs of the AWS Availability Zones in which the network exists, if specified during creation.
/// The IDs of the AWS Availability Zones in which the network exists.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("awsAvailabilityZoneIds")]
public global::System.Collections.Generic.IList<string>? AwsAvailabilityZoneIds { get; set; }
Expand Down Expand Up @@ -141,7 +141,7 @@ public sealed partial class Network
/// The unique identifier of the Team that owns the Network.
/// </param>
/// <param name="awsAvailabilityZoneIds">
/// The IDs of the AWS Availability Zones in which the network exists, if specified during creation.
/// The IDs of the AWS Availability Zones in which the network exists.
/// </param>
/// <param name="egressIpAddresses"></param>
/// <param name="hostedZones">
Expand Down
6 changes: 6 additions & 0 deletions src/libs/Vercel/Generated/Vercel.Models.UserEventType.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,10 @@ public enum UserEventType
/// <summary>
///
/// </summary>
OrganizationSsoDeleted,
/// <summary>
///
/// </summary>
OrganizationSsoEnforced,
/// <summary>
///
Expand Down Expand Up @@ -3310,6 +3314,7 @@ public static string ToValueString(this UserEventType value)
UserEventType.OrganizationEmuUpdated => "organization-emu-updated",
UserEventType.OrganizationNameUpdate => "organization-name-update",
UserEventType.OrganizationSlugUpdate => "organization-slug-update",
UserEventType.OrganizationSsoDeleted => "organization-sso-deleted",
UserEventType.OrganizationSsoEnforced => "organization-sso-enforced",
UserEventType.OrganizationTeamAdd => "organization-team-add",
UserEventType.OrganizationTeamCreate => "organization-team-create",
Expand Down Expand Up @@ -4049,6 +4054,7 @@ public static string ToValueString(this UserEventType value)
"organization-emu-updated" => UserEventType.OrganizationEmuUpdated,
"organization-name-update" => UserEventType.OrganizationNameUpdate,
"organization-slug-update" => UserEventType.OrganizationSlugUpdate,
"organization-sso-deleted" => UserEventType.OrganizationSsoDeleted,
"organization-sso-enforced" => UserEventType.OrganizationSsoEnforced,
"organization-team-add" => UserEventType.OrganizationTeamAdd,
"organization-team-create" => UserEventType.OrganizationTeamCreate,
Expand Down
12 changes: 11 additions & 1 deletion src/libs/Vercel/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28818,6 +28818,9 @@
},
"410": {
"description": ""
},
"503": {
"description": "The delivery stats could not be loaded. Retry, or omit `includeDeliveryStats`."
}
},
"parameters": [
Expand Down Expand Up @@ -28966,6 +28969,9 @@
},
"410": {
"description": ""
},
"503": {
"description": "The delivery stats could not be loaded. Retry, or omit `includeDeliveryStats`."
}
},
"parameters": [
Expand Down Expand Up @@ -78652,6 +78658,7 @@
}
},
"required": [
"neg",
"op",
"type"
],
Expand Down Expand Up @@ -100513,7 +100520,7 @@
"type": "string"
},
"type": "array",
"description": "The IDs of the AWS Availability Zones in which the network exists, if specified during creation."
"description": "The IDs of the AWS Availability Zones in which the network exists."
},
"awsRegion": {
"type": "string",
Expand Down Expand Up @@ -106123,6 +106130,7 @@
"organization-emu-updated",
"organization-name-update",
"organization-slug-update",
"organization-sso-deleted",
"organization-sso-enforced",
"organization-team-add",
"organization-team-create",
Expand Down Expand Up @@ -107072,6 +107080,7 @@
"organization-emu-updated",
"organization-name-update",
"organization-slug-update",
"organization-sso-deleted",
"organization-sso-enforced",
"organization-team-add",
"organization-team-create",
Expand Down Expand Up @@ -107809,6 +107818,7 @@
"organization-emu-updated",
"organization-name-update",
"organization-slug-update",
"organization-sso-deleted",
"organization-sso-enforced",
"organization-team-add",
"organization-team-create",
Expand Down
Loading