mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.615.2
This commit is contained in:
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class DeleteLibraryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class DeleteLibraryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<DeleteLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class DeleteLibraryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public DeleteLibraryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeleteLibraryBadRequest.Payload.Errors instead.")]
|
||||
public List<DeleteLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public DeleteLibraryBadRequest(
|
||||
DeleteLibraryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user