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>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetMetadataChildrenUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMetadataChildrenLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMetadataChildrenUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMetadataChildrenUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetMetadataChildrenLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetMetadataChildrenUnauthorized(
|
||||
GetMetadataChildrenUnauthorizedPayload 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