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
63 changes: 63 additions & 0 deletions src/libs/Vercel/Generated/Vercel.IVercelClient.CreateApiKeys.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#nullable enable

namespace Vercel
{
public partial interface IVercelClient
{
/// <summary>
///
/// </summary>
/// <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.CreateApiKeysResponse> CreateApiKeysAsync(

global::Vercel.CreateApiKeysRequest request,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
///
/// </summary>
/// <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.CreateApiKeysResponse>> CreateApiKeysAsResponseAsync(

global::Vercel.CreateApiKeysRequest request,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
///
/// </summary>
/// <param name="purpose">
/// The API key's purpose, which restricts how it can be used.
/// </param>
/// <param name="projectId">
/// An optional project to restrict the API key to.<br/>
/// Example: prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB
/// </param>
/// <param name="name">
/// An optional name for the API key.<br/>
/// Example: API Key for App 123
/// </param>
/// <param name="expiresAt">
/// The API key's expiration, expressed as a UNIX timestamp in milliseconds.
/// </param>
/// <param name="aiGatewayQuota">
/// Optional AI Gateway quota configuration for the API key.
/// </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.CreateApiKeysResponse> CreateApiKeysAsync(
string purpose,
string? projectId = default,
string? name = default,
double? expiresAt = default,
global::Vercel.CreateApiKeysRequestAiGatewayQuota? aiGatewayQuota = 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 CreateApiKeysRequestAiGatewayQuotaRefreshPeriodJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Vercel.CreateApiKeysRequestAiGatewayQuotaRefreshPeriod>
{
/// <inheritdoc />
public override global::Vercel.CreateApiKeysRequestAiGatewayQuotaRefreshPeriod 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.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

writer.WriteStringValue(global::Vercel.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodExtensions.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 CreateApiKeysRequestAiGatewayQuotaRefreshPeriodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Vercel.CreateApiKeysRequestAiGatewayQuotaRefreshPeriod?>
{
/// <inheritdoc />
public override global::Vercel.CreateApiKeysRequestAiGatewayQuotaRefreshPeriod? 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.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodExtensions.ToEnum(stringValue);
}

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

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Vercel.CreateApiKeysRequestAiGatewayQuotaRefreshPeriod? 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.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ namespace Vercel
typeof(global::Vercel.JsonConverters.CreateLogDrainRequestSourceNullableJsonConverter),
typeof(global::Vercel.JsonConverters.CreateLogDrainRequestEnvironmentJsonConverter),
typeof(global::Vercel.JsonConverters.CreateLogDrainRequestEnvironmentNullableJsonConverter),
typeof(global::Vercel.JsonConverters.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodJsonConverter),
typeof(global::Vercel.JsonConverters.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodNullableJsonConverter),
typeof(global::Vercel.JsonConverters.CreateInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationItemsRequestItemCategoryJsonConverter),
typeof(global::Vercel.JsonConverters.CreateInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationItemsRequestItemCategoryNullableJsonConverter),
typeof(global::Vercel.JsonConverters.UpdateInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationItemsByItemIdRequestCategoryJsonConverter),
Expand Down Expand Up @@ -7499,6 +7501,9 @@ namespace Vercel
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.SegmentMetadataCreator))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.FlagsSdkKeyWithSecrets))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.FlagsSdkKeyWithSecretsType), TypeInfoPropertyName = "FlagsSdkKeyWithSecretsType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.APIKey))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.APIKeyQuota))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<double>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ACLAction), TypeInfoPropertyName = "ACLAction2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.NamedSandbox))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.NamedSandboxStatus), TypeInfoPropertyName = "NamedSandboxStatus2")]
Expand Down Expand Up @@ -7723,9 +7728,6 @@ namespace Vercel
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Vercel.UpdateAccessGroupRequestProject>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateAccessGroupRequestProject))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateAccessGroupRequestProjectRole), TypeInfoPropertyName = "UpdateAccessGroupRequestProjectRole2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateAccessGroupRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Vercel.CreateAccessGroupRequestProject>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateAccessGroupRequestProject))]
internal sealed partial class SourceGenerationContextChunk000 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ namespace Vercel
typeof(global::Vercel.JsonConverters.CreateLogDrainRequestSourceNullableJsonConverter),
typeof(global::Vercel.JsonConverters.CreateLogDrainRequestEnvironmentJsonConverter),
typeof(global::Vercel.JsonConverters.CreateLogDrainRequestEnvironmentNullableJsonConverter),
typeof(global::Vercel.JsonConverters.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodJsonConverter),
typeof(global::Vercel.JsonConverters.CreateApiKeysRequestAiGatewayQuotaRefreshPeriodNullableJsonConverter),
typeof(global::Vercel.JsonConverters.CreateInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationItemsRequestItemCategoryJsonConverter),
typeof(global::Vercel.JsonConverters.CreateInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationItemsRequestItemCategoryNullableJsonConverter),
typeof(global::Vercel.JsonConverters.UpdateInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationItemsByItemIdRequestCategoryJsonConverter),
Expand Down Expand Up @@ -7226,6 +7228,9 @@ namespace Vercel
typeof(global::Vercel.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant1Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant2Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant3Item>>),
typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter),
})]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateAccessGroupRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Vercel.CreateAccessGroupRequestProject>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateAccessGroupRequestProject))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateAccessGroupRequestProjectRole), TypeInfoPropertyName = "CreateAccessGroupRequestProjectRole2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateAccessGroupProjectRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateAccessGroupProjectRequestRole), TypeInfoPropertyName = "CreateAccessGroupProjectRequestRole2")]
Expand Down Expand Up @@ -7723,9 +7728,6 @@ namespace Vercel
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.AnyOf<global::Vercel.UpdateFlagSegmentRequestDataRuleOutcomeVariant1, global::Vercel.UpdateFlagSegmentRequestDataRuleOutcomeVariant2>), TypeInfoPropertyName = "AnyOfUpdateFlagSegmentRequestDataRuleOutcomeVariant1UpdateFlagSegmentRequestDataRuleOutcomeVariant22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateFlagSegmentRequestDataRuleOutcomeVariant1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateFlagSegmentRequestDataRuleOutcomeVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateFlagSegmentRequestDataRuleOutcomeVariant2Base))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IList<global::Vercel.UpdateFlagSegmentRequestDataIncludeItem>>>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IList<global::Vercel.UpdateFlagSegmentRequestDataIncludeItem>>))]
internal sealed partial class SourceGenerationContextChunk001 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
Expand Down
Loading