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
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#nullable enable

namespace Vercel
{
public partial interface ISecurityClient
{
/// <summary>
/// Create conditional firewall bypass<br/>
/// Create a conditional firewall bypass rule for a project domain.
/// </summary>
/// <param name="projectId"></param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <param name="request"></param>
/// <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>
global::System.Threading.Tasks.Task<global::Vercel.CreateConditionalBypassResponse> CreateConditionalBypassAsync(
string projectId,

global::Vercel.CreateConditionalBypassRequest request,
string? slug = default,
string? teamId = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create conditional firewall bypass<br/>
/// Create a conditional firewall bypass rule for a project domain.
/// </summary>
/// <param name="projectId"></param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <param name="request"></param>
/// <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>
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.CreateConditionalBypassResponse>> CreateConditionalBypassAsResponseAsync(
string projectId,

global::Vercel.CreateConditionalBypassRequest request,
string? slug = default,
string? teamId = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create conditional firewall bypass<br/>
/// Create a conditional firewall bypass rule for a project domain.
/// </summary>
/// <param name="projectId"></param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <param name="domain"></param>
/// <param name="conditionGroup"></param>
/// <param name="note"></param>
/// <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>
global::System.Threading.Tasks.Task<global::Vercel.CreateConditionalBypassResponse> CreateConditionalBypassAsync(
string projectId,
string domain,
global::System.Collections.Generic.IList<global::Vercel.CreateConditionalBypassRequestConditionGroupItem> conditionGroup,
string? slug = default,
string? teamId = default,
string? note = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#nullable enable

namespace Vercel
{
public partial interface ISecurityClient
{
/// <summary>
/// Delete conditional firewall bypass<br/>
/// Delete a conditional firewall bypass rule from a project domain.
/// </summary>
/// <param name="projectId"></param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </param>
/// <param name="domain"></param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <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>
global::System.Threading.Tasks.Task<global::Vercel.DeleteConditionalBypassResponse> DeleteConditionalBypassAsync(
string projectId,
string domain,
string? slug = default,
string? teamId = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete conditional firewall bypass<br/>
/// Delete a conditional firewall bypass rule from a project domain.
/// </summary>
/// <param name="projectId"></param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </param>
/// <param name="domain"></param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <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>
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.DeleteConditionalBypassResponse>> DeleteConditionalBypassAsResponseAsync(
string projectId,
string domain,
string? slug = default,
string? teamId = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Vercel
{
public partial interface ISecurityClient
{
/// <summary>
/// Get conditional firewall bypasses<br/>
/// Retrieve conditional firewall bypass rules for a project.
/// </summary>
/// <param name="projectId"></param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </param>
/// <param name="domain"></param>
/// <param name="limit"></param>
/// <param name="offset"></param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <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>
global::System.Threading.Tasks.Task<global::Vercel.OneOf<global::Vercel.GetConditionalBypassResponseVariant1, global::Vercel.GetConditionalBypassResponseVariant2>> GetConditionalBypassAsync(
string projectId,
string? slug = default,
string? domain = default,
double? limit = default,
string? offset = default,
string? teamId = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get conditional firewall bypasses<br/>
/// Retrieve conditional firewall bypass rules for a project.
/// </summary>
/// <param name="projectId"></param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </param>
/// <param name="domain"></param>
/// <param name="limit"></param>
/// <param name="offset"></param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <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>
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.OneOf<global::Vercel.GetConditionalBypassResponseVariant1, global::Vercel.GetConditionalBypassResponseVariant2>>> GetConditionalBypassAsResponseAsync(
string projectId,
string? slug = default,
string? domain = default,
double? limit = default,
string? offset = default,
string? teamId = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Vercel.JsonConverters
{
/// <inheritdoc />
public sealed class CreateConditionalBypassRequestConditionGroupItemConditionVariant1KeyJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key>
{
/// <inheritdoc />
public override global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1KeyExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1KeyExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Vercel.JsonConverters
{
/// <inheritdoc />
public sealed class CreateConditionalBypassRequestConditionGroupItemConditionVariant1KeyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key?>
{
/// <inheritdoc />
public override global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1KeyExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Key? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1KeyExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Vercel.JsonConverters
{
/// <inheritdoc />
public sealed class CreateConditionalBypassRequestConditionGroupItemConditionVariant1OpJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Op>
{
/// <inheritdoc />
public override global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Op Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1OpExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Op)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Op);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1Op value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Vercel.CreateConditionalBypassRequestConditionGroupItemConditionVariant1OpExtensions.ToValueString(value));
}
}
}
Loading
Loading