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,62 @@
#nullable enable

namespace Fal
{
public partial interface IServerlessClient
{
/// <summary>
/// List Applications<br/>
/// Lists the serverless applications owned by the authenticated account, with<br/>
/// the configuration needed for follow-up calls.<br/>
/// Each application includes its canonical `endpoint_id` ('&lt;owner&gt;/&lt;name&gt;'),<br/>
/// which is the identifier accepted by the analytics, requests, logs, and<br/>
/// queue endpoints — use this endpoint to discover identifiers instead of<br/>
/// asking users to paste them.<br/>
/// **Authentication:** Required via API key. Only applications owned by the<br/>
/// authenticated account are returned.
/// </summary>
/// <param name="environment">
/// Environment to list apps from. Defaults to the main environment.<br/>
/// Example: main
/// </param>
/// <param name="search">
/// Case-insensitive substring match on the app name<br/>
/// Example: image
/// </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::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.ServerlessListAppsResponse> ServerlessListAppsAsync(
string? environment = default,
string? search = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List Applications<br/>
/// Lists the serverless applications owned by the authenticated account, with<br/>
/// the configuration needed for follow-up calls.<br/>
/// Each application includes its canonical `endpoint_id` ('&lt;owner&gt;/&lt;name&gt;'),<br/>
/// which is the identifier accepted by the analytics, requests, logs, and<br/>
/// queue endpoints — use this endpoint to discover identifiers instead of<br/>
/// asking users to paste them.<br/>
/// **Authentication:** Required via API key. Only applications owned by the<br/>
/// authenticated account are returned.
/// </summary>
/// <param name="environment">
/// Environment to list apps from. Defaults to the main environment.<br/>
/// Example: main
/// </param>
/// <param name="search">
/// Case-insensitive substring match on the app name<br/>
/// Example: image
/// </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::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.AutoSDKHttpResponse<global::Fal.ServerlessListAppsResponse>> ServerlessListAppsAsResponseAsync(
string? environment = default,
string? search = default,
global::Fal.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 Fal.JsonConverters
{
/// <inheritdoc />
public sealed class ServerlessListAppsResponseAppAuthModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.ServerlessListAppsResponseAppAuthMode>
{
/// <inheritdoc />
public override global::Fal.ServerlessListAppsResponseAppAuthMode 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::Fal.ServerlessListAppsResponseAppAuthModeExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

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

namespace Fal.JsonConverters
{
/// <inheritdoc />
public sealed class ServerlessListAppsResponseAppAuthModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.ServerlessListAppsResponseAppAuthMode?>
{
/// <inheritdoc />
public override global::Fal.ServerlessListAppsResponseAppAuthMode? 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::Fal.ServerlessListAppsResponseAppAuthModeExtensions.ToEnum(stringValue);
}

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

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Fal.ServerlessListAppsResponseAppAuthMode? 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::Fal.ServerlessListAppsResponseAppAuthModeExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Fal.JsonConverters
{
/// <inheritdoc />
public sealed class ServerlessListAppsResponseErrorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.ServerlessListAppsResponseErrorType>
{
/// <inheritdoc />
public override global::Fal.ServerlessListAppsResponseErrorType 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::Fal.ServerlessListAppsResponseErrorTypeExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

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

namespace Fal.JsonConverters
{
/// <inheritdoc />
public sealed class ServerlessListAppsResponseErrorType2JsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.ServerlessListAppsResponseErrorType2>
{
/// <inheritdoc />
public override global::Fal.ServerlessListAppsResponseErrorType2 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::Fal.ServerlessListAppsResponseErrorType2Extensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

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

namespace Fal.JsonConverters
{
/// <inheritdoc />
public sealed class ServerlessListAppsResponseErrorType2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.ServerlessListAppsResponseErrorType2?>
{
/// <inheritdoc />
public override global::Fal.ServerlessListAppsResponseErrorType2? 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::Fal.ServerlessListAppsResponseErrorType2Extensions.ToEnum(stringValue);
}

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

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Fal.ServerlessListAppsResponseErrorType2? 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::Fal.ServerlessListAppsResponseErrorType2Extensions.ToValueString(value.Value));
}
}
}
}
Loading