diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.g.cs b/src/libs/Vercel/Generated/Vercel.ISandboxesClient.g.cs deleted file mode 100644 index ec864669a..000000000 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface ISandboxesClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Vercel.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSandboxes.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxes.g.cs similarity index 80% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSandboxes.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxes.g.cs index c383bbeff..b56101890 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSandboxes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxes.g.cs @@ -2,18 +2,11 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Create a named sandbox
- /// Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. + /// ///
- /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -21,20 +14,11 @@ public partial interface ISandboxesClient global::System.Threading.Tasks.Task CreateSandboxesAsync( global::Vercel.CreateSandboxesRequest request, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create a named sandbox
- /// Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. + /// ///
- /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -42,20 +26,11 @@ public partial interface ISandboxesClient global::System.Threading.Tasks.Task> CreateSandboxesAsResponseAsync( global::Vercel.CreateSandboxesRequest request, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create a named sandbox
- /// Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. + /// ///
- /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// /// Resources to define the VM @@ -108,8 +83,6 @@ public partial interface ISandboxesClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateSandboxesAsync( - string? teamId = default, - string? slug = default, global::Vercel.OneOf? networkPolicy = default, global::Vercel.CreateSandboxesRequestResources? resources = default, global::Vercel.CreateSandboxesRequestRuntime? runtime = default, diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.RunSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmd.g.cs similarity index 63% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.RunSessionCommand.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmd.g.cs index 714cdae1d..907c65b8e 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.RunSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmd.g.cs @@ -2,74 +2,49 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RunSessionCommandAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdAsync( string sessionId, - global::Vercel.RunSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> RunSessionCommandAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdCmdAsResponseAsync( string sessionId, - global::Vercel.RunSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The executable or shell command to run. This is the program name without arguments.
/// Example: npm @@ -98,11 +73,9 @@ public partial interface ISandboxesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RunSessionCommandAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdAsync( string sessionId, string command, - string? teamId = default, - string? slug = default, global::System.Collections.Generic.IList? args = default, string? cwd = default, global::System.Collections.Generic.Dictionary? env = default, diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.RunSessionCommandAsStream.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmdAsStream.g.cs similarity index 69% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.RunSessionCommandAsStream.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmdAsStream.g.cs index be3634b25..a660f48ec 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.RunSessionCommandAsStream.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmdAsStream.g.cs @@ -2,48 +2,32 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Collections.Generic.IAsyncEnumerable RunSessionCommandAsStreamAsync( + global::System.Collections.Generic.IAsyncEnumerable CreateSandboxesSessionsBySessionIdCmdAsStreamAsync( string sessionId, - global::Vercel.RunSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The executable or shell command to run. This is the program name without arguments.
/// Example: npm @@ -72,11 +56,9 @@ public partial interface ISandboxesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Collections.Generic.IAsyncEnumerable RunSessionCommandAsStreamAsync( + global::System.Collections.Generic.IAsyncEnumerable CreateSandboxesSessionsBySessionIdCmdAsStreamAsync( string sessionId, string command, - string? teamId = default, - string? slug = default, global::System.Collections.Generic.IList? args = default, string? cwd = default, global::System.Collections.Generic.Dictionary? env = default, diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.KillSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmdByCmdIdKill.g.cs similarity index 60% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.KillSessionCommand.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmdByCmdIdKill.g.cs index f23e1ca96..e39a0549c 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.KillSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdCmdByCmdIdKill.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Kill a command
- /// Sends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed. + /// ///
/// /// The unique identifier of the command to terminate.
@@ -16,28 +15,19 @@ public partial interface ISandboxesClient /// The unique identifier of the session containing the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task KillSessionCommandAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync( string cmdId, string sessionId, - global::Vercel.KillSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Kill a command
- /// Sends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed. + /// ///
/// /// The unique identifier of the command to terminate.
@@ -47,28 +37,19 @@ public partial interface ISandboxesClient /// The unique identifier of the session containing the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> KillSessionCommandAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsResponseAsync( string cmdId, string sessionId, - global::Vercel.KillSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Kill a command
- /// Sends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed. + /// ///
/// /// The unique identifier of the command to terminate.
@@ -78,12 +59,6 @@ public partial interface ISandboxesClient /// The unique identifier of the session containing the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The POSIX signal number to send to the process. Common values: 15 (SIGTERM) for graceful termination, 9 (SIGKILL) for forced termination.
/// Example: 15 @@ -91,12 +66,10 @@ public partial interface ISandboxesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task KillSessionCommandAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync( string cmdId, string sessionId, double signal, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ExtendSessionTimeout.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdExtendTimeout.g.cs similarity index 56% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.ExtendSessionTimeout.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdExtendTimeout.g.cs index 2e0e386f1..c3448cfb6 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ExtendSessionTimeout.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdExtendTimeout.g.cs @@ -2,74 +2,49 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Extend session timeout
- /// Extends the maximum execution time of a running session. The session must be active and able to accept commands. The total timeout cannot exceed the maximum allowed limit for your account. + /// ///
/// /// The unique identifier of the session to extend the timeout for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ExtendSessionTimeoutAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdExtendTimeoutAsync( string sessionId, - global::Vercel.ExtendSessionTimeoutRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Extend session timeout
- /// Extends the maximum execution time of a running session. The session must be active and able to accept commands. The total timeout cannot exceed the maximum allowed limit for your account. + /// ///
/// /// The unique identifier of the session to extend the timeout for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ExtendSessionTimeoutAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdExtendTimeoutAsResponseAsync( string sessionId, - global::Vercel.ExtendSessionTimeoutRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Extend session timeout
- /// Extends the maximum execution time of a running session. The session must be active and able to accept commands. The total timeout cannot exceed the maximum allowed limit for your account. + /// ///
/// /// The unique identifier of the session to extend the timeout for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The amount of time in milliseconds to add to the current timeout. Must be at least 1000ms (1 second).
/// Example: 300000 @@ -77,11 +52,9 @@ public partial interface ISandboxesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ExtendSessionTimeoutAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdExtendTimeoutAsync( string sessionId, double duration, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSessionDirectory.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsMkdir.g.cs similarity index 63% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSessionDirectory.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsMkdir.g.cs index f4b8edadb..d62525c42 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSessionDirectory.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsMkdir.g.cs @@ -2,74 +2,49 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Create a directory
- /// Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`). + /// ///
/// /// The unique identifier of the session to create the directory in.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateSessionDirectoryAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsMkdirAsync( string sessionId, - global::Vercel.CreateSessionDirectoryRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create a directory
- /// Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`). + /// ///
/// /// The unique identifier of the session to create the directory in.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateSessionDirectoryAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdFsMkdirAsResponseAsync( string sessionId, - global::Vercel.CreateSessionDirectoryRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create a directory
- /// Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`). + /// ///
/// /// The unique identifier of the session to create the directory in.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The base directory for resolving relative paths. If not specified, paths are resolved from the sandbox home directory.
/// Example: /home/vercel-sandbox @@ -85,11 +60,9 @@ public partial interface ISandboxesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateSessionDirectoryAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsMkdirAsync( string sessionId, string path, - string? teamId = default, - string? slug = default, string? cwd = default, bool? recursive = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ReadSessionFile.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsRead.g.cs similarity index 60% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.ReadSessionFile.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsRead.g.cs index 6f3f30006..7bad6ee03 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ReadSessionFile.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsRead.g.cs @@ -2,100 +2,66 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ReadSessionFileAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsReadAsync( string sessionId, - global::Vercel.ReadSessionFileRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ReadSessionFileAsStreamAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsReadAsStreamAsync( string sessionId, - global::Vercel.ReadSessionFileRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ReadSessionFileAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdFsReadAsResponseAsync( string sessionId, - global::Vercel.ReadSessionFileRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The base directory for resolving relative paths. If not specified, paths are resolved from the sandbox home directory.
/// Example: /home/vercel-sandbox @@ -107,11 +73,9 @@ public partial interface ISandboxesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ReadSessionFileAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsReadAsync( string sessionId, string path, - string? teamId = default, - string? slug = default, string? cwd = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.WriteSessionFiles.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsWrite.g.cs similarity index 60% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.WriteSessionFiles.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsWrite.g.cs index 99096de7c..87be14b6d 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.WriteSessionFiles.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdFsWrite.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Write files
- /// Uploads and extracts files to a session's filesystem. Files must be uploaded as a gzipped tarball (`.tar.gz`) with the `Content-Type` header set to `application/gzip`. The tarball contents are extracted to the session's working directory, or to a custom directory specified via the `x-cwd` header. + /// ///
/// /// The target directory where the tarball contents will be extracted. If not specified, files are extracted to the sandbox home directory.
@@ -16,25 +15,16 @@ public partial interface ISandboxesClient /// The unique identifier of the session to write files to.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task WriteSessionFilesAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsWriteAsync( string sessionId, string? x_xCwd_ = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Write files
- /// Uploads and extracts files to a session's filesystem. Files must be uploaded as a gzipped tarball (`.tar.gz`) with the `Content-Type` header set to `application/gzip`. The tarball contents are extracted to the session's working directory, or to a custom directory specified via the `x-cwd` header. + /// ///
/// /// The target directory where the tarball contents will be extracted. If not specified, files are extracted to the sandbox home directory.
@@ -44,20 +34,12 @@ public partial interface ISandboxesClient /// The unique identifier of the session to write files to.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> WriteSessionFilesAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdFsWriteAsResponseAsync( string sessionId, string? x_xCwd_ = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.UpdateSessionNetworkPolicy.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdNetworkPolicy.g.cs similarity index 50% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.UpdateSessionNetworkPolicy.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdNetworkPolicy.g.cs index 4180cfaee..3677b77a3 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.UpdateSessionNetworkPolicy.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdNetworkPolicy.g.cs @@ -2,81 +2,54 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Update network policy
- /// Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network rules will be overwritten. + /// ///
/// /// The unique identifier of the session to update the network policy for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateSessionNetworkPolicyAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdNetworkPolicyAsync( string sessionId, - global::Vercel.OneOf request, - string? teamId = default, - string? slug = default, + global::Vercel.OneOf request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update network policy
- /// Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network rules will be overwritten. + /// ///
/// /// The unique identifier of the session to update the network policy for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UpdateSessionNetworkPolicyAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdNetworkPolicyAsResponseAsync( string sessionId, - global::Vercel.OneOf request, - string? teamId = default, - string? slug = default, + global::Vercel.OneOf request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update network policy
- /// Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network rules will be overwritten. + /// ///
/// /// The unique identifier of the session to update the network policy for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateSessionNetworkPolicyAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdNetworkPolicyAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdSnapshot.g.cs similarity index 53% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSessionSnapshot.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdSnapshot.g.cs index a5fdad42f..d73e2f277 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.CreateSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdSnapshot.g.cs @@ -2,84 +2,57 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Create a snapshot
- /// Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. + /// ///
/// /// The unique identifier of the session to snapshot.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateSessionSnapshotAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdSnapshotAsync( string sessionId, - global::Vercel.CreateSessionSnapshotRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create a snapshot
- /// Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. + /// ///
/// /// The unique identifier of the session to snapshot.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateSessionSnapshotAsResponseAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdSnapshotAsResponseAsync( string sessionId, - global::Vercel.CreateSessionSnapshotRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create a snapshot
- /// Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. + /// ///
/// /// The unique identifier of the session to snapshot.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateSessionSnapshotAsync( + global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdSnapshotAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.OneOf? expiration = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.StopSession.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdStop.g.cs similarity index 54% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.StopSession.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdStop.g.cs index 6c441ffcb..ef979c81a 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.StopSession.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.CreateSandboxesSessionsBySessionIdStop.g.cs @@ -2,52 +2,34 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Stop a session
- /// Stops a running session and releases its allocated resources. All running processes within the session will be terminated. This action cannot be undone. A stopped session cannot be restarted. + /// ///
/// /// The unique identifier of the session to stop.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> StopSessionAsync( + global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdStopAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Stop a session
- /// Stops a running session and releases its allocated resources. All running processes within the session will be terminated. This action cannot be undone. A stopped session cannot be restarted. + /// ///
/// /// The unique identifier of the session to stop.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task>> StopSessionAsResponseAsync( + global::System.Threading.Tasks.Task>> CreateSandboxesSessionsBySessionIdStopAsResponseAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.DeleteSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.DeleteSandboxesByName.g.cs similarity index 62% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.DeleteSandbox.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.DeleteSandboxesByName.g.cs index ba68d6fdb..78910d67e 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.DeleteSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.DeleteSandboxesByName.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Delete a sandbox
- /// Deletes a sandbox by name. If sandboxes are currently running, they will be stopped first. This operation deletes all sandbox entities with the given name and the named sandbox metadata. + /// ///
/// /// The sandbox name to delete.
@@ -15,25 +14,16 @@ public partial interface ISandboxesClient /// /// The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteSandboxAsync( + global::System.Threading.Tasks.Task DeleteSandboxesByNameAsync( string name, string? projectId = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Delete a sandbox
- /// Deletes a sandbox by name. If sandboxes are currently running, they will be stopped first. This operation deletes all sandbox entities with the given name and the named sandbox metadata. + /// ///
/// /// The sandbox name to delete.
@@ -42,20 +32,12 @@ public partial interface ISandboxesClient /// /// The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> DeleteSandboxAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteSandboxesByNameAsResponseAsync( string name, string? projectId = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.DeleteSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.DeleteSandboxesSnapshotsBySnapshotId.g.cs similarity index 57% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.DeleteSessionSnapshot.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.DeleteSandboxesSnapshotsBySnapshotId.g.cs index 456939015..2b71b12a9 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.DeleteSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.DeleteSandboxesSnapshotsBySnapshotId.g.cs @@ -2,52 +2,34 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Delete a snapshot
- /// Permanently deletes a snapshot and frees its associated storage. This action cannot be undone. After deletion, the snapshot can no longer be used to create new sessions. + /// ///
/// /// The unique identifier of the snapshot to delete.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteSessionSnapshotAsync( + global::System.Threading.Tasks.Task DeleteSandboxesSnapshotsBySnapshotIdAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Delete a snapshot
- /// Permanently deletes a snapshot and frees its associated storage. This action cannot be undone. After deletion, the snapshot can no longer be used to create new sessions. + /// ///
/// /// The unique identifier of the snapshot to delete.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> DeleteSessionSnapshotAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteSandboxesSnapshotsBySnapshotIdAsResponseAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSandboxes.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxes.g.cs similarity index 72% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSandboxes.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxes.g.cs index 74771e1a4..b11012ff0 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSandboxes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxes.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// List sandboxes
- /// Retrieves a paginated list of named sandboxes belonging to a specific project. Results can be sorted by creation time or name, and optionally filtered by name prefix. + /// ///
/// /// The unique identifier or name of the project to list named sandboxes for.
@@ -34,30 +33,21 @@ public partial interface ISandboxesClient /// /// Filter sandboxes by tag. Format: \"key:value\". Only one tag filter is supported at a time. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ListSandboxesAsync( + global::System.Threading.Tasks.Task GetSandboxesAsync( string? project = default, double? limit = default, - global::Vercel.ListSandboxesSortBy? sortBy = default, + global::Vercel.GetSandboxesSortBy? sortBy = default, string? namePrefix = default, string? cursor = default, - global::Vercel.ListSandboxesSortOrder? sortOrder = default, + global::Vercel.GetSandboxesSortOrder? sortOrder = default, global::Vercel.AnyOf>? tags = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// List sandboxes
- /// Retrieves a paginated list of named sandboxes belonging to a specific project. Results can be sorted by creation time or name, and optionally filtered by name prefix. + /// ///
/// /// The unique identifier or name of the project to list named sandboxes for.
@@ -85,25 +75,17 @@ public partial interface ISandboxesClient /// /// Filter sandboxes by tag. Format: \"key:value\". Only one tag filter is supported at a time. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListSandboxesAsResponseAsync( + global::System.Threading.Tasks.Task> GetSandboxesAsResponseAsync( string? project = default, double? limit = default, - global::Vercel.ListSandboxesSortBy? sortBy = default, + global::Vercel.GetSandboxesSortBy? sortBy = default, string? namePrefix = default, string? cursor = default, - global::Vercel.ListSandboxesSortOrder? sortOrder = default, + global::Vercel.GetSandboxesSortOrder? sortOrder = default, global::Vercel.AnyOf>? tags = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetNamedSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesByName.g.cs similarity index 67% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetNamedSandbox.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesByName.g.cs index a973efd75..b736d1429 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetNamedSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesByName.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Get a named sandbox
- /// Retrieves a named sandbox by name, including its current sandbox and routes. If the sandbox is stopped and resume is true, a new sandbox will be created from the most recent snapshot. + /// ///
/// /// Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).
@@ -20,26 +19,17 @@ public partial interface ISandboxesClient /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetNamedSandboxAsync( + global::System.Threading.Tasks.Task GetSandboxesByNameAsync( string name, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get a named sandbox
- /// Retrieves a named sandbox by name, including its current sandbox and routes. If the sandbox is stopped and resume is true, a new sandbox will be created from the most recent snapshot. + /// ///
/// /// Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).
@@ -53,21 +43,13 @@ public partial interface ISandboxesClient /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetNamedSandboxAsResponseAsync( + global::System.Threading.Tasks.Task> GetSandboxesByNameAsResponseAsync( string name, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessions.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessions.g.cs similarity index 71% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessions.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessions.g.cs index 7149ac4fa..7d08c2ad0 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessions.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// List sessions
- /// Retrieves a paginated list of sessions belonging to a specific sandbox. Results are sorted by creation time and paginated using an opaque cursor. + /// ///
/// /// The unique identifier or name of the project to list sessions for.
@@ -28,28 +27,19 @@ public partial interface ISandboxesClient /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListSessionsAsync( + global::System.Threading.Tasks.Task> GetSandboxesSessionsAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// List sessions
- /// Retrieves a paginated list of sessions belonging to a specific sandbox. Results are sorted by creation time and paginated using an opaque cursor. + /// ///
/// /// The unique identifier or name of the project to list sessions for.
@@ -71,23 +61,15 @@ public partial interface ISandboxesClient /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task>> ListSessionsAsResponseAsync( + global::System.Threading.Tasks.Task>> GetSandboxesSessionsAsResponseAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSession.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionId.g.cs similarity index 57% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSession.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionId.g.cs index 38638e587..9d5b2be3d 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSession.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionId.g.cs @@ -2,52 +2,34 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Get a session
- /// Retrieves detailed information about a specific session, including its current status, resource configuration, and exposed routes. + /// ///
/// /// The unique identifier of the session to retrieve.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetSessionAsync( + global::System.Threading.Tasks.Task GetSandboxesSessionsBySessionIdAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get a session
- /// Retrieves detailed information about a specific session, including its current status, resource configuration, and exposed routes. + /// ///
/// /// The unique identifier of the session to retrieve.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetSessionAsResponseAsync( + global::System.Threading.Tasks.Task> GetSandboxesSessionsBySessionIdAsResponseAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessionCommands.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmd.g.cs similarity index 55% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessionCommands.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmd.g.cs index a7992bf4e..5a8bb7c06 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessionCommands.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmd.g.cs @@ -2,52 +2,34 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// List commands
- /// Retrieves a list of all commands that have been executed in a session, including their current status, exit codes, and execution times, ordered from the most recent to the oldest. + /// ///
/// /// The unique identifier of the session to list commands for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ListSessionCommandsAsync( + global::System.Threading.Tasks.Task GetSandboxesSessionsBySessionIdCmdAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// List commands
- /// Retrieves a list of all commands that have been executed in a session, including their current status, exit codes, and execution times, ordered from the most recent to the oldest. + /// ///
/// /// The unique identifier of the session to list commands for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListSessionCommandsAsResponseAsync( + global::System.Threading.Tasks.Task> GetSandboxesSessionsBySessionIdCmdAsResponseAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmdByCmdId.g.cs similarity index 64% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionCommand.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmdByCmdId.g.cs index b8f402900..e88a23239 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmdByCmdId.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Get a command
- /// Retrieves the current status and details of a command executed in a session. Use the `wait` parameter to block until the command finishes execution. + /// ///
/// /// The unique identifier of the session containing the command.
@@ -20,26 +19,17 @@ public partial interface ISandboxesClient /// If set to "true", the request will block until the command finishes execution. Useful for synchronously waiting for command completion.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetSessionCommandAsync( + global::System.Threading.Tasks.Task GetSandboxesSessionsBySessionIdCmdByCmdIdAsync( string sessionId, string cmdId, - global::Vercel.GetSessionCommandWait? wait = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? wait = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get a command
- /// Retrieves the current status and details of a command executed in a session. Use the `wait` parameter to block until the command finishes execution. + /// ///
/// /// The unique identifier of the session containing the command.
@@ -53,21 +43,13 @@ public partial interface ISandboxesClient /// If set to "true", the request will block until the command finishes execution. Useful for synchronously waiting for command completion.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetSessionCommandAsResponseAsync( + global::System.Threading.Tasks.Task> GetSandboxesSessionsBySessionIdCmdByCmdIdAsResponseAsync( string sessionId, string cmdId, - global::Vercel.GetSessionCommandWait? wait = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? wait = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionCommandLogs.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmdByCmdIdLogs.g.cs similarity index 58% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionCommandLogs.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmdByCmdIdLogs.g.cs index 738cab097..1af9ea182 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionCommandLogs.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSessionsBySessionIdCmdByCmdIdLogs.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Stream command logs
- /// Streams the output of a command in real-time using newline-delimited JSON (ND-JSON). Each entry includes the output data and stream type. Stream types include `stdout`, `stderr`, and `error` (for stream failures). + /// ///
/// /// The unique identifier of the session containing the command.
@@ -16,20 +15,12 @@ public partial interface ISandboxesClient /// The unique identifier of the command to stream logs for.
/// Example: cmd_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Collections.Generic.IAsyncEnumerable> GetSessionCommandLogsAsync( + global::System.Collections.Generic.IAsyncEnumerable> GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync( string sessionId, string cmdId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessionSnapshots.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSnapshots.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessionSnapshots.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSnapshots.g.cs index 14dd7ab6b..d5a4ee99d 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.ListSessionSnapshots.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSnapshots.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// List snapshots
- /// Retrieves a paginated list of snapshots for a specific project. + /// ///
/// /// The unique identifier or name of the project to list snapshots for.
@@ -28,28 +27,19 @@ public partial interface ISandboxesClient /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListSessionSnapshotsAsync( + global::System.Threading.Tasks.Task> GetSandboxesSnapshotsAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionSnapshotsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSnapshotsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// List snapshots
- /// Retrieves a paginated list of snapshots for a specific project. + /// ///
/// /// The unique identifier or name of the project to list snapshots for.
@@ -71,23 +61,15 @@ public partial interface ISandboxesClient /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task>> ListSessionSnapshotsAsResponseAsync( + global::System.Threading.Tasks.Task>> GetSandboxesSnapshotsAsResponseAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionSnapshotsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSnapshotsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSnapshotsBySnapshotId.g.cs similarity index 56% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionSnapshot.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSnapshotsBySnapshotId.g.cs index 0f0957eaa..8954f6f17 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.GetSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.GetSandboxesSnapshotsBySnapshotId.g.cs @@ -2,52 +2,34 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Get a snapshot
- /// Retrieves detailed information about a specific snapshot, including its creation time, size, expiration date, and the source session it was created from. + /// ///
/// /// The unique identifier of the snapshot to retrieve.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetSessionSnapshotAsync( + global::System.Threading.Tasks.Task GetSandboxesSnapshotsBySnapshotIdAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get a snapshot
- /// Retrieves detailed information about a specific snapshot, including its creation time, size, expiration date, and the source session it was created from. + /// ///
/// /// The unique identifier of the snapshot to retrieve.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetSessionSnapshotAsResponseAsync( + global::System.Threading.Tasks.Task> GetSandboxesSnapshotsBySnapshotIdAsResponseAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.UpdateSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.UpdateSandboxesByName.g.cs similarity index 74% rename from src/libs/Vercel/Generated/Vercel.ISandboxesClient.UpdateSandbox.g.cs rename to src/libs/Vercel/Generated/Vercel.IVercelClient.UpdateSandboxesByName.g.cs index 3e0a481ab..0f59adc39 100644 --- a/src/libs/Vercel/Generated/Vercel.ISandboxesClient.UpdateSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.UpdateSandboxesByName.g.cs @@ -2,11 +2,10 @@ namespace Vercel { - public partial interface ISandboxesClient + public partial interface IVercelClient { /// - /// Update a sandbox
- /// Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged. + /// ///
/// /// The sandbox to update.
@@ -19,29 +18,20 @@ public partial interface ISandboxesClient /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UpdateSandboxAsync( + global::System.Threading.Tasks.Task> UpdateSandboxesByNameAsync( string name, - global::Vercel.UpdateSandboxRequest request, + global::Vercel.UpdateSandboxesByNameRequest request, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update a sandbox
- /// Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged. + /// ///
/// /// The sandbox to update.
@@ -54,29 +44,20 @@ public partial interface ISandboxesClient /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task>> UpdateSandboxAsResponseAsync( + global::System.Threading.Tasks.Task>> UpdateSandboxesByNameAsResponseAsync( string name, - global::Vercel.UpdateSandboxRequest request, + global::Vercel.UpdateSandboxesByNameRequest request, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update a sandbox
- /// Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged. + /// ///
/// /// The sandbox to update.
@@ -89,12 +70,6 @@ public partial interface ISandboxesClient /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Resources to define the VM /// @@ -135,19 +110,17 @@ public partial interface ISandboxesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UpdateSandboxAsync( + global::System.Threading.Tasks.Task> UpdateSandboxesByNameAsync( string name, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, - global::Vercel.UpdateSandboxRequestResources? resources = default, - global::Vercel.UpdateSandboxRequestRuntime? runtime = default, + global::Vercel.UpdateSandboxesByNameRequestResources? resources = default, + global::Vercel.UpdateSandboxesByNameRequestRuntime? runtime = default, int? timeout = default, bool? persistent = default, global::Vercel.OneOf? snapshotExpiration = default, - global::Vercel.OneOf? keepLastSnapshots = default, - global::Vercel.OneOf? networkPolicy = default, + global::Vercel.OneOf? keepLastSnapshots = default, + global::Vercel.OneOf? networkPolicy = default, global::System.Collections.Generic.Dictionary? env = default, global::System.Collections.Generic.IList? ports = default, string? currentSnapshotId = default, diff --git a/src/libs/Vercel/Generated/Vercel.IVercelClient.g.cs b/src/libs/Vercel/Generated/Vercel.IVercelClient.g.cs index 7982cd4db..6c2dece76 100644 --- a/src/libs/Vercel/Generated/Vercel.IVercelClient.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IVercelClient.g.cs @@ -185,11 +185,6 @@ public partial interface IVercelClient : global::System.IDisposable /// public RollingReleaseClient RollingRelease { get; } - /// - /// - /// - public SandboxesClient Sandboxes { get; } - /// /// /// diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCode.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.g.cs similarity index 58% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCode.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.g.cs index a096d86d6..03a75ceb5 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCode.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class GetSessionCommandLogsResponseVariant1DataCodeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.GetSessionCommandLogsResponseVariant1DataCode Read( + public override global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GetSessionCommandLogsResponseVariant1DataCodeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.GetSessionCommandLogsResponseVariant1DataCodeExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GetSessionCommandLogsResponseVariant1DataCodeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.GetSessionCommandLogsResponseVariant1DataCode)numValue; + return (global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.GetSessionCommandLogsResponseVariant1DataCode); + return default(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GetSessionCommandLogsResponseVariant1DataCodeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.GetSessionCommandLogsResponseVariant1DataCode value, + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.GetSessionCommandLogsResponseVariant1DataCodeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullable.g.cs similarity index 60% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullable.g.cs index cfc7429a1..8bb360f08 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage? Read( + public override global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GetSessionCommandLogsResponseVariant1DataMessageNullableJson var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.GetSessionCommandLogsResponseVariant1DataMessageExtensions.ToEnum(stringValue); + return global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GetSessionCommandLogsResponseVariant1DataMessageNullableJson case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage)numValue; + return (global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage?); + return default(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GetSessionCommandLogsResponseVariant1DataMessageNullableJson /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage? value, + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.GetSessionCommandLogsResponseVariant1DataMessageExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessage.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.g.cs similarity index 57% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessage.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.g.cs index a682ea82b..564a6c68d 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessage.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class GetSessionCommandLogsResponseVariant1DataMessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage Read( + public override global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GetSessionCommandLogsResponseVariant1DataMessageJsonConverte var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.GetSessionCommandLogsResponseVariant1DataMessageExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GetSessionCommandLogsResponseVariant1DataMessageJsonConverte case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage)numValue; + return (global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage); + return default(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GetSessionCommandLogsResponseVariant1DataMessageJsonConverte /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage value, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.GetSessionCommandLogsResponseVariant1DataMessageExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandWaitNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullable.g.cs similarity index 59% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandWaitNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullable.g.cs index 56b76a0ac..b57074812 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandWaitNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class GetSessionCommandWaitNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.GetSessionCommandWait? Read( + public override global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GetSessionCommandWaitNullableJsonConverter : global::System. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.GetSessionCommandWaitExtensions.ToEnum(stringValue); + return global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GetSessionCommandWaitNullableJsonConverter : global::System. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.GetSessionCommandWait)numValue; + return (global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.GetSessionCommandWait?); + return default(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GetSessionCommandWaitNullableJsonConverter : global::System. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.GetSessionCommandWait? value, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.GetSessionCommandWaitExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.g.cs new file mode 100644 index 000000000..d75fe197d --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Vercel.JsonConverters +{ + /// + public sealed class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage 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.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullable.g.cs similarity index 59% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullable.g.cs index dfa9a1bff..75f4ba40c 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.GetSessionCommandLogsResponseVariant1DataCode? Read( + public override global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GetSessionCommandLogsResponseVariant1DataCodeNullableJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.GetSessionCommandLogsResponseVariant1DataCodeExtensions.ToEnum(stringValue); + return global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GetSessionCommandLogsResponseVariant1DataCodeNullableJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.GetSessionCommandLogsResponseVariant1DataCode)numValue; + return (global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.GetSessionCommandLogsResponseVariant1DataCode?); + return default(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GetSessionCommandLogsResponseVariant1DataCodeNullableJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.GetSessionCommandLogsResponseVariant1DataCode? value, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.GetSessionCommandLogsResponseVariant1DataCodeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1Mode.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWait.g.cs similarity index 62% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1Mode.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWait.g.cs index 08743e0d5..d48b5fe5a 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1Mode.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWait.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode Read( + public override global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.UpdateSessionNetworkPolicyRequestVariant1ModeExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode)numValue; + return (global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode); + return default(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode value, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1ModeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullable.g.cs similarity index 65% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullable.g.cs index 5482bfb51..1a2d13f6c 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode? Read( + public override global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.UpdateSessionNetworkPolicyRequestVariant1ModeExtensions.ToEnum(stringValue); + return global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode)numValue; + return (global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode?); + return default(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode? value, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1ModeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionSnapshotsSortOrder.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsSortOrder.g.cs similarity index 70% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionSnapshotsSortOrder.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsSortOrder.g.cs index b51ca0370..578ad90af 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionSnapshotsSortOrder.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsSortOrder.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class ListSessionSnapshotsSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSessionsSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.ListSessionSnapshotsSortOrder Read( + public override global::Vercel.GetSandboxesSessionsSortOrder Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ListSessionSnapshotsSortOrderJsonConverter : global::System. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.ListSessionSnapshotsSortOrderExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.GetSandboxesSessionsSortOrderExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ListSessionSnapshotsSortOrderJsonConverter : global::System. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.ListSessionSnapshotsSortOrder)numValue; + return (global::Vercel.GetSandboxesSessionsSortOrder)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.ListSessionSnapshotsSortOrder); + return default(global::Vercel.GetSandboxesSessionsSortOrder); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ListSessionSnapshotsSortOrderJsonConverter : global::System. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSessionSnapshotsSortOrder value, + global::Vercel.GetSandboxesSessionsSortOrder value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.ListSessionSnapshotsSortOrderExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsSortOrderExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullable.g.cs similarity index 72% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullable.g.cs index 0a1abff03..2a38996d6 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class ListSessionSnapshotsSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSessionsSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.ListSessionSnapshotsSortOrder? Read( + public override global::Vercel.GetSandboxesSessionsSortOrder? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ListSessionSnapshotsSortOrderNullableJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.ListSessionSnapshotsSortOrderExtensions.ToEnum(stringValue); + return global::Vercel.GetSandboxesSessionsSortOrderExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ListSessionSnapshotsSortOrderNullableJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.ListSessionSnapshotsSortOrder)numValue; + return (global::Vercel.GetSandboxesSessionsSortOrder)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.ListSessionSnapshotsSortOrder?); + return default(global::Vercel.GetSandboxesSessionsSortOrder?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ListSessionSnapshotsSortOrderNullableJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSessionSnapshotsSortOrder? value, + global::Vercel.GetSandboxesSessionsSortOrder? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.ListSessionSnapshotsSortOrderExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSessionsSortOrderExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandWait.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSnapshotsSortOrder.g.cs similarity index 66% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandWait.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSnapshotsSortOrder.g.cs index b249dddb9..dbfdc227d 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSessionCommandWait.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSnapshotsSortOrder.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class GetSessionCommandWaitJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSnapshotsSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.GetSessionCommandWait Read( + public override global::Vercel.GetSandboxesSnapshotsSortOrder Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GetSessionCommandWaitJsonConverter : global::System.Text.Jso var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.GetSessionCommandWaitExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.GetSandboxesSnapshotsSortOrderExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GetSessionCommandWaitJsonConverter : global::System.Text.Jso case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.GetSessionCommandWait)numValue; + return (global::Vercel.GetSandboxesSnapshotsSortOrder)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.GetSessionCommandWait); + return default(global::Vercel.GetSandboxesSnapshotsSortOrder); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GetSessionCommandWaitJsonConverter : global::System.Text.Jso /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.GetSessionCommandWait value, + global::Vercel.GetSandboxesSnapshotsSortOrder value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.GetSessionCommandWaitExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSnapshotsSortOrderExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortOrderNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullable.g.cs similarity index 68% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortOrderNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullable.g.cs index dbe1c1c8f..dd1068f80 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortOrderNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class ListSandboxesSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSnapshotsSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.ListSandboxesSortOrder? Read( + public override global::Vercel.GetSandboxesSnapshotsSortOrder? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ListSandboxesSortOrderNullableJsonConverter : global::System var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.ListSandboxesSortOrderExtensions.ToEnum(stringValue); + return global::Vercel.GetSandboxesSnapshotsSortOrderExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ListSandboxesSortOrderNullableJsonConverter : global::System case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.ListSandboxesSortOrder)numValue; + return (global::Vercel.GetSandboxesSnapshotsSortOrder)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.ListSandboxesSortOrder?); + return default(global::Vercel.GetSandboxesSnapshotsSortOrder?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ListSandboxesSortOrderNullableJsonConverter : global::System /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSandboxesSortOrder? value, + global::Vercel.GetSandboxesSnapshotsSortOrder? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.ListSandboxesSortOrderExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSnapshotsSortOrderExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortBy.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortBy.g.cs similarity index 69% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortBy.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortBy.g.cs index 413dc657f..f3b703b11 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortBy.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortBy.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class ListSandboxesSortByJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSortByJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.ListSandboxesSortBy Read( + public override global::Vercel.GetSandboxesSortBy Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ListSandboxesSortByJsonConverter : global::System.Text.Json. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.ListSandboxesSortByExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.GetSandboxesSortByExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ListSandboxesSortByJsonConverter : global::System.Text.Json. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.ListSandboxesSortBy)numValue; + return (global::Vercel.GetSandboxesSortBy)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.ListSandboxesSortBy); + return default(global::Vercel.GetSandboxesSortBy); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ListSandboxesSortByJsonConverter : global::System.Text.Json. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSandboxesSortBy value, + global::Vercel.GetSandboxesSortBy value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.ListSandboxesSortByExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSortByExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortByNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortByNullable.g.cs similarity index 70% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortByNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortByNullable.g.cs index 84a7d3387..58626aa0a 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortByNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortByNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class ListSandboxesSortByNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSortByNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.ListSandboxesSortBy? Read( + public override global::Vercel.GetSandboxesSortBy? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ListSandboxesSortByNullableJsonConverter : global::System.Te var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.ListSandboxesSortByExtensions.ToEnum(stringValue); + return global::Vercel.GetSandboxesSortByExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ListSandboxesSortByNullableJsonConverter : global::System.Te case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.ListSandboxesSortBy)numValue; + return (global::Vercel.GetSandboxesSortBy)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.ListSandboxesSortBy?); + return default(global::Vercel.GetSandboxesSortBy?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ListSandboxesSortByNullableJsonConverter : global::System.Te /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSandboxesSortBy? value, + global::Vercel.GetSandboxesSortBy? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.ListSandboxesSortByExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSortByExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionsSortOrder.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortOrder.g.cs similarity index 77% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionsSortOrder.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortOrder.g.cs index 8a7c63d14..e092d89c4 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionsSortOrder.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortOrder.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class ListSessionsSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.ListSessionsSortOrder Read( + public override global::Vercel.GetSandboxesSortOrder Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ListSessionsSortOrderJsonConverter : global::System.Text.Jso var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.ListSessionsSortOrderExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.GetSandboxesSortOrderExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ListSessionsSortOrderJsonConverter : global::System.Text.Jso case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.ListSessionsSortOrder)numValue; + return (global::Vercel.GetSandboxesSortOrder)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.ListSessionsSortOrder); + return default(global::Vercel.GetSandboxesSortOrder); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ListSessionsSortOrderJsonConverter : global::System.Text.Jso /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSessionsSortOrder value, + global::Vercel.GetSandboxesSortOrder value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.ListSessionsSortOrderExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSortOrderExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionsSortOrderNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortOrderNullable.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionsSortOrderNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortOrderNullable.g.cs index 9bd6fa63c..82e2c9d54 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSessionsSortOrderNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.GetSandboxesSortOrderNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class ListSessionsSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetSandboxesSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.ListSessionsSortOrder? Read( + public override global::Vercel.GetSandboxesSortOrder? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ListSessionsSortOrderNullableJsonConverter : global::System. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.ListSessionsSortOrderExtensions.ToEnum(stringValue); + return global::Vercel.GetSandboxesSortOrderExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ListSessionsSortOrderNullableJsonConverter : global::System. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.ListSessionsSortOrder)numValue; + return (global::Vercel.GetSandboxesSortOrder)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.ListSessionsSortOrder?); + return default(global::Vercel.GetSandboxesSortOrder?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ListSessionsSortOrderNullableJsonConverter : global::System. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSessionsSortOrder? value, + global::Vercel.GetSandboxesSortOrder? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.ListSessionsSortOrderExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.GetSandboxesSortOrderExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortOrder.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortOrder.g.cs deleted file mode 100644 index f3b3e031a..000000000 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.ListSandboxesSortOrder.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Vercel.JsonConverters -{ - /// - public sealed class ListSandboxesSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Vercel.ListSandboxesSortOrder 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.ListSandboxesSortOrderExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Vercel.ListSandboxesSortOrder)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Vercel.ListSandboxesSortOrder); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.ListSandboxesSortOrder value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Vercel.ListSandboxesSortOrderExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1Mode.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.g.cs similarity index 63% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1Mode.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.g.cs index debd3e58c..835e66555 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1Mode.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode Read( + public override global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1ModeExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode)numValue; + return (global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode); + return default(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode value, + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1ModeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullable.g.cs similarity index 65% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullable.g.cs index 775f14441..536937f49 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode? Read( + public override global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1ModeExtensions.ToEnum(stringValue); + return global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode)numValue; + return (global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode?); + return default(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode? value, + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1ModeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestRuntime.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntime.g.cs similarity index 67% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestRuntime.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntime.g.cs index 684278f4b..96c63c4ce 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestRuntime.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntime.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class UpdateSandboxRequestRuntimeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class UpdateSandboxesByNameRequestRuntimeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.UpdateSandboxRequestRuntime Read( + public override global::Vercel.UpdateSandboxesByNameRequestRuntime Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class UpdateSandboxRequestRuntimeJsonConverter : global::System.Te var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.UpdateSandboxRequestRuntimeExtensions.ToEnum(stringValue) ?? default; + return global::Vercel.UpdateSandboxesByNameRequestRuntimeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class UpdateSandboxRequestRuntimeJsonConverter : global::System.Te case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.UpdateSandboxRequestRuntime)numValue; + return (global::Vercel.UpdateSandboxesByNameRequestRuntime)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.UpdateSandboxRequestRuntime); + return default(global::Vercel.UpdateSandboxesByNameRequestRuntime); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class UpdateSandboxRequestRuntimeJsonConverter : global::System.Te /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.UpdateSandboxRequestRuntime value, + global::Vercel.UpdateSandboxesByNameRequestRuntime value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Vercel.UpdateSandboxRequestRuntimeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Vercel.UpdateSandboxesByNameRequestRuntimeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullable.g.cs b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullable.g.cs similarity index 69% rename from src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullable.g.cs rename to src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullable.g.cs index 540cc6038..23c2a35a8 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullable.g.cs @@ -3,10 +3,10 @@ namespace Vercel.JsonConverters { /// - public sealed class UpdateSandboxRequestRuntimeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class UpdateSandboxesByNameRequestRuntimeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Vercel.UpdateSandboxRequestRuntime? Read( + public override global::Vercel.UpdateSandboxesByNameRequestRuntime? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class UpdateSandboxRequestRuntimeNullableJsonConverter : global::S var stringValue = reader.GetString(); if (stringValue != null) { - return global::Vercel.UpdateSandboxRequestRuntimeExtensions.ToEnum(stringValue); + return global::Vercel.UpdateSandboxesByNameRequestRuntimeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class UpdateSandboxRequestRuntimeNullableJsonConverter : global::S case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Vercel.UpdateSandboxRequestRuntime)numValue; + return (global::Vercel.UpdateSandboxesByNameRequestRuntime)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Vercel.UpdateSandboxRequestRuntime?); + return default(global::Vercel.UpdateSandboxesByNameRequestRuntime?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class UpdateSandboxRequestRuntimeNullableJsonConverter : global::S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Vercel.UpdateSandboxRequestRuntime? value, + global::Vercel.UpdateSandboxesByNameRequestRuntime? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Vercel.UpdateSandboxRequestRuntimeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Vercel.UpdateSandboxesByNameRequestRuntimeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk000.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk000.g.cs index 8e2654701..301913e6e 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk000.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk000.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk001.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk001.g.cs index cf09225e6..dca312f6d 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk001.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk001.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk002.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk002.g.cs index abf2a78b1..cb97efd26 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk002.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk002.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), @@ -5597,83 +5597,83 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfObjectInt322")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesRequestKeepLastSnapshots))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestResources))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestRuntime), TypeInfoPropertyName = "UpdateSandboxRequestRuntime2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfStringUpdateSandboxRequestKeepLastSnapshots2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestKeepLastSnapshots))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfUpdateSandboxRequestNetworkPolicyVariant1UpdateSandboxRequestNetworkPolicyVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode), TypeInfoPropertyName = "UpdateSandboxRequestNetworkPolicyVariant1Mode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>), TypeInfoPropertyName = "OneOfIListStringDictionaryStringIListUpdateSandboxRequestNetworkPolicyVariant2AllowItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.RunSessionCommandRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.KillSessionCommandRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ExtendSessionTimeoutRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfUpdateSessionNetworkPolicyRequestVariant1UpdateSessionNetworkPolicyRequestVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode), TypeInfoPropertyName = "UpdateSessionNetworkPolicyRequestVariant1Mode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRule))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>), TypeInfoPropertyName = "OneOfIListStringDictionaryStringIListUpdateSessionNetworkPolicyRequestVariant2AllowItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ReadSessionFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSessionDirectoryRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSessionSnapshotRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestResources))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestRuntime), TypeInfoPropertyName = "UpdateSandboxesByNameRequestRuntime2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfStringUpdateSandboxesByNameRequestKeepLastSnapshots2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshots))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfUpdateSandboxesByNameRequestNetworkPolicyVariant1UpdateSandboxesByNameRequestNetworkPolicyVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode), TypeInfoPropertyName = "UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>), TypeInfoPropertyName = "OneOfIListStringDictionaryStringIListUpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2_4ccd7bdabb9fcc05")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode), TypeInfoPropertyName = "CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>), TypeInfoPropertyName = "OneOfIListStringDictionaryStringIListCreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfUpdateAttackChallengeModeRequestVariant1UpdateAttackChallengeModeRequestVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateAttackChallengeModeRequestVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateAttackChallengeModeRequestVariant2))] diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk003.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk003.g.cs index 5ad2ad5d1..1469d5988 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk003.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk003.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), @@ -5426,12 +5426,12 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectDomainsOrder), TypeInfoPropertyName = "GetProjectDomainsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.FilterProjectEnvsDecrypt), TypeInfoPropertyName = "FilterProjectEnvsDecrypt2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetRollingReleaseState), TypeInfoPropertyName = "GetRollingReleaseState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSandboxesSortBy), TypeInfoPropertyName = "ListSandboxesSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSandboxesSortOrder), TypeInfoPropertyName = "ListSandboxesSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSortBy), TypeInfoPropertyName = "GetSandboxesSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSortOrder), TypeInfoPropertyName = "GetSandboxesSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSessionSnapshotsSortOrder), TypeInfoPropertyName = "ListSessionSnapshotsSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSessionsSortOrder), TypeInfoPropertyName = "ListSessionsSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionCommandWait), TypeInfoPropertyName = "GetSessionCommandWait2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSnapshotsSortOrder), TypeInfoPropertyName = "GetSandboxesSnapshotsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsSortOrder), TypeInfoPropertyName = "GetSandboxesSessionsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait), TypeInfoPropertyName = "GetSandboxesSessionsBySessionIdCmdByCmdIdWait2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetTeamMembersRole), TypeInfoPropertyName = "GetTeamMembersRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ReadAccessGroupResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk004.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk004.g.cs index f2263f752..b054d53e0 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk004.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk004.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk005.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk005.g.cs index 90dc4d302..a1e69a569 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk005.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk005.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk006.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk006.g.cs index b52ae2ccc..11d1ce3ae 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk006.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk006.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk007.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk007.g.cs index c985ab84d..56dda0d75 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk007.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk007.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk008.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk008.g.cs index b82cdd65b..7b182af7c 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk008.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk008.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk009.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk009.g.cs index 3ca98f692..4742b3225 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk009.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk009.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk010.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk010.g.cs index a856dc07b..bf426a593 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk010.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk010.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk011.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk011.g.cs index 086871b00..be38e7dfd 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk011.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk011.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk012.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk012.g.cs index 615058e12..06056a55e 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk012.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk012.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk013.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk013.g.cs index dc54c0807..3bd410c0c 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk013.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk013.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), @@ -5597,45 +5597,45 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListPromoteAliasesResponseVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListPromoteAliasesResponseVariant2Aliase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSandboxesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSandboxesResponsePagination))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesResponsePagination))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfObjectListSessionSnapshotsResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSessionSnapshotsResponseVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfObjectGetSandboxesSnapshotsResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSessionSnapshotsResponseVariant2Pagination))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionSnapshotResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.DeleteSessionSnapshotResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfObjectListSessionsResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSessionsResponseVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfObjectGetSandboxesSessionsResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsResponseVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSessionsResponseVariant2Pagination))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetNamedSandboxResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfUpdateSandboxResponseVariant1UpdateSandboxResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxResponseVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxResponseVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.DeleteSandboxResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ListSessionCommandsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsResponseVariant2Pagination))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesByNameResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfUpdateSandboxesByNameResponseVariant1UpdateSandboxesByNameResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameResponseVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSandboxesByNameResponseVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.DeleteSandboxesByNameResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.RunSessionCommandResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.RunSessionCommandResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionCommandResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.KillSessionCommandResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfGetSessionCommandLogsResponseVariant1GetSessionCommandLogsResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionCommandLogsResponseVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionCommandLogsResponseVariant1Data))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionCommandLogsResponseVariant1DataCode), TypeInfoPropertyName = "GetSessionCommandLogsResponseVariant1DataCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage), TypeInfoPropertyName = "GetSessionCommandLogsResponseVariant1DataMessage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSessionCommandLogsResponseVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfStopSessionResponseVariant1StopSessionResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.StopSessionResponseVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.StopSessionResponseVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.ExtendSessionTimeoutResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateSessionNetworkPolicyResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSessionSnapshotResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2_081df6a213a662a2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode), TypeInfoPropertyName = "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage), TypeInfoPropertyName = "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf), TypeInfoPropertyName = "OneOfCreateSandboxesSessionsBySessionIdStopResponseVariant1CreateSandboxesSessionsBySessionIdStopResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateAttackChallengeModeResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigResponseActive))] diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk014.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk014.g.cs index 87af0bafc..ac5b7e105 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk014.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk014.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), @@ -5805,6 +5805,7 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.AnyOf?), TypeInfoPropertyName = "UpdateFlagSegmentRequestDataRuleConditionRhsVariant2_string_double_bool_1be57ed7ce8af10f")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.AnyOf?), TypeInfoPropertyName = "UpdateFlagSegmentRequestDataRuleConditionRhsVariant1ItemVariant2_b5fd300b00395147")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "CreateSandboxesRequestSourceVariant3_e064fb31d74cba86")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2_643583875187a924")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "UpdateFirewallConfigRequestVariant14_d4f4c7f02de123d6")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "PatchUrlProtectionBypassRequestVariant3_12f6a033c058d1e1")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "BuyCreditsResponseVariant2PurchaseIntentConfigurationVariant6_707ee1f7a9f8edf1")] @@ -5903,7 +5904,6 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "CreateFlagSegmentResponseDataRuleConditionRhsVariant3ItemVariant2_4479c943dd23aac2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "UpdateFlagSegmentResponseDataRuleConditionRhsVariant4_bool_fa6d1dfc6dd8248e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "UpdateFlagSegmentResponseDataRuleConditionRhsVariant3ItemVariant2_81f3823b8f371dab")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "GetConfigurationResponseVariant1TransferRequestVariant2_7201615247308b3f")] internal sealed partial class SourceGenerationContextChunk014 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk015.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk015.g.cs index 852c206d9..02ee3b68f 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk015.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk015.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), @@ -5404,6 +5404,7 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>), typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "GetConfigurationResponseVariant1TransferRequestVariant2_7201615247308b3f")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "GetConfigurationProductsResponseProductMetadataSchemaPropertiesVariant11_7e51d6e4b88ebfb7")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "GetConfigurationProductsResponseProductMetadataSchemaPropertiesVariant1UiReadOnlyEnum2_ef1392da742e14de")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "GetConfigurationProductsResponseProductMetadataSchemaPropertiesVariant1UiHiddenEnum2_2c1d88e00fbe2520")] @@ -5558,6 +5559,8 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "UpdateMicrofrontendsResponseAbuseBlockHistoryItemVariant4RouteVariant2_dab0e19622e18628")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "UpdateMicrofrontendsResponseAbuseBlockHistoryItemVariant4RouteVariant2HaVariant2_0bf40146add4328b")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "UpdateMicrofrontendsResponseInternalRouteVariant2HaVariant2_1933603f83aaab8b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2_0859b79f30ff4326")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "CreateSandboxesSessionsBySessionIdStopResponseVariant2_fafa14b5ab0d7934")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::Vercel.CreateIntegrationStoreDirectResponseStoreProjectFilterGitProviders?>?), TypeInfoPropertyName = "CreateIntegrationStoreDirectResponseStoreProjectFilterGitProviders_eaf282a93725adad")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "CreateIntegrationStoreDirectResponseStoreProductMetadataSchemaPropertiesVariant11_c658cf651f7aa357")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf?), TypeInfoPropertyName = "CreateIntegrationStoreDirectResponseStoreProductMetadataSchemaPropertiesVariant1UiReadOnlyEnum2_7a0cea2e483bcda3")] @@ -5804,24 +5807,24 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -5901,9 +5904,6 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "CreateDeploymentResponseFunctionsExperimentalTriggerVariant2_6e166bf8afed4737")] internal sealed partial class SourceGenerationContextChunk015 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk016.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk016.g.cs index ac5c80173..871fec4a9 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk016.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk016.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), @@ -5404,6 +5404,9 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>), typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "CreateDeploymentResponseFunctionsExperimentalTriggerVariant2_6e166bf8afed4737")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "CreateDeploymentResponseRouteVariant1MissingItemVariant2_d2f3395bd62bf06e")] @@ -5901,9 +5904,6 @@ namespace Vercel [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::Vercel.CreateProjectEnvResponseCreatedItemTarget?>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::Vercel.CreateProjectEnvResponseFailedItemErrorTarget?>))] internal sealed partial class SourceGenerationContextChunk016 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk017.g.cs b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk017.g.cs index 3bb4da5c3..ff5d431d0 100644 --- a/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk017.g.cs +++ b/src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk017.g.cs @@ -624,12 +624,12 @@ namespace Vercel typeof(global::Vercel.JsonConverters.CreateSandboxesRequestNetworkPolicyVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeJsonConverter), typeof(global::Vercel.JsonConverters.CreateSandboxesRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter), - typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter), + typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigRequestCrsMaActionJsonConverter), @@ -824,16 +824,16 @@ namespace Vercel typeof(global::Vercel.JsonConverters.FilterProjectEnvsDecryptNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateJsonConverter), typeof(global::Vercel.JsonConverters.GetRollingReleaseStateNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortByNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSandboxesSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionSnapshotsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderJsonConverter), - typeof(global::Vercel.JsonConverters.ListSessionsSortOrderNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandWaitNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortByNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSnapshotsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsSortOrderNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdWaitNullableJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleJsonConverter), typeof(global::Vercel.JsonConverters.GetTeamMembersRoleNullableJsonConverter), typeof(global::Vercel.JsonConverters.ReadAccessGroupResponseTeamPermissionJsonConverter), @@ -4290,10 +4290,10 @@ namespace Vercel typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseDismissedToastActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvJsonConverter), typeof(global::Vercel.JsonConverters.UpdateMicrofrontendsResponseTracingSamplingRuleEnvNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeNullableJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter), - typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeNullableJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter), + typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsSdActionNullableJsonConverter), typeof(global::Vercel.JsonConverters.PutFirewallConfigResponseActiveCrsMaActionJsonConverter), @@ -4774,11 +4774,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter, double?>), typeof(global::Vercel.JsonConverters.AnyOfJsonConverter), @@ -5312,11 +5312,11 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), - typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), + typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter), typeof(global::Vercel.JsonConverters.OneOfJsonConverter>), typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::Vercel.PutFirewallConfigResponseActiveRuleVariant1ActionMitigateLogHeaders?>), @@ -5404,6 +5404,9 @@ namespace Vercel typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>), typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::Vercel.CreateProjectEnvResponseFailedItemErrorTarget?>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf, global::Vercel.GetProjectEnvResponseVariant1Target?>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest.Json.g.cs new file mode 100644 index 000000000..a89a3074b --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandRequest.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandRequest.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest.g.cs index a06df04b5..8dcd0d4de 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class KillSessionCommandRequest + public sealed partial class CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest { /// /// The POSIX signal number to send to the process. Common values: 15 (SIGTERM) for graceful termination, 9 (SIGKILL) for forced termination.
@@ -24,7 +24,7 @@ public sealed partial class KillSessionCommandRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The POSIX signal number to send to the process. Common values: 15 (SIGTERM) for graceful termination, 9 (SIGKILL) for forced termination.
@@ -33,16 +33,16 @@ public sealed partial class KillSessionCommandRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public KillSessionCommandRequest( + public CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest( double signal) { this.Signal = signal; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public KillSessionCommandRequest() + public CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.Json.g.cs new file mode 100644 index 000000000..db2cfef47 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.g.cs index abce52473..ed5538420 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class RunSessionCommandResponse + public sealed partial class CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse { /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -22,7 +22,7 @@ public sealed partial class RunSessionCommandResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -30,16 +30,16 @@ public sealed partial class RunSessionCommandResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RunSessionCommandResponse( + public CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse( global::Vercel.SessionCommand command) { this.Command = command ?? throw new global::System.ArgumentNullException(nameof(command)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RunSessionCommandResponse() + public CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequestExpiration.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequest.Json.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequestExpiration.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequest.Json.g.cs index a533b8a3f..dd8f3b4c2 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequestExpiration.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class CreateSessionSnapshotRequestExpiration + public sealed partial class CreateSandboxesSessionsBySessionIdCmdRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.CreateSessionSnapshotRequestExpiration? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.CreateSessionSnapshotRequestExpiration), - jsonSerializerContext) as global::Vercel.CreateSessionSnapshotRequestExpiration; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.CreateSessionSnapshotRequestExpiration? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.CreateSessionSnapshotRequestExpiration), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSessionSnapshotRequestExpiration; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequest.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequest.g.cs similarity index 91% rename from src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequest.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequest.g.cs index 724bc024e..8b7a2bf11 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequest.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class RunSessionCommandRequest + public sealed partial class CreateSandboxesSessionsBySessionIdCmdRequest { /// /// The executable or shell command to run. This is the program name without arguments.
@@ -63,7 +63,7 @@ public sealed partial class RunSessionCommandRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The executable or shell command to run. This is the program name without arguments.
@@ -93,7 +93,7 @@ public sealed partial class RunSessionCommandRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RunSessionCommandRequest( + public CreateSandboxesSessionsBySessionIdCmdRequest( string command, global::System.Collections.Generic.IList? args, string? cwd, @@ -110,9 +110,9 @@ public RunSessionCommandRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RunSessionCommandRequest() + public CreateSandboxesSessionsBySessionIdCmdRequest() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequestEnv.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequestEnv.Json.g.cs new file mode 100644 index 000000000..4de3e31b7 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequestEnv.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdCmdRequestEnv + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequestEnv? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequestEnv), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequestEnv; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequestEnv? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequestEnv), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequestEnv; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequestEnv.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequestEnv.g.cs similarity index 89% rename from src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequestEnv.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequestEnv.g.cs index 5fb042159..e4e66c8cd 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequestEnv.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdRequestEnv.g.cs @@ -8,7 +8,7 @@ namespace Vercel /// Default Value: {}
/// Example: {"NODE_ENV":"production","DEBUG":"true"} ///
- public sealed partial class RunSessionCommandRequestEnv + public sealed partial class CreateSandboxesSessionsBySessionIdCmdRequestEnv { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse.Json.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequest.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse.Json.g.cs index 8ae4ce4e8..f338727bd 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequest.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class CreateSessionSnapshotRequest + public sealed partial class CreateSandboxesSessionsBySessionIdCmdResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.CreateSessionSnapshotRequest? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.CreateSessionSnapshotRequest), - jsonSerializerContext) as global::Vercel.CreateSessionSnapshotRequest; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.CreateSessionSnapshotRequest? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.CreateSessionSnapshotRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSessionSnapshotRequest; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse.g.cs index 5975280d2..846ce3b2b 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class GetSessionCommandResponse + public sealed partial class CreateSandboxesSessionsBySessionIdCmdResponse { /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -22,7 +22,7 @@ public sealed partial class GetSessionCommandResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -30,16 +30,16 @@ public sealed partial class GetSessionCommandResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetSessionCommandResponse( + public CreateSandboxesSessionsBySessionIdCmdResponse( global::Vercel.SessionCommand command) { this.Command = command ?? throw new global::System.ArgumentNullException(nameof(command)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetSessionCommandResponse() + public CreateSandboxesSessionsBySessionIdCmdResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse2.Json.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryRequest.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse2.Json.g.cs index cd519c607..7fc62dd99 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryRequest.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse2.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class CreateSessionDirectoryRequest + public sealed partial class CreateSandboxesSessionsBySessionIdCmdResponse2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.CreateSessionDirectoryRequest? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.CreateSessionDirectoryRequest), - jsonSerializerContext) as global::Vercel.CreateSessionDirectoryRequest; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.CreateSessionDirectoryRequest? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.CreateSessionDirectoryRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSessionDirectoryRequest; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse2.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse2.g.cs index bfe9e4f09..63e03cecc 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdCmdResponse2.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class RunSessionCommandResponse2 + public sealed partial class CreateSandboxesSessionsBySessionIdCmdResponse2 { /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -22,7 +22,7 @@ public sealed partial class RunSessionCommandResponse2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -30,16 +30,16 @@ public sealed partial class RunSessionCommandResponse2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RunSessionCommandResponse2( + public CreateSandboxesSessionsBySessionIdCmdResponse2( global::Vercel.SessionCommand command) { this.Command = command ?? throw new global::System.ArgumentNullException(nameof(command)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RunSessionCommandResponse2() + public CreateSandboxesSessionsBySessionIdCmdResponse2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest.Json.g.cs new file mode 100644 index 000000000..228b8a337 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdExtendTimeoutRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutRequest.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest.g.cs similarity index 74% rename from src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutRequest.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest.g.cs index 647e89652..efef982b1 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ExtendSessionTimeoutRequest + public sealed partial class CreateSandboxesSessionsBySessionIdExtendTimeoutRequest { /// /// The amount of time in milliseconds to add to the current timeout. Must be at least 1000ms (1 second).
@@ -24,7 +24,7 @@ public sealed partial class ExtendSessionTimeoutRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The amount of time in milliseconds to add to the current timeout. Must be at least 1000ms (1 second).
@@ -33,16 +33,16 @@ public sealed partial class ExtendSessionTimeoutRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ExtendSessionTimeoutRequest( + public CreateSandboxesSessionsBySessionIdExtendTimeoutRequest( double duration) { this.Duration = duration; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ExtendSessionTimeoutRequest() + public CreateSandboxesSessionsBySessionIdExtendTimeoutRequest() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.Json.g.cs new file mode 100644 index 000000000..09f48e69f --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdExtendTimeoutResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.g.cs index be50b1835..5c7e598ab 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ExtendSessionTimeoutResponse + public sealed partial class CreateSandboxesSessionsBySessionIdExtendTimeoutResponse { /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -22,7 +22,7 @@ public sealed partial class ExtendSessionTimeoutResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -30,16 +30,16 @@ public sealed partial class ExtendSessionTimeoutResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ExtendSessionTimeoutResponse( + public CreateSandboxesSessionsBySessionIdExtendTimeoutResponse( global::Vercel.Session session) { this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ExtendSessionTimeoutResponse() + public CreateSandboxesSessionsBySessionIdExtendTimeoutResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirRequest.Json.g.cs new file mode 100644 index 000000000..c479606bf --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdFsMkdirRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryRequest.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirRequest.g.cs similarity index 90% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryRequest.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirRequest.g.cs index 58336c9f7..57aab4463 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirRequest.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class CreateSessionDirectoryRequest + public sealed partial class CreateSandboxesSessionsBySessionIdFsMkdirRequest { /// /// The base directory for resolving relative paths. If not specified, paths are resolved from the sandbox home directory.
@@ -39,7 +39,7 @@ public sealed partial class CreateSessionDirectoryRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The path of the directory to create. Can be absolute or relative to the working directory.
@@ -56,7 +56,7 @@ public sealed partial class CreateSessionDirectoryRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateSessionDirectoryRequest( + public CreateSandboxesSessionsBySessionIdFsMkdirRequest( string path, string? cwd, bool? recursive) @@ -67,9 +67,9 @@ public CreateSessionDirectoryRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateSessionDirectoryRequest() + public CreateSandboxesSessionsBySessionIdFsMkdirRequest() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirResponse.Json.g.cs new file mode 100644 index 000000000..34b624947 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdFsMkdirResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirResponse), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant1.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirResponse.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant1.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirResponse.g.cs index e175ee51b..7598dc17f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant1.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsMkdirResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSessionsResponseVariant1 + public sealed partial class CreateSandboxesSessionsBySessionIdFsMkdirResponse { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsReadRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsReadRequest.Json.g.cs new file mode 100644 index 000000000..493c61e31 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsReadRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdFsReadRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ReadSessionFileRequest.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsReadRequest.g.cs similarity index 82% rename from src/libs/Vercel/Generated/Vercel.Models.ReadSessionFileRequest.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsReadRequest.g.cs index b81a762ec..8432416f7 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ReadSessionFileRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsReadRequest.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ReadSessionFileRequest + public sealed partial class CreateSandboxesSessionsBySessionIdFsReadRequest { /// /// The base directory for resolving relative paths. If not specified, paths are resolved from the sandbox home directory.
@@ -32,7 +32,7 @@ public sealed partial class ReadSessionFileRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The path of the file to read. Can be absolute or relative to the working directory.
@@ -45,7 +45,7 @@ public sealed partial class ReadSessionFileRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ReadSessionFileRequest( + public CreateSandboxesSessionsBySessionIdFsReadRequest( string path, string? cwd) { @@ -54,9 +54,9 @@ public ReadSessionFileRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ReadSessionFileRequest() + public CreateSandboxesSessionsBySessionIdFsReadRequest() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsWriteResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsWriteResponse.Json.g.cs new file mode 100644 index 000000000..fa453f806 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsWriteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdFsWriteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsWriteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsWriteResponse), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdFsWriteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdFsWriteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdFsWriteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdFsWriteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsWriteResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsWriteResponse.g.cs new file mode 100644 index 000000000..30311636e --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdFsWriteResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class CreateSandboxesSessionsBySessionIdFsWriteResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1.Json.g.cs new file mode 100644 index 000000000..706c24b58 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1.g.cs similarity index 82% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1.g.cs index 15c0384ed..7ca7b1b0e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Network access policy for the sandbox.\n Controls which external hosts the sandbox can communicate with.\n Use \"allow-all\" mode to allow all traffic, \"deny-all\" to block all traffic or \"custom\" to provide specific rules. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1 + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1 { /// /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
@@ -14,9 +14,9 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1 ///
/// custom [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.UpdateSandboxRequestNetworkPolicyVariant1ModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode Mode { get; set; } + public required global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode Mode { get; set; } /// /// List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains).
@@ -46,7 +46,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1 /// HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. ///
[global::System.Text.Json.Serialization.JsonPropertyName("injectionRules")] - public global::System.Collections.Generic.IList? InjectionRules { get; set; } + public global::System.Collections.Generic.IList? InjectionRules { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,7 +55,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
@@ -79,12 +79,12 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1Mode mode, + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode mode, global::System.Collections.Generic.IList? allowedDomains, global::System.Collections.Generic.IList? allowedCIDRs, global::System.Collections.Generic.IList? deniedCIDRs, - global::System.Collections.Generic.IList? injectionRules) + global::System.Collections.Generic.IList? injectionRules) { this.Mode = mode; this.AllowedDomains = allowedDomains; @@ -94,9 +94,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule.Json.g.cs new file mode 100644 index 000000000..d654e52d5 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule.g.cs similarity index 78% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule.g.cs index d4f8b205e..48e0ce387 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRule + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule { /// /// The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com. @@ -26,7 +26,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// [global::System.Text.Json.Serialization.JsonPropertyName("match")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch? Match { get; set; } + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch? Match { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,7 +35,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com. @@ -49,10 +49,10 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRule( + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule( string domain, global::System.Collections.Generic.Dictionary headers, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch? match) + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch? match) { this.Domain = domain ?? throw new global::System.ArgumentNullException(nameof(domain)); this.Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers)); @@ -60,9 +60,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1InjectionRule( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRule() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRule() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders.Json.g.cs new file mode 100644 index 000000000..f0b2b61f2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders.g.cs index cbaad2d8b..f1a8d7591 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleHeaders { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch.Json.g.cs new file mode 100644 index 000000000..6e4ffd742 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch.g.cs similarity index 72% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch.g.cs index 2df086090..812709253 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch.g.cs @@ -6,13 +6,13 @@ namespace Vercel /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch { /// /// Match on the request path. Comparison is case-sensitive. /// [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath? Path { get; set; } + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath? Path { get; set; } /// /// HTTP methods to match. Any single match succeeds (OR semantics). @@ -24,13 +24,13 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa /// Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("queryString")] - public global::System.Collections.Generic.IList? QueryString { get; set; } + public global::System.Collections.Generic.IList? QueryString { get; set; } /// /// Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("headers")] - public global::System.Collections.Generic.IList? Headers { get; set; } + public global::System.Collections.Generic.IList? Headers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,7 +39,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match on the request path. Comparison is case-sensitive. @@ -56,11 +56,11 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath? path, + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath? path, global::System.Collections.Generic.IList? method, - global::System.Collections.Generic.IList? queryString, - global::System.Collections.Generic.IList? headers) + global::System.Collections.Generic.IList? queryString, + global::System.Collections.Generic.IList? headers) { this.Path = path; this.Method = method; @@ -69,9 +69,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatch() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader.Json.g.cs new file mode 100644 index 000000000..a2269619d --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader.g.cs new file mode 100644 index 000000000..40b197c4f --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader + { + /// + /// Matcher for the entry key (header name or query key). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? Key { get; set; } + + /// + /// Matcher for the entry value. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? Value { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Matcher for the entry key (header name or query key). + /// + /// + /// Matcher for the entry value. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? key, + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? value) + { + this.Key = key; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeader() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.Json.g.cs new file mode 100644 index 000000000..87ec809e1 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.g.cs new file mode 100644 index 000000000..31c1af1bb --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// Matcher for the entry key (header name or query key). + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey + { + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exact")] + public string? Exact { get; set; } + + /// + /// Match values that start with the given prefix. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] + public string? StartsWith { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + /// + /// Match values that start with the given prefix. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey( + string? exact, + string? startsWith) + { + this.Exact = exact; + this.StartsWith = startsWith; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.Json.g.cs new file mode 100644 index 000000000..bc6a535a3 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.g.cs new file mode 100644 index 000000000..11f5ae668 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// Matcher for the entry value. + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue + { + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exact")] + public string? Exact { get; set; } + + /// + /// Match values that start with the given prefix. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] + public string? StartsWith { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + /// + /// Match values that start with the given prefix. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue( + string? exact, + string? startsWith) + { + this.Exact = exact; + this.StartsWith = startsWith; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath.Json.g.cs new file mode 100644 index 000000000..fdf72b892 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath.g.cs index 1a2d3aeb9..40a936939 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Match on the request path. Comparison is case-sensitive. /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath( + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchPath() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.Json.g.cs new file mode 100644 index 000000000..d6d4fd858 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.g.cs new file mode 100644 index 000000000..fee629de3 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem + { + /// + /// Matcher for the entry key (header name or query key). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? Key { get; set; } + + /// + /// Matcher for the entry value. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? Value { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Matcher for the entry key (header name or query key). + /// + /// + /// Matcher for the entry value. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? key, + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? value) + { + this.Key = key; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs new file mode 100644 index 000000000..a36abd9da --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.g.cs new file mode 100644 index 000000000..25ca4d3b4 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// Matcher for the entry key (header name or query key). + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey + { + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exact")] + public string? Exact { get; set; } + + /// + /// Match values that start with the given prefix. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] + public string? StartsWith { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + /// + /// Match values that start with the given prefix. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey( + string? exact, + string? startsWith) + { + this.Exact = exact; + this.StartsWith = startsWith; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs new file mode 100644 index 000000000..286da3f84 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.g.cs new file mode 100644 index 000000000..641ce0b0e --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// Matcher for the entry value. + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue + { + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exact")] + public string? Exact { get; set; } + + /// + /// Match values that start with the given prefix. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] + public string? StartsWith { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + /// + /// Match values that start with the given prefix. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue( + string? exact, + string? startsWith) + { + this.Exact = exact; + this.StartsWith = startsWith; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.g.cs new file mode 100644 index 000000000..4813f8d89 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
+ /// Example: custom + ///
+ public enum CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode + { + /// + /// + /// + AllowAll, + /// + /// + /// + Custom, + /// + /// + /// + DefaultAllow, + /// + /// + /// + DefaultDeny, + /// + /// + /// + DenyAll, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1ModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode value) + { + return value switch + { + CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.AllowAll => "allow-all", + CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.Custom => "custom", + CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.DefaultAllow => "default-allow", + CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.DefaultDeny => "default-deny", + CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.DenyAll => "deny-all", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode? ToEnum(string value) + { + return value switch + { + "allow-all" => CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.AllowAll, + "custom" => CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.Custom, + "default-allow" => CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.DefaultAllow, + "default-deny" => CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.DefaultDeny, + "deny-all" => CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant1Mode.DenyAll, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2.Json.g.cs new file mode 100644 index 000000000..e1a4f17de --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2.g.cs similarity index 63% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2.g.cs index af375bb46..8cc31c18b 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2.g.cs @@ -6,20 +6,20 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2 + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("allow")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>))] - public global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? Allow { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>))] + public global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? Allow { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("subnets")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets? Subnets { get; set; } + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets? Subnets { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,25 +28,25 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2( - global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? allow, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets? subnets) + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2( + global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? allow, + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets? subnets) { this.Allow = allow; this.Subnets = subnets; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow.Json.g.cs new file mode 100644 index 000000000..0d23aabde --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow.g.cs new file mode 100644 index 000000000..6ebd5b9e0 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Allow + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem.Json.g.cs new file mode 100644 index 000000000..2b20bfb57 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem.g.cs similarity index 70% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItem.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem.g.cs index 57b137be8..d39b5fb85 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItem.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem.g.cs @@ -6,19 +6,19 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItem + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem { /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// [global::System.Text.Json.Serialization.JsonPropertyName("match")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch? Match { get; set; } + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch? Match { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("transform")] - public global::System.Collections.Generic.IList? Transform { get; set; } + public global::System.Collections.Generic.IList? Transform { get; set; } /// /// HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment. @@ -33,7 +33,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItem public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. @@ -45,9 +45,9 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItem #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItem( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch? match, - global::System.Collections.Generic.IList? transform, + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch? match, + global::System.Collections.Generic.IList? transform, string? forwardURL) { this.Match = match; @@ -56,9 +56,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2AllowItem( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItem() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItem() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch.Json.g.cs new file mode 100644 index 000000000..ad8bf98b4 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch.g.cs index 0a24c7de2..2f1af55c7 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch.g.cs @@ -6,13 +6,13 @@ namespace Vercel /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch { /// /// Match on the request path. Comparison is case-sensitive. /// [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath? Path { get; set; } + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath? Path { get; set; } /// /// HTTP methods to match. Any single match succeeds (OR semantics). @@ -24,13 +24,13 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu /// Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("queryString")] - public global::System.Collections.Generic.IList? QueryString { get; set; } + public global::System.Collections.Generic.IList? QueryString { get; set; } /// /// Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("headers")] - public global::System.Collections.Generic.IList? Headers { get; set; } + public global::System.Collections.Generic.IList? Headers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,7 +39,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match on the request path. Comparison is case-sensitive. @@ -56,11 +56,11 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath? path, + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath? path, global::System.Collections.Generic.IList? method, - global::System.Collections.Generic.IList? queryString, - global::System.Collections.Generic.IList? headers) + global::System.Collections.Generic.IList? queryString, + global::System.Collections.Generic.IList? headers) { this.Path = path; this.Method = method; @@ -69,9 +69,9 @@ public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatch() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader.Json.g.cs new file mode 100644 index 000000000..c865987c2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader.g.cs similarity index 53% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader.g.cs index 114767161..41895681b 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader.g.cs @@ -6,19 +6,19 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader { /// /// Matcher for the entry key (header name or query key). /// [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? Key { get; set; } + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? Key { get; set; } /// /// Matcher for the entry value. /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? Value { get; set; } + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Matcher for the entry key (header name or query key). @@ -38,18 +38,18 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? key, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? value) + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? key, + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? value) { this.Key = key; this.Value = value; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeader() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.Json.g.cs new file mode 100644 index 000000000..85ca4e053 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.g.cs index 556f042da..aa45ad315 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry key (header name or query key). /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey( + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringIte } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderKey() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.Json.g.cs similarity index 77% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotResponse.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.Json.g.cs index 4c9a4446d..cf193c0b7 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotResponse.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class CreateSessionSnapshotResponse + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.CreateSessionSnapshotResponse? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.CreateSessionSnapshotResponse), - jsonSerializerContext) as global::Vercel.CreateSessionSnapshotResponse; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.CreateSessionSnapshotResponse? FromJson( + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.CreateSessionSnapshotResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSessionSnapshotResponse; + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.g.cs similarity index 72% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.g.cs index e549acf74..b2a2d65c5 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry value. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue( + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemVal } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchHeaderValue() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath.Json.g.cs new file mode 100644 index 000000000..f0f598d74 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath.g.cs similarity index 74% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath.g.cs index 3e59c6ee4..43eca73cc 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Match on the request path. Comparison is case-sensitive. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath( + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchPath() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.Json.g.cs new file mode 100644 index 000000000..64346afb5 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.g.cs new file mode 100644 index 000000000..2d4ae8f3b --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem + { + /// + /// Matcher for the entry key (header name or query key). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? Key { get; set; } + + /// + /// Matcher for the entry value. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? Value { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Matcher for the entry key (header name or query key). + /// + /// + /// Matcher for the entry value. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem( + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? key, + global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? value) + { + this.Key = key; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.Json.g.cs new file mode 100644 index 000000000..c12542999 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.g.cs new file mode 100644 index 000000000..70bdc3f77 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// Matcher for the entry key (header name or query key). + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey + { + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exact")] + public string? Exact { get; set; } + + /// + /// Match values that start with the given prefix. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] + public string? StartsWith { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + /// + /// Match values that start with the given prefix. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey( + string? exact, + string? startsWith) + { + this.Exact = exact; + this.StartsWith = startsWith; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.Json.g.cs new file mode 100644 index 000000000..998430eaa --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.g.cs new file mode 100644 index 000000000..703c42d8b --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// Matcher for the entry value. + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue + { + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exact")] + public string? Exact { get; set; } + + /// + /// Match values that start with the given prefix. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] + public string? StartsWith { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. + /// + /// + /// Match values that start with the given prefix. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue( + string? exact, + string? startsWith) + { + this.Exact = exact; + this.StartsWith = startsWith; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem.Json.g.cs new file mode 100644 index 000000000..8733f693e --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem.g.cs similarity index 63% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem.g.cs index d87d325fd..118f24a18 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem { /// /// @@ -21,22 +21,22 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemTr public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem( + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem( global::System.Collections.Generic.Dictionary? headers) { this.Headers = headers; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItem() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.Json.g.cs new file mode 100644 index 000000000..269a196a3 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.g.cs new file mode 100644 index 000000000..ddb575b70 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2AllowItemTransformItemHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets.Json.g.cs new file mode 100644 index 000000000..0ecda933d --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Subnets.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets.g.cs similarity index 72% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Subnets.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets.g.cs index fcda3341e..742d0860c 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Subnets.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2Subnets + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets { /// /// @@ -27,14 +27,14 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2Subnets public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant2Subnets( + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets( global::System.Collections.Generic.IList? allow, global::System.Collections.Generic.IList? deny) { @@ -43,9 +43,9 @@ public UpdateSessionNetworkPolicyRequestVariant2Subnets( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant2Subnets() + public CreateSandboxesSessionsBySessionIdNetworkPolicyRequestVariant2Subnets() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.Json.g.cs new file mode 100644 index 000000000..76d5a0184 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.g.cs index 51d09680b..216ef1de1 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSessionNetworkPolicyResponse + public sealed partial class CreateSandboxesSessionsBySessionIdNetworkPolicyResponse { /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -22,7 +22,7 @@ public sealed partial class UpdateSessionNetworkPolicyResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -30,16 +30,16 @@ public sealed partial class UpdateSessionNetworkPolicyResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyResponse( + public CreateSandboxesSessionsBySessionIdNetworkPolicyResponse( global::Vercel.Session session) { this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyResponse() + public CreateSandboxesSessionsBySessionIdNetworkPolicyResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequest.Json.g.cs new file mode 100644 index 000000000..4ff945456 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdSnapshotRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequest.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequest.g.cs similarity index 82% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequest.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequest.g.cs index 5521b7f32..1c95ebd15 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequest.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class CreateSessionSnapshotRequest + public sealed partial class CreateSandboxesSessionsBySessionIdSnapshotRequest { /// /// The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. @@ -22,7 +22,7 @@ public sealed partial class CreateSessionSnapshotRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. @@ -30,16 +30,16 @@ public sealed partial class CreateSessionSnapshotRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateSessionSnapshotRequest( + public CreateSandboxesSessionsBySessionIdSnapshotRequest( global::Vercel.OneOf? expiration) { this.Expiration = expiration; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateSessionSnapshotRequest() + public CreateSandboxesSessionsBySessionIdSnapshotRequest() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration.Json.g.cs new file mode 100644 index 000000000..862b6c3c9 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration.g.cs new file mode 100644 index 000000000..e7c4829b2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class CreateSandboxesSessionsBySessionIdSnapshotRequestExpiration + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotResponse.Json.g.cs new file mode 100644 index 000000000..5ee86a41b --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdSnapshotResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotResponse.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotResponse.g.cs index 53ccceac8..eafa6d48f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdSnapshotResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class CreateSessionSnapshotResponse + public sealed partial class CreateSandboxesSessionsBySessionIdSnapshotResponse { /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -29,7 +29,7 @@ public sealed partial class CreateSessionSnapshotResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -40,7 +40,7 @@ public sealed partial class CreateSessionSnapshotResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateSessionSnapshotResponse( + public CreateSandboxesSessionsBySessionIdSnapshotResponse( global::Vercel.Snapshot snapshot, global::Vercel.Session session) { @@ -49,9 +49,9 @@ public CreateSessionSnapshotResponse( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateSessionSnapshotResponse() + public CreateSandboxesSessionsBySessionIdSnapshotResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant1.Json.g.cs new file mode 100644 index 000000000..9c8c1f31c --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdStopResponseVariant1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant1), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant1; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant1; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant1.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant1.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant1.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant1.g.cs index 02e730b14..34577d54b 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant1.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant1.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class StopSessionResponseVariant1 + public sealed partial class CreateSandboxesSessionsBySessionIdStopResponseVariant1 { /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -22,7 +22,7 @@ public sealed partial class StopSessionResponseVariant1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -30,16 +30,16 @@ public sealed partial class StopSessionResponseVariant1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public StopSessionResponseVariant1( + public CreateSandboxesSessionsBySessionIdStopResponseVariant1( global::Vercel.Session session) { this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public StopSessionResponseVariant1() + public CreateSandboxesSessionsBySessionIdStopResponseVariant1() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant2.Json.g.cs new file mode 100644 index 000000000..34364b547 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class CreateSandboxesSessionsBySessionIdStopResponseVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant2), + jsonSerializerContext) as global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSandboxesSessionsBySessionIdStopResponseVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant2.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant2.g.cs index e87b649c8..385a1832f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.CreateSandboxesSessionsBySessionIdStopResponseVariant2.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class StopSessionResponseVariant2 + public sealed partial class CreateSandboxesSessionsBySessionIdStopResponseVariant2 { /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -36,7 +36,7 @@ public sealed partial class StopSessionResponseVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -50,7 +50,7 @@ public sealed partial class StopSessionResponseVariant2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public StopSessionResponseVariant2( + public CreateSandboxesSessionsBySessionIdStopResponseVariant2( global::Vercel.Snapshot snapshot, global::Vercel.NamedSandbox sandbox, global::Vercel.Session session) @@ -61,9 +61,9 @@ public StopSessionResponseVariant2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public StopSessionResponseVariant2() + public CreateSandboxesSessionsBySessionIdStopResponseVariant2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.DeleteSessionSnapshotResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesByNameResponse.Json.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.Models.DeleteSessionSnapshotResponse.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesByNameResponse.Json.g.cs index 696034dfc..e1fbbc549 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.DeleteSessionSnapshotResponse.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesByNameResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class DeleteSessionSnapshotResponse + public sealed partial class DeleteSandboxesByNameResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.DeleteSessionSnapshotResponse? FromJson( + public static global::Vercel.DeleteSandboxesByNameResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.DeleteSessionSnapshotResponse), - jsonSerializerContext) as global::Vercel.DeleteSessionSnapshotResponse; + typeof(global::Vercel.DeleteSandboxesByNameResponse), + jsonSerializerContext) as global::Vercel.DeleteSandboxesByNameResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.DeleteSessionSnapshotResponse? FromJson( + public static global::Vercel.DeleteSandboxesByNameResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.DeleteSessionSnapshotResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.DeleteSessionSnapshotResponse; + typeof(global::Vercel.DeleteSandboxesByNameResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.DeleteSandboxesByNameResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesByNameResponse.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesByNameResponse.g.cs index 1d8116e8a..3373bdea4 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesByNameResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class DeleteSandboxResponse + public sealed partial class DeleteSandboxesByNameResponse { /// /// This object contains information related to a Vercel NamedSandbox. @@ -22,7 +22,7 @@ public sealed partial class DeleteSandboxResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Vercel NamedSandbox. @@ -30,16 +30,16 @@ public sealed partial class DeleteSandboxResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DeleteSandboxResponse( + public DeleteSandboxesByNameResponse( global::Vercel.NamedSandbox sandbox) { this.Sandbox = sandbox ?? throw new global::System.ArgumentNullException(nameof(sandbox)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DeleteSandboxResponse() + public DeleteSandboxesByNameResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesSnapshotsBySnapshotIdResponse.Json.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxResponse.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesSnapshotsBySnapshotIdResponse.Json.g.cs index 00176bb43..26200dfb5 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxResponse.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesSnapshotsBySnapshotIdResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class DeleteSandboxResponse + public sealed partial class DeleteSandboxesSnapshotsBySnapshotIdResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.DeleteSandboxResponse? FromJson( + public static global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.DeleteSandboxResponse), - jsonSerializerContext) as global::Vercel.DeleteSandboxResponse; + typeof(global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse), + jsonSerializerContext) as global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.DeleteSandboxResponse? FromJson( + public static global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.DeleteSandboxResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.DeleteSandboxResponse; + typeof(global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.DeleteSessionSnapshotResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesSnapshotsBySnapshotIdResponse.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.Models.DeleteSessionSnapshotResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesSnapshotsBySnapshotIdResponse.g.cs index 28e2cfa79..ad6d70e1c 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.DeleteSessionSnapshotResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.DeleteSandboxesSnapshotsBySnapshotIdResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class DeleteSessionSnapshotResponse + public sealed partial class DeleteSandboxesSnapshotsBySnapshotIdResponse { /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -22,7 +22,7 @@ public sealed partial class DeleteSessionSnapshotResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -30,16 +30,16 @@ public sealed partial class DeleteSessionSnapshotResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DeleteSessionSnapshotResponse( + public DeleteSandboxesSnapshotsBySnapshotIdResponse( global::Vercel.Snapshot snapshot) { this.Snapshot = snapshot ?? throw new global::System.ArgumentNullException(nameof(snapshot)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DeleteSessionSnapshotResponse() + public DeleteSandboxesSnapshotsBySnapshotIdResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutRequest.Json.g.cs deleted file mode 100644 index ce4466af0..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ExtendSessionTimeoutRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ExtendSessionTimeoutRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ExtendSessionTimeoutRequest), - jsonSerializerContext) as global::Vercel.ExtendSessionTimeoutRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ExtendSessionTimeoutRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ExtendSessionTimeoutRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ExtendSessionTimeoutRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutResponse.Json.g.cs deleted file mode 100644 index 0d028ca8f..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ExtendSessionTimeoutResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ExtendSessionTimeoutResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ExtendSessionTimeoutResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ExtendSessionTimeoutResponse), - jsonSerializerContext) as global::Vercel.ExtendSessionTimeoutResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ExtendSessionTimeoutResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ExtendSessionTimeoutResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ExtendSessionTimeoutResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetNamedSandboxResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetNamedSandboxResponse.Json.g.cs deleted file mode 100644 index d95ae78e9..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.GetNamedSandboxResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class GetNamedSandboxResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.GetNamedSandboxResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.GetNamedSandboxResponse), - jsonSerializerContext) as global::Vercel.GetNamedSandboxResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.GetNamedSandboxResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.GetNamedSandboxResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetNamedSandboxResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionSnapshotResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesByNameResponse.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionSnapshotResponse.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesByNameResponse.Json.g.cs index a093d900a..3dccbcc1f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionSnapshotResponse.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesByNameResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class GetSessionSnapshotResponse + public sealed partial class GetSandboxesByNameResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.GetSessionSnapshotResponse? FromJson( + public static global::Vercel.GetSandboxesByNameResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.GetSessionSnapshotResponse), - jsonSerializerContext) as global::Vercel.GetSessionSnapshotResponse; + typeof(global::Vercel.GetSandboxesByNameResponse), + jsonSerializerContext) as global::Vercel.GetSandboxesByNameResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.GetSessionSnapshotResponse? FromJson( + public static global::Vercel.GetSandboxesByNameResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.GetSessionSnapshotResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSessionSnapshotResponse; + typeof(global::Vercel.GetSandboxesByNameResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesByNameResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetNamedSandboxResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesByNameResponse.g.cs similarity index 89% rename from src/libs/Vercel/Generated/Vercel.Models.GetNamedSandboxResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesByNameResponse.g.cs index 6d3fe53d2..cfc689b32 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetNamedSandboxResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesByNameResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class GetNamedSandboxResponse + public sealed partial class GetSandboxesByNameResponse { /// /// This object contains information related to a Vercel NamedSandbox. @@ -43,7 +43,7 @@ public sealed partial class GetNamedSandboxResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Vercel NamedSandbox. @@ -56,7 +56,7 @@ public sealed partial class GetNamedSandboxResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetNamedSandboxResponse( + public GetSandboxesByNameResponse( global::Vercel.NamedSandbox sandbox, global::Vercel.Session session, global::System.Collections.Generic.IList routes, @@ -69,9 +69,9 @@ public GetNamedSandboxResponse( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetNamedSandboxResponse() + public GetSandboxesByNameResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponse.Json.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequest.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponse.Json.g.cs index f3bf18239..8cf3b18ff 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequest.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequest + public sealed partial class GetSandboxesResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequest? FromJson( + public static global::Vercel.GetSandboxesResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequest), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequest; + typeof(global::Vercel.GetSandboxesResponse), + jsonSerializerContext) as global::Vercel.GetSandboxesResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequest? FromJson( + public static global::Vercel.GetSandboxesResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequest; + typeof(global::Vercel.GetSandboxesResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponse.g.cs similarity index 77% rename from src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponse.g.cs index 33d5ff214..8fbc84f28 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSandboxesResponse + public sealed partial class GetSandboxesResponse { /// /// @@ -20,7 +20,7 @@ public sealed partial class ListSandboxesResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("pagination")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vercel.ListSandboxesResponsePagination Pagination { get; set; } + public required global::Vercel.GetSandboxesResponsePagination Pagination { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ListSandboxesResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListSandboxesResponse( + public GetSandboxesResponse( global::System.Collections.Generic.IList sandboxes, - global::Vercel.ListSandboxesResponsePagination pagination) + global::Vercel.GetSandboxesResponsePagination pagination) { this.Sandboxes = sandboxes ?? throw new global::System.ArgumentNullException(nameof(sandboxes)); this.Pagination = pagination ?? throw new global::System.ArgumentNullException(nameof(pagination)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListSandboxesResponse() + public GetSandboxesResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponsePagination.Json.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryResponse.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponsePagination.Json.g.cs index b0f658aaa..9cac0ad6e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryResponse.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponsePagination.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class CreateSessionDirectoryResponse + public sealed partial class GetSandboxesResponsePagination { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.CreateSessionDirectoryResponse? FromJson( + public static global::Vercel.GetSandboxesResponsePagination? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.CreateSessionDirectoryResponse), - jsonSerializerContext) as global::Vercel.CreateSessionDirectoryResponse; + typeof(global::Vercel.GetSandboxesResponsePagination), + jsonSerializerContext) as global::Vercel.GetSandboxesResponsePagination; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.CreateSessionDirectoryResponse? FromJson( + public static global::Vercel.GetSandboxesResponsePagination? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.CreateSessionDirectoryResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.CreateSessionDirectoryResponse; + typeof(global::Vercel.GetSandboxesResponsePagination), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesResponsePagination; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponsePagination.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponsePagination.g.cs similarity index 78% rename from src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponsePagination.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponsePagination.g.cs index be88dbd86..13f2add18 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponsePagination.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesResponsePagination.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSandboxesResponsePagination + public sealed partial class GetSandboxesResponsePagination { /// /// @@ -28,14 +28,14 @@ public sealed partial class ListSandboxesResponsePagination public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListSandboxesResponsePagination( + public GetSandboxesResponsePagination( double count, string? next) { @@ -44,9 +44,9 @@ public ListSandboxesResponsePagination( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListSandboxesResponsePagination() + public GetSandboxesResponsePagination() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1.Json.g.cs new file mode 100644 index 000000000..db40b2423 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1.g.cs similarity index 66% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1.g.cs index 0417f78d3..9d4b4fa4a 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class GetSessionCommandLogsResponseVariant1 + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1 { /// /// @@ -20,7 +20,7 @@ public sealed partial class GetSessionCommandLogsResponseVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vercel.GetSessionCommandLogsResponseVariant1Data Data { get; set; } + public required global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class GetSessionCommandLogsResponseVariant1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetSessionCommandLogsResponseVariant1( + public GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1( string stream, - global::Vercel.GetSessionCommandLogsResponseVariant1Data data) + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data data) { this.Stream = stream ?? throw new global::System.ArgumentNullException(nameof(stream)); this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetSessionCommandLogsResponseVariant1() + public GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data.Json.g.cs new file mode 100644 index 000000000..c73937522 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1Data.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data.g.cs similarity index 50% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1Data.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data.g.cs index 34f6d208b..97403b11b 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1Data.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data.g.cs @@ -6,21 +6,21 @@ namespace Vercel /// /// /// - public sealed partial class GetSessionCommandLogsResponseVariant1Data + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataCodeJsonConverter))] - public global::Vercel.GetSessionCommandLogsResponseVariant1DataCode Code { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeJsonConverter))] + public global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode Code { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.GetSessionCommandLogsResponseVariant1DataMessageJsonConverter))] - public global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage Message { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageJsonConverter))] + public global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage Message { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class GetSessionCommandLogsResponseVariant1Data public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetSessionCommandLogsResponseVariant1Data( - global::Vercel.GetSessionCommandLogsResponseVariant1DataCode code, - global::Vercel.GetSessionCommandLogsResponseVariant1DataMessage message) + public GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data( + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode code, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage message) { this.Code = code; this.Message = message; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetSessionCommandLogsResponseVariant1Data() + public GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1Data() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1DataCode.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.g.cs similarity index 52% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1DataCode.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.g.cs index 126225a4d..b1c45b74b 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1DataCode.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public enum GetSessionCommandLogsResponseVariant1DataCode + public enum GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode { /// /// @@ -17,27 +17,27 @@ public enum GetSessionCommandLogsResponseVariant1DataCode /// /// Enum extensions to do fast conversions without the reflection. /// - public static class GetSessionCommandLogsResponseVariant1DataCodeExtensions + public static class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCodeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this GetSessionCommandLogsResponseVariant1DataCode value) + public static string ToValueString(this GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode value) { return value switch { - GetSessionCommandLogsResponseVariant1DataCode.SandboxStreamClosed => "sandbox_stream_closed", + GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.SandboxStreamClosed => "sandbox_stream_closed", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static GetSessionCommandLogsResponseVariant1DataCode? ToEnum(string value) + public static GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode? ToEnum(string value) { return value switch { - "sandbox_stream_closed" => GetSessionCommandLogsResponseVariant1DataCode.SandboxStreamClosed, + "sandbox_stream_closed" => GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataCode.SandboxStreamClosed, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1DataMessage.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.g.cs similarity index 52% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1DataMessage.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.g.cs index 4ebb08170..0eced83ad 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1DataMessage.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public enum GetSessionCommandLogsResponseVariant1DataMessage + public enum GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage { /// /// @@ -17,27 +17,27 @@ public enum GetSessionCommandLogsResponseVariant1DataMessage /// /// Enum extensions to do fast conversions without the reflection. /// - public static class GetSessionCommandLogsResponseVariant1DataMessageExtensions + public static class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessageExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this GetSessionCommandLogsResponseVariant1DataMessage value) + public static string ToValueString(this GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage value) { return value switch { - GetSessionCommandLogsResponseVariant1DataMessage.SandboxStreamWasClosedAndIsNotAcceptingCommands => "Sandbox stream was closed and is not accepting commands.", + GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.SandboxStreamWasClosedAndIsNotAcceptingCommands => "Sandbox stream was closed and is not accepting commands.", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static GetSessionCommandLogsResponseVariant1DataMessage? ToEnum(string value) + public static GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage? ToEnum(string value) { return value switch { - "Sandbox stream was closed and is not accepting commands." => GetSessionCommandLogsResponseVariant1DataMessage.SandboxStreamWasClosedAndIsNotAcceptingCommands, + "Sandbox stream was closed and is not accepting commands." => GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant1DataMessage.SandboxStreamWasClosedAndIsNotAcceptingCommands, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2.Json.g.cs new file mode 100644 index 000000000..c57cf93d2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2.g.cs similarity index 74% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2.g.cs index 5ae933621..678d54618 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class GetSessionCommandLogsResponseVariant2 + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2 { /// /// @@ -29,14 +29,14 @@ public sealed partial class GetSessionCommandLogsResponseVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetSessionCommandLogsResponseVariant2( + public GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2( string data, string stream) { @@ -45,9 +45,9 @@ public GetSessionCommandLogsResponseVariant2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetSessionCommandLogsResponseVariant2() + public GetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponseVariant2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.Json.g.cs new file mode 100644 index 000000000..98c4dcfb4 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.g.cs similarity index 74% rename from src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.g.cs index f662468c5..7ec673f42 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class KillSessionCommandResponse + public sealed partial class GetSandboxesSessionsBySessionIdCmdByCmdIdResponse { /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -22,7 +22,7 @@ public sealed partial class KillSessionCommandResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object represents a command run in a Vercel Sandbox session (v2 API). @@ -30,16 +30,16 @@ public sealed partial class KillSessionCommandResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public KillSessionCommandResponse( + public GetSandboxesSessionsBySessionIdCmdByCmdIdResponse( global::Vercel.SessionCommand command) { this.Command = command ?? throw new global::System.ArgumentNullException(nameof(command)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public KillSessionCommandResponse() + public GetSandboxesSessionsBySessionIdCmdByCmdIdResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandWait.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdWait.g.cs similarity index 60% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandWait.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdWait.g.cs index d0371099a..138663ef1 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandWait.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdByCmdIdWait.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// If set to "true", the request will block until the command finishes execution. Useful for synchronously waiting for command completion.
/// Default Value: false ///
- public enum GetSessionCommandWait + public enum GetSandboxesSessionsBySessionIdCmdByCmdIdWait { /// /// @@ -22,29 +22,29 @@ public enum GetSessionCommandWait /// /// Enum extensions to do fast conversions without the reflection. /// - public static class GetSessionCommandWaitExtensions + public static class GetSandboxesSessionsBySessionIdCmdByCmdIdWaitExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this GetSessionCommandWait value) + public static string ToValueString(this GetSandboxesSessionsBySessionIdCmdByCmdIdWait value) { return value switch { - GetSessionCommandWait.False => "false", - GetSessionCommandWait.True => "true", + GetSandboxesSessionsBySessionIdCmdByCmdIdWait.False => "false", + GetSandboxesSessionsBySessionIdCmdByCmdIdWait.True => "true", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static GetSessionCommandWait? ToEnum(string value) + public static GetSandboxesSessionsBySessionIdCmdByCmdIdWait? ToEnum(string value) { return value switch { - "false" => GetSessionCommandWait.False, - "true" => GetSessionCommandWait.True, + "false" => GetSandboxesSessionsBySessionIdCmdByCmdIdWait.False, + "true" => GetSandboxesSessionsBySessionIdCmdByCmdIdWait.True, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdResponse.Json.g.cs new file mode 100644 index 000000000..7024c05ed --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class GetSandboxesSessionsBySessionIdCmdResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionCommandsResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdResponse.g.cs similarity index 75% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionCommandsResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdResponse.g.cs index 087828574..99f3107d0 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionCommandsResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdCmdResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSessionCommandsResponse + public sealed partial class GetSandboxesSessionsBySessionIdCmdResponse { /// /// @@ -22,22 +22,22 @@ public sealed partial class ListSessionCommandsResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListSessionCommandsResponse( + public GetSandboxesSessionsBySessionIdCmdResponse( global::System.Collections.Generic.IList commands) { this.Commands = commands ?? throw new global::System.ArgumentNullException(nameof(commands)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListSessionCommandsResponse() + public GetSandboxesSessionsBySessionIdCmdResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdResponse.Json.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdResponse.Json.g.cs index 037e30c71..485201c62 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1 + public sealed partial class GetSandboxesSessionsBySessionIdResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1? FromJson( + public static global::Vercel.GetSandboxesSessionsBySessionIdResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1; + typeof(global::Vercel.GetSandboxesSessionsBySessionIdResponse), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsBySessionIdResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1? FromJson( + public static global::Vercel.GetSandboxesSessionsBySessionIdResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1; + typeof(global::Vercel.GetSandboxesSessionsBySessionIdResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsBySessionIdResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdResponse.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdResponse.g.cs index 7b9365d89..8b337c739 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsBySessionIdResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class GetSessionResponse + public sealed partial class GetSandboxesSessionsBySessionIdResponse { /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -29,7 +29,7 @@ public sealed partial class GetSessionResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key. @@ -38,7 +38,7 @@ public sealed partial class GetSessionResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetSessionResponse( + public GetSandboxesSessionsBySessionIdResponse( global::Vercel.Session session, global::System.Collections.Generic.IList routes) { @@ -47,9 +47,9 @@ public GetSessionResponse( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetSessionResponse() + public GetSandboxesSessionsBySessionIdResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant1.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant1.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant1.Json.g.cs index 9aba1d4ce..9fd92a6c9 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant1.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant1.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class ListSessionSnapshotsResponseVariant1 + public sealed partial class GetSandboxesSessionsResponseVariant1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.ListSessionSnapshotsResponseVariant1? FromJson( + public static global::Vercel.GetSandboxesSessionsResponseVariant1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.ListSessionSnapshotsResponseVariant1), - jsonSerializerContext) as global::Vercel.ListSessionSnapshotsResponseVariant1; + typeof(global::Vercel.GetSandboxesSessionsResponseVariant1), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsResponseVariant1; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.ListSessionSnapshotsResponseVariant1? FromJson( + public static global::Vercel.GetSandboxesSessionsResponseVariant1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.ListSessionSnapshotsResponseVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSessionSnapshotsResponseVariant1; + typeof(global::Vercel.GetSandboxesSessionsResponseVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsResponseVariant1; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant1.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant1.g.cs similarity index 88% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant1.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant1.g.cs index fbabe5e93..636e0400e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant1.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant1.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSessionSnapshotsResponseVariant1 + public sealed partial class GetSandboxesSessionsResponseVariant1 { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2.Json.g.cs index c8f243a7a..61a021169 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class ListSessionSnapshotsResponseVariant2 + public sealed partial class GetSandboxesSessionsResponseVariant2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.ListSessionSnapshotsResponseVariant2? FromJson( + public static global::Vercel.GetSandboxesSessionsResponseVariant2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.ListSessionSnapshotsResponseVariant2), - jsonSerializerContext) as global::Vercel.ListSessionSnapshotsResponseVariant2; + typeof(global::Vercel.GetSandboxesSessionsResponseVariant2), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsResponseVariant2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.ListSessionSnapshotsResponseVariant2? FromJson( + public static global::Vercel.GetSandboxesSessionsResponseVariant2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.ListSessionSnapshotsResponseVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSessionSnapshotsResponseVariant2; + typeof(global::Vercel.GetSandboxesSessionsResponseVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsResponseVariant2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2.g.cs index 40afeabaa..d3ed96c76 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSessionsResponseVariant2 + public sealed partial class GetSandboxesSessionsResponseVariant2 { /// /// @@ -20,7 +20,7 @@ public sealed partial class ListSessionsResponseVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("pagination")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vercel.ListSessionsResponseVariant2Pagination Pagination { get; set; } + public required global::Vercel.GetSandboxesSessionsResponseVariant2Pagination Pagination { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ListSessionsResponseVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListSessionsResponseVariant2( + public GetSandboxesSessionsResponseVariant2( global::System.Collections.Generic.IList sessions, - global::Vercel.ListSessionsResponseVariant2Pagination pagination) + global::Vercel.GetSandboxesSessionsResponseVariant2Pagination pagination) { this.Sessions = sessions ?? throw new global::System.ArgumentNullException(nameof(sessions)); this.Pagination = pagination ?? throw new global::System.ArgumentNullException(nameof(pagination)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListSessionsResponseVariant2() + public GetSandboxesSessionsResponseVariant2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2Pagination.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2Pagination.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2Pagination.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2Pagination.Json.g.cs index 362d61875..91cd4f1b3 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2Pagination.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2Pagination.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class ListSessionSnapshotsResponseVariant2Pagination + public sealed partial class GetSandboxesSessionsResponseVariant2Pagination { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.ListSessionSnapshotsResponseVariant2Pagination? FromJson( + public static global::Vercel.GetSandboxesSessionsResponseVariant2Pagination? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.ListSessionSnapshotsResponseVariant2Pagination), - jsonSerializerContext) as global::Vercel.ListSessionSnapshotsResponseVariant2Pagination; + typeof(global::Vercel.GetSandboxesSessionsResponseVariant2Pagination), + jsonSerializerContext) as global::Vercel.GetSandboxesSessionsResponseVariant2Pagination; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.ListSessionSnapshotsResponseVariant2Pagination? FromJson( + public static global::Vercel.GetSandboxesSessionsResponseVariant2Pagination? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.ListSessionSnapshotsResponseVariant2Pagination), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSessionSnapshotsResponseVariant2Pagination; + typeof(global::Vercel.GetSandboxesSessionsResponseVariant2Pagination), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSessionsResponseVariant2Pagination; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2Pagination.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2Pagination.g.cs similarity index 76% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2Pagination.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2Pagination.g.cs index 4f2b5b2f0..08025adc9 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2Pagination.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsResponseVariant2Pagination.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSessionSnapshotsResponseVariant2Pagination + public sealed partial class GetSandboxesSessionsResponseVariant2Pagination { /// /// @@ -28,14 +28,14 @@ public sealed partial class ListSessionSnapshotsResponseVariant2Pagination public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListSessionSnapshotsResponseVariant2Pagination( + public GetSandboxesSessionsResponseVariant2Pagination( double count, string? next) { @@ -44,9 +44,9 @@ public ListSessionSnapshotsResponseVariant2Pagination( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListSessionSnapshotsResponseVariant2Pagination() + public GetSandboxesSessionsResponseVariant2Pagination() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsSortOrder.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsSortOrder.g.cs similarity index 64% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsSortOrder.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsSortOrder.g.cs index a7623cfad..55a1ccddc 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsSortOrder.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSessionsSortOrder.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// Sort direction for results by creation time.
/// Default Value: desc ///
- public enum ListSessionSnapshotsSortOrder + public enum GetSandboxesSessionsSortOrder { /// /// @@ -22,29 +22,29 @@ public enum ListSessionSnapshotsSortOrder /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ListSessionSnapshotsSortOrderExtensions + public static class GetSandboxesSessionsSortOrderExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ListSessionSnapshotsSortOrder value) + public static string ToValueString(this GetSandboxesSessionsSortOrder value) { return value switch { - ListSessionSnapshotsSortOrder.Asc => "asc", - ListSessionSnapshotsSortOrder.Desc => "desc", + GetSandboxesSessionsSortOrder.Asc => "asc", + GetSandboxesSessionsSortOrder.Desc => "desc", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ListSessionSnapshotsSortOrder? ToEnum(string value) + public static GetSandboxesSessionsSortOrder? ToEnum(string value) { return value switch { - "asc" => ListSessionSnapshotsSortOrder.Asc, - "desc" => ListSessionSnapshotsSortOrder.Desc, + "asc" => GetSandboxesSessionsSortOrder.Asc, + "desc" => GetSandboxesSessionsSortOrder.Desc, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsBySnapshotIdResponse.Json.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsBySnapshotIdResponse.Json.g.cs index 136656ec3..a85068cdc 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsBySnapshotIdResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1 + public sealed partial class GetSandboxesSnapshotsBySnapshotIdResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1? FromJson( + public static global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1; + typeof(global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse), + jsonSerializerContext) as global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1? FromJson( + public static global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1; + typeof(global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionSnapshotResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsBySnapshotIdResponse.g.cs similarity index 77% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionSnapshotResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsBySnapshotIdResponse.g.cs index 7f8a5962f..b8d309c86 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionSnapshotResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsBySnapshotIdResponse.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class GetSessionSnapshotResponse + public sealed partial class GetSandboxesSnapshotsBySnapshotIdResponse { /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -22,7 +22,7 @@ public sealed partial class GetSessionSnapshotResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). @@ -30,16 +30,16 @@ public sealed partial class GetSessionSnapshotResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetSessionSnapshotResponse( + public GetSandboxesSnapshotsBySnapshotIdResponse( global::Vercel.Snapshot snapshot) { this.Snapshot = snapshot ?? throw new global::System.ArgumentNullException(nameof(snapshot)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetSessionSnapshotResponse() + public GetSandboxesSnapshotsBySnapshotIdResponse() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant1.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant1.Json.g.cs index d5d6e6338..c58637eb8 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant1.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class GetSessionCommandLogsResponseVariant1 + public sealed partial class GetSandboxesSnapshotsResponseVariant1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.GetSessionCommandLogsResponseVariant1? FromJson( + public static global::Vercel.GetSandboxesSnapshotsResponseVariant1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.GetSessionCommandLogsResponseVariant1), - jsonSerializerContext) as global::Vercel.GetSessionCommandLogsResponseVariant1; + typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant1), + jsonSerializerContext) as global::Vercel.GetSandboxesSnapshotsResponseVariant1; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.GetSessionCommandLogsResponseVariant1? FromJson( + public static global::Vercel.GetSandboxesSnapshotsResponseVariant1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.GetSessionCommandLogsResponseVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSessionCommandLogsResponseVariant1; + typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSnapshotsResponseVariant1; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant1.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryResponse.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant1.g.cs index 9e8781cf2..581e6121e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionDirectoryResponse.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant1.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class CreateSessionDirectoryResponse + public sealed partial class GetSandboxesSnapshotsResponseVariant1 { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant2.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2.Json.g.cs index 6dda85b9c..77ab5aeb8 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant2.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class GetSessionCommandLogsResponseVariant2 + public sealed partial class GetSandboxesSnapshotsResponseVariant2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.GetSessionCommandLogsResponseVariant2? FromJson( + public static global::Vercel.GetSandboxesSnapshotsResponseVariant2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.GetSessionCommandLogsResponseVariant2), - jsonSerializerContext) as global::Vercel.GetSessionCommandLogsResponseVariant2; + typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant2), + jsonSerializerContext) as global::Vercel.GetSandboxesSnapshotsResponseVariant2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.GetSessionCommandLogsResponseVariant2? FromJson( + public static global::Vercel.GetSandboxesSnapshotsResponseVariant2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.GetSessionCommandLogsResponseVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSessionCommandLogsResponseVariant2; + typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSnapshotsResponseVariant2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2.g.cs index 65ef340e4..3a3e6aa8b 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionSnapshotsResponseVariant2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSessionSnapshotsResponseVariant2 + public sealed partial class GetSandboxesSnapshotsResponseVariant2 { /// /// @@ -20,7 +20,7 @@ public sealed partial class ListSessionSnapshotsResponseVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("pagination")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vercel.ListSessionSnapshotsResponseVariant2Pagination Pagination { get; set; } + public required global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination Pagination { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ListSessionSnapshotsResponseVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListSessionSnapshotsResponseVariant2( + public GetSandboxesSnapshotsResponseVariant2( global::System.Collections.Generic.IList snapshots, - global::Vercel.ListSessionSnapshotsResponseVariant2Pagination pagination) + global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination pagination) { this.Snapshots = snapshots ?? throw new global::System.ArgumentNullException(nameof(snapshots)); this.Pagination = pagination ?? throw new global::System.ArgumentNullException(nameof(pagination)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListSessionSnapshotsResponseVariant2() + public GetSandboxesSnapshotsResponseVariant2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshotsExpiration.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2Pagination.Json.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshotsExpiration.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2Pagination.Json.g.cs index b5abb9be3..bb28e9b35 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshotsExpiration.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2Pagination.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestKeepLastSnapshotsExpiration + public sealed partial class GetSandboxesSnapshotsResponseVariant2Pagination { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestKeepLastSnapshotsExpiration? FromJson( + public static global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestKeepLastSnapshotsExpiration), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestKeepLastSnapshotsExpiration; + typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination), + jsonSerializerContext) as global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestKeepLastSnapshotsExpiration? FromJson( + public static global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestKeepLastSnapshotsExpiration), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestKeepLastSnapshotsExpiration; + typeof(global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSandboxesSnapshotsResponseVariant2Pagination; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2Pagination.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2Pagination.g.cs similarity index 74% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2Pagination.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2Pagination.g.cs index eb5a24825..1c377cb90 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2Pagination.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsResponseVariant2Pagination.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class ListSessionsResponseVariant2Pagination + public sealed partial class GetSandboxesSnapshotsResponseVariant2Pagination { /// /// @@ -28,14 +28,14 @@ public sealed partial class ListSessionsResponseVariant2Pagination public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListSessionsResponseVariant2Pagination( + public GetSandboxesSnapshotsResponseVariant2Pagination( double count, string? next) { @@ -44,9 +44,9 @@ public ListSessionsResponseVariant2Pagination( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListSessionsResponseVariant2Pagination() + public GetSandboxesSnapshotsResponseVariant2Pagination() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsSortOrder.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsSortOrder.g.cs similarity index 63% rename from src/libs/Vercel/Generated/Vercel.Models.ListSessionsSortOrder.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsSortOrder.g.cs index 82622dfc5..e101044a0 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsSortOrder.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSnapshotsSortOrder.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// Sort direction for results by creation time.
/// Default Value: desc ///
- public enum ListSessionsSortOrder + public enum GetSandboxesSnapshotsSortOrder { /// /// @@ -22,29 +22,29 @@ public enum ListSessionsSortOrder /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ListSessionsSortOrderExtensions + public static class GetSandboxesSnapshotsSortOrderExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ListSessionsSortOrder value) + public static string ToValueString(this GetSandboxesSnapshotsSortOrder value) { return value switch { - ListSessionsSortOrder.Asc => "asc", - ListSessionsSortOrder.Desc => "desc", + GetSandboxesSnapshotsSortOrder.Asc => "asc", + GetSandboxesSnapshotsSortOrder.Desc => "desc", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ListSessionsSortOrder? ToEnum(string value) + public static GetSandboxesSnapshotsSortOrder? ToEnum(string value) { return value switch { - "asc" => ListSessionsSortOrder.Asc, - "desc" => ListSessionsSortOrder.Desc, + "asc" => GetSandboxesSnapshotsSortOrder.Asc, + "desc" => GetSandboxesSnapshotsSortOrder.Desc, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesSortBy.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSortBy.g.cs similarity index 58% rename from src/libs/Vercel/Generated/Vercel.Models.ListSandboxesSortBy.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSortBy.g.cs index 73f25c3e3..a97d4f01e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesSortBy.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSortBy.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// Field to sort by.
/// Default Value: createdAt ///
- public enum ListSandboxesSortBy + public enum GetSandboxesSortBy { /// /// @@ -30,33 +30,33 @@ public enum ListSandboxesSortBy /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ListSandboxesSortByExtensions + public static class GetSandboxesSortByExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ListSandboxesSortBy value) + public static string ToValueString(this GetSandboxesSortBy value) { return value switch { - ListSandboxesSortBy.CreatedAt => "createdAt", - ListSandboxesSortBy.CurrentSnapshotId => "currentSnapshotId", - ListSandboxesSortBy.Name => "name", - ListSandboxesSortBy.StatusUpdatedAt => "statusUpdatedAt", + GetSandboxesSortBy.CreatedAt => "createdAt", + GetSandboxesSortBy.CurrentSnapshotId => "currentSnapshotId", + GetSandboxesSortBy.Name => "name", + GetSandboxesSortBy.StatusUpdatedAt => "statusUpdatedAt", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ListSandboxesSortBy? ToEnum(string value) + public static GetSandboxesSortBy? ToEnum(string value) { return value switch { - "createdAt" => ListSandboxesSortBy.CreatedAt, - "currentSnapshotId" => ListSandboxesSortBy.CurrentSnapshotId, - "name" => ListSandboxesSortBy.Name, - "statusUpdatedAt" => ListSandboxesSortBy.StatusUpdatedAt, + "createdAt" => GetSandboxesSortBy.CreatedAt, + "currentSnapshotId" => GetSandboxesSortBy.CurrentSnapshotId, + "name" => GetSandboxesSortBy.Name, + "statusUpdatedAt" => GetSandboxesSortBy.StatusUpdatedAt, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesSortOrder.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSortOrder.g.cs similarity index 66% rename from src/libs/Vercel/Generated/Vercel.Models.ListSandboxesSortOrder.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSortOrder.g.cs index da5ec0ce1..7f168b34e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesSortOrder.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.GetSandboxesSortOrder.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// Sort direction. Defaults to desc.
/// Default Value: desc ///
- public enum ListSandboxesSortOrder + public enum GetSandboxesSortOrder { /// /// @@ -22,29 +22,29 @@ public enum ListSandboxesSortOrder /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ListSandboxesSortOrderExtensions + public static class GetSandboxesSortOrderExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ListSandboxesSortOrder value) + public static string ToValueString(this GetSandboxesSortOrder value) { return value switch { - ListSandboxesSortOrder.Asc => "asc", - ListSandboxesSortOrder.Desc => "desc", + GetSandboxesSortOrder.Asc => "asc", + GetSandboxesSortOrder.Desc => "desc", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ListSandboxesSortOrder? ToEnum(string value) + public static GetSandboxesSortOrder? ToEnum(string value) { return value switch { - "asc" => ListSandboxesSortOrder.Asc, - "desc" => ListSandboxesSortOrder.Desc, + "asc" => GetSandboxesSortOrder.Asc, + "desc" => GetSandboxesSortOrder.Desc, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1Data.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1Data.Json.g.cs deleted file mode 100644 index 3a5084aaa..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandLogsResponseVariant1Data.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class GetSessionCommandLogsResponseVariant1Data - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.GetSessionCommandLogsResponseVariant1Data? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.GetSessionCommandLogsResponseVariant1Data), - jsonSerializerContext) as global::Vercel.GetSessionCommandLogsResponseVariant1Data; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.GetSessionCommandLogsResponseVariant1Data? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.GetSessionCommandLogsResponseVariant1Data), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSessionCommandLogsResponseVariant1Data; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandResponse.Json.g.cs deleted file mode 100644 index 15e9b6a1e..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionCommandResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class GetSessionCommandResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.GetSessionCommandResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.GetSessionCommandResponse), - jsonSerializerContext) as global::Vercel.GetSessionCommandResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.GetSessionCommandResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.GetSessionCommandResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSessionCommandResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.GetSessionResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.GetSessionResponse.Json.g.cs deleted file mode 100644 index 9df1c03ee..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.GetSessionResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class GetSessionResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.GetSessionResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.GetSessionResponse), - jsonSerializerContext) as global::Vercel.GetSessionResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.GetSessionResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.GetSessionResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.GetSessionResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandRequest.Json.g.cs deleted file mode 100644 index f6002409c..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class KillSessionCommandRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.KillSessionCommandRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.KillSessionCommandRequest), - jsonSerializerContext) as global::Vercel.KillSessionCommandRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.KillSessionCommandRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.KillSessionCommandRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.KillSessionCommandRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandResponse.Json.g.cs deleted file mode 100644 index 1cb8403ad..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.KillSessionCommandResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class KillSessionCommandResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.KillSessionCommandResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.KillSessionCommandResponse), - jsonSerializerContext) as global::Vercel.KillSessionCommandResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.KillSessionCommandResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.KillSessionCommandResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.KillSessionCommandResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponse.Json.g.cs deleted file mode 100644 index 880aeb4f1..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ListSandboxesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ListSandboxesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ListSandboxesResponse), - jsonSerializerContext) as global::Vercel.ListSandboxesResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ListSandboxesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ListSandboxesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSandboxesResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponsePagination.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponsePagination.Json.g.cs deleted file mode 100644 index 44a73bfa2..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSandboxesResponsePagination.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ListSandboxesResponsePagination - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ListSandboxesResponsePagination? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ListSandboxesResponsePagination), - jsonSerializerContext) as global::Vercel.ListSandboxesResponsePagination; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ListSandboxesResponsePagination? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ListSandboxesResponsePagination), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSandboxesResponsePagination; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionCommandsResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ListSessionCommandsResponse.Json.g.cs deleted file mode 100644 index d96cfb58c..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionCommandsResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ListSessionCommandsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ListSessionCommandsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ListSessionCommandsResponse), - jsonSerializerContext) as global::Vercel.ListSessionCommandsResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ListSessionCommandsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ListSessionCommandsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSessionCommandsResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant1.Json.g.cs deleted file mode 100644 index 88bd594e3..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant1.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ListSessionsResponseVariant1 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ListSessionsResponseVariant1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ListSessionsResponseVariant1), - jsonSerializerContext) as global::Vercel.ListSessionsResponseVariant1; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ListSessionsResponseVariant1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ListSessionsResponseVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSessionsResponseVariant1; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2.Json.g.cs deleted file mode 100644 index ecb20d315..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ListSessionsResponseVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ListSessionsResponseVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ListSessionsResponseVariant2), - jsonSerializerContext) as global::Vercel.ListSessionsResponseVariant2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ListSessionsResponseVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ListSessionsResponseVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSessionsResponseVariant2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2Pagination.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2Pagination.Json.g.cs deleted file mode 100644 index 573892620..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ListSessionsResponseVariant2Pagination.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ListSessionsResponseVariant2Pagination - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ListSessionsResponseVariant2Pagination? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ListSessionsResponseVariant2Pagination), - jsonSerializerContext) as global::Vercel.ListSessionsResponseVariant2Pagination; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ListSessionsResponseVariant2Pagination? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ListSessionsResponseVariant2Pagination), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ListSessionsResponseVariant2Pagination; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.ReadSessionFileRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.ReadSessionFileRequest.Json.g.cs deleted file mode 100644 index d1f6b39e2..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.ReadSessionFileRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class ReadSessionFileRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.ReadSessionFileRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.ReadSessionFileRequest), - jsonSerializerContext) as global::Vercel.ReadSessionFileRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.ReadSessionFileRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.ReadSessionFileRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.ReadSessionFileRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequest.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequest.Json.g.cs deleted file mode 100644 index 2819e345c..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class RunSessionCommandRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.RunSessionCommandRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.RunSessionCommandRequest), - jsonSerializerContext) as global::Vercel.RunSessionCommandRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.RunSessionCommandRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.RunSessionCommandRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.RunSessionCommandRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequestEnv.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequestEnv.Json.g.cs deleted file mode 100644 index 95ffe6671..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandRequestEnv.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class RunSessionCommandRequestEnv - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.RunSessionCommandRequestEnv? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.RunSessionCommandRequestEnv), - jsonSerializerContext) as global::Vercel.RunSessionCommandRequestEnv; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.RunSessionCommandRequestEnv? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.RunSessionCommandRequestEnv), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.RunSessionCommandRequestEnv; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse.Json.g.cs deleted file mode 100644 index 5487be5dd..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class RunSessionCommandResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.RunSessionCommandResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.RunSessionCommandResponse), - jsonSerializerContext) as global::Vercel.RunSessionCommandResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.RunSessionCommandResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.RunSessionCommandResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.RunSessionCommandResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse2.Json.g.cs deleted file mode 100644 index 38ee2b5e3..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.RunSessionCommandResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class RunSessionCommandResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.RunSessionCommandResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.RunSessionCommandResponse2), - jsonSerializerContext) as global::Vercel.RunSessionCommandResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.RunSessionCommandResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.RunSessionCommandResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.RunSessionCommandResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant1.Json.g.cs deleted file mode 100644 index 007d9eb1c..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant1.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class StopSessionResponseVariant1 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.StopSessionResponseVariant1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.StopSessionResponseVariant1), - jsonSerializerContext) as global::Vercel.StopSessionResponseVariant1; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.StopSessionResponseVariant1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.StopSessionResponseVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.StopSessionResponseVariant1; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant2.Json.g.cs deleted file mode 100644 index c781f857c..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.StopSessionResponseVariant2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class StopSessionResponseVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.StopSessionResponseVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.StopSessionResponseVariant2), - jsonSerializerContext) as global::Vercel.StopSessionResponseVariant2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.StopSessionResponseVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.StopSessionResponseVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.StopSessionResponseVariant2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshotsExpiration.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshotsExpiration.g.cs deleted file mode 100644 index 5fce8f9c7..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshotsExpiration.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSandboxRequestKeepLastSnapshotsExpiration - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule.Json.g.cs deleted file mode 100644 index 646b0d3f2..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRule - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRule; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders.Json.g.cs deleted file mode 100644 index ae2377bd2..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch.Json.g.cs deleted file mode 100644 index d466c8bbe..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader.Json.g.cs deleted file mode 100644 index 84a3ac15e..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.Json.g.cs deleted file mode 100644 index 9d3bc2806..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath.Json.g.cs deleted file mode 100644 index e59702b6d..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.Json.g.cs deleted file mode 100644 index 7a009b270..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs deleted file mode 100644 index f0feba129..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs deleted file mode 100644 index 9c38d1269..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1Mode.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1Mode.g.cs deleted file mode 100644 index f5f51adda..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1Mode.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
- /// Example: custom - ///
- public enum UpdateSandboxRequestNetworkPolicyVariant1Mode - { - /// - /// - /// - AllowAll, - /// - /// - /// - Custom, - /// - /// - /// - DefaultAllow, - /// - /// - /// - DefaultDeny, - /// - /// - /// - DenyAll, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class UpdateSandboxRequestNetworkPolicyVariant1ModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this UpdateSandboxRequestNetworkPolicyVariant1Mode value) - { - return value switch - { - UpdateSandboxRequestNetworkPolicyVariant1Mode.AllowAll => "allow-all", - UpdateSandboxRequestNetworkPolicyVariant1Mode.Custom => "custom", - UpdateSandboxRequestNetworkPolicyVariant1Mode.DefaultAllow => "default-allow", - UpdateSandboxRequestNetworkPolicyVariant1Mode.DefaultDeny => "default-deny", - UpdateSandboxRequestNetworkPolicyVariant1Mode.DenyAll => "deny-all", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static UpdateSandboxRequestNetworkPolicyVariant1Mode? ToEnum(string value) - { - return value switch - { - "allow-all" => UpdateSandboxRequestNetworkPolicyVariant1Mode.AllowAll, - "custom" => UpdateSandboxRequestNetworkPolicyVariant1Mode.Custom, - "default-allow" => UpdateSandboxRequestNetworkPolicyVariant1Mode.DefaultAllow, - "default-deny" => UpdateSandboxRequestNetworkPolicyVariant1Mode.DefaultDeny, - "deny-all" => UpdateSandboxRequestNetworkPolicyVariant1Mode.DenyAll, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Allow.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Allow.g.cs deleted file mode 100644 index 21a09386f..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Allow.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2Allow - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItem.Json.g.cs deleted file mode 100644 index 69c015281..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItem), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch.Json.g.cs deleted file mode 100644 index f4fec0781..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatch; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader.Json.g.cs deleted file mode 100644 index cd3cceb80..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.Json.g.cs deleted file mode 100644 index 3a612ac6c..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.Json.g.cs deleted file mode 100644 index 978ab123f..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath.Json.g.cs deleted file mode 100644 index 6706220cc..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.Json.g.cs deleted file mode 100644 index 80f966da6..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.Json.g.cs deleted file mode 100644 index 4d3c1d441..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.Json.g.cs deleted file mode 100644 index 91b3ff1cc..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem.Json.g.cs deleted file mode 100644 index 85cfd782e..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.Json.g.cs deleted file mode 100644 index 3860f58b8..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.g.cs deleted file mode 100644 index 4e1130675..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItemHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestSnapshotExpiration.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestSnapshotExpiration.Json.g.cs deleted file mode 100644 index 05428e01b..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestSnapshotExpiration.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxRequestSnapshotExpiration - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxRequestSnapshotExpiration? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxRequestSnapshotExpiration), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestSnapshotExpiration; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxRequestSnapshotExpiration? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxRequestSnapshotExpiration), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestSnapshotExpiration; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestSnapshotExpiration.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestSnapshotExpiration.g.cs deleted file mode 100644 index 82b5f851e..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestSnapshotExpiration.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSandboxRequestSnapshotExpiration - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant2.Json.g.cs deleted file mode 100644 index 02461b597..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSandboxResponseVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSandboxResponseVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSandboxResponseVariant2), - jsonSerializerContext) as global::Vercel.UpdateSandboxResponseVariant2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSandboxResponseVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSandboxResponseVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxResponseVariant2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestEnv.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequest.Json.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestEnv.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequest.Json.g.cs index db45f7cc1..5c827083e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestEnv.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestEnv + public sealed partial class UpdateSandboxesByNameRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestEnv? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestEnv), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestEnv; + typeof(global::Vercel.UpdateSandboxesByNameRequest), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestEnv? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestEnv), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestEnv; + typeof(global::Vercel.UpdateSandboxesByNameRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequest.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequest.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequest.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequest.g.cs index abc35f8c6..8980a1a6f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequest.g.cs @@ -6,13 +6,13 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequest + public sealed partial class UpdateSandboxesByNameRequest { /// /// Resources to define the VM /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] - public global::Vercel.UpdateSandboxRequestResources? Resources { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestResources? Resources { get; set; } /// /// The runtime environment for the sandbox. Determines the pre-installed language runtimes and tools available.
@@ -20,8 +20,8 @@ public sealed partial class UpdateSandboxRequest ///
/// node24 [global::System.Text.Json.Serialization.JsonPropertyName("runtime")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.UpdateSandboxRequestRuntimeJsonConverter))] - public global::Vercel.UpdateSandboxRequestRuntime? Runtime { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestRuntimeJsonConverter))] + public global::Vercel.UpdateSandboxesByNameRequestRuntime? Runtime { get; set; } /// /// Maximum duration in milliseconds that the sandbox can run before being automatically stopped.
@@ -50,15 +50,15 @@ public sealed partial class UpdateSandboxRequest /// Protect the N most recent snapshots with different expiration/deletion behavior. Set to null to clear. ///
[global::System.Text.Json.Serialization.JsonPropertyName("keepLastSnapshots")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter))] - public global::Vercel.OneOf? KeepLastSnapshots { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter))] + public global::Vercel.OneOf? KeepLastSnapshots { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("networkPolicy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter))] - public global::Vercel.OneOf? NetworkPolicy { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter))] + public global::Vercel.OneOf? NetworkPolicy { get; set; } /// /// Default environment variables for the sandbox. Set to empty object to clear.
@@ -97,7 +97,7 @@ public sealed partial class UpdateSandboxRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Resources to define the VM @@ -139,14 +139,14 @@ public sealed partial class UpdateSandboxRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequest( - global::Vercel.UpdateSandboxRequestResources? resources, - global::Vercel.UpdateSandboxRequestRuntime? runtime, + public UpdateSandboxesByNameRequest( + global::Vercel.UpdateSandboxesByNameRequestResources? resources, + global::Vercel.UpdateSandboxesByNameRequestRuntime? runtime, int? timeout, bool? persistent, global::Vercel.OneOf? snapshotExpiration, - global::Vercel.OneOf? keepLastSnapshots, - global::Vercel.OneOf? networkPolicy, + global::Vercel.OneOf? keepLastSnapshots, + global::Vercel.OneOf? networkPolicy, global::System.Collections.Generic.Dictionary? env, global::System.Collections.Generic.IList? ports, string? currentSnapshotId, @@ -166,9 +166,9 @@ public UpdateSandboxRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequest() + public UpdateSandboxesByNameRequest() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestResources.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestEnv.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestResources.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestEnv.Json.g.cs index 5e245daef..5e571a167 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestResources.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestEnv.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestResources + public sealed partial class UpdateSandboxesByNameRequestEnv { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestResources? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestEnv? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestResources), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestResources; + typeof(global::Vercel.UpdateSandboxesByNameRequestEnv), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestEnv; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestResources? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestEnv? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestResources), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestResources; + typeof(global::Vercel.UpdateSandboxesByNameRequestEnv), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestEnv; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestEnv.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestEnv.g.cs similarity index 90% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestEnv.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestEnv.g.cs index e9574432a..3e14ef75a 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestEnv.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestEnv.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// Default environment variables for the sandbox. Set to empty object to clear.
/// Example: {"NODE_ENV":"production","HELLO":"world"} ///
- public sealed partial class UpdateSandboxRequestEnv + public sealed partial class UpdateSandboxesByNameRequestEnv { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshots.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshots.Json.g.cs new file mode 100644 index 000000000..8e6d5caef --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshots.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestKeepLastSnapshots + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshots? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshots), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshots; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshots? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshots), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshots; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshots.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshots.g.cs similarity index 89% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshots.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshots.g.cs index e66935ba8..f92d6a97e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshots.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshots.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestKeepLastSnapshots + public sealed partial class UpdateSandboxesByNameRequestKeepLastSnapshots { /// /// Number of most recent snapshots to keep. @@ -35,7 +35,7 @@ public sealed partial class UpdateSandboxRequestKeepLastSnapshots public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Number of most recent snapshots to keep. @@ -49,7 +49,7 @@ public sealed partial class UpdateSandboxRequestKeepLastSnapshots #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestKeepLastSnapshots( + public UpdateSandboxesByNameRequestKeepLastSnapshots( int count, global::Vercel.OneOf? expiration, bool? deleteEvicted) @@ -60,9 +60,9 @@ public UpdateSandboxRequestKeepLastSnapshots( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestKeepLastSnapshots() + public UpdateSandboxesByNameRequestKeepLastSnapshots() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration.Json.g.cs new file mode 100644 index 000000000..a291fa91a --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration.g.cs new file mode 100644 index 000000000..cf298ef62 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class UpdateSandboxesByNameRequestKeepLastSnapshotsExpiration + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1.Json.g.cs new file mode 100644 index 000000000..4e02c49c2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1.g.cs index 53ff6b7f7..5988d1ebb 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Network access policy for the sandbox.\n Controls which external hosts the sandbox can communicate with.\n Use \"allow-all\" mode to allow all traffic, \"deny-all\" to block all traffic or \"custom\" to provide specific rules. /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1 + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1 { /// /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
@@ -14,9 +14,9 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1 ///
/// custom [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.UpdateSessionNetworkPolicyRequestVariant1ModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode Mode { get; set; } + public required global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode Mode { get; set; } /// /// List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains).
@@ -46,7 +46,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1 /// HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. ///
[global::System.Text.Json.Serialization.JsonPropertyName("injectionRules")] - public global::System.Collections.Generic.IList? InjectionRules { get; set; } + public global::System.Collections.Generic.IList? InjectionRules { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,7 +55,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
@@ -79,12 +79,12 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant1( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1Mode mode, + public UpdateSandboxesByNameRequestNetworkPolicyVariant1( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode mode, global::System.Collections.Generic.IList? allowedDomains, global::System.Collections.Generic.IList? allowedCIDRs, global::System.Collections.Generic.IList? deniedCIDRs, - global::System.Collections.Generic.IList? injectionRules) + global::System.Collections.Generic.IList? injectionRules) { this.Mode = mode; this.AllowedDomains = allowedDomains; @@ -94,9 +94,9 @@ public UpdateSessionNetworkPolicyRequestVariant1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant1() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule.Json.g.cs new file mode 100644 index 000000000..fbaf04ee2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRule.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRule.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule.g.cs index 1ebe24c67..a1245977c 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRule.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRule + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule { /// /// The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com. @@ -26,7 +26,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// [global::System.Text.Json.Serialization.JsonPropertyName("match")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch? Match { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch? Match { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,7 +35,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com. @@ -49,10 +49,10 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRule( + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule( string domain, global::System.Collections.Generic.Dictionary headers, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch? match) + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch? match) { this.Domain = domain ?? throw new global::System.ArgumentNullException(nameof(domain)); this.Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers)); @@ -60,9 +60,9 @@ public UpdateSessionNetworkPolicyRequestVariant1InjectionRule( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRule() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRule() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders.Json.g.cs new file mode 100644 index 000000000..0b796d9f3 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders.g.cs index 85c81b850..d8dea7460 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleHeaders + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleHeaders { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch.Json.g.cs new file mode 100644 index 000000000..e4615b36c --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch.g.cs similarity index 77% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch.g.cs index 58a6f75a3..9d2383675 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch.g.cs @@ -6,13 +6,13 @@ namespace Vercel /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch { /// /// Match on the request path. Comparison is case-sensitive. /// [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath? Path { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath? Path { get; set; } /// /// HTTP methods to match. Any single match succeeds (OR semantics). @@ -24,13 +24,13 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMa /// Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("queryString")] - public global::System.Collections.Generic.IList? QueryString { get; set; } + public global::System.Collections.Generic.IList? QueryString { get; set; } /// /// Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("headers")] - public global::System.Collections.Generic.IList? Headers { get; set; } + public global::System.Collections.Generic.IList? Headers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,7 +39,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match on the request path. Comparison is case-sensitive. @@ -56,11 +56,11 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath? path, + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath? path, global::System.Collections.Generic.IList? method, - global::System.Collections.Generic.IList? queryString, - global::System.Collections.Generic.IList? headers) + global::System.Collections.Generic.IList? queryString, + global::System.Collections.Generic.IList? headers) { this.Path = path; this.Method = method; @@ -69,9 +69,9 @@ public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatch() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader.Json.g.cs new file mode 100644 index 000000000..d3b6a460d --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader.g.cs similarity index 61% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader.g.cs index a0c9f24e7..4f7f64776 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader.g.cs @@ -6,19 +6,19 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader { /// /// Matcher for the entry key (header name or query key). /// [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? Key { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? Key { get; set; } /// /// Matcher for the entry value. /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? Value { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Matcher for the entry key (header name or query key). @@ -38,18 +38,18 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? key, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? value) + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? key, + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? value) { this.Key = key; this.Value = value; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeader() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeader() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.Json.g.cs new file mode 100644 index 000000000..333eccf70 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.g.cs similarity index 80% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.g.cs index 5ef4545ef..9e573e95f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry key (header name or query key). /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey( + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.Json.g.cs new file mode 100644 index 000000000..ae6d71cbf --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.g.cs similarity index 79% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.g.cs index 2a7ff52fa..82a2f14b5 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry value. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue( + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Subnets.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath.Json.g.cs similarity index 79% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Subnets.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath.Json.g.cs index 5e587ff1f..22da7f1c8 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Subnets.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2Subnets + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Subnets; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath.g.cs similarity index 81% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath.g.cs index f65bc63ee..bb8345f84 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Match on the request path. Comparison is case-sensitive. /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath( + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchPath() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.Json.g.cs new file mode 100644 index 000000000..546a50873 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.g.cs similarity index 59% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.g.cs index be7036651..55012111a 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.g.cs @@ -6,19 +6,19 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem { /// /// Matcher for the entry key (header name or query key). /// [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? Key { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? Key { get; set; } /// /// Matcher for the entry value. /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? Value { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Matcher for the entry key (header name or query key). @@ -38,18 +38,18 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey? key, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? value) + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? key, + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? value) { this.Key = key; this.Value = value; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeader() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs similarity index 77% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs index 1921d6006..f9f0bbc62 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderValue; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.g.cs similarity index 78% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.g.cs index 907321531..0e044855f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry key (header name or query key). /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey( + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs similarity index 77% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant1.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs index 1420d5c61..3aad4acb6 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant1.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxResponseVariant1 + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxResponseVariant1? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxResponseVariant1), - jsonSerializerContext) as global::Vercel.UpdateSandboxResponseVariant1; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxResponseVariant1? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxResponseVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxResponseVariant1; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.g.cs similarity index 78% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.g.cs index 44ff7cc7a..1a836433d 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry value. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue( + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderValue() + public UpdateSandboxesByNameRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.g.cs new file mode 100644 index 000000000..017ccf441 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
+ /// Example: custom + ///
+ public enum UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode + { + /// + /// + /// + AllowAll, + /// + /// + /// + Custom, + /// + /// + /// + DefaultAllow, + /// + /// + /// + DefaultDeny, + /// + /// + /// + DenyAll, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateSandboxesByNameRequestNetworkPolicyVariant1ModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode value) + { + return value switch + { + UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.AllowAll => "allow-all", + UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.Custom => "custom", + UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.DefaultAllow => "default-allow", + UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.DefaultDeny => "default-deny", + UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.DenyAll => "deny-all", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode? ToEnum(string value) + { + return value switch + { + "allow-all" => UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.AllowAll, + "custom" => UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.Custom, + "default-allow" => UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.DefaultAllow, + "default-deny" => UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.DefaultDeny, + "deny-all" => UpdateSandboxesByNameRequestNetworkPolicyVariant1Mode.DenyAll, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2.Json.g.cs new file mode 100644 index 000000000..1c83887e2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2.g.cs similarity index 71% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2.g.cs index ab17e8869..9e7109bcd 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2.g.cs @@ -6,20 +6,20 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2 + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("allow")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>))] - public global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? Allow { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vercel.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.Dictionary>>))] + public global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? Allow { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("subnets")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets? Subnets { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets? Subnets { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,25 +28,25 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant2( - global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? allow, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets? subnets) + public UpdateSandboxesByNameRequestNetworkPolicyVariant2( + global::Vercel.OneOf, global::System.Collections.Generic.Dictionary>>? allow, + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets? subnets) { this.Allow = allow; this.Subnets = subnets; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant2() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow.Json.g.cs new file mode 100644 index 000000000..7e200ddb2 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow.g.cs new file mode 100644 index 000000000..0f7c74e02 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2Allow + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem.Json.g.cs new file mode 100644 index 000000000..5c8ae3a4c --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem.g.cs similarity index 76% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItem.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem.g.cs index 7dcb192bc..e640d329a 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItem.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem.g.cs @@ -6,19 +6,19 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItem + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem { /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// [global::System.Text.Json.Serialization.JsonPropertyName("match")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch? Match { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch? Match { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("transform")] - public global::System.Collections.Generic.IList? Transform { get; set; } + public global::System.Collections.Generic.IList? Transform { get; set; } /// /// HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment. @@ -33,7 +33,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItem public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. @@ -45,9 +45,9 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItem #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItem( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch? match, - global::System.Collections.Generic.IList? transform, + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch? match, + global::System.Collections.Generic.IList? transform, string? forwardURL) { this.Match = match; @@ -56,9 +56,9 @@ public UpdateSessionNetworkPolicyRequestVariant2AllowItem( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItem() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItem() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch.Json.g.cs new file mode 100644 index 000000000..4b5f8543e --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch.g.cs similarity index 78% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch.g.cs index 72d780cd7..e6b0eb870 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch.g.cs @@ -6,13 +6,13 @@ namespace Vercel /// /// Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch { /// /// Match on the request path. Comparison is case-sensitive. /// [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath? Path { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath? Path { get; set; } /// /// HTTP methods to match. Any single match succeeds (OR semantics). @@ -24,13 +24,13 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu /// Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("queryString")] - public global::System.Collections.Generic.IList? QueryString { get; set; } + public global::System.Collections.Generic.IList? QueryString { get; set; } /// /// Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. /// [global::System.Text.Json.Serialization.JsonPropertyName("headers")] - public global::System.Collections.Generic.IList? Headers { get; set; } + public global::System.Collections.Generic.IList? Headers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,7 +39,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match on the request path. Comparison is case-sensitive. @@ -56,11 +56,11 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchPath? path, + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath? path, global::System.Collections.Generic.IList? method, - global::System.Collections.Generic.IList? queryString, - global::System.Collections.Generic.IList? headers) + global::System.Collections.Generic.IList? queryString, + global::System.Collections.Generic.IList? headers) { this.Path = path; this.Method = method; @@ -69,9 +69,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatch() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatch() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader.Json.g.cs new file mode 100644 index 000000000..e73453b38 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader.g.cs similarity index 62% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader.g.cs index cb33595dc..2ad975fa8 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader.g.cs @@ -6,19 +6,19 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader { /// /// Matcher for the entry key (header name or query key). /// [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? Key { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? Key { get; set; } /// /// Matcher for the entry value. /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? Value { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,7 +27,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Matcher for the entry key (header name or query key). @@ -38,18 +38,18 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? key, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? value) + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? key, + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? value) { this.Key = key; this.Value = value; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeader() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.Json.g.cs new file mode 100644 index 000000000..f7dbec8bc --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.g.cs similarity index 80% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.g.cs index 5237d6946..3e39e788c 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry key (header name or query key). /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey( + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchHeaderKey() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderKey() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.Json.g.cs new file mode 100644 index 000000000..3ffef0755 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.g.cs similarity index 80% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.g.cs index 37da5778b..0467be186 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry value. /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue( + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchHeaderValue() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath.Json.g.cs new file mode 100644 index 000000000..a5c706b58 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath.g.cs similarity index 81% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath.g.cs index 340418761..5053f9e92 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Match on the request path. Comparison is case-sensitive. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemMa #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath( + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemMatchPath() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchPath() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.Json.g.cs new file mode 100644 index 000000000..1b60341b6 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.g.cs similarity index 60% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.g.cs index 82fa26ead..38938e7f8 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem.g.cs @@ -6,19 +6,19 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem { /// /// Matcher for the entry key (header name or query key). /// [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? Key { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? Key { get; set; } /// /// Matcher for the entry value. /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? Value { get; set; } + public global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Matcher for the entry key (header name or query key). @@ -38,18 +38,18 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem( - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemKey? key, - global::Vercel.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue? value) + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem( + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? key, + global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? value) { this.Key = key; this.Value = value; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItem() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItem() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.Json.g.cs similarity index 78% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.Json.g.cs index 497bc9aea..36a051641 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2 + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.g.cs similarity index 79% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.g.cs index fa3ade0e2..d4b3ab249 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry key (header name or query key). /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey( + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchHeaderKey() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemKey() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.Json.g.cs new file mode 100644 index 000000000..3a9b702a9 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.g.cs similarity index 78% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.g.cs index 769699fd3..ece9d0f6c 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Matcher for the entry value. /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue { /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -27,7 +27,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant1InjectionRu #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue( + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue( string? exact, string? startsWith) { @@ -47,9 +47,9 @@ public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringIte } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant1InjectionRuleMatchQueryStringItemValue() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemMatchQueryStringItemValue() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Subnets.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem.Json.g.cs similarity index 79% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Subnets.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem.Json.g.cs index 3e5a7751c..3e80a9911 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Subnets.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2Subnets + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Subnets; + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem.g.cs similarity index 73% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem.g.cs index 3c174320d..08576dd4e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem { /// /// @@ -21,22 +21,22 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2AllowItemTr public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem( + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem( global::System.Collections.Generic.Dictionary? headers) { this.Headers = headers; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2AllowItemTransformItem() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItem() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.Json.g.cs new file mode 100644 index 000000000..3252b60e4 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.g.cs new file mode 100644 index 000000000..41c788545 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vercel +{ + /// + /// + /// + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2AllowItemTransformItemHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets.Json.g.cs new file mode 100644 index 000000000..7ee893c79 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Subnets.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets.g.cs similarity index 81% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Subnets.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets.g.cs index 7b75d32c1..f65280adf 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Subnets.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2Subnets + public sealed partial class UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets { /// /// @@ -27,14 +27,14 @@ public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2Subnets public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestNetworkPolicyVariant2Subnets( + public UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets( global::System.Collections.Generic.IList? allow, global::System.Collections.Generic.IList? deny) { @@ -43,9 +43,9 @@ public UpdateSandboxRequestNetworkPolicyVariant2Subnets( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestNetworkPolicyVariant2Subnets() + public UpdateSandboxesByNameRequestNetworkPolicyVariant2Subnets() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshots.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestResources.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshots.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestResources.Json.g.cs index 4e42921db..a139506a6 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestKeepLastSnapshots.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestResources.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestKeepLastSnapshots + public sealed partial class UpdateSandboxesByNameRequestResources { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestKeepLastSnapshots? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestResources? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestKeepLastSnapshots), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestKeepLastSnapshots; + typeof(global::Vercel.UpdateSandboxesByNameRequestResources), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestResources; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestKeepLastSnapshots? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestResources? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestKeepLastSnapshots), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestKeepLastSnapshots; + typeof(global::Vercel.UpdateSandboxesByNameRequestResources), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestResources; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestResources.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestResources.g.cs similarity index 88% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestResources.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestResources.g.cs index e2189756a..93a06bcb7 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestResources.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestResources.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// Resources to define the VM /// - public sealed partial class UpdateSandboxRequestResources + public sealed partial class UpdateSandboxesByNameRequestResources { /// /// The number of virtual CPUs to allocate to the sandbox. Must be 1, or an even number.
@@ -31,7 +31,7 @@ public sealed partial class UpdateSandboxRequestResources public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The number of virtual CPUs to allocate to the sandbox. Must be 1, or an even number.
@@ -44,7 +44,7 @@ public sealed partial class UpdateSandboxRequestResources #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxRequestResources( + public UpdateSandboxesByNameRequestResources( int? vcpus, int? memory) { @@ -53,9 +53,9 @@ public UpdateSandboxRequestResources( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxRequestResources() + public UpdateSandboxesByNameRequestResources() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestRuntime.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestRuntime.g.cs similarity index 55% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestRuntime.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestRuntime.g.cs index 1f50a563c..38577cd26 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestRuntime.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestRuntime.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// The runtime environment for the sandbox. Determines the pre-installed language runtimes and tools available.
/// Example: node24 ///
- public enum UpdateSandboxRequestRuntime + public enum UpdateSandboxesByNameRequestRuntime { /// /// @@ -30,33 +30,33 @@ public enum UpdateSandboxRequestRuntime /// /// Enum extensions to do fast conversions without the reflection. /// - public static class UpdateSandboxRequestRuntimeExtensions + public static class UpdateSandboxesByNameRequestRuntimeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this UpdateSandboxRequestRuntime value) + public static string ToValueString(this UpdateSandboxesByNameRequestRuntime value) { return value switch { - UpdateSandboxRequestRuntime.Node22 => "node22", - UpdateSandboxRequestRuntime.Node24 => "node24", - UpdateSandboxRequestRuntime.Node26 => "node26", - UpdateSandboxRequestRuntime.Python313 => "python3.13", + UpdateSandboxesByNameRequestRuntime.Node22 => "node22", + UpdateSandboxesByNameRequestRuntime.Node24 => "node24", + UpdateSandboxesByNameRequestRuntime.Node26 => "node26", + UpdateSandboxesByNameRequestRuntime.Python313 => "python3.13", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static UpdateSandboxRequestRuntime? ToEnum(string value) + public static UpdateSandboxesByNameRequestRuntime? ToEnum(string value) { return value switch { - "node22" => UpdateSandboxRequestRuntime.Node22, - "node24" => UpdateSandboxRequestRuntime.Node24, - "node26" => UpdateSandboxRequestRuntime.Node26, - "python3.13" => UpdateSandboxRequestRuntime.Python313, + "node22" => UpdateSandboxesByNameRequestRuntime.Node22, + "node24" => UpdateSandboxesByNameRequestRuntime.Node24, + "node26" => UpdateSandboxesByNameRequestRuntime.Node26, + "python3.13" => UpdateSandboxesByNameRequestRuntime.Python313, _ => null, }; } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Allow.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestSnapshotExpiration.Json.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Allow.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestSnapshotExpiration.Json.g.cs index 7f1595ad4..d506ea109 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestNetworkPolicyVariant2Allow.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestSnapshotExpiration.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestNetworkPolicyVariant2Allow + public sealed partial class UpdateSandboxesByNameRequestSnapshotExpiration { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Allow? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestSnapshotExpiration? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Allow), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Allow; + typeof(global::Vercel.UpdateSandboxesByNameRequestSnapshotExpiration), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestSnapshotExpiration; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Allow? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestSnapshotExpiration? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Allow), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestNetworkPolicyVariant2Allow; + typeof(global::Vercel.UpdateSandboxesByNameRequestSnapshotExpiration), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestSnapshotExpiration; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequestExpiration.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestSnapshotExpiration.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequestExpiration.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestSnapshotExpiration.g.cs index 25c8d7fd1..f170c1e64 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.CreateSessionSnapshotRequestExpiration.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestSnapshotExpiration.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class CreateSessionSnapshotRequestExpiration + public sealed partial class UpdateSandboxesByNameRequestSnapshotExpiration { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestTags.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestTags.Json.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestTags.Json.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestTags.Json.g.cs index b8600237d..42b27168f 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestTags.Json.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestTags.Json.g.cs @@ -2,7 +2,7 @@ namespace Vercel { - public sealed partial class UpdateSandboxRequestTags + public sealed partial class UpdateSandboxesByNameRequestTags { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vercel.UpdateSandboxRequestTags? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestTags? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vercel.UpdateSandboxRequestTags), - jsonSerializerContext) as global::Vercel.UpdateSandboxRequestTags; + typeof(global::Vercel.UpdateSandboxesByNameRequestTags), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameRequestTags; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vercel.UpdateSandboxRequestTags? FromJson( + public static global::Vercel.UpdateSandboxesByNameRequestTags? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vercel.UpdateSandboxRequestTags), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxRequestTags; + typeof(global::Vercel.UpdateSandboxesByNameRequestTags), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameRequestTags; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestTags.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestTags.g.cs similarity index 90% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestTags.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestTags.g.cs index e75b52a36..ec82ef408 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxRequestTags.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameRequestTags.g.cs @@ -7,7 +7,7 @@ namespace Vercel /// Key-value tags to associate with the sandbox. Replaces existing tags. Set to empty object to clear. Maximum 5 tags.
/// Example: {"env":"staging","team":"platform"} ///
- public sealed partial class UpdateSandboxRequestTags + public sealed partial class UpdateSandboxesByNameRequestTags { /// diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant1.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant1.Json.g.cs new file mode 100644 index 000000000..12b065863 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameResponseVariant1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameResponseVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameResponseVariant1), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameResponseVariant1; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameResponseVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameResponseVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameResponseVariant1; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant1.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant1.g.cs similarity index 88% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant1.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant1.g.cs index a797d1623..bf1b84c32 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant1.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant1.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxResponseVariant1 + public sealed partial class UpdateSandboxesByNameResponseVariant1 { /// /// @@ -29,7 +29,7 @@ public sealed partial class UpdateSandboxResponseVariant1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -38,7 +38,7 @@ public sealed partial class UpdateSandboxResponseVariant1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxResponseVariant1( + public UpdateSandboxesByNameResponseVariant1( global::System.Collections.Generic.IList routes, global::Vercel.NamedSandbox sandbox) { @@ -47,9 +47,9 @@ public UpdateSandboxResponseVariant1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxResponseVariant1() + public UpdateSandboxesByNameResponseVariant1() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant2.Json.g.cs new file mode 100644 index 000000000..332757d90 --- /dev/null +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vercel +{ + public sealed partial class UpdateSandboxesByNameResponseVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vercel.UpdateSandboxesByNameResponseVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vercel.UpdateSandboxesByNameResponseVariant2), + jsonSerializerContext) as global::Vercel.UpdateSandboxesByNameResponseVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Vercel.UpdateSandboxesByNameResponseVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vercel.UpdateSandboxesByNameResponseVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSandboxesByNameResponseVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant2.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant2.g.cs similarity index 92% rename from src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant2.g.cs rename to src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant2.g.cs index 55fc40a76..ce342e91e 100644 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxResponseVariant2.g.cs +++ b/src/libs/Vercel/Generated/Vercel.Models.UpdateSandboxesByNameResponseVariant2.g.cs @@ -6,7 +6,7 @@ namespace Vercel /// /// /// - public sealed partial class UpdateSandboxResponseVariant2 + public sealed partial class UpdateSandboxesByNameResponseVariant2 { /// /// This object contains information related to a Vercel NamedSandbox. @@ -43,7 +43,7 @@ public sealed partial class UpdateSandboxResponseVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// This object contains information related to a Vercel NamedSandbox. @@ -56,7 +56,7 @@ public sealed partial class UpdateSandboxResponseVariant2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateSandboxResponseVariant2( + public UpdateSandboxesByNameResponseVariant2( global::Vercel.NamedSandbox sandbox, global::Vercel.Session session, global::System.Collections.Generic.IList routes, @@ -69,9 +69,9 @@ public UpdateSandboxResponseVariant2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateSandboxResponseVariant2() + public UpdateSandboxesByNameResponseVariant2() { } diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRule.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRule.Json.g.cs deleted file mode 100644 index 78728e2a0..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRule.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRule - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRule? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRule), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRule; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRule? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRule), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRule; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders.Json.g.cs deleted file mode 100644 index 7ff6ff8e4..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch.Json.g.cs deleted file mode 100644 index 1f9655caa..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatch; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader.Json.g.cs deleted file mode 100644 index edeafac8a..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeader; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.Json.g.cs deleted file mode 100644 index f11959565..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.Json.g.cs deleted file mode 100644 index c11b36d2d..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchHeaderValue; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath.Json.g.cs deleted file mode 100644 index 37a64d167..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchPath; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.Json.g.cs deleted file mode 100644 index b55f91fb2..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.g.cs deleted file mode 100644 index e7cafb831..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem - { - /// - /// Matcher for the entry key (header name or query key). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? Key { get; set; } - - /// - /// Matcher for the entry value. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? Value { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Matcher for the entry key (header name or query key). - /// - /// - /// Matcher for the entry value. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? key, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? value) - { - this.Key = key; - this.Value = value; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs deleted file mode 100644 index ea57a50fe..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.g.cs deleted file mode 100644 index b4bd0d027..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// Matcher for the entry key (header name or query key). - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey - { - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exact")] - public string? Exact { get; set; } - - /// - /// Match values that start with the given prefix. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] - public string? StartsWith { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - /// - /// Match values that start with the given prefix. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey( - string? exact, - string? startsWith) - { - this.Exact = exact; - this.StartsWith = startsWith; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemKey() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs deleted file mode 100644 index b1c0bf820..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.g.cs deleted file mode 100644 index b320f98c3..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// Matcher for the entry value. - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue - { - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exact")] - public string? Exact { get; set; } - - /// - /// Match values that start with the given prefix. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] - public string? StartsWith { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - /// - /// Match values that start with the given prefix. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue( - string? exact, - string? startsWith) - { - this.Exact = exact; - this.StartsWith = startsWith; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant1InjectionRuleMatchQueryStringItemValue() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1Mode.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1Mode.g.cs deleted file mode 100644 index 6ca7279c8..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant1Mode.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules.
- /// Example: custom - ///
- public enum UpdateSessionNetworkPolicyRequestVariant1Mode - { - /// - /// - /// - AllowAll, - /// - /// - /// - Custom, - /// - /// - /// - DefaultAllow, - /// - /// - /// - DefaultDeny, - /// - /// - /// - DenyAll, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class UpdateSessionNetworkPolicyRequestVariant1ModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this UpdateSessionNetworkPolicyRequestVariant1Mode value) - { - return value switch - { - UpdateSessionNetworkPolicyRequestVariant1Mode.AllowAll => "allow-all", - UpdateSessionNetworkPolicyRequestVariant1Mode.Custom => "custom", - UpdateSessionNetworkPolicyRequestVariant1Mode.DefaultAllow => "default-allow", - UpdateSessionNetworkPolicyRequestVariant1Mode.DefaultDeny => "default-deny", - UpdateSessionNetworkPolicyRequestVariant1Mode.DenyAll => "deny-all", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static UpdateSessionNetworkPolicyRequestVariant1Mode? ToEnum(string value) - { - return value switch - { - "allow-all" => UpdateSessionNetworkPolicyRequestVariant1Mode.AllowAll, - "custom" => UpdateSessionNetworkPolicyRequestVariant1Mode.Custom, - "default-allow" => UpdateSessionNetworkPolicyRequestVariant1Mode.DefaultAllow, - "default-deny" => UpdateSessionNetworkPolicyRequestVariant1Mode.DefaultDeny, - "deny-all" => UpdateSessionNetworkPolicyRequestVariant1Mode.DenyAll, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2.Json.g.cs deleted file mode 100644 index 4a8b7ee38..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Allow.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Allow.Json.g.cs deleted file mode 100644 index 2ba55078e..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Allow.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2Allow - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Allow? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Allow), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Allow; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Allow? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Allow), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2Allow; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Allow.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Allow.g.cs deleted file mode 100644 index 8095de16a..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2Allow.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2Allow - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItem.Json.g.cs deleted file mode 100644 index e3124ff6e..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItem), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch.Json.g.cs deleted file mode 100644 index 287839dc9..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatch; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader.Json.g.cs deleted file mode 100644 index 0d125f0d8..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader.g.cs deleted file mode 100644 index 5b5bad166..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader - { - /// - /// Matcher for the entry key (header name or query key). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? Key { get; set; } - - /// - /// Matcher for the entry value. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? Value { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Matcher for the entry key (header name or query key). - /// - /// - /// Matcher for the entry value. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? key, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? value) - { - this.Key = key; - this.Value = value; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeader() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.Json.g.cs deleted file mode 100644 index 360aafac2..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.g.cs deleted file mode 100644 index 3ac4422f7..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// Matcher for the entry key (header name or query key). - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey - { - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exact")] - public string? Exact { get; set; } - - /// - /// Match values that start with the given prefix. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] - public string? StartsWith { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - /// - /// Match values that start with the given prefix. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey( - string? exact, - string? startsWith) - { - this.Exact = exact; - this.StartsWith = startsWith; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderKey() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.Json.g.cs deleted file mode 100644 index 58f1587d6..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.g.cs deleted file mode 100644 index a7478cdc9..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// Matcher for the entry value. - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue - { - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exact")] - public string? Exact { get; set; } - - /// - /// Match values that start with the given prefix. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] - public string? StartsWith { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - /// - /// Match values that start with the given prefix. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue( - string? exact, - string? startsWith) - { - this.Exact = exact; - this.StartsWith = startsWith; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchHeaderValue() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath.Json.g.cs deleted file mode 100644 index 18c6593d0..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchPath; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.Json.g.cs deleted file mode 100644 index 23215b255..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.g.cs deleted file mode 100644 index 79d303325..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem - { - /// - /// Matcher for the entry key (header name or query key). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? Key { get; set; } - - /// - /// Matcher for the entry value. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? Value { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Matcher for the entry key (header name or query key). - /// - /// - /// Matcher for the entry value. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem( - global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? key, - global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? value) - { - this.Key = key; - this.Value = value; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.Json.g.cs deleted file mode 100644 index e07683ac9..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.g.cs deleted file mode 100644 index b8c17f43a..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// Matcher for the entry key (header name or query key). - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey - { - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exact")] - public string? Exact { get; set; } - - /// - /// Match values that start with the given prefix. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] - public string? StartsWith { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - /// - /// Match values that start with the given prefix. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey( - string? exact, - string? startsWith) - { - this.Exact = exact; - this.StartsWith = startsWith; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemKey() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.Json.g.cs deleted file mode 100644 index 0277e5057..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.g.cs deleted file mode 100644 index e075f88dd..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// Matcher for the entry value. - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue - { - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exact")] - public string? Exact { get; set; } - - /// - /// Match values that start with the given prefix. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startsWith")] - public string? StartsWith { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. - /// - /// - /// Match values that start with the given prefix. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue( - string? exact, - string? startsWith) - { - this.Exact = exact; - this.StartsWith = startsWith; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateSessionNetworkPolicyRequestVariant2AllowItemMatchQueryStringItemValue() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem.Json.g.cs deleted file mode 100644 index 8f345fe62..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.Json.g.cs deleted file mode 100644 index f2bacf24a..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.g.cs deleted file mode 100644 index 4be7c47f7..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class UpdateSessionNetworkPolicyRequestVariant2AllowItemTransformItemHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyResponse.Json.g.cs deleted file mode 100644 index ad2163688..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.UpdateSessionNetworkPolicyResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class UpdateSessionNetworkPolicyResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.UpdateSessionNetworkPolicyResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.UpdateSessionNetworkPolicyResponse), - jsonSerializerContext) as global::Vercel.UpdateSessionNetworkPolicyResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.UpdateSessionNetworkPolicyResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.UpdateSessionNetworkPolicyResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.UpdateSessionNetworkPolicyResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.WriteSessionFilesResponse.Json.g.cs b/src/libs/Vercel/Generated/Vercel.Models.WriteSessionFilesResponse.Json.g.cs deleted file mode 100644 index 06a2481a7..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.WriteSessionFilesResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Vercel -{ - public sealed partial class WriteSessionFilesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Vercel.WriteSessionFilesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Vercel.WriteSessionFilesResponse), - jsonSerializerContext) as global::Vercel.WriteSessionFilesResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Vercel.WriteSessionFilesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Vercel.WriteSessionFilesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Vercel.WriteSessionFilesResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Vercel/Generated/Vercel.Models.WriteSessionFilesResponse.g.cs b/src/libs/Vercel/Generated/Vercel.Models.WriteSessionFilesResponse.g.cs deleted file mode 100644 index c5092f5ed..000000000 --- a/src/libs/Vercel/Generated/Vercel.Models.WriteSessionFilesResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// - /// - public sealed partial class WriteSessionFilesResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.g.cs deleted file mode 100644 index cabed8fc1..000000000 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.g.cs +++ /dev/null @@ -1,136 +0,0 @@ - -#nullable enable - -namespace Vercel -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class SandboxesClient : global::Vercel.ISandboxesClient, global::System.IDisposable - { - /// - /// Production API - /// - public const string DefaultBaseUrl = "https://api.vercel.com/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Vercel.AutoSDKClientOptions Options { get; } - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Vercel.SourceGenerationContext.Default; - - - /// - /// Creates a new instance of the SandboxesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SandboxesClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SandboxesClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SandboxesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Vercel.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SandboxesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SandboxesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Vercel.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Vercel.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - } -} \ No newline at end of file diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSandboxes.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxes.g.cs similarity index 95% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSandboxes.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxes.g.cs index fcc79a8d6..2bb4f07cc 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSandboxes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxes.g.cs @@ -3,7 +3,7 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { @@ -27,14 +27,10 @@ public partial class SandboxesClient }; partial void PrepareCreateSandboxesArguments( global::System.Net.Http.HttpClient httpClient, - ref string? teamId, - ref string? slug, global::Vercel.CreateSandboxesRequest request); partial void PrepareCreateSandboxesRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? teamId, - string? slug, global::Vercel.CreateSandboxesRequest request); partial void ProcessCreateSandboxesResponse( global::System.Net.Http.HttpClient httpClient, @@ -46,15 +42,8 @@ partial void ProcessCreateSandboxesResponseContent( ref string content); /// - /// Create a named sandbox
- /// Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. + /// ///
- /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -62,16 +51,12 @@ partial void ProcessCreateSandboxesResponseContent( public async global::System.Threading.Tasks.Task CreateSandboxesAsync( global::Vercel.CreateSandboxesRequest request, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await CreateSandboxesAsResponseAsync( request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -79,15 +64,8 @@ partial void ProcessCreateSandboxesResponseContent( return __response.Body; } /// - /// Create a named sandbox
- /// Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. + /// ///
- /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -95,8 +73,6 @@ partial void ProcessCreateSandboxesResponseContent( public async global::System.Threading.Tasks.Task> CreateSandboxesAsResponseAsync( global::Vercel.CreateSandboxesRequest request, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -106,8 +82,6 @@ partial void ProcessCreateSandboxesResponseContent( client: HttpClient); PrepareCreateSandboxesArguments( httpClient: HttpClient, - teamId: ref teamId, - slug: ref slug, request: request); @@ -134,12 +108,8 @@ partial void ProcessCreateSandboxesResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: "/v2/sandboxes", + path: "/sandboxes", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -186,8 +156,6 @@ partial void ProcessCreateSandboxesResponseContent( PrepareCreateSandboxesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -207,7 +175,7 @@ partial void ProcessCreateSandboxesResponseContent( context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "CreateSandboxes", methodName: "CreateSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + pathTemplate: "\"/sandboxes\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -241,7 +209,7 @@ partial void ProcessCreateSandboxesResponseContent( context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "CreateSandboxes", methodName: "CreateSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + pathTemplate: "\"/sandboxes\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -282,7 +250,7 @@ partial void ProcessCreateSandboxesResponseContent( context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "CreateSandboxes", methodName: "CreateSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + pathTemplate: "\"/sandboxes\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -330,7 +298,7 @@ partial void ProcessCreateSandboxesResponseContent( context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "CreateSandboxes", methodName: "CreateSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + pathTemplate: "\"/sandboxes\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -352,7 +320,7 @@ partial void ProcessCreateSandboxesResponseContent( context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "CreateSandboxes", methodName: "CreateSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + pathTemplate: "\"/sandboxes\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -784,15 +752,8 @@ partial void ProcessCreateSandboxesResponseContent( } } /// - /// Create a named sandbox
- /// Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. + /// ///
- /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// /// Resources to define the VM @@ -845,8 +806,6 @@ partial void ProcessCreateSandboxesResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateSandboxesAsync( - string? teamId = default, - string? slug = default, global::Vercel.OneOf? networkPolicy = default, global::Vercel.CreateSandboxesRequestResources? resources = default, global::Vercel.CreateSandboxesRequestRuntime? runtime = default, @@ -881,8 +840,6 @@ partial void ProcessCreateSandboxesResponseContent( }; return await CreateSandboxesAsync( - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmd.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommand.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmd.g.cs index 1adc5f803..537df5cf9 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmd.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_RunSessionCommandSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdCmdSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,65 +21,50 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_RunSessionCommandSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdCmdSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_RunSessionCommandSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdCmdSecurityRequirement0, }; - partial void PrepareRunSessionCommandArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdCmdArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.RunSessionCommandRequest request); - partial void PrepareRunSessionCommandRequest( + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request); + partial void PrepareCreateSandboxesSessionsBySessionIdCmdRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string? teamId, - string? slug, - global::Vercel.RunSessionCommandRequest request); - partial void ProcessRunSessionCommandResponse( + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request); + partial void ProcessCreateSandboxesSessionsBySessionIdCmdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessRunSessionCommandResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdCmdResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RunSessionCommandAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdAsync( string sessionId, - global::Vercel.RunSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await RunSessionCommandAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdCmdAsResponseAsync( sessionId: sessionId, request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -87,29 +72,20 @@ partial void ProcessRunSessionCommandResponseContent( return __response.Body; } /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> RunSessionCommandAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdCmdAsResponseAsync( string sessionId, - global::Vercel.RunSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -117,18 +93,16 @@ partial void ProcessRunSessionCommandResponseContent( PrepareArguments( client: HttpClient); - PrepareRunSessionCommandArguments( + PrepareCreateSandboxesSessionsBySessionIdCmdArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_RunSessionCommandSecurityRequirements, - operationName: "RunSessionCommandAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdCmdSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdCmdAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -148,12 +122,8 @@ partial void ProcessRunSessionCommandResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/cmd", + path: $"/sandboxes/sessions/{sessionId}/cmd", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -197,12 +167,10 @@ partial void ProcessRunSessionCommandResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareRunSessionCommandRequest( + PrepareCreateSandboxesSessionsBySessionIdCmdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -220,9 +188,9 @@ partial void ProcessRunSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommand", - methodName: "RunSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmd", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -254,9 +222,9 @@ partial void ProcessRunSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommand", - methodName: "RunSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmd", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -295,9 +263,9 @@ partial void ProcessRunSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommand", - methodName: "RunSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmd", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -335,7 +303,7 @@ partial void ProcessRunSessionCommandResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessRunSessionCommandResponse( + ProcessCreateSandboxesSessionsBySessionIdCmdResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -343,9 +311,9 @@ partial void ProcessRunSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommand", - methodName: "RunSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmd", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -365,9 +333,9 @@ partial void ProcessRunSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommand", - methodName: "RunSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmd", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -575,6 +543,38 @@ partial void ProcessRunSessionCommandResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -619,7 +619,7 @@ partial void ProcessRunSessionCommandResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessRunSessionCommandResponseContent( + ProcessCreateSandboxesSessionsBySessionIdCmdResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -628,9 +628,9 @@ partial void ProcessRunSessionCommandResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.RunSessionCommandResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -660,9 +660,9 @@ partial void ProcessRunSessionCommandResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.RunSessionCommandResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -703,19 +703,12 @@ partial void ProcessRunSessionCommandResponseContent( } } /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The executable or shell command to run. This is the program name without arguments.
/// Example: npm @@ -744,11 +737,9 @@ partial void ProcessRunSessionCommandResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RunSessionCommandAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdAsync( string sessionId, string command, - string? teamId = default, - string? slug = default, global::System.Collections.Generic.IList? args = default, string? cwd = default, global::System.Collections.Generic.Dictionary? env = default, @@ -757,7 +748,7 @@ partial void ProcessRunSessionCommandResponseContent( global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.RunSessionCommandRequest + var __request = new global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest { Command = command, Args = args, @@ -767,10 +758,8 @@ partial void ProcessRunSessionCommandResponseContent( Wait = wait, }; - return await RunSessionCommandAsync( + return await CreateSandboxesSessionsBySessionIdCmdAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommandAsStream.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmdAsStream.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommandAsStream.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmdAsStream.g.cs index bf1b7f641..0c3e282d2 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommandAsStream.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmdAsStream.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_RunSessionCommandAsStreamSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdCmdAsStreamSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,51 +21,38 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_RunSessionCommandAsStreamSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdCmdAsStreamSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_RunSessionCommandAsStreamSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdCmdAsStreamSecurityRequirement0, }; - partial void PrepareRunSessionCommandAsStreamArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdCmdAsStreamArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.RunSessionCommandRequest request); - partial void PrepareRunSessionCommandAsStreamRequest( + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request); + partial void PrepareCreateSandboxesSessionsBySessionIdCmdAsStreamRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string? teamId, - string? slug, - global::Vercel.RunSessionCommandRequest request); - partial void ProcessRunSessionCommandAsStreamResponse( + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request); + partial void ProcessCreateSandboxesSessionsBySessionIdCmdAsStreamResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Collections.Generic.IAsyncEnumerable RunSessionCommandAsStreamAsync( + public async global::System.Collections.Generic.IAsyncEnumerable CreateSandboxesSessionsBySessionIdCmdAsStreamAsync( string sessionId, - global::Vercel.RunSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -73,18 +60,16 @@ partial void ProcessRunSessionCommandAsStreamResponse( PrepareArguments( client: HttpClient); - PrepareRunSessionCommandAsStreamArguments( + PrepareCreateSandboxesSessionsBySessionIdCmdAsStreamArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_RunSessionCommandAsStreamSecurityRequirements, - operationName: "RunSessionCommandAsStreamAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdCmdAsStreamSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdCmdAsStreamAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -104,12 +89,8 @@ partial void ProcessRunSessionCommandAsStreamResponse( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/cmd", + path: $"/sandboxes/sessions/{sessionId}/cmd", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -153,12 +134,10 @@ partial void ProcessRunSessionCommandAsStreamResponse( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareRunSessionCommandAsStreamRequest( + PrepareCreateSandboxesSessionsBySessionIdCmdAsStreamRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -176,9 +155,9 @@ partial void ProcessRunSessionCommandAsStreamResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommandAsStream", - methodName: "RunSessionCommandAsStreamAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdAsStream", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsStreamAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -210,9 +189,9 @@ partial void ProcessRunSessionCommandAsStreamResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommandAsStream", - methodName: "RunSessionCommandAsStreamAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdAsStream", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsStreamAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -251,9 +230,9 @@ partial void ProcessRunSessionCommandAsStreamResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommandAsStream", - methodName: "RunSessionCommandAsStreamAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdAsStream", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsStreamAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -291,7 +270,7 @@ partial void ProcessRunSessionCommandAsStreamResponse( ProcessResponse( client: HttpClient, response: __response); - ProcessRunSessionCommandAsStreamResponse( + ProcessCreateSandboxesSessionsBySessionIdCmdAsStreamResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -299,9 +278,9 @@ partial void ProcessRunSessionCommandAsStreamResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommandAsStream", - methodName: "RunSessionCommandAsStreamAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdAsStream", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsStreamAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -321,9 +300,9 @@ partial void ProcessRunSessionCommandAsStreamResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "RunSessionCommandAsStream", - methodName: "RunSessionCommandAsStreamAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdAsStream", + methodName: "CreateSandboxesSessionsBySessionIdCmdAsStreamAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -385,7 +364,7 @@ partial void ProcessRunSessionCommandAsStreamResponse( continue; } - var __streamedResponse = global::Vercel.RunSessionCommandResponse2.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::Vercel.CreateSandboxesSessionsBySessionIdCmdResponse2.FromJson(__content, JsonSerializerContext) ?? throw global::Vercel.ApiException.Create( statusCode: __response.StatusCode, message: $"Response deserialization failed for \"{__content}\" ", @@ -407,19 +386,12 @@ partial void ProcessRunSessionCommandAsStreamResponse( } } /// - /// Execute a command
- /// Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion. + /// ///
/// /// The unique identifier of the session in which to execute the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The executable or shell command to run. This is the program name without arguments.
/// Example: npm @@ -448,11 +420,9 @@ partial void ProcessRunSessionCommandAsStreamResponse( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Collections.Generic.IAsyncEnumerable RunSessionCommandAsStreamAsync( + public async global::System.Collections.Generic.IAsyncEnumerable CreateSandboxesSessionsBySessionIdCmdAsStreamAsync( string sessionId, string command, - string? teamId = default, - string? slug = default, global::System.Collections.Generic.IList? args = default, string? cwd = default, global::System.Collections.Generic.Dictionary? env = default, @@ -461,7 +431,7 @@ partial void ProcessRunSessionCommandAsStreamResponse( global::Vercel.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.RunSessionCommandRequest + var __request = new global::Vercel.CreateSandboxesSessionsBySessionIdCmdRequest { Command = command, Args = args, @@ -471,10 +441,8 @@ partial void ProcessRunSessionCommandAsStreamResponse( Wait = wait, }; - var __enumerable = RunSessionCommandAsStreamAsync( + var __enumerable = CreateSandboxesSessionsBySessionIdCmdAsStreamAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.KillSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmdByCmdIdKill.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.KillSessionCommand.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmdByCmdIdKill.g.cs index c597f4c2e..78420f460 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.KillSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdCmdByCmdIdKill.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_KillSessionCommandSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdCmdByCmdIdKillSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,37 +21,32 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_KillSessionCommandSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdCmdByCmdIdKillSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_KillSessionCommandSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdCmdByCmdIdKillSecurityRequirement0, }; - partial void PrepareKillSessionCommandArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdCmdByCmdIdKillArguments( global::System.Net.Http.HttpClient httpClient, ref string cmdId, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.KillSessionCommandRequest request); - partial void PrepareKillSessionCommandRequest( + global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest request); + partial void PrepareCreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string cmdId, string sessionId, - string? teamId, - string? slug, - global::Vercel.KillSessionCommandRequest request); - partial void ProcessKillSessionCommandResponse( + global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest request); + partial void ProcessCreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessKillSessionCommandResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Kill a command
- /// Sends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed. + /// ///
/// /// The unique identifier of the command to terminate.
@@ -61,33 +56,23 @@ partial void ProcessKillSessionCommandResponseContent( /// The unique identifier of the session containing the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task KillSessionCommandAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync( string cmdId, string sessionId, - global::Vercel.KillSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await KillSessionCommandAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsResponseAsync( cmdId: cmdId, sessionId: sessionId, request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -95,8 +80,7 @@ partial void ProcessKillSessionCommandResponseContent( return __response.Body; } /// - /// Kill a command
- /// Sends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed. + /// ///
/// /// The unique identifier of the command to terminate.
@@ -106,23 +90,15 @@ partial void ProcessKillSessionCommandResponseContent( /// The unique identifier of the session containing the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> KillSessionCommandAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsResponseAsync( string cmdId, string sessionId, - global::Vercel.KillSessionCommandRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -130,19 +106,17 @@ partial void ProcessKillSessionCommandResponseContent( PrepareArguments( client: HttpClient); - PrepareKillSessionCommandArguments( + PrepareCreateSandboxesSessionsBySessionIdCmdByCmdIdKillArguments( httpClient: HttpClient, cmdId: ref cmdId, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_KillSessionCommandSecurityRequirements, - operationName: "KillSessionCommandAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdCmdByCmdIdKillSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -162,12 +136,8 @@ partial void ProcessKillSessionCommandResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill", + path: $"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -211,13 +181,11 @@ partial void ProcessKillSessionCommandResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareKillSessionCommandRequest( + PrepareCreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, cmdId: cmdId!, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -235,9 +203,9 @@ partial void ProcessKillSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "KillSessionCommand", - methodName: "KillSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKill", + methodName: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -269,9 +237,9 @@ partial void ProcessKillSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "KillSessionCommand", - methodName: "KillSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKill", + methodName: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -310,9 +278,9 @@ partial void ProcessKillSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "KillSessionCommand", - methodName: "KillSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKill", + methodName: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -350,7 +318,7 @@ partial void ProcessKillSessionCommandResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessKillSessionCommandResponse( + ProcessCreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -358,9 +326,9 @@ partial void ProcessKillSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "KillSessionCommand", - methodName: "KillSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKill", + methodName: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -380,9 +348,9 @@ partial void ProcessKillSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "KillSessionCommand", - methodName: "KillSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", + operationId: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKill", + methodName: "CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -590,6 +558,38 @@ partial void ProcessKillSessionCommandResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -634,7 +634,7 @@ partial void ProcessKillSessionCommandResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessKillSessionCommandResponseContent( + ProcessCreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -643,9 +643,9 @@ partial void ProcessKillSessionCommandResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.KillSessionCommandResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -675,9 +675,9 @@ partial void ProcessKillSessionCommandResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.KillSessionCommandResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -718,8 +718,7 @@ partial void ProcessKillSessionCommandResponseContent( } } /// - /// Kill a command
- /// Sends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed. + /// ///
/// /// The unique identifier of the command to terminate.
@@ -729,12 +728,6 @@ partial void ProcessKillSessionCommandResponseContent( /// The unique identifier of the session containing the command.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The POSIX signal number to send to the process. Common values: 15 (SIGTERM) for graceful termination, 9 (SIGKILL) for forced termination.
/// Example: 15 @@ -742,25 +735,21 @@ partial void ProcessKillSessionCommandResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task KillSessionCommandAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync( string cmdId, string sessionId, double signal, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.KillSessionCommandRequest + var __request = new global::Vercel.CreateSandboxesSessionsBySessionIdCmdByCmdIdKillRequest { Signal = signal, }; - return await KillSessionCommandAsync( + return await CreateSandboxesSessionsBySessionIdCmdByCmdIdKillAsync( cmdId: cmdId, sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ExtendSessionTimeout.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdExtendTimeout.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.ExtendSessionTimeout.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdExtendTimeout.g.cs index 9a54c2b22..fc319c34f 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ExtendSessionTimeout.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdExtendTimeout.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_ExtendSessionTimeoutSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdExtendTimeoutSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,65 +21,50 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_ExtendSessionTimeoutSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdExtendTimeoutSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_ExtendSessionTimeoutSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdExtendTimeoutSecurityRequirement0, }; - partial void PrepareExtendSessionTimeoutArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdExtendTimeoutArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.ExtendSessionTimeoutRequest request); - partial void PrepareExtendSessionTimeoutRequest( + global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest request); + partial void PrepareCreateSandboxesSessionsBySessionIdExtendTimeoutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string? teamId, - string? slug, - global::Vercel.ExtendSessionTimeoutRequest request); - partial void ProcessExtendSessionTimeoutResponse( + global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest request); + partial void ProcessCreateSandboxesSessionsBySessionIdExtendTimeoutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessExtendSessionTimeoutResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdExtendTimeoutResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Extend session timeout
- /// Extends the maximum execution time of a running session. The session must be active and able to accept commands. The total timeout cannot exceed the maximum allowed limit for your account. + /// ///
/// /// The unique identifier of the session to extend the timeout for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ExtendSessionTimeoutAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdExtendTimeoutAsync( string sessionId, - global::Vercel.ExtendSessionTimeoutRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ExtendSessionTimeoutAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdExtendTimeoutAsResponseAsync( sessionId: sessionId, request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -87,29 +72,20 @@ partial void ProcessExtendSessionTimeoutResponseContent( return __response.Body; } /// - /// Extend session timeout
- /// Extends the maximum execution time of a running session. The session must be active and able to accept commands. The total timeout cannot exceed the maximum allowed limit for your account. + /// ///
/// /// The unique identifier of the session to extend the timeout for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ExtendSessionTimeoutAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdExtendTimeoutAsResponseAsync( string sessionId, - global::Vercel.ExtendSessionTimeoutRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -117,18 +93,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( PrepareArguments( client: HttpClient); - PrepareExtendSessionTimeoutArguments( + PrepareCreateSandboxesSessionsBySessionIdExtendTimeoutArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ExtendSessionTimeoutSecurityRequirements, - operationName: "ExtendSessionTimeoutAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdExtendTimeoutSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdExtendTimeoutAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -148,12 +122,8 @@ partial void ProcessExtendSessionTimeoutResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/extend-timeout", + path: $"/sandboxes/sessions/{sessionId}/extend-timeout", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -197,12 +167,10 @@ partial void ProcessExtendSessionTimeoutResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareExtendSessionTimeoutRequest( + PrepareCreateSandboxesSessionsBySessionIdExtendTimeoutRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -220,9 +188,9 @@ partial void ProcessExtendSessionTimeoutResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExtendSessionTimeout", - methodName: "ExtendSessionTimeoutAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/extend-timeout\"", + operationId: "CreateSandboxesSessionsBySessionIdExtendTimeout", + methodName: "CreateSandboxesSessionsBySessionIdExtendTimeoutAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/extend-timeout\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -254,9 +222,9 @@ partial void ProcessExtendSessionTimeoutResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExtendSessionTimeout", - methodName: "ExtendSessionTimeoutAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/extend-timeout\"", + operationId: "CreateSandboxesSessionsBySessionIdExtendTimeout", + methodName: "CreateSandboxesSessionsBySessionIdExtendTimeoutAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/extend-timeout\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -295,9 +263,9 @@ partial void ProcessExtendSessionTimeoutResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExtendSessionTimeout", - methodName: "ExtendSessionTimeoutAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/extend-timeout\"", + operationId: "CreateSandboxesSessionsBySessionIdExtendTimeout", + methodName: "CreateSandboxesSessionsBySessionIdExtendTimeoutAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/extend-timeout\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -335,7 +303,7 @@ partial void ProcessExtendSessionTimeoutResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessExtendSessionTimeoutResponse( + ProcessCreateSandboxesSessionsBySessionIdExtendTimeoutResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -343,9 +311,9 @@ partial void ProcessExtendSessionTimeoutResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExtendSessionTimeout", - methodName: "ExtendSessionTimeoutAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/extend-timeout\"", + operationId: "CreateSandboxesSessionsBySessionIdExtendTimeout", + methodName: "CreateSandboxesSessionsBySessionIdExtendTimeoutAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/extend-timeout\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -365,9 +333,9 @@ partial void ProcessExtendSessionTimeoutResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExtendSessionTimeout", - methodName: "ExtendSessionTimeoutAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/extend-timeout\"", + operationId: "CreateSandboxesSessionsBySessionIdExtendTimeout", + methodName: "CreateSandboxesSessionsBySessionIdExtendTimeoutAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/extend-timeout\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -575,6 +543,38 @@ partial void ProcessExtendSessionTimeoutResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -619,7 +619,7 @@ partial void ProcessExtendSessionTimeoutResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessExtendSessionTimeoutResponseContent( + ProcessCreateSandboxesSessionsBySessionIdExtendTimeoutResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -628,9 +628,9 @@ partial void ProcessExtendSessionTimeoutResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.ExtendSessionTimeoutResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -660,9 +660,9 @@ partial void ProcessExtendSessionTimeoutResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.ExtendSessionTimeoutResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -703,19 +703,12 @@ partial void ProcessExtendSessionTimeoutResponseContent( } } /// - /// Extend session timeout
- /// Extends the maximum execution time of a running session. The session must be active and able to accept commands. The total timeout cannot exceed the maximum allowed limit for your account. + /// ///
/// /// The unique identifier of the session to extend the timeout for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The amount of time in milliseconds to add to the current timeout. Must be at least 1000ms (1 second).
/// Example: 300000 @@ -723,23 +716,19 @@ partial void ProcessExtendSessionTimeoutResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ExtendSessionTimeoutAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdExtendTimeoutAsync( string sessionId, double duration, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.ExtendSessionTimeoutRequest + var __request = new global::Vercel.CreateSandboxesSessionsBySessionIdExtendTimeoutRequest { Duration = duration, }; - return await ExtendSessionTimeoutAsync( + return await CreateSandboxesSessionsBySessionIdExtendTimeoutAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionDirectory.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsMkdir.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionDirectory.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsMkdir.g.cs index 22a8b734f..6303b23a9 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionDirectory.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsMkdir.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSessionDirectorySecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdFsMkdirSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,65 +21,50 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSessionDirectorySecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdFsMkdirSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_CreateSessionDirectorySecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdFsMkdirSecurityRequirement0, }; - partial void PrepareCreateSessionDirectoryArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdFsMkdirArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.CreateSessionDirectoryRequest request); - partial void PrepareCreateSessionDirectoryRequest( + global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest request); + partial void PrepareCreateSandboxesSessionsBySessionIdFsMkdirRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string? teamId, - string? slug, - global::Vercel.CreateSessionDirectoryRequest request); - partial void ProcessCreateSessionDirectoryResponse( + global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest request); + partial void ProcessCreateSandboxesSessionsBySessionIdFsMkdirResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateSessionDirectoryResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdFsMkdirResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Create a directory
- /// Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`). + /// ///
/// /// The unique identifier of the session to create the directory in.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateSessionDirectoryAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsMkdirAsync( string sessionId, - global::Vercel.CreateSessionDirectoryRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateSessionDirectoryAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdFsMkdirAsResponseAsync( sessionId: sessionId, request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -87,29 +72,20 @@ partial void ProcessCreateSessionDirectoryResponseContent( return __response.Body; } /// - /// Create a directory
- /// Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`). + /// ///
/// /// The unique identifier of the session to create the directory in.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateSessionDirectoryAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdFsMkdirAsResponseAsync( string sessionId, - global::Vercel.CreateSessionDirectoryRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -117,18 +93,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateSessionDirectoryArguments( + PrepareCreateSandboxesSessionsBySessionIdFsMkdirArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSessionDirectorySecurityRequirements, - operationName: "CreateSessionDirectoryAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdFsMkdirSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdFsMkdirAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -148,12 +122,8 @@ partial void ProcessCreateSessionDirectoryResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/fs/mkdir", + path: $"/sandboxes/sessions/{sessionId}/fs/mkdir", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -197,12 +167,10 @@ partial void ProcessCreateSessionDirectoryResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateSessionDirectoryRequest( + PrepareCreateSandboxesSessionsBySessionIdFsMkdirRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -220,9 +188,9 @@ partial void ProcessCreateSessionDirectoryResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionDirectory", - methodName: "CreateSessionDirectoryAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/mkdir\"", + operationId: "CreateSandboxesSessionsBySessionIdFsMkdir", + methodName: "CreateSandboxesSessionsBySessionIdFsMkdirAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/mkdir\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -254,9 +222,9 @@ partial void ProcessCreateSessionDirectoryResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionDirectory", - methodName: "CreateSessionDirectoryAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/mkdir\"", + operationId: "CreateSandboxesSessionsBySessionIdFsMkdir", + methodName: "CreateSandboxesSessionsBySessionIdFsMkdirAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/mkdir\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -295,9 +263,9 @@ partial void ProcessCreateSessionDirectoryResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionDirectory", - methodName: "CreateSessionDirectoryAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/mkdir\"", + operationId: "CreateSandboxesSessionsBySessionIdFsMkdir", + methodName: "CreateSandboxesSessionsBySessionIdFsMkdirAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/mkdir\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -335,7 +303,7 @@ partial void ProcessCreateSessionDirectoryResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateSessionDirectoryResponse( + ProcessCreateSandboxesSessionsBySessionIdFsMkdirResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -343,9 +311,9 @@ partial void ProcessCreateSessionDirectoryResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionDirectory", - methodName: "CreateSessionDirectoryAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/mkdir\"", + operationId: "CreateSandboxesSessionsBySessionIdFsMkdir", + methodName: "CreateSandboxesSessionsBySessionIdFsMkdirAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/mkdir\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -365,9 +333,9 @@ partial void ProcessCreateSessionDirectoryResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionDirectory", - methodName: "CreateSessionDirectoryAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/mkdir\"", + operationId: "CreateSandboxesSessionsBySessionIdFsMkdir", + methodName: "CreateSandboxesSessionsBySessionIdFsMkdirAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/mkdir\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -575,6 +543,38 @@ partial void ProcessCreateSessionDirectoryResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -619,7 +619,7 @@ partial void ProcessCreateSessionDirectoryResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateSessionDirectoryResponseContent( + ProcessCreateSandboxesSessionsBySessionIdFsMkdirResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -699,19 +699,12 @@ partial void ProcessCreateSessionDirectoryResponseContent( } } /// - /// Create a directory
- /// Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`). + /// ///
/// /// The unique identifier of the session to create the directory in.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The base directory for resolving relative paths. If not specified, paths are resolved from the sandbox home directory.
/// Example: /home/vercel-sandbox @@ -727,27 +720,23 @@ partial void ProcessCreateSessionDirectoryResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateSessionDirectoryAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsMkdirAsync( string sessionId, string path, - string? teamId = default, - string? slug = default, string? cwd = default, bool? recursive = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.CreateSessionDirectoryRequest + var __request = new global::Vercel.CreateSandboxesSessionsBySessionIdFsMkdirRequest { Cwd = cwd, Path = path, Recursive = recursive, }; - return await CreateSessionDirectoryAsync( + return await CreateSandboxesSessionsBySessionIdFsMkdirAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ReadSessionFile.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsRead.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.ReadSessionFile.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsRead.g.cs index 040ed85d6..3690e48a1 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ReadSessionFile.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsRead.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_ReadSessionFileSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdFsReadSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,65 +21,50 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_ReadSessionFileSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdFsReadSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_ReadSessionFileSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdFsReadSecurityRequirement0, }; - partial void PrepareReadSessionFileArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdFsReadArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.ReadSessionFileRequest request); - partial void PrepareReadSessionFileRequest( + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request); + partial void PrepareCreateSandboxesSessionsBySessionIdFsReadRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string? teamId, - string? slug, - global::Vercel.ReadSessionFileRequest request); - partial void ProcessReadSessionFileResponse( + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request); + partial void ProcessCreateSandboxesSessionsBySessionIdFsReadResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessReadSessionFileResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdFsReadResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref byte[] content); /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ReadSessionFileAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsReadAsync( string sessionId, - global::Vercel.ReadSessionFileRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ReadSessionFileAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdFsReadAsResponseAsync( sessionId: sessionId, request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -87,29 +72,20 @@ partial void ProcessReadSessionFileResponseContent( return __response.Body; } /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ReadSessionFileAsStreamAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsReadAsStreamAsync( string sessionId, - global::Vercel.ReadSessionFileRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -117,18 +93,16 @@ partial void ProcessReadSessionFileResponseContent( PrepareArguments( client: HttpClient); - PrepareReadSessionFileArguments( + PrepareCreateSandboxesSessionsBySessionIdFsReadArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ReadSessionFileSecurityRequirements, - operationName: "ReadSessionFileAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdFsReadSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdFsReadAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -148,12 +122,8 @@ partial void ProcessReadSessionFileResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/fs/read", + path: $"/sandboxes/sessions/{sessionId}/fs/read", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -197,12 +167,10 @@ partial void ProcessReadSessionFileResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareReadSessionFileRequest( + PrepareCreateSandboxesSessionsBySessionIdFsReadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -220,9 +188,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -254,9 +222,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -295,9 +263,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -335,7 +303,7 @@ partial void ProcessReadSessionFileResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessReadSessionFileResponse( + ProcessCreateSandboxesSessionsBySessionIdFsReadResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -343,9 +311,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -365,9 +333,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -575,6 +543,38 @@ partial void ProcessReadSessionFileResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -658,29 +658,20 @@ partial void ProcessReadSessionFileResponseContent( } } /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ReadSessionFileAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdFsReadAsResponseAsync( string sessionId, - global::Vercel.ReadSessionFileRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -688,18 +679,16 @@ partial void ProcessReadSessionFileResponseContent( PrepareArguments( client: HttpClient); - PrepareReadSessionFileArguments( + PrepareCreateSandboxesSessionsBySessionIdFsReadArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ReadSessionFileSecurityRequirements, - operationName: "ReadSessionFileAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdFsReadSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdFsReadAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -719,12 +708,8 @@ partial void ProcessReadSessionFileResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/fs/read", + path: $"/sandboxes/sessions/{sessionId}/fs/read", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -768,12 +753,10 @@ partial void ProcessReadSessionFileResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareReadSessionFileRequest( + PrepareCreateSandboxesSessionsBySessionIdFsReadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -791,9 +774,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -825,9 +808,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -866,9 +849,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -906,7 +889,7 @@ partial void ProcessReadSessionFileResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessReadSessionFileResponse( + ProcessCreateSandboxesSessionsBySessionIdFsReadResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -914,9 +897,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -936,9 +919,9 @@ partial void ProcessReadSessionFileResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReadSessionFile", - methodName: "ReadSessionFileAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/read\"", + operationId: "CreateSandboxesSessionsBySessionIdFsRead", + methodName: "CreateSandboxesSessionsBySessionIdFsReadAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/read\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -1146,6 +1129,38 @@ partial void ProcessReadSessionFileResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -1186,7 +1201,7 @@ partial void ProcessReadSessionFileResponseContent( #endif ).ConfigureAwait(false); - ProcessReadSessionFileResponseContent( + ProcessCreateSandboxesSessionsBySessionIdFsReadResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -1266,19 +1281,12 @@ partial void ProcessReadSessionFileResponseContent( } } /// - /// Read a file
- /// Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. + /// ///
/// /// The unique identifier of the session to read the file from.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The base directory for resolving relative paths. If not specified, paths are resolved from the sandbox home directory.
/// Example: /home/vercel-sandbox @@ -1290,25 +1298,21 @@ partial void ProcessReadSessionFileResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ReadSessionFileAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsReadAsync( string sessionId, string path, - string? teamId = default, - string? slug = default, string? cwd = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.ReadSessionFileRequest + var __request = new global::Vercel.CreateSandboxesSessionsBySessionIdFsReadRequest { Cwd = cwd, Path = path, }; - return await ReadSessionFileAsync( + return await CreateSandboxesSessionsBySessionIdFsReadAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.WriteSessionFiles.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsWrite.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.WriteSessionFiles.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsWrite.g.cs index 1368d1c39..4977fed1b 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.WriteSessionFiles.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdFsWrite.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_WriteSessionFilesSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdFsWriteSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,35 +21,30 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_WriteSessionFilesSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdFsWriteSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_WriteSessionFilesSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdFsWriteSecurityRequirement0, }; - partial void PrepareWriteSessionFilesArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdFsWriteArguments( global::System.Net.Http.HttpClient httpClient, ref string? x_xCwd_, - ref string sessionId, - ref string? teamId, - ref string? slug); - partial void PrepareWriteSessionFilesRequest( + ref string sessionId); + partial void PrepareCreateSandboxesSessionsBySessionIdFsWriteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? x_xCwd_, - string sessionId, - string? teamId, - string? slug); - partial void ProcessWriteSessionFilesResponse( + string sessionId); + partial void ProcessCreateSandboxesSessionsBySessionIdFsWriteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessWriteSessionFilesResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdFsWriteResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Write files
- /// Uploads and extracts files to a session's filesystem. Files must be uploaded as a gzipped tarball (`.tar.gz`) with the `Content-Type` header set to `application/gzip`. The tarball contents are extracted to the session's working directory, or to a custom directory specified via the `x-cwd` header. + /// ///
/// /// The target directory where the tarball contents will be extracted. If not specified, files are extracted to the sandbox home directory.
@@ -59,28 +54,18 @@ partial void ProcessWriteSessionFilesResponseContent( /// The unique identifier of the session to write files to.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task WriteSessionFilesAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdFsWriteAsync( string sessionId, string? x_xCwd_ = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await WriteSessionFilesAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdFsWriteAsResponseAsync( sessionId: sessionId, x_xCwd_: x_xCwd_, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -88,8 +73,7 @@ partial void ProcessWriteSessionFilesResponseContent( return __response.Body; } /// - /// Write files
- /// Uploads and extracts files to a session's filesystem. Files must be uploaded as a gzipped tarball (`.tar.gz`) with the `Content-Type` header set to `application/gzip`. The tarball contents are extracted to the session's working directory, or to a custom directory specified via the `x-cwd` header. + /// ///
/// /// The target directory where the tarball contents will be extracted. If not specified, files are extracted to the sandbox home directory.
@@ -99,37 +83,27 @@ partial void ProcessWriteSessionFilesResponseContent( /// The unique identifier of the session to write files to.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> WriteSessionFilesAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdFsWriteAsResponseAsync( string sessionId, string? x_xCwd_ = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareWriteSessionFilesArguments( + PrepareCreateSandboxesSessionsBySessionIdFsWriteArguments( httpClient: HttpClient, x_xCwd_: ref x_xCwd_, - sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug); + sessionId: ref sessionId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_WriteSessionFilesSecurityRequirements, - operationName: "WriteSessionFilesAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdFsWriteSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdFsWriteAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -149,12 +123,8 @@ partial void ProcessWriteSessionFilesResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/fs/write", + path: $"/sandboxes/sessions/{sessionId}/fs/write", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -198,13 +168,11 @@ partial void ProcessWriteSessionFilesResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareWriteSessionFilesRequest( + PrepareCreateSandboxesSessionsBySessionIdFsWriteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, x_xCwd_: x_xCwd_, - sessionId: sessionId!, - teamId: teamId, - slug: slug); + sessionId: sessionId!); return __httpRequest; } @@ -221,9 +189,9 @@ partial void ProcessWriteSessionFilesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "WriteSessionFiles", - methodName: "WriteSessionFilesAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/write\"", + operationId: "CreateSandboxesSessionsBySessionIdFsWrite", + methodName: "CreateSandboxesSessionsBySessionIdFsWriteAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/write\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -255,9 +223,9 @@ partial void ProcessWriteSessionFilesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "WriteSessionFiles", - methodName: "WriteSessionFilesAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/write\"", + operationId: "CreateSandboxesSessionsBySessionIdFsWrite", + methodName: "CreateSandboxesSessionsBySessionIdFsWriteAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/write\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -296,9 +264,9 @@ partial void ProcessWriteSessionFilesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "WriteSessionFiles", - methodName: "WriteSessionFilesAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/write\"", + operationId: "CreateSandboxesSessionsBySessionIdFsWrite", + methodName: "CreateSandboxesSessionsBySessionIdFsWriteAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/write\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -336,7 +304,7 @@ partial void ProcessWriteSessionFilesResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessWriteSessionFilesResponse( + ProcessCreateSandboxesSessionsBySessionIdFsWriteResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -344,9 +312,9 @@ partial void ProcessWriteSessionFilesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "WriteSessionFiles", - methodName: "WriteSessionFilesAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/write\"", + operationId: "CreateSandboxesSessionsBySessionIdFsWrite", + methodName: "CreateSandboxesSessionsBySessionIdFsWriteAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/write\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -366,9 +334,9 @@ partial void ProcessWriteSessionFilesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "WriteSessionFiles", - methodName: "WriteSessionFilesAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/fs/write\"", + operationId: "CreateSandboxesSessionsBySessionIdFsWrite", + methodName: "CreateSandboxesSessionsBySessionIdFsWriteAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/fs/write\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -576,6 +544,38 @@ partial void ProcessWriteSessionFilesResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -620,7 +620,7 @@ partial void ProcessWriteSessionFilesResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessWriteSessionFilesResponseContent( + ProcessCreateSandboxesSessionsBySessionIdFsWriteResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSessionNetworkPolicy.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdNetworkPolicy.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSessionNetworkPolicy.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdNetworkPolicy.g.cs index ad096e42d..847432bb0 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSessionNetworkPolicy.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdNetworkPolicy.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_UpdateSessionNetworkPolicySecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdNetworkPolicySecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,65 +21,50 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_UpdateSessionNetworkPolicySecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdNetworkPolicySecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_UpdateSessionNetworkPolicySecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdNetworkPolicySecurityRequirement0, }; - partial void PrepareUpdateSessionNetworkPolicyArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdNetworkPolicyArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.OneOf request); - partial void PrepareUpdateSessionNetworkPolicyRequest( + global::Vercel.OneOf request); + partial void PrepareCreateSandboxesSessionsBySessionIdNetworkPolicyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string? teamId, - string? slug, - global::Vercel.OneOf request); - partial void ProcessUpdateSessionNetworkPolicyResponse( + global::Vercel.OneOf request); + partial void ProcessCreateSandboxesSessionsBySessionIdNetworkPolicyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUpdateSessionNetworkPolicyResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdNetworkPolicyResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Update network policy
- /// Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network rules will be overwritten. + /// ///
/// /// The unique identifier of the session to update the network policy for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateSessionNetworkPolicyAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdNetworkPolicyAsync( string sessionId, - global::Vercel.OneOf request, - string? teamId = default, - string? slug = default, + global::Vercel.OneOf request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await UpdateSessionNetworkPolicyAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdNetworkPolicyAsResponseAsync( sessionId: sessionId, request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -87,46 +72,35 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( return __response.Body; } /// - /// Update network policy
- /// Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network rules will be overwritten. + /// ///
/// /// The unique identifier of the session to update the network policy for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UpdateSessionNetworkPolicyAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdNetworkPolicyAsResponseAsync( string sessionId, - global::Vercel.OneOf request, - string? teamId = default, - string? slug = default, + global::Vercel.OneOf request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareUpdateSessionNetworkPolicyArguments( + PrepareCreateSandboxesSessionsBySessionIdNetworkPolicyArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UpdateSessionNetworkPolicySecurityRequirements, - operationName: "UpdateSessionNetworkPolicyAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdNetworkPolicySecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdNetworkPolicyAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -146,12 +120,8 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/network-policy", + path: $"/sandboxes/sessions/{sessionId}/network-policy", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -195,12 +165,10 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUpdateSessionNetworkPolicyRequest( + PrepareCreateSandboxesSessionsBySessionIdNetworkPolicyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -218,9 +186,9 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSessionNetworkPolicy", - methodName: "UpdateSessionNetworkPolicyAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/network-policy\"", + operationId: "CreateSandboxesSessionsBySessionIdNetworkPolicy", + methodName: "CreateSandboxesSessionsBySessionIdNetworkPolicyAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/network-policy\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -252,9 +220,9 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSessionNetworkPolicy", - methodName: "UpdateSessionNetworkPolicyAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/network-policy\"", + operationId: "CreateSandboxesSessionsBySessionIdNetworkPolicy", + methodName: "CreateSandboxesSessionsBySessionIdNetworkPolicyAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/network-policy\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -293,9 +261,9 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSessionNetworkPolicy", - methodName: "UpdateSessionNetworkPolicyAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/network-policy\"", + operationId: "CreateSandboxesSessionsBySessionIdNetworkPolicy", + methodName: "CreateSandboxesSessionsBySessionIdNetworkPolicyAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/network-policy\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -333,7 +301,7 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessUpdateSessionNetworkPolicyResponse( + ProcessCreateSandboxesSessionsBySessionIdNetworkPolicyResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -341,9 +309,9 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSessionNetworkPolicy", - methodName: "UpdateSessionNetworkPolicyAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/network-policy\"", + operationId: "CreateSandboxesSessionsBySessionIdNetworkPolicy", + methodName: "CreateSandboxesSessionsBySessionIdNetworkPolicyAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/network-policy\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -363,9 +331,9 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSessionNetworkPolicy", - methodName: "UpdateSessionNetworkPolicyAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/network-policy\"", + operationId: "CreateSandboxesSessionsBySessionIdNetworkPolicy", + methodName: "CreateSandboxesSessionsBySessionIdNetworkPolicyAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/network-policy\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -605,6 +573,38 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -649,7 +649,7 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessUpdateSessionNetworkPolicyResponseContent( + ProcessCreateSandboxesSessionsBySessionIdNetworkPolicyResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -658,9 +658,9 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.UpdateSessionNetworkPolicyResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -690,9 +690,9 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.UpdateSessionNetworkPolicyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.CreateSandboxesSessionsBySessionIdNetworkPolicyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -733,37 +733,26 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( } } /// - /// Update network policy
- /// Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network rules will be overwritten. + /// ///
/// /// The unique identifier of the session to update the network policy for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateSessionNetworkPolicyAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdNetworkPolicyAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.OneOf + var __request = new global::Vercel.OneOf { }; - return await UpdateSessionNetworkPolicyAsync( + return await CreateSandboxesSessionsBySessionIdNetworkPolicyAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdSnapshot.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionSnapshot.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdSnapshot.g.cs index c380c8743..334d49a9e 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdSnapshot.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSessionSnapshotSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdSnapshotSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,65 +21,50 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSessionSnapshotSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdSnapshotSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_CreateSessionSnapshotSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdSnapshotSecurityRequirement0, }; - partial void PrepareCreateSessionSnapshotArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdSnapshotArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string? teamId, - ref string? slug, - global::Vercel.CreateSessionSnapshotRequest request); - partial void PrepareCreateSessionSnapshotRequest( + global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest request); + partial void PrepareCreateSandboxesSessionsBySessionIdSnapshotRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string? teamId, - string? slug, - global::Vercel.CreateSessionSnapshotRequest request); - partial void ProcessCreateSessionSnapshotResponse( + global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest request); + partial void ProcessCreateSandboxesSessionsBySessionIdSnapshotResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateSessionSnapshotResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdSnapshotResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Create a snapshot
- /// Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. + /// ///
/// /// The unique identifier of the session to snapshot.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateSessionSnapshotAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdSnapshotAsync( string sessionId, - global::Vercel.CreateSessionSnapshotRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateSessionSnapshotAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdSnapshotAsResponseAsync( sessionId: sessionId, request: request, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -87,29 +72,20 @@ partial void ProcessCreateSessionSnapshotResponseContent( return __response.Body; } /// - /// Create a snapshot
- /// Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. + /// ///
/// /// The unique identifier of the session to snapshot.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateSessionSnapshotAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdSnapshotAsResponseAsync( string sessionId, - global::Vercel.CreateSessionSnapshotRequest request, - string? teamId = default, - string? slug = default, + global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest request, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -117,18 +93,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateSessionSnapshotArguments( + PrepareCreateSandboxesSessionsBySessionIdSnapshotArguments( httpClient: HttpClient, sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSessionSnapshotSecurityRequirements, - operationName: "CreateSessionSnapshotAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdSnapshotSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdSnapshotAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -148,12 +122,8 @@ partial void ProcessCreateSessionSnapshotResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/snapshot", + path: $"/sandboxes/sessions/{sessionId}/snapshot", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -197,12 +167,10 @@ partial void ProcessCreateSessionSnapshotResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateSessionSnapshotRequest( + PrepareCreateSandboxesSessionsBySessionIdSnapshotRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -220,9 +188,9 @@ partial void ProcessCreateSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionSnapshot", - methodName: "CreateSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/snapshot\"", + operationId: "CreateSandboxesSessionsBySessionIdSnapshot", + methodName: "CreateSandboxesSessionsBySessionIdSnapshotAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/snapshot\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -254,9 +222,9 @@ partial void ProcessCreateSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionSnapshot", - methodName: "CreateSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/snapshot\"", + operationId: "CreateSandboxesSessionsBySessionIdSnapshot", + methodName: "CreateSandboxesSessionsBySessionIdSnapshotAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/snapshot\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -295,9 +263,9 @@ partial void ProcessCreateSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionSnapshot", - methodName: "CreateSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/snapshot\"", + operationId: "CreateSandboxesSessionsBySessionIdSnapshot", + methodName: "CreateSandboxesSessionsBySessionIdSnapshotAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/snapshot\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -335,7 +303,7 @@ partial void ProcessCreateSessionSnapshotResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateSessionSnapshotResponse( + ProcessCreateSandboxesSessionsBySessionIdSnapshotResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -343,9 +311,9 @@ partial void ProcessCreateSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionSnapshot", - methodName: "CreateSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/snapshot\"", + operationId: "CreateSandboxesSessionsBySessionIdSnapshot", + methodName: "CreateSandboxesSessionsBySessionIdSnapshotAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/snapshot\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -365,9 +333,9 @@ partial void ProcessCreateSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSessionSnapshot", - methodName: "CreateSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/snapshot\"", + operationId: "CreateSandboxesSessionsBySessionIdSnapshot", + methodName: "CreateSandboxesSessionsBySessionIdSnapshotAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/snapshot\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -607,6 +575,38 @@ partial void ProcessCreateSessionSnapshotResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -651,7 +651,7 @@ partial void ProcessCreateSessionSnapshotResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateSessionSnapshotResponseContent( + ProcessCreateSandboxesSessionsBySessionIdSnapshotResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -660,9 +660,9 @@ partial void ProcessCreateSessionSnapshotResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.CreateSessionSnapshotResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -692,9 +692,9 @@ partial void ProcessCreateSessionSnapshotResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.CreateSessionSnapshotResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -735,42 +735,31 @@ partial void ProcessCreateSessionSnapshotResponseContent( } } /// - /// Create a snapshot
- /// Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. + /// ///
/// /// The unique identifier of the session to snapshot.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateSessionSnapshotAsync( + public async global::System.Threading.Tasks.Task CreateSandboxesSessionsBySessionIdSnapshotAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.OneOf? expiration = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.CreateSessionSnapshotRequest + var __request = new global::Vercel.CreateSandboxesSessionsBySessionIdSnapshotRequest { Expiration = expiration, }; - return await CreateSessionSnapshotAsync( + return await CreateSandboxesSessionsBySessionIdSnapshotAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.StopSession.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdStop.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.StopSession.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdStop.g.cs index c08513bb8..65dfc7ff1 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.StopSession.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.CreateSandboxesSessionsBySessionIdStop.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_StopSessionSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_CreateSandboxesSessionsBySessionIdStopSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,58 +21,43 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_StopSessionSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_CreateSandboxesSessionsBySessionIdStopSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_StopSessionSecurityRequirement0, + { s_CreateSandboxesSessionsBySessionIdStopSecurityRequirement0, }; - partial void PrepareStopSessionArguments( + partial void PrepareCreateSandboxesSessionsBySessionIdStopArguments( global::System.Net.Http.HttpClient httpClient, - ref string sessionId, - ref string? teamId, - ref string? slug); - partial void PrepareStopSessionRequest( + ref string sessionId); + partial void PrepareCreateSandboxesSessionsBySessionIdStopRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string sessionId, - string? teamId, - string? slug); - partial void ProcessStopSessionResponse( + string sessionId); + partial void ProcessCreateSandboxesSessionsBySessionIdStopResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessStopSessionResponseContent( + partial void ProcessCreateSandboxesSessionsBySessionIdStopResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Stop a session
- /// Stops a running session and releases its allocated resources. All running processes within the session will be terminated. This action cannot be undone. A stopped session cannot be restarted. + /// ///
/// /// The unique identifier of the session to stop.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> StopSessionAsync( + public async global::System.Threading.Tasks.Task> CreateSandboxesSessionsBySessionIdStopAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await StopSessionAsResponseAsync( + var __response = await CreateSandboxesSessionsBySessionIdStopAsResponseAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -80,42 +65,31 @@ partial void ProcessStopSessionResponseContent( return __response.Body; } /// - /// Stop a session
- /// Stops a running session and releases its allocated resources. All running processes within the session will be terminated. This action cannot be undone. A stopped session cannot be restarted. + /// ///
/// /// The unique identifier of the session to stop.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task>> StopSessionAsResponseAsync( + public async global::System.Threading.Tasks.Task>> CreateSandboxesSessionsBySessionIdStopAsResponseAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareStopSessionArguments( + PrepareCreateSandboxesSessionsBySessionIdStopArguments( httpClient: HttpClient, - sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug); + sessionId: ref sessionId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_StopSessionSecurityRequirements, - operationName: "StopSessionAsync"); + securityRequirements: s_CreateSandboxesSessionsBySessionIdStopSecurityRequirements, + operationName: "CreateSandboxesSessionsBySessionIdStopAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -135,12 +109,8 @@ partial void ProcessStopSessionResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/stop", + path: $"/sandboxes/sessions/{sessionId}/stop", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -178,12 +148,10 @@ partial void ProcessStopSessionResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareStopSessionRequest( + PrepareCreateSandboxesSessionsBySessionIdStopRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - teamId: teamId, - slug: slug); + sessionId: sessionId!); return __httpRequest; } @@ -200,9 +168,9 @@ partial void ProcessStopSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StopSession", - methodName: "StopSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/stop\"", + operationId: "CreateSandboxesSessionsBySessionIdStop", + methodName: "CreateSandboxesSessionsBySessionIdStopAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/stop\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -234,9 +202,9 @@ partial void ProcessStopSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StopSession", - methodName: "StopSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/stop\"", + operationId: "CreateSandboxesSessionsBySessionIdStop", + methodName: "CreateSandboxesSessionsBySessionIdStopAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/stop\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -275,9 +243,9 @@ partial void ProcessStopSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StopSession", - methodName: "StopSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/stop\"", + operationId: "CreateSandboxesSessionsBySessionIdStop", + methodName: "CreateSandboxesSessionsBySessionIdStopAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/stop\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -315,7 +283,7 @@ partial void ProcessStopSessionResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessStopSessionResponse( + ProcessCreateSandboxesSessionsBySessionIdStopResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -323,9 +291,9 @@ partial void ProcessStopSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StopSession", - methodName: "StopSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/stop\"", + operationId: "CreateSandboxesSessionsBySessionIdStop", + methodName: "CreateSandboxesSessionsBySessionIdStopAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/stop\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -345,9 +313,9 @@ partial void ProcessStopSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StopSession", - methodName: "StopSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/stop\"", + operationId: "CreateSandboxesSessionsBySessionIdStop", + methodName: "CreateSandboxesSessionsBySessionIdStopAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/stop\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -555,6 +523,38 @@ partial void ProcessStopSessionResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -599,7 +599,7 @@ partial void ProcessStopSessionResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessStopSessionResponseContent( + ProcessCreateSandboxesSessionsBySessionIdStopResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -608,9 +608,9 @@ partial void ProcessStopSessionResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -640,9 +640,9 @@ partial void ProcessStopSessionResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.DeleteSandboxesByName.g.cs similarity index 88% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSandbox.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.DeleteSandboxesByName.g.cs index acf34bc42..a6af2b513 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.DeleteSandboxesByName.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_DeleteSandboxSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_DeleteSandboxesByNameSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,35 +21,30 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_DeleteSandboxSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_DeleteSandboxesByNameSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_DeleteSandboxSecurityRequirement0, + { s_DeleteSandboxesByNameSecurityRequirement0, }; - partial void PrepareDeleteSandboxArguments( + partial void PrepareDeleteSandboxesByNameArguments( global::System.Net.Http.HttpClient httpClient, ref string name, - ref string? projectId, - ref string? teamId, - ref string? slug); - partial void PrepareDeleteSandboxRequest( + ref string? projectId); + partial void PrepareDeleteSandboxesByNameRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string name, - string? projectId, - string? teamId, - string? slug); - partial void ProcessDeleteSandboxResponse( + string? projectId); + partial void ProcessDeleteSandboxesByNameResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteSandboxResponseContent( + partial void ProcessDeleteSandboxesByNameResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Delete a sandbox
- /// Deletes a sandbox by name. If sandboxes are currently running, they will be stopped first. This operation deletes all sandbox entities with the given name and the named sandbox metadata. + /// ///
/// /// The sandbox name to delete.
@@ -58,28 +53,18 @@ partial void ProcessDeleteSandboxResponseContent( /// /// The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteSandboxAsync( + public async global::System.Threading.Tasks.Task DeleteSandboxesByNameAsync( string name, string? projectId = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteSandboxAsResponseAsync( + var __response = await DeleteSandboxesByNameAsResponseAsync( name: name, projectId: projectId, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -87,8 +72,7 @@ partial void ProcessDeleteSandboxResponseContent( return __response.Body; } /// - /// Delete a sandbox
- /// Deletes a sandbox by name. If sandboxes are currently running, they will be stopped first. This operation deletes all sandbox entities with the given name and the named sandbox metadata. + /// ///
/// /// The sandbox name to delete.
@@ -97,37 +81,27 @@ partial void ProcessDeleteSandboxResponseContent( /// /// The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> DeleteSandboxAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteSandboxesByNameAsResponseAsync( string name, string? projectId = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteSandboxArguments( + PrepareDeleteSandboxesByNameArguments( httpClient: HttpClient, name: ref name, - projectId: ref projectId, - teamId: ref teamId, - slug: ref slug); + projectId: ref projectId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteSandboxSecurityRequirements, - operationName: "DeleteSandboxAsync"); + securityRequirements: s_DeleteSandboxesByNameSecurityRequirements, + operationName: "DeleteSandboxesByNameAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -147,12 +121,10 @@ partial void ProcessDeleteSandboxResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/{name}", + path: $"/sandboxes/{name}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("projectId", projectId) - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -191,13 +163,11 @@ partial void ProcessDeleteSandboxResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteSandboxRequest( + PrepareDeleteSandboxesByNameRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, name: name!, - projectId: projectId, - teamId: teamId, - slug: slug); + projectId: projectId); return __httpRequest; } @@ -214,9 +184,9 @@ partial void ProcessDeleteSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSandbox", - methodName: "DeleteSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "DeleteSandboxesByName", + methodName: "DeleteSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -248,9 +218,9 @@ partial void ProcessDeleteSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSandbox", - methodName: "DeleteSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "DeleteSandboxesByName", + methodName: "DeleteSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -289,9 +259,9 @@ partial void ProcessDeleteSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSandbox", - methodName: "DeleteSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "DeleteSandboxesByName", + methodName: "DeleteSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -329,7 +299,7 @@ partial void ProcessDeleteSandboxResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteSandboxResponse( + ProcessDeleteSandboxesByNameResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -337,9 +307,9 @@ partial void ProcessDeleteSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSandbox", - methodName: "DeleteSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "DeleteSandboxesByName", + methodName: "DeleteSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -359,9 +329,9 @@ partial void ProcessDeleteSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSandbox", - methodName: "DeleteSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "DeleteSandboxesByName", + methodName: "DeleteSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -569,6 +539,38 @@ partial void ProcessDeleteSandboxResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -613,7 +615,7 @@ partial void ProcessDeleteSandboxResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteSandboxResponseContent( + ProcessDeleteSandboxesByNameResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -622,9 +624,9 @@ partial void ProcessDeleteSandboxResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.DeleteSandboxResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.DeleteSandboxesByNameResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -654,9 +656,9 @@ partial void ProcessDeleteSandboxResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.DeleteSandboxResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.DeleteSandboxesByNameResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.DeleteSandboxesSnapshotsBySnapshotId.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSessionSnapshot.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.DeleteSandboxesSnapshotsBySnapshotId.g.cs index 33ed76d5d..a838aee17 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.DeleteSandboxesSnapshotsBySnapshotId.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_DeleteSessionSnapshotSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_DeleteSandboxesSnapshotsBySnapshotIdSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,58 +21,43 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_DeleteSessionSnapshotSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_DeleteSandboxesSnapshotsBySnapshotIdSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_DeleteSessionSnapshotSecurityRequirement0, + { s_DeleteSandboxesSnapshotsBySnapshotIdSecurityRequirement0, }; - partial void PrepareDeleteSessionSnapshotArguments( + partial void PrepareDeleteSandboxesSnapshotsBySnapshotIdArguments( global::System.Net.Http.HttpClient httpClient, - ref string snapshotId, - ref string? teamId, - ref string? slug); - partial void PrepareDeleteSessionSnapshotRequest( + ref string snapshotId); + partial void PrepareDeleteSandboxesSnapshotsBySnapshotIdRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string snapshotId, - string? teamId, - string? slug); - partial void ProcessDeleteSessionSnapshotResponse( + string snapshotId); + partial void ProcessDeleteSandboxesSnapshotsBySnapshotIdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteSessionSnapshotResponseContent( + partial void ProcessDeleteSandboxesSnapshotsBySnapshotIdResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Delete a snapshot
- /// Permanently deletes a snapshot and frees its associated storage. This action cannot be undone. After deletion, the snapshot can no longer be used to create new sessions. + /// ///
/// /// The unique identifier of the snapshot to delete.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteSessionSnapshotAsync( + public async global::System.Threading.Tasks.Task DeleteSandboxesSnapshotsBySnapshotIdAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteSessionSnapshotAsResponseAsync( + var __response = await DeleteSandboxesSnapshotsBySnapshotIdAsResponseAsync( snapshotId: snapshotId, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -80,42 +65,31 @@ partial void ProcessDeleteSessionSnapshotResponseContent( return __response.Body; } /// - /// Delete a snapshot
- /// Permanently deletes a snapshot and frees its associated storage. This action cannot be undone. After deletion, the snapshot can no longer be used to create new sessions. + /// ///
/// /// The unique identifier of the snapshot to delete.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> DeleteSessionSnapshotAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteSandboxesSnapshotsBySnapshotIdAsResponseAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteSessionSnapshotArguments( + PrepareDeleteSandboxesSnapshotsBySnapshotIdArguments( httpClient: HttpClient, - snapshotId: ref snapshotId, - teamId: ref teamId, - slug: ref slug); + snapshotId: ref snapshotId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteSessionSnapshotSecurityRequirements, - operationName: "DeleteSessionSnapshotAsync"); + securityRequirements: s_DeleteSandboxesSnapshotsBySnapshotIdSecurityRequirements, + operationName: "DeleteSandboxesSnapshotsBySnapshotIdAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -135,12 +109,8 @@ partial void ProcessDeleteSessionSnapshotResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/snapshots/{snapshotId}", + path: $"/sandboxes/snapshots/{snapshotId}", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -178,12 +148,10 @@ partial void ProcessDeleteSessionSnapshotResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteSessionSnapshotRequest( + PrepareDeleteSandboxesSnapshotsBySnapshotIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - snapshotId: snapshotId!, - teamId: teamId, - slug: slug); + snapshotId: snapshotId!); return __httpRequest; } @@ -200,9 +168,9 @@ partial void ProcessDeleteSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSessionSnapshot", - methodName: "DeleteSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "DeleteSandboxesSnapshotsBySnapshotId", + methodName: "DeleteSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -234,9 +202,9 @@ partial void ProcessDeleteSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSessionSnapshot", - methodName: "DeleteSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "DeleteSandboxesSnapshotsBySnapshotId", + methodName: "DeleteSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -275,9 +243,9 @@ partial void ProcessDeleteSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSessionSnapshot", - methodName: "DeleteSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "DeleteSandboxesSnapshotsBySnapshotId", + methodName: "DeleteSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -315,7 +283,7 @@ partial void ProcessDeleteSessionSnapshotResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteSessionSnapshotResponse( + ProcessDeleteSandboxesSnapshotsBySnapshotIdResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -323,9 +291,9 @@ partial void ProcessDeleteSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSessionSnapshot", - methodName: "DeleteSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "DeleteSandboxesSnapshotsBySnapshotId", + methodName: "DeleteSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -345,9 +313,9 @@ partial void ProcessDeleteSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteSessionSnapshot", - methodName: "DeleteSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "DeleteSandboxesSnapshotsBySnapshotId", + methodName: "DeleteSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -490,6 +458,38 @@ partial void ProcessDeleteSessionSnapshotResponseContent( h => h.Key, h => h.Value)); } + // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -503,7 +503,7 @@ partial void ProcessDeleteSessionSnapshotResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteSessionSnapshotResponseContent( + ProcessDeleteSandboxesSnapshotsBySnapshotIdResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -512,9 +512,9 @@ partial void ProcessDeleteSessionSnapshotResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.DeleteSessionSnapshotResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -544,9 +544,9 @@ partial void ProcessDeleteSessionSnapshotResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.DeleteSessionSnapshotResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.DeleteSandboxesSnapshotsBySnapshotIdResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSandboxes.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxes.g.cs similarity index 87% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSandboxes.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxes.g.cs index 93da86a70..96730c010 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSandboxes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxes.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_ListSandboxesSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,45 +21,40 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_ListSandboxesSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_ListSandboxesSecurityRequirement0, + { s_GetSandboxesSecurityRequirement0, }; - partial void PrepareListSandboxesArguments( + partial void PrepareGetSandboxesArguments( global::System.Net.Http.HttpClient httpClient, ref string? project, ref double? limit, - ref global::Vercel.ListSandboxesSortBy? sortBy, + ref global::Vercel.GetSandboxesSortBy? sortBy, ref string? namePrefix, ref string? cursor, - ref global::Vercel.ListSandboxesSortOrder? sortOrder, - ref global::Vercel.AnyOf>? tags, - ref string? teamId, - ref string? slug); - partial void PrepareListSandboxesRequest( + ref global::Vercel.GetSandboxesSortOrder? sortOrder, + ref global::Vercel.AnyOf>? tags); + partial void PrepareGetSandboxesRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? project, double? limit, - global::Vercel.ListSandboxesSortBy? sortBy, + global::Vercel.GetSandboxesSortBy? sortBy, string? namePrefix, string? cursor, - global::Vercel.ListSandboxesSortOrder? sortOrder, - global::Vercel.AnyOf>? tags, - string? teamId, - string? slug); - partial void ProcessListSandboxesResponse( + global::Vercel.GetSandboxesSortOrder? sortOrder, + global::Vercel.AnyOf>? tags); + partial void ProcessGetSandboxesResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListSandboxesResponseContent( + partial void ProcessGetSandboxesResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// List sandboxes
- /// Retrieves a paginated list of named sandboxes belonging to a specific project. Results can be sorted by creation time or name, and optionally filtered by name prefix. + /// ///
/// /// The unique identifier or name of the project to list named sandboxes for.
@@ -87,29 +82,21 @@ partial void ProcessListSandboxesResponseContent( /// /// Filter sandboxes by tag. Format: \"key:value\". Only one tag filter is supported at a time. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ListSandboxesAsync( + public async global::System.Threading.Tasks.Task GetSandboxesAsync( string? project = default, double? limit = default, - global::Vercel.ListSandboxesSortBy? sortBy = default, + global::Vercel.GetSandboxesSortBy? sortBy = default, string? namePrefix = default, string? cursor = default, - global::Vercel.ListSandboxesSortOrder? sortOrder = default, + global::Vercel.GetSandboxesSortOrder? sortOrder = default, global::Vercel.AnyOf>? tags = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListSandboxesAsResponseAsync( + var __response = await GetSandboxesAsResponseAsync( project: project, limit: limit, sortBy: sortBy, @@ -117,8 +104,6 @@ partial void ProcessListSandboxesResponseContent( cursor: cursor, sortOrder: sortOrder, tags: tags, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -126,8 +111,7 @@ partial void ProcessListSandboxesResponseContent( return __response.Body; } /// - /// List sandboxes
- /// Retrieves a paginated list of named sandboxes belonging to a specific project. Results can be sorted by creation time or name, and optionally filtered by name prefix. + /// ///
/// /// The unique identifier or name of the project to list named sandboxes for.
@@ -155,31 +139,23 @@ partial void ProcessListSandboxesResponseContent( /// /// Filter sandboxes by tag. Format: \"key:value\". Only one tag filter is supported at a time. /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListSandboxesAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesAsResponseAsync( string? project = default, double? limit = default, - global::Vercel.ListSandboxesSortBy? sortBy = default, + global::Vercel.GetSandboxesSortBy? sortBy = default, string? namePrefix = default, string? cursor = default, - global::Vercel.ListSandboxesSortOrder? sortOrder = default, + global::Vercel.GetSandboxesSortOrder? sortOrder = default, global::Vercel.AnyOf>? tags = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareListSandboxesArguments( + PrepareGetSandboxesArguments( httpClient: HttpClient, project: ref project, limit: ref limit, @@ -187,15 +163,13 @@ partial void ProcessListSandboxesResponseContent( namePrefix: ref namePrefix, cursor: ref cursor, sortOrder: ref sortOrder, - tags: ref tags, - teamId: ref teamId, - slug: ref slug); + tags: ref tags); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSandboxesSecurityRequirements, - operationName: "ListSandboxesAsync"); + securityRequirements: s_GetSandboxesSecurityRequirements, + operationName: "GetSandboxesAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -215,7 +189,7 @@ partial void ProcessListSandboxesResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: "/v2/sandboxes", + path: "/sandboxes", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project", project) @@ -225,8 +199,6 @@ partial void ProcessListSandboxesResponseContent( .AddOptionalParameter("cursor", cursor) .AddOptionalParameter("sortOrder", sortOrder?.ToValueString()) .AddOptionalParameter("tags", tags?.ToString()) - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -265,7 +237,7 @@ partial void ProcessListSandboxesResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListSandboxesRequest( + PrepareGetSandboxesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, project: project, @@ -274,9 +246,7 @@ partial void ProcessListSandboxesResponseContent( namePrefix: namePrefix, cursor: cursor, sortOrder: sortOrder, - tags: tags, - teamId: teamId, - slug: slug); + tags: tags); return __httpRequest; } @@ -293,9 +263,9 @@ partial void ProcessListSandboxesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSandboxes", - methodName: "ListSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + operationId: "GetSandboxes", + methodName: "GetSandboxesAsync", + pathTemplate: "\"/sandboxes\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -327,9 +297,9 @@ partial void ProcessListSandboxesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSandboxes", - methodName: "ListSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + operationId: "GetSandboxes", + methodName: "GetSandboxesAsync", + pathTemplate: "\"/sandboxes\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -368,9 +338,9 @@ partial void ProcessListSandboxesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSandboxes", - methodName: "ListSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + operationId: "GetSandboxes", + methodName: "GetSandboxesAsync", + pathTemplate: "\"/sandboxes\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -408,7 +378,7 @@ partial void ProcessListSandboxesResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListSandboxesResponse( + ProcessGetSandboxesResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -416,9 +386,9 @@ partial void ProcessListSandboxesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSandboxes", - methodName: "ListSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + operationId: "GetSandboxes", + methodName: "GetSandboxesAsync", + pathTemplate: "\"/sandboxes\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -438,9 +408,9 @@ partial void ProcessListSandboxesResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSandboxes", - methodName: "ListSandboxesAsync", - pathTemplate: "\"/v2/sandboxes\"", + operationId: "GetSandboxes", + methodName: "GetSandboxesAsync", + pathTemplate: "\"/sandboxes\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -583,6 +553,38 @@ partial void ProcessListSandboxesResponseContent( h => h.Key, h => h.Value)); } + // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -596,7 +598,7 @@ partial void ProcessListSandboxesResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListSandboxesResponseContent( + ProcessGetSandboxesResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -605,9 +607,9 @@ partial void ProcessListSandboxesResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.ListSandboxesResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.GetSandboxesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -637,9 +639,9 @@ partial void ProcessListSandboxesResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.ListSandboxesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.GetSandboxesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetNamedSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesByName.g.cs similarity index 90% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.GetNamedSandbox.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesByName.g.cs index e911ca673..8e16d1a5a 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetNamedSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesByName.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_GetNamedSandboxSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesByNameSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,37 +21,32 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetNamedSandboxSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesByNameSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_GetNamedSandboxSecurityRequirement0, + { s_GetSandboxesByNameSecurityRequirement0, }; - partial void PrepareGetNamedSandboxArguments( + partial void PrepareGetSandboxesByNameArguments( global::System.Net.Http.HttpClient httpClient, ref string name, ref string? projectId, - ref bool? resume, - ref string? teamId, - ref string? slug); - partial void PrepareGetNamedSandboxRequest( + ref bool? resume); + partial void PrepareGetSandboxesByNameRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string name, string? projectId, - bool? resume, - string? teamId, - string? slug); - partial void ProcessGetNamedSandboxResponse( + bool? resume); + partial void ProcessGetSandboxesByNameResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetNamedSandboxResponseContent( + partial void ProcessGetSandboxesByNameResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get a named sandbox
- /// Retrieves a named sandbox by name, including its current sandbox and routes. If the sandbox is stopped and resume is true, a new sandbox will be created from the most recent snapshot. + /// ///
/// /// Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).
@@ -65,30 +60,20 @@ partial void ProcessGetNamedSandboxResponseContent( /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetNamedSandboxAsync( + public async global::System.Threading.Tasks.Task GetSandboxesByNameAsync( string name, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetNamedSandboxAsResponseAsync( + var __response = await GetSandboxesByNameAsResponseAsync( name: name, projectId: projectId, resume: resume, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -96,8 +81,7 @@ partial void ProcessGetNamedSandboxResponseContent( return __response.Body; } /// - /// Get a named sandbox
- /// Retrieves a named sandbox by name, including its current sandbox and routes. If the sandbox is stopped and resume is true, a new sandbox will be created from the most recent snapshot. + /// ///
/// /// Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).
@@ -111,39 +95,29 @@ partial void ProcessGetNamedSandboxResponseContent( /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetNamedSandboxAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesByNameAsResponseAsync( string name, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetNamedSandboxArguments( + PrepareGetSandboxesByNameArguments( httpClient: HttpClient, name: ref name, projectId: ref projectId, - resume: ref resume, - teamId: ref teamId, - slug: ref slug); + resume: ref resume); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetNamedSandboxSecurityRequirements, - operationName: "GetNamedSandboxAsync"); + securityRequirements: s_GetSandboxesByNameSecurityRequirements, + operationName: "GetSandboxesByNameAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -163,13 +137,11 @@ partial void ProcessGetNamedSandboxResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/{name}", + path: $"/sandboxes/{name}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("projectId", projectId) .AddOptionalParameter("resume", resume?.ToString().ToLowerInvariant()) - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -208,14 +180,12 @@ partial void ProcessGetNamedSandboxResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetNamedSandboxRequest( + PrepareGetSandboxesByNameRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, name: name!, projectId: projectId, - resume: resume, - teamId: teamId, - slug: slug); + resume: resume); return __httpRequest; } @@ -232,9 +202,9 @@ partial void ProcessGetNamedSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetNamedSandbox", - methodName: "GetNamedSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "GetSandboxesByName", + methodName: "GetSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -266,9 +236,9 @@ partial void ProcessGetNamedSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetNamedSandbox", - methodName: "GetNamedSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "GetSandboxesByName", + methodName: "GetSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -307,9 +277,9 @@ partial void ProcessGetNamedSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetNamedSandbox", - methodName: "GetNamedSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "GetSandboxesByName", + methodName: "GetSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -347,7 +317,7 @@ partial void ProcessGetNamedSandboxResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetNamedSandboxResponse( + ProcessGetSandboxesByNameResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -355,9 +325,9 @@ partial void ProcessGetNamedSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetNamedSandbox", - methodName: "GetNamedSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "GetSandboxesByName", + methodName: "GetSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -377,9 +347,9 @@ partial void ProcessGetNamedSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetNamedSandbox", - methodName: "GetNamedSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "GetSandboxesByName", + methodName: "GetSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -695,7 +665,7 @@ partial void ProcessGetNamedSandboxResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetNamedSandboxResponseContent( + ProcessGetSandboxesByNameResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -704,9 +674,9 @@ partial void ProcessGetNamedSandboxResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.GetNamedSandboxResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.GetSandboxesByNameResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -736,9 +706,9 @@ partial void ProcessGetNamedSandboxResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.GetNamedSandboxResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.GetSandboxesByNameResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessions.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessions.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessions.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessions.g.cs index 33a5f1cda..3ee510672 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessions.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_ListSessionsSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSessionsSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,41 +21,36 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_ListSessionsSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSessionsSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_ListSessionsSecurityRequirement0, + { s_GetSandboxesSessionsSecurityRequirement0, }; - partial void PrepareListSessionsArguments( + partial void PrepareGetSandboxesSessionsArguments( global::System.Net.Http.HttpClient httpClient, ref string? project, ref string? name, ref double? limit, ref string? cursor, - ref global::Vercel.ListSessionsSortOrder? sortOrder, - ref string? teamId, - ref string? slug); - partial void PrepareListSessionsRequest( + ref global::Vercel.GetSandboxesSessionsSortOrder? sortOrder); + partial void PrepareGetSandboxesSessionsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? project, string? name, double? limit, string? cursor, - global::Vercel.ListSessionsSortOrder? sortOrder, - string? teamId, - string? slug); - partial void ProcessListSessionsResponse( + global::Vercel.GetSandboxesSessionsSortOrder? sortOrder); + partial void ProcessGetSandboxesSessionsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListSessionsResponseContent( + partial void ProcessGetSandboxesSessionsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// List sessions
- /// Retrieves a paginated list of sessions belonging to a specific sandbox. Results are sorted by creation time and paginated using an opaque cursor. + /// ///
/// /// The unique identifier or name of the project to list sessions for.
@@ -77,34 +72,24 @@ partial void ProcessListSessionsResponseContent( /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListSessionsAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesSessionsAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListSessionsAsResponseAsync( + var __response = await GetSandboxesSessionsAsResponseAsync( project: project, name: name, limit: limit, cursor: cursor, sortOrder: sortOrder, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -112,8 +97,7 @@ partial void ProcessListSessionsResponseContent( return __response.Body; } /// - /// List sessions
- /// Retrieves a paginated list of sessions belonging to a specific sandbox. Results are sorted by creation time and paginated using an opaque cursor. + /// ///
/// /// The unique identifier or name of the project to list sessions for.
@@ -135,43 +119,33 @@ partial void ProcessListSessionsResponseContent( /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task>> ListSessionsAsResponseAsync( + public async global::System.Threading.Tasks.Task>> GetSandboxesSessionsAsResponseAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareListSessionsArguments( + PrepareGetSandboxesSessionsArguments( httpClient: HttpClient, project: ref project, name: ref name, limit: ref limit, cursor: ref cursor, - sortOrder: ref sortOrder, - teamId: ref teamId, - slug: ref slug); + sortOrder: ref sortOrder); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSessionsSecurityRequirements, - operationName: "ListSessionsAsync"); + securityRequirements: s_GetSandboxesSessionsSecurityRequirements, + operationName: "GetSandboxesSessionsAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -191,7 +165,7 @@ partial void ProcessListSessionsResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: "/v2/sandboxes/sessions", + path: "/sandboxes/sessions", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project", project) @@ -199,8 +173,6 @@ partial void ProcessListSessionsResponseContent( .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("cursor", cursor) .AddOptionalParameter("sortOrder", sortOrder?.ToValueString()) - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -239,16 +211,14 @@ partial void ProcessListSessionsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListSessionsRequest( + PrepareGetSandboxesSessionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, project: project, name: name, limit: limit, cursor: cursor, - sortOrder: sortOrder, - teamId: teamId, - slug: slug); + sortOrder: sortOrder); return __httpRequest; } @@ -265,9 +235,9 @@ partial void ProcessListSessionsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessions", - methodName: "ListSessionsAsync", - pathTemplate: "\"/v2/sandboxes/sessions\"", + operationId: "GetSandboxesSessions", + methodName: "GetSandboxesSessionsAsync", + pathTemplate: "\"/sandboxes/sessions\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -299,9 +269,9 @@ partial void ProcessListSessionsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessions", - methodName: "ListSessionsAsync", - pathTemplate: "\"/v2/sandboxes/sessions\"", + operationId: "GetSandboxesSessions", + methodName: "GetSandboxesSessionsAsync", + pathTemplate: "\"/sandboxes/sessions\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -340,9 +310,9 @@ partial void ProcessListSessionsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessions", - methodName: "ListSessionsAsync", - pathTemplate: "\"/v2/sandboxes/sessions\"", + operationId: "GetSandboxesSessions", + methodName: "GetSandboxesSessionsAsync", + pathTemplate: "\"/sandboxes/sessions\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -380,7 +350,7 @@ partial void ProcessListSessionsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListSessionsResponse( + ProcessGetSandboxesSessionsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -388,9 +358,9 @@ partial void ProcessListSessionsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessions", - methodName: "ListSessionsAsync", - pathTemplate: "\"/v2/sandboxes/sessions\"", + operationId: "GetSandboxesSessions", + methodName: "GetSandboxesSessionsAsync", + pathTemplate: "\"/sandboxes/sessions\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -410,9 +380,9 @@ partial void ProcessListSessionsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessions", - methodName: "ListSessionsAsync", - pathTemplate: "\"/v2/sandboxes/sessions\"", + operationId: "GetSandboxesSessions", + methodName: "GetSandboxesSessionsAsync", + pathTemplate: "\"/sandboxes/sessions\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -556,6 +526,38 @@ partial void ProcessListSessionsResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -600,7 +602,7 @@ partial void ProcessListSessionsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListSessionsResponseContent( + ProcessGetSandboxesSessionsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -609,9 +611,9 @@ partial void ProcessListSessionsResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -641,9 +643,9 @@ partial void ProcessListSessionsResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionCommands.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionId.g.cs similarity index 79% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionCommands.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionId.g.cs index 2ec4d6f86..675f6e281 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionCommands.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionId.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_ListSessionCommandsSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSessionsBySessionIdSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,58 +21,43 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_ListSessionCommandsSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSessionsBySessionIdSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_ListSessionCommandsSecurityRequirement0, + { s_GetSandboxesSessionsBySessionIdSecurityRequirement0, }; - partial void PrepareListSessionCommandsArguments( + partial void PrepareGetSandboxesSessionsBySessionIdArguments( global::System.Net.Http.HttpClient httpClient, - ref string sessionId, - ref string? teamId, - ref string? slug); - partial void PrepareListSessionCommandsRequest( + ref string sessionId); + partial void PrepareGetSandboxesSessionsBySessionIdRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string sessionId, - string? teamId, - string? slug); - partial void ProcessListSessionCommandsResponse( + string sessionId); + partial void ProcessGetSandboxesSessionsBySessionIdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListSessionCommandsResponseContent( + partial void ProcessGetSandboxesSessionsBySessionIdResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// List commands
- /// Retrieves a list of all commands that have been executed in a session, including their current status, exit codes, and execution times, ordered from the most recent to the oldest. + /// ///
/// - /// The unique identifier of the session to list commands for.
+ /// The unique identifier of the session to retrieve.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ListSessionCommandsAsync( + public async global::System.Threading.Tasks.Task GetSandboxesSessionsBySessionIdAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListSessionCommandsAsResponseAsync( + var __response = await GetSandboxesSessionsBySessionIdAsResponseAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -80,42 +65,31 @@ partial void ProcessListSessionCommandsResponseContent( return __response.Body; } /// - /// List commands
- /// Retrieves a list of all commands that have been executed in a session, including their current status, exit codes, and execution times, ordered from the most recent to the oldest. + /// ///
/// - /// The unique identifier of the session to list commands for.
+ /// The unique identifier of the session to retrieve.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListSessionCommandsAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesSessionsBySessionIdAsResponseAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareListSessionCommandsArguments( + PrepareGetSandboxesSessionsBySessionIdArguments( httpClient: HttpClient, - sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug); + sessionId: ref sessionId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSessionCommandsSecurityRequirements, - operationName: "ListSessionCommandsAsync"); + securityRequirements: s_GetSandboxesSessionsBySessionIdSecurityRequirements, + operationName: "GetSandboxesSessionsBySessionIdAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -135,12 +109,8 @@ partial void ProcessListSessionCommandsResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/cmd", + path: $"/sandboxes/sessions/{sessionId}", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -178,12 +148,10 @@ partial void ProcessListSessionCommandsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListSessionCommandsRequest( + PrepareGetSandboxesSessionsBySessionIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - teamId: teamId, - slug: slug); + sessionId: sessionId!); return __httpRequest; } @@ -200,9 +168,9 @@ partial void ProcessListSessionCommandsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionCommands", - methodName: "ListSessionCommandsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "GetSandboxesSessionsBySessionId", + methodName: "GetSandboxesSessionsBySessionIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -234,9 +202,9 @@ partial void ProcessListSessionCommandsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionCommands", - methodName: "ListSessionCommandsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "GetSandboxesSessionsBySessionId", + methodName: "GetSandboxesSessionsBySessionIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -275,9 +243,9 @@ partial void ProcessListSessionCommandsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionCommands", - methodName: "ListSessionCommandsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "GetSandboxesSessionsBySessionId", + methodName: "GetSandboxesSessionsBySessionIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -315,7 +283,7 @@ partial void ProcessListSessionCommandsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListSessionCommandsResponse( + ProcessGetSandboxesSessionsBySessionIdResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -323,9 +291,9 @@ partial void ProcessListSessionCommandsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionCommands", - methodName: "ListSessionCommandsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "GetSandboxesSessionsBySessionId", + methodName: "GetSandboxesSessionsBySessionIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -345,9 +313,9 @@ partial void ProcessListSessionCommandsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionCommands", - methodName: "ListSessionCommandsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd\"", + operationId: "GetSandboxesSessionsBySessionId", + methodName: "GetSandboxesSessionsBySessionIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -490,6 +458,70 @@ partial void ProcessListSessionCommandsResponseContent( h => h.Key, h => h.Value)); } + // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -503,7 +535,7 @@ partial void ProcessListSessionCommandsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListSessionCommandsResponseContent( + ProcessGetSandboxesSessionsBySessionIdResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -512,9 +544,9 @@ partial void ProcessListSessionCommandsResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.ListSessionCommandsResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.GetSandboxesSessionsBySessionIdResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -544,9 +576,9 @@ partial void ProcessListSessionCommandsResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.ListSessionCommandsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.GetSandboxesSessionsBySessionIdResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSession.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmd.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSession.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmd.g.cs index 1f0c9d992..35cb421d8 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSession.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmd.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_GetSessionSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSessionsBySessionIdCmdSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,58 +21,43 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSessionSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSessionsBySessionIdCmdSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_GetSessionSecurityRequirement0, + { s_GetSandboxesSessionsBySessionIdCmdSecurityRequirement0, }; - partial void PrepareGetSessionArguments( + partial void PrepareGetSandboxesSessionsBySessionIdCmdArguments( global::System.Net.Http.HttpClient httpClient, - ref string sessionId, - ref string? teamId, - ref string? slug); - partial void PrepareGetSessionRequest( + ref string sessionId); + partial void PrepareGetSandboxesSessionsBySessionIdCmdRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string sessionId, - string? teamId, - string? slug); - partial void ProcessGetSessionResponse( + string sessionId); + partial void ProcessGetSandboxesSessionsBySessionIdCmdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetSessionResponseContent( + partial void ProcessGetSandboxesSessionsBySessionIdCmdResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get a session
- /// Retrieves detailed information about a specific session, including its current status, resource configuration, and exposed routes. + /// ///
/// - /// The unique identifier of the session to retrieve.
+ /// The unique identifier of the session to list commands for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetSessionAsync( + public async global::System.Threading.Tasks.Task GetSandboxesSessionsBySessionIdCmdAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetSessionAsResponseAsync( + var __response = await GetSandboxesSessionsBySessionIdCmdAsResponseAsync( sessionId: sessionId, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -80,42 +65,31 @@ partial void ProcessGetSessionResponseContent( return __response.Body; } /// - /// Get a session
- /// Retrieves detailed information about a specific session, including its current status, resource configuration, and exposed routes. + /// ///
/// - /// The unique identifier of the session to retrieve.
+ /// The unique identifier of the session to list commands for.
/// Example: sbx_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetSessionAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesSessionsBySessionIdCmdAsResponseAsync( string sessionId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetSessionArguments( + PrepareGetSandboxesSessionsBySessionIdCmdArguments( httpClient: HttpClient, - sessionId: ref sessionId, - teamId: ref teamId, - slug: ref slug); + sessionId: ref sessionId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSessionSecurityRequirements, - operationName: "GetSessionAsync"); + securityRequirements: s_GetSandboxesSessionsBySessionIdCmdSecurityRequirements, + operationName: "GetSandboxesSessionsBySessionIdCmdAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -135,12 +109,8 @@ partial void ProcessGetSessionResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}", + path: $"/sandboxes/sessions/{sessionId}/cmd", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -178,12 +148,10 @@ partial void ProcessGetSessionResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetSessionRequest( + PrepareGetSandboxesSessionsBySessionIdCmdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - teamId: teamId, - slug: slug); + sessionId: sessionId!); return __httpRequest; } @@ -200,9 +168,9 @@ partial void ProcessGetSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSession", - methodName: "GetSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmd", + methodName: "GetSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -234,9 +202,9 @@ partial void ProcessGetSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSession", - methodName: "GetSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmd", + methodName: "GetSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -275,9 +243,9 @@ partial void ProcessGetSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSession", - methodName: "GetSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmd", + methodName: "GetSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -315,7 +283,7 @@ partial void ProcessGetSessionResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetSessionResponse( + ProcessGetSandboxesSessionsBySessionIdCmdResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -323,9 +291,9 @@ partial void ProcessGetSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSession", - methodName: "GetSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmd", + methodName: "GetSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -345,9 +313,9 @@ partial void ProcessGetSessionResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSession", - methodName: "GetSessionAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmd", + methodName: "GetSandboxesSessionsBySessionIdCmdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -491,32 +459,32 @@ partial void ProcessGetSessionResponseContent( h => h.Value)); } // - if ((int)__response.StatusCode == 500) + if ((int)__response.StatusCode == 429) { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; + string? __content_429 = null; + global::System.Exception? __exception_429 = null; try { if (__effectiveReadResponseAsString) { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); } else { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); } } catch (global::System.Exception __ex) { - __exception_500 = __ex; + __exception_429 = __ex; } throw global::Vercel.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - responseBody: __content_500, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, @@ -535,7 +503,7 @@ partial void ProcessGetSessionResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetSessionResponseContent( + ProcessGetSandboxesSessionsBySessionIdCmdResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -544,9 +512,9 @@ partial void ProcessGetSessionResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.GetSessionResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -576,9 +544,9 @@ partial void ProcessGetSessionResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.GetSessionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.GetSandboxesSessionsBySessionIdCmdResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmdByCmdId.g.cs similarity index 86% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommand.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmdByCmdId.g.cs index dac791aa1..e496713be 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmdByCmdId.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_GetSessionCommandSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSessionsBySessionIdCmdByCmdIdSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,37 +21,32 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSessionCommandSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSessionsBySessionIdCmdByCmdIdSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_GetSessionCommandSecurityRequirement0, + { s_GetSandboxesSessionsBySessionIdCmdByCmdIdSecurityRequirement0, }; - partial void PrepareGetSessionCommandArguments( + partial void PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, ref string cmdId, - ref global::Vercel.GetSessionCommandWait? wait, - ref string? teamId, - ref string? slug); - partial void PrepareGetSessionCommandRequest( + ref global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? wait); + partial void PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, string cmdId, - global::Vercel.GetSessionCommandWait? wait, - string? teamId, - string? slug); - partial void ProcessGetSessionCommandResponse( + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? wait); + partial void ProcessGetSandboxesSessionsBySessionIdCmdByCmdIdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetSessionCommandResponseContent( + partial void ProcessGetSandboxesSessionsBySessionIdCmdByCmdIdResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get a command
- /// Retrieves the current status and details of a command executed in a session. Use the `wait` parameter to block until the command finishes execution. + /// ///
/// /// The unique identifier of the session containing the command.
@@ -65,30 +60,20 @@ partial void ProcessGetSessionCommandResponseContent( /// If set to "true", the request will block until the command finishes execution. Useful for synchronously waiting for command completion.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetSessionCommandAsync( + public async global::System.Threading.Tasks.Task GetSandboxesSessionsBySessionIdCmdByCmdIdAsync( string sessionId, string cmdId, - global::Vercel.GetSessionCommandWait? wait = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? wait = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetSessionCommandAsResponseAsync( + var __response = await GetSandboxesSessionsBySessionIdCmdByCmdIdAsResponseAsync( sessionId: sessionId, cmdId: cmdId, wait: wait, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -96,8 +81,7 @@ partial void ProcessGetSessionCommandResponseContent( return __response.Body; } /// - /// Get a command
- /// Retrieves the current status and details of a command executed in a session. Use the `wait` parameter to block until the command finishes execution. + /// ///
/// /// The unique identifier of the session containing the command.
@@ -111,39 +95,29 @@ partial void ProcessGetSessionCommandResponseContent( /// If set to "true", the request will block until the command finishes execution. Useful for synchronously waiting for command completion.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetSessionCommandAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesSessionsBySessionIdCmdByCmdIdAsResponseAsync( string sessionId, string cmdId, - global::Vercel.GetSessionCommandWait? wait = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdWait? wait = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetSessionCommandArguments( + PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdArguments( httpClient: HttpClient, sessionId: ref sessionId, cmdId: ref cmdId, - wait: ref wait, - teamId: ref teamId, - slug: ref slug); + wait: ref wait); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSessionCommandSecurityRequirements, - operationName: "GetSessionCommandAsync"); + securityRequirements: s_GetSandboxesSessionsBySessionIdCmdByCmdIdSecurityRequirements, + operationName: "GetSandboxesSessionsBySessionIdCmdByCmdIdAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -163,12 +137,10 @@ partial void ProcessGetSessionCommandResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}", + path: $"/sandboxes/sessions/{sessionId}/cmd/{cmdId}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("wait", wait?.ToValueString()) - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -207,14 +179,12 @@ partial void ProcessGetSessionCommandResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetSessionCommandRequest( + PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, cmdId: cmdId!, - wait: wait, - teamId: teamId, - slug: slug); + wait: wait); return __httpRequest; } @@ -231,9 +201,9 @@ partial void ProcessGetSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommand", - methodName: "GetSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdId", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -265,9 +235,9 @@ partial void ProcessGetSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommand", - methodName: "GetSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdId", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -306,9 +276,9 @@ partial void ProcessGetSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommand", - methodName: "GetSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdId", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -346,7 +316,7 @@ partial void ProcessGetSessionCommandResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetSessionCommandResponse( + ProcessGetSandboxesSessionsBySessionIdCmdByCmdIdResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -354,9 +324,9 @@ partial void ProcessGetSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommand", - methodName: "GetSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdId", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -376,9 +346,9 @@ partial void ProcessGetSessionCommandResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommand", - methodName: "GetSessionCommandAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdId", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -586,6 +556,38 @@ partial void ProcessGetSessionCommandResponseContent( h => h.Value)); } // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // if ((int)__response.StatusCode == 500) { string? __content_500 = null; @@ -630,7 +632,7 @@ partial void ProcessGetSessionCommandResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetSessionCommandResponseContent( + ProcessGetSandboxesSessionsBySessionIdCmdByCmdIdResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -639,9 +641,9 @@ partial void ProcessGetSessionCommandResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.GetSessionCommandResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -671,9 +673,9 @@ partial void ProcessGetSessionCommandResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.GetSessionCommandResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.GetSandboxesSessionsBySessionIdCmdByCmdIdResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommandLogs.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmdByCmdIdLogs.g.cs similarity index 83% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommandLogs.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmdByCmdIdLogs.g.cs index ca0702c28..a70c4c41e 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommandLogs.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSessionsBySessionIdCmdByCmdIdLogs.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_GetSessionCommandLogsSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSessionsBySessionIdCmdByCmdIdLogsSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,30 +21,25 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSessionCommandLogsSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSessionsBySessionIdCmdByCmdIdLogsSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_GetSessionCommandLogsSecurityRequirement0, + { s_GetSandboxesSessionsBySessionIdCmdByCmdIdLogsSecurityRequirement0, }; - partial void PrepareGetSessionCommandLogsArguments( + partial void PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdLogsArguments( global::System.Net.Http.HttpClient httpClient, ref string sessionId, - ref string cmdId, - ref string? teamId, - ref string? slug); - partial void PrepareGetSessionCommandLogsRequest( + ref string cmdId); + partial void PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdLogsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string sessionId, - string cmdId, - string? teamId, - string? slug); - partial void ProcessGetSessionCommandLogsResponse( + string cmdId); + partial void ProcessGetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Stream command logs
- /// Streams the output of a command in real-time using newline-delimited JSON (ND-JSON). Each entry includes the output data and stream type. Stream types include `stdout`, `stderr`, and `error` (for stream failures). + /// ///
/// /// The unique identifier of the session containing the command.
@@ -54,37 +49,27 @@ partial void ProcessGetSessionCommandLogsResponse( /// The unique identifier of the command to stream logs for.
/// Example: cmd_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Collections.Generic.IAsyncEnumerable> GetSessionCommandLogsAsync( + public async global::System.Collections.Generic.IAsyncEnumerable> GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync( string sessionId, string cmdId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetSessionCommandLogsArguments( + PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdLogsArguments( httpClient: HttpClient, sessionId: ref sessionId, - cmdId: ref cmdId, - teamId: ref teamId, - slug: ref slug); + cmdId: ref cmdId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSessionCommandLogsSecurityRequirements, - operationName: "GetSessionCommandLogsAsync"); + securityRequirements: s_GetSandboxesSessionsBySessionIdCmdByCmdIdLogsSecurityRequirements, + operationName: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -104,12 +89,8 @@ partial void ProcessGetSessionCommandLogsResponse( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs", + path: $"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -147,13 +128,11 @@ partial void ProcessGetSessionCommandLogsResponse( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetSessionCommandLogsRequest( + PrepareGetSandboxesSessionsBySessionIdCmdByCmdIdLogsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, sessionId: sessionId!, - cmdId: cmdId!, - teamId: teamId, - slug: slug); + cmdId: cmdId!); return __httpRequest; } @@ -170,9 +149,9 @@ partial void ProcessGetSessionCommandLogsResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommandLogs", - methodName: "GetSessionCommandLogsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogs", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -204,9 +183,9 @@ partial void ProcessGetSessionCommandLogsResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommandLogs", - methodName: "GetSessionCommandLogsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogs", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -245,9 +224,9 @@ partial void ProcessGetSessionCommandLogsResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommandLogs", - methodName: "GetSessionCommandLogsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogs", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -285,7 +264,7 @@ partial void ProcessGetSessionCommandLogsResponse( ProcessResponse( client: HttpClient, response: __response); - ProcessGetSessionCommandLogsResponse( + ProcessGetSandboxesSessionsBySessionIdCmdByCmdIdLogsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -293,9 +272,9 @@ partial void ProcessGetSessionCommandLogsResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommandLogs", - methodName: "GetSessionCommandLogsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogs", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -315,9 +294,9 @@ partial void ProcessGetSessionCommandLogsResponse( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionCommandLogs", - methodName: "GetSessionCommandLogsAsync", - pathTemplate: "$\"/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", + operationId: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogs", + methodName: "GetSandboxesSessionsBySessionIdCmdByCmdIdLogsAsync", + pathTemplate: "$\"/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -379,7 +358,7 @@ partial void ProcessGetSessionCommandLogsResponse( continue; } - var __streamedResponse = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? throw global::Vercel.ApiException.Create( statusCode: __response.StatusCode, message: $"Response deserialization failed for \"{__content}\" ", diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionSnapshots.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSnapshots.g.cs similarity index 85% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionSnapshots.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSnapshots.g.cs index 808543ba9..b9a262033 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionSnapshots.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSnapshots.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_ListSessionSnapshotsSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSnapshotsSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,41 +21,36 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_ListSessionSnapshotsSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSnapshotsSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_ListSessionSnapshotsSecurityRequirement0, + { s_GetSandboxesSnapshotsSecurityRequirement0, }; - partial void PrepareListSessionSnapshotsArguments( + partial void PrepareGetSandboxesSnapshotsArguments( global::System.Net.Http.HttpClient httpClient, ref string? project, ref string? name, ref double? limit, ref string? cursor, - ref global::Vercel.ListSessionSnapshotsSortOrder? sortOrder, - ref string? teamId, - ref string? slug); - partial void PrepareListSessionSnapshotsRequest( + ref global::Vercel.GetSandboxesSnapshotsSortOrder? sortOrder); + partial void PrepareGetSandboxesSnapshotsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? project, string? name, double? limit, string? cursor, - global::Vercel.ListSessionSnapshotsSortOrder? sortOrder, - string? teamId, - string? slug); - partial void ProcessListSessionSnapshotsResponse( + global::Vercel.GetSandboxesSnapshotsSortOrder? sortOrder); + partial void ProcessGetSandboxesSnapshotsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListSessionSnapshotsResponseContent( + partial void ProcessGetSandboxesSnapshotsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// List snapshots
- /// Retrieves a paginated list of snapshots for a specific project. + /// ///
/// /// The unique identifier or name of the project to list snapshots for.
@@ -77,34 +72,24 @@ partial void ProcessListSessionSnapshotsResponseContent( /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListSessionSnapshotsAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesSnapshotsAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionSnapshotsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSnapshotsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListSessionSnapshotsAsResponseAsync( + var __response = await GetSandboxesSnapshotsAsResponseAsync( project: project, name: name, limit: limit, cursor: cursor, sortOrder: sortOrder, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -112,8 +97,7 @@ partial void ProcessListSessionSnapshotsResponseContent( return __response.Body; } /// - /// List snapshots
- /// Retrieves a paginated list of snapshots for a specific project. + /// ///
/// /// The unique identifier or name of the project to list snapshots for.
@@ -135,43 +119,33 @@ partial void ProcessListSessionSnapshotsResponseContent( /// Sort direction for results by creation time.
/// Default Value: desc /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task>> ListSessionSnapshotsAsResponseAsync( + public async global::System.Threading.Tasks.Task>> GetSandboxesSnapshotsAsResponseAsync( string? project = default, string? name = default, double? limit = default, string? cursor = default, - global::Vercel.ListSessionSnapshotsSortOrder? sortOrder = default, - string? teamId = default, - string? slug = default, + global::Vercel.GetSandboxesSnapshotsSortOrder? sortOrder = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareListSessionSnapshotsArguments( + PrepareGetSandboxesSnapshotsArguments( httpClient: HttpClient, project: ref project, name: ref name, limit: ref limit, cursor: ref cursor, - sortOrder: ref sortOrder, - teamId: ref teamId, - slug: ref slug); + sortOrder: ref sortOrder); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSessionSnapshotsSecurityRequirements, - operationName: "ListSessionSnapshotsAsync"); + securityRequirements: s_GetSandboxesSnapshotsSecurityRequirements, + operationName: "GetSandboxesSnapshotsAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -191,7 +165,7 @@ partial void ProcessListSessionSnapshotsResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: "/v2/sandboxes/snapshots", + path: "/sandboxes/snapshots", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project", project) @@ -199,8 +173,6 @@ partial void ProcessListSessionSnapshotsResponseContent( .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("cursor", cursor) .AddOptionalParameter("sortOrder", sortOrder?.ToValueString()) - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -239,16 +211,14 @@ partial void ProcessListSessionSnapshotsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListSessionSnapshotsRequest( + PrepareGetSandboxesSnapshotsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, project: project, name: name, limit: limit, cursor: cursor, - sortOrder: sortOrder, - teamId: teamId, - slug: slug); + sortOrder: sortOrder); return __httpRequest; } @@ -265,9 +235,9 @@ partial void ProcessListSessionSnapshotsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionSnapshots", - methodName: "ListSessionSnapshotsAsync", - pathTemplate: "\"/v2/sandboxes/snapshots\"", + operationId: "GetSandboxesSnapshots", + methodName: "GetSandboxesSnapshotsAsync", + pathTemplate: "\"/sandboxes/snapshots\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -299,9 +269,9 @@ partial void ProcessListSessionSnapshotsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionSnapshots", - methodName: "ListSessionSnapshotsAsync", - pathTemplate: "\"/v2/sandboxes/snapshots\"", + operationId: "GetSandboxesSnapshots", + methodName: "GetSandboxesSnapshotsAsync", + pathTemplate: "\"/sandboxes/snapshots\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -340,9 +310,9 @@ partial void ProcessListSessionSnapshotsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionSnapshots", - methodName: "ListSessionSnapshotsAsync", - pathTemplate: "\"/v2/sandboxes/snapshots\"", + operationId: "GetSandboxesSnapshots", + methodName: "GetSandboxesSnapshotsAsync", + pathTemplate: "\"/sandboxes/snapshots\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -380,7 +350,7 @@ partial void ProcessListSessionSnapshotsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListSessionSnapshotsResponse( + ProcessGetSandboxesSnapshotsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -388,9 +358,9 @@ partial void ProcessListSessionSnapshotsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionSnapshots", - methodName: "ListSessionSnapshotsAsync", - pathTemplate: "\"/v2/sandboxes/snapshots\"", + operationId: "GetSandboxesSnapshots", + methodName: "GetSandboxesSnapshotsAsync", + pathTemplate: "\"/sandboxes/snapshots\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -410,9 +380,9 @@ partial void ProcessListSessionSnapshotsResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListSessionSnapshots", - methodName: "ListSessionSnapshotsAsync", - pathTemplate: "\"/v2/sandboxes/snapshots\"", + operationId: "GetSandboxesSnapshots", + methodName: "GetSandboxesSnapshotsAsync", + pathTemplate: "\"/sandboxes/snapshots\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -555,6 +525,38 @@ partial void ProcessListSessionSnapshotsResponseContent( h => h.Key, h => h.Value)); } + // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -568,7 +570,7 @@ partial void ProcessListSessionSnapshotsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListSessionSnapshotsResponseContent( + ProcessGetSandboxesSnapshotsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -577,9 +579,9 @@ partial void ProcessListSessionSnapshotsResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -609,9 +611,9 @@ partial void ProcessListSessionSnapshotsResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSnapshotsBySnapshotId.g.cs similarity index 84% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionSnapshot.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSnapshotsBySnapshotId.g.cs index c3face45c..af40125fa 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.GetSandboxesSnapshotsBySnapshotId.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_GetSessionSnapshotSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_GetSandboxesSnapshotsBySnapshotIdSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,58 +21,43 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSessionSnapshotSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_GetSandboxesSnapshotsBySnapshotIdSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_GetSessionSnapshotSecurityRequirement0, + { s_GetSandboxesSnapshotsBySnapshotIdSecurityRequirement0, }; - partial void PrepareGetSessionSnapshotArguments( + partial void PrepareGetSandboxesSnapshotsBySnapshotIdArguments( global::System.Net.Http.HttpClient httpClient, - ref string snapshotId, - ref string? teamId, - ref string? slug); - partial void PrepareGetSessionSnapshotRequest( + ref string snapshotId); + partial void PrepareGetSandboxesSnapshotsBySnapshotIdRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string snapshotId, - string? teamId, - string? slug); - partial void ProcessGetSessionSnapshotResponse( + string snapshotId); + partial void ProcessGetSandboxesSnapshotsBySnapshotIdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetSessionSnapshotResponseContent( + partial void ProcessGetSandboxesSnapshotsBySnapshotIdResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get a snapshot
- /// Retrieves detailed information about a specific snapshot, including its creation time, size, expiration date, and the source session it was created from. + /// ///
/// /// The unique identifier of the snapshot to retrieve.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetSessionSnapshotAsync( + public async global::System.Threading.Tasks.Task GetSandboxesSnapshotsBySnapshotIdAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetSessionSnapshotAsResponseAsync( + var __response = await GetSandboxesSnapshotsBySnapshotIdAsResponseAsync( snapshotId: snapshotId, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -80,42 +65,31 @@ partial void ProcessGetSessionSnapshotResponseContent( return __response.Body; } /// - /// Get a snapshot
- /// Retrieves detailed information about a specific snapshot, including its creation time, size, expiration date, and the source session it was created from. + /// ///
/// /// The unique identifier of the snapshot to retrieve.
/// Example: snap_abc123 /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetSessionSnapshotAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetSandboxesSnapshotsBySnapshotIdAsResponseAsync( string snapshotId, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetSessionSnapshotArguments( + PrepareGetSandboxesSnapshotsBySnapshotIdArguments( httpClient: HttpClient, - snapshotId: ref snapshotId, - teamId: ref teamId, - slug: ref slug); + snapshotId: ref snapshotId); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSessionSnapshotSecurityRequirements, - operationName: "GetSessionSnapshotAsync"); + securityRequirements: s_GetSandboxesSnapshotsBySnapshotIdSecurityRequirements, + operationName: "GetSandboxesSnapshotsBySnapshotIdAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -135,12 +109,8 @@ partial void ProcessGetSessionSnapshotResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/snapshots/{snapshotId}", + path: $"/sandboxes/snapshots/{snapshotId}", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) - ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -178,12 +148,10 @@ partial void ProcessGetSessionSnapshotResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetSessionSnapshotRequest( + PrepareGetSandboxesSnapshotsBySnapshotIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - snapshotId: snapshotId!, - teamId: teamId, - slug: slug); + snapshotId: snapshotId!); return __httpRequest; } @@ -200,9 +168,9 @@ partial void ProcessGetSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionSnapshot", - methodName: "GetSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "GetSandboxesSnapshotsBySnapshotId", + methodName: "GetSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -234,9 +202,9 @@ partial void ProcessGetSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionSnapshot", - methodName: "GetSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "GetSandboxesSnapshotsBySnapshotId", + methodName: "GetSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -275,9 +243,9 @@ partial void ProcessGetSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionSnapshot", - methodName: "GetSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "GetSandboxesSnapshotsBySnapshotId", + methodName: "GetSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -315,7 +283,7 @@ partial void ProcessGetSessionSnapshotResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetSessionSnapshotResponse( + ProcessGetSandboxesSnapshotsBySnapshotIdResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -323,9 +291,9 @@ partial void ProcessGetSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionSnapshot", - methodName: "GetSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "GetSandboxesSnapshotsBySnapshotId", + methodName: "GetSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -345,9 +313,9 @@ partial void ProcessGetSessionSnapshotResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSessionSnapshot", - methodName: "GetSessionSnapshotAsync", - pathTemplate: "$\"/v2/sandboxes/snapshots/{snapshotId}\"", + operationId: "GetSandboxesSnapshotsBySnapshotId", + methodName: "GetSandboxesSnapshotsBySnapshotIdAsync", + pathTemplate: "$\"/sandboxes/snapshots/{snapshotId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -490,6 +458,38 @@ partial void ProcessGetSessionSnapshotResponseContent( h => h.Key, h => h.Value)); } + // + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -503,7 +503,7 @@ partial void ProcessGetSessionSnapshotResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetSessionSnapshotResponseContent( + ProcessGetSandboxesSnapshotsBySnapshotIdResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -512,9 +512,9 @@ partial void ProcessGetSessionSnapshotResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.GetSessionSnapshotResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -544,9 +544,9 @@ partial void ProcessGetSessionSnapshotResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.GetSessionSnapshotResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.GetSandboxesSnapshotsBySnapshotIdResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse( + return new global::Vercel.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.UpdateSandboxesByName.g.cs similarity index 89% rename from src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSandbox.g.cs rename to src/libs/Vercel/Generated/Vercel.VercelClient.UpdateSandboxesByName.g.cs index 92166cbb3..858021375 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.UpdateSandboxesByName.g.cs @@ -3,11 +3,11 @@ namespace Vercel { - public partial class SandboxesClient + public partial class VercelClient { - private static readonly global::Vercel.EndPointSecurityRequirement s_UpdateSandboxSecurityRequirement0 = + private static readonly global::Vercel.EndPointSecurityRequirement s_UpdateSandboxesByNameSecurityRequirement0 = new global::Vercel.EndPointSecurityRequirement { Authorizations = new global::Vercel.EndPointAuthorizationRequirement[] @@ -21,39 +21,34 @@ public partial class SandboxesClient }, }, }; - private static readonly global::Vercel.EndPointSecurityRequirement[] s_UpdateSandboxSecurityRequirements = + private static readonly global::Vercel.EndPointSecurityRequirement[] s_UpdateSandboxesByNameSecurityRequirements = new global::Vercel.EndPointSecurityRequirement[] - { s_UpdateSandboxSecurityRequirement0, + { s_UpdateSandboxesByNameSecurityRequirement0, }; - partial void PrepareUpdateSandboxArguments( + partial void PrepareUpdateSandboxesByNameArguments( global::System.Net.Http.HttpClient httpClient, ref string name, ref string? projectId, ref bool? resume, - ref string? teamId, - ref string? slug, - global::Vercel.UpdateSandboxRequest request); - partial void PrepareUpdateSandboxRequest( + global::Vercel.UpdateSandboxesByNameRequest request); + partial void PrepareUpdateSandboxesByNameRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string name, string? projectId, bool? resume, - string? teamId, - string? slug, - global::Vercel.UpdateSandboxRequest request); - partial void ProcessUpdateSandboxResponse( + global::Vercel.UpdateSandboxesByNameRequest request); + partial void ProcessUpdateSandboxesByNameResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUpdateSandboxResponseContent( + partial void ProcessUpdateSandboxesByNameResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Update a sandbox
- /// Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged. + /// ///
/// /// The sandbox to update.
@@ -66,35 +61,25 @@ partial void ProcessUpdateSandboxResponseContent( /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UpdateSandboxAsync( + public async global::System.Threading.Tasks.Task> UpdateSandboxesByNameAsync( string name, - global::Vercel.UpdateSandboxRequest request, + global::Vercel.UpdateSandboxesByNameRequest request, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await UpdateSandboxAsResponseAsync( + var __response = await UpdateSandboxesByNameAsResponseAsync( name: name, request: request, projectId: projectId, resume: resume, - teamId: teamId, - slug: slug, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -102,8 +87,7 @@ partial void ProcessUpdateSandboxResponseContent( return __response.Body; } /// - /// Update a sandbox
- /// Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged. + /// ///
/// /// The sandbox to update.
@@ -116,24 +100,16 @@ partial void ProcessUpdateSandboxResponseContent( /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task>> UpdateSandboxAsResponseAsync( + public async global::System.Threading.Tasks.Task>> UpdateSandboxesByNameAsResponseAsync( string name, - global::Vercel.UpdateSandboxRequest request, + global::Vercel.UpdateSandboxesByNameRequest request, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -141,20 +117,18 @@ partial void ProcessUpdateSandboxResponseContent( PrepareArguments( client: HttpClient); - PrepareUpdateSandboxArguments( + PrepareUpdateSandboxesByNameArguments( httpClient: HttpClient, name: ref name, projectId: ref projectId, resume: ref resume, - teamId: ref teamId, - slug: ref slug, request: request); var __authorizations = global::Vercel.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UpdateSandboxSecurityRequirements, - operationName: "UpdateSandboxAsync"); + securityRequirements: s_UpdateSandboxesByNameSecurityRequirements, + operationName: "UpdateSandboxesByNameAsync"); using var __timeoutCancellationTokenSource = global::Vercel.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -174,13 +148,11 @@ partial void ProcessUpdateSandboxResponseContent( { var __pathBuilder = new global::Vercel.PathBuilder( - path: $"/v2/sandboxes/{name}", + path: $"/sandboxes/{name}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("projectId", projectId) .AddOptionalParameter("resume", resume?.ToString().ToLowerInvariant()) - .AddOptionalParameter("teamId", teamId) - .AddOptionalParameter("slug", slug) ; var __path = __pathBuilder.ToString(); __path = global::Vercel.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -225,14 +197,12 @@ partial void ProcessUpdateSandboxResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUpdateSandboxRequest( + PrepareUpdateSandboxesByNameRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, name: name!, projectId: projectId, resume: resume, - teamId: teamId, - slug: slug, request: request); return __httpRequest; @@ -250,9 +220,9 @@ partial void ProcessUpdateSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSandbox", - methodName: "UpdateSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "UpdateSandboxesByName", + methodName: "UpdateSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, @@ -284,9 +254,9 @@ partial void ProcessUpdateSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSandbox", - methodName: "UpdateSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "UpdateSandboxesByName", + methodName: "UpdateSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, @@ -325,9 +295,9 @@ partial void ProcessUpdateSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSandbox", - methodName: "UpdateSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "UpdateSandboxesByName", + methodName: "UpdateSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, @@ -365,7 +335,7 @@ partial void ProcessUpdateSandboxResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessUpdateSandboxResponse( + ProcessUpdateSandboxesByNameResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -373,9 +343,9 @@ partial void ProcessUpdateSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSandbox", - methodName: "UpdateSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "UpdateSandboxesByName", + methodName: "UpdateSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, @@ -395,9 +365,9 @@ partial void ProcessUpdateSandboxResponseContent( await global::Vercel.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Vercel.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateSandbox", - methodName: "UpdateSandboxAsync", - pathTemplate: "$\"/v2/sandboxes/{name}\"", + operationId: "UpdateSandboxesByName", + methodName: "UpdateSandboxesByNameAsync", + pathTemplate: "$\"/sandboxes/{name}\"", httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, @@ -745,7 +715,7 @@ partial void ProcessUpdateSandboxResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessUpdateSandboxResponseContent( + ProcessUpdateSandboxesByNameResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -754,9 +724,9 @@ partial void ProcessUpdateSandboxResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -786,9 +756,9 @@ partial void ProcessUpdateSandboxResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Vercel.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Vercel.AutoSDKHttpResponse>( + return new global::Vercel.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -829,8 +799,7 @@ partial void ProcessUpdateSandboxResponseContent( } } /// - /// Update a sandbox
- /// Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged. + /// ///
/// /// The sandbox to update.
@@ -843,12 +812,6 @@ partial void ProcessUpdateSandboxResponseContent( /// Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
/// Default Value: false /// - /// - /// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l - /// - /// - /// Example: my-team-url-slug - /// /// /// Resources to define the VM /// @@ -889,19 +852,17 @@ partial void ProcessUpdateSandboxResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UpdateSandboxAsync( + public async global::System.Threading.Tasks.Task> UpdateSandboxesByNameAsync( string name, string? projectId = default, bool? resume = default, - string? teamId = default, - string? slug = default, - global::Vercel.UpdateSandboxRequestResources? resources = default, - global::Vercel.UpdateSandboxRequestRuntime? runtime = default, + global::Vercel.UpdateSandboxesByNameRequestResources? resources = default, + global::Vercel.UpdateSandboxesByNameRequestRuntime? runtime = default, int? timeout = default, bool? persistent = default, global::Vercel.OneOf? snapshotExpiration = default, - global::Vercel.OneOf? keepLastSnapshots = default, - global::Vercel.OneOf? networkPolicy = default, + global::Vercel.OneOf? keepLastSnapshots = default, + global::Vercel.OneOf? networkPolicy = default, global::System.Collections.Generic.Dictionary? env = default, global::System.Collections.Generic.IList? ports = default, string? currentSnapshotId = default, @@ -909,7 +870,7 @@ partial void ProcessUpdateSandboxResponseContent( global::Vercel.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Vercel.UpdateSandboxRequest + var __request = new global::Vercel.UpdateSandboxesByNameRequest { Resources = resources, Runtime = runtime, @@ -924,12 +885,10 @@ partial void ProcessUpdateSandboxResponseContent( Tags = tags, }; - return await UpdateSandboxAsync( + return await UpdateSandboxesByNameAsync( name: name, projectId: projectId, resume: resume, - teamId: teamId, - slug: slug, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Vercel/Generated/Vercel.VercelClient.g.cs b/src/libs/Vercel/Generated/Vercel.VercelClient.g.cs index a6a081508..4208c075f 100644 --- a/src/libs/Vercel/Generated/Vercel.VercelClient.g.cs +++ b/src/libs/Vercel/Generated/Vercel.VercelClient.g.cs @@ -292,15 +292,6 @@ public sealed partial class VercelClient : global::Vercel.IVercelClient, global: JsonSerializerContext = JsonSerializerContext, }; - /// - /// - /// - public SandboxesClient Sandboxes => new SandboxesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// /// diff --git a/src/libs/Vercel/openapi.yaml b/src/libs/Vercel/openapi.yaml index a527e6ce2..cf790140b 100644 --- a/src/libs/Vercel/openapi.yaml +++ b/src/libs/Vercel/openapi.yaml @@ -116283,19 +116283,12 @@ ] } }, - "/v2/sandboxes": { + "/sandboxes": { "get": { - "description": "Retrieves a paginated list of named sandboxes belonging to a specific project. Results can be sorted by creation time or name, and optionally filtered by name prefix.", - "operationId": "listSandboxes", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "List sandboxes", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxes", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -116346,6 +116339,9 @@ }, "404": { "description": "" + }, + "429": { + "description": "" } }, "parameters": [ @@ -116445,39 +116441,14 @@ } ] } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] }, "post": { - "description": "Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown.", + "description": "", "operationId": "createSandboxes", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Create a named sandbox", - "tags": [ - "sandboxes" - ], + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -116539,26 +116510,7 @@ "description": "" } }, - "parameters": [ - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } - } - ], + "parameters": [], "requestBody": { "content": { "application/json": { @@ -117166,19 +117118,12 @@ } } }, - "/v2/sandboxes/snapshots": { + "/sandboxes/snapshots": { "get": { - "description": "Retrieves a paginated list of snapshots for a specific project.", - "operationId": "listSessionSnapshots", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "List snapshots", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesSnapshots", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -117236,6 +117181,9 @@ }, "404": { "description": "" + }, + "429": { + "description": "" } }, "parameters": [ @@ -117301,41 +117249,16 @@ ], "default": "desc" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/snapshots/{snapshotId}": { + "/sandboxes/snapshots/{snapshotId}": { "get": { - "description": "Retrieves detailed information about a specific snapshot, including its creation time, size, expiration date, and the source session it was created from.", - "operationId": "getSessionSnapshot", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Get a snapshot", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesSnapshotsBySnapshotId", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -117366,6 +117289,9 @@ }, "404": { "description": "" + }, + "429": { + "description": "" } }, "parameters": [ @@ -117379,39 +117305,14 @@ "description": "The unique identifier of the snapshot to retrieve.", "example": "snap_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] }, "delete": { - "description": "Permanently deletes a snapshot and frees its associated storage. This action cannot be undone. After deletion, the snapshot can no longer be used to create new sessions.", - "operationId": "deleteSessionSnapshot", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Delete a snapshot", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "deleteSandboxesSnapshotsBySnapshotId", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -117442,6 +117343,9 @@ }, "404": { "description": "" + }, + "429": { + "description": "" } }, "parameters": [ @@ -117455,41 +117359,16 @@ "description": "The unique identifier of the snapshot to delete.", "example": "snap_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/sessions": { + "/sandboxes/sessions": { "get": { - "description": "Retrieves a paginated list of sessions belonging to a specific sandbox. Results are sorted by creation time and paginated using an opaque cursor.", - "operationId": "listSessions", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "List sessions", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesSessions", + "security": [], + "tags": [], "responses": { "200": { "description": "The list of sessions matching the request filters.", @@ -117548,6 +117427,9 @@ "404": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -117615,41 +117497,16 @@ ], "default": "desc" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/sessions/{sessionId}": { + "/sandboxes/sessions/{sessionId}": { "get": { - "description": "Retrieves detailed information about a specific session, including its current status, resource configuration, and exposed routes.", - "operationId": "getSession", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Get a session", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesSessionsBySessionId", + "security": [], + "tags": [], "responses": { "200": { "description": "The session was retrieved successfully.", @@ -117688,6 +117545,9 @@ "404": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -117703,41 +117563,16 @@ "description": "The unique identifier of the session to retrieve.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/{name}": { + "/sandboxes/{name}": { "get": { - "description": "Retrieves a named sandbox by name, including its current sandbox and routes. If the sandbox is stopped and resume is true, a new sandbox will be created from the most recent snapshot.", - "operationId": "getNamedSandbox", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Get a named sandbox", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesByName", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -117839,39 +117674,14 @@ "default": false, "description": "Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false." } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] }, "patch": { - "description": "Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged.", - "operationId": "updateSandbox", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Update a sandbox", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "updateSandboxesByName", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -117998,24 +117808,6 @@ "default": false, "description": "Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false." } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": { @@ -118538,17 +118330,10 @@ } }, "delete": { - "description": "Deletes a sandbox by name. If sandboxes are currently running, they will be stopped first. This operation deletes all sandbox entities with the given name and the named sandbox metadata.", - "operationId": "deleteSandbox", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Delete a sandbox", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "deleteSandboxesByName", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -118586,6 +118371,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -118614,41 +118402,16 @@ "description": "The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context.", "maxLength": 128 } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/sessions/{sessionId}/cmd": { + "/sandboxes/sessions/{sessionId}/cmd": { "get": { - "description": "Retrieves a list of all commands that have been executed in a session, including their current status, exit codes, and execution times, ordered from the most recent to the oldest.", - "operationId": "listSessionCommands", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "List commands", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesSessionsBySessionIdCmd", + "security": [], + "tags": [], "responses": { "200": { "description": "The list of commands executed in the session.", @@ -118682,6 +118445,9 @@ }, "404": { "description": "" + }, + "429": { + "description": "" } }, "parameters": [ @@ -118695,39 +118461,14 @@ "description": "The unique identifier of the session to list commands for.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] }, "post": { - "description": "Executes a shell command inside a running session. The command runs asynchronously and returns immediately with a command ID that can be used to track its progress and retrieve its output. Optionally, use the `wait` parameter to stream the command status until completion.", - "operationId": "runSessionCommand", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Execute a command", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdCmd", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -118778,6 +118519,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -118793,24 +118537,6 @@ "description": "The unique identifier of the session in which to execute the command.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": { @@ -118874,19 +118600,12 @@ } } }, - "/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}": { + "/sandboxes/sessions/{sessionId}/cmd/{cmdId}": { "get": { - "description": "Retrieves the current status and details of a command executed in a session. Use the `wait` parameter to block until the command finishes execution.", - "operationId": "getSessionCommand", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Get a command", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesSessionsBySessionIdCmdByCmdId", + "security": [], + "tags": [], "responses": { "200": { "description": "The command data along with the exit code if the command did finish.", @@ -118924,6 +118643,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -118965,41 +118687,16 @@ ], "default": "false" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill": { + "/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill": { "post": { - "description": "Sends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed.", - "operationId": "killSessionCommand", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Kill a command", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdCmdByCmdIdKill", + "security": [], + "tags": [], "responses": { "200": { "description": "The command was terminated successfully.", @@ -119037,6 +118734,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -119063,24 +118763,6 @@ "description": "The unique identifier of the session containing the command.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": { @@ -119105,19 +118787,12 @@ } } }, - "/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs": { + "/sandboxes/sessions/{sessionId}/cmd/{cmdId}/logs": { "get": { - "description": "Streams the output of a command in real-time using newline-delimited JSON (ND-JSON). Each entry includes the output data and stream type. Stream types include `stdout`, `stderr`, and `error` (for stream failures).", - "operationId": "getSessionCommandLogs", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Stream command logs", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "getSandboxesSessionsBySessionIdCmdByCmdIdLogs", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -119196,6 +118871,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -119222,41 +118900,16 @@ "description": "The unique identifier of the command to stream logs for.", "example": "cmd_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/sessions/{sessionId}/stop": { + "/sandboxes/sessions/{sessionId}/stop": { "post": { - "description": "Stops a running session and releases its allocated resources. All running processes within the session will be terminated. This action cannot be undone. A stopped session cannot be restarted.", - "operationId": "stopSession", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Stop a session", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdStop", + "security": [], + "tags": [], "responses": { "200": { "description": "The session was stopped successfully.", @@ -119317,6 +118970,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -119332,41 +118988,16 @@ "description": "The unique identifier of the session to stop.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/sessions/{sessionId}/extend-timeout": { + "/sandboxes/sessions/{sessionId}/extend-timeout": { "post": { - "description": "Extends the maximum execution time of a running session. The session must be active and able to accept commands. The total timeout cannot exceed the maximum allowed limit for your account.", - "operationId": "extendSessionTimeout", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Extend session timeout", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdExtendTimeout", + "security": [], + "tags": [], "responses": { "200": { "description": "The session timeout was extended successfully.", @@ -119404,6 +119035,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -119419,24 +119053,6 @@ "description": "The unique identifier of the session to extend the timeout for.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": { @@ -119462,19 +119078,12 @@ } } }, - "/v2/sandboxes/sessions/{sessionId}/network-policy": { + "/sandboxes/sessions/{sessionId}/network-policy": { "post": { - "description": "Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network rules will be overwritten.", - "operationId": "updateSessionNetworkPolicy", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Update network policy", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdNetworkPolicy", + "security": [], + "tags": [], "responses": { "200": { "description": "The session network policy was updated successfully.", @@ -119515,6 +119124,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -119530,24 +119142,6 @@ "description": "The unique identifier of the session to update the network policy for.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": { @@ -119927,19 +119521,12 @@ } } }, - "/v2/sandboxes/sessions/{sessionId}/fs/read": { + "/sandboxes/sessions/{sessionId}/fs/read": { "post": { - "description": "Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download.", - "operationId": "readSessionFile", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Read a file", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdFsRead", + "security": [], + "tags": [], "responses": { "200": { "description": "", @@ -119970,6 +119557,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -119985,24 +119575,6 @@ "description": "The unique identifier of the session to read the file from.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": { @@ -120032,19 +119604,12 @@ } } }, - "/v2/sandboxes/sessions/{sessionId}/fs/mkdir": { + "/sandboxes/sessions/{sessionId}/fs/mkdir": { "post": { - "description": "Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`).", - "operationId": "createSessionDirectory", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Create a directory", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdFsMkdir", + "security": [], + "tags": [], "responses": { "200": { "description": "The directory was created successfully.", @@ -120074,6 +119639,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -120089,24 +119657,6 @@ "description": "The unique identifier of the session to create the directory in.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": { @@ -120141,19 +119691,12 @@ } } }, - "/v2/sandboxes/sessions/{sessionId}/fs/write": { + "/sandboxes/sessions/{sessionId}/fs/write": { "post": { - "description": "Uploads and extracts files to a session's filesystem. Files must be uploaded as a gzipped tarball (`.tar.gz`) with the `Content-Type` header set to `application/gzip`. The tarball contents are extracted to the session's working directory, or to a custom directory specified via the `x-cwd` header.", - "operationId": "writeSessionFiles", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Write files", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdFsWrite", + "security": [], + "tags": [], "responses": { "200": { "description": "The files were successfully written to the session.", @@ -120183,6 +119726,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -120208,41 +119754,16 @@ "description": "The unique identifier of the session to write files to.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] } }, - "/v2/sandboxes/sessions/{sessionId}/snapshot": { + "/sandboxes/sessions/{sessionId}/snapshot": { "post": { - "description": "Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created.", - "operationId": "createSessionSnapshot", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Create a snapshot", - "tags": [ - "sandboxes" - ], + "description": "", + "operationId": "createSandboxesSessionsBySessionIdSnapshot", + "security": [], + "tags": [], "responses": { "201": { "description": "", @@ -120287,6 +119808,9 @@ "422": { "description": "" }, + "429": { + "description": "" + }, "500": { "description": "" } @@ -120302,24 +119826,6 @@ "description": "The unique identifier of the session to snapshot.", "example": "sbx_abc123" } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ], "requestBody": {