ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.555.2

This commit is contained in:
speakeasybot
2025-06-04 00:26:20 +00:00
parent 55b5c2b3dd
commit bc02ecef34
204 changed files with 2222 additions and 1924 deletions

View File

@@ -18,6 +18,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class Country
{
/// <summary>
/// The unique identifier for the country.<br/>
///
/// <remarks>
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public int Id { get; set; } = default!;
@@ -28,6 +36,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Tag { get; set; } = default!;
[JsonProperty("filter")]
public string? Filter { get; set; }
public string Filter { get; set; } = default!;
}
}

View File

@@ -15,10 +15,34 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class Director
{
/// <summary>
/// Unique identifier for the director.
/// </summary>
[JsonProperty("id")]
public int Id { get; set; } = default!;
/// <summary>
/// The filter string used to query this director.
/// </summary>
[JsonProperty("filter")]
public string Filter { get; set; } = default!;
/// <summary>
/// The role of Director
/// </summary>
[JsonProperty("tag")]
public string Tag { get; set; } = default!;
/// <summary>
/// A unique 24-character hexadecimal key associated with the director&apos;s tag, used for internal identification.
/// </summary>
[JsonProperty("tagKey")]
public string TagKey { get; set; } = default!;
/// <summary>
/// The absolute URL of the thumbnail image for the director.
/// </summary>
[JsonProperty("thumb")]
public string? Thumb { get; set; }
}
}

View File

@@ -18,8 +18,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class Genre
{
/// <summary>
/// The unique identifier for the genre.<br/>
///
/// <remarks>
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public long Id { get; set; } = default!;
public int Id { get; set; } = default!;
[JsonProperty("filter")]
public string Filter { get; set; } = default!;

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -30,6 +30,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Artist,
[JsonProperty("album")]
Album,
[JsonProperty("track")]
Track,
[JsonProperty("photoalbum")]
PhotoAlbum,
[JsonProperty("photo")]
Photo,
[JsonProperty("collection")]
Collection,
}
public static class GetAllLibrariesTypeExtension

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System;
/// <summary>
/// The type of media content<br/>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///
/// <remarks>
///
@@ -34,6 +34,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Artist,
[JsonProperty("album")]
Album,
[JsonProperty("track")]
Track,
[JsonProperty("photoalbum")]
PhotoAlbum,
[JsonProperty("photo")]
Photo,
[JsonProperty("collection")]
Collection,
}
public static class GetLibraryItemsLibraryTypeExtension

View File

@@ -51,7 +51,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string? LibrarySectionKey { get; set; }
/// <summary>
/// The type of media content<br/>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///
/// <remarks>
///

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -20,7 +20,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public enum GetAllMediaLibraryActiveDirection
public enum GetLibrarySectionsAllActiveDirection
{
[JsonProperty("asc")]
Ascending,
@@ -28,16 +28,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Descending,
}
public static class GetAllMediaLibraryActiveDirectionExtension
public static class GetLibrarySectionsAllActiveDirectionExtension
{
public static string Value(this GetAllMediaLibraryActiveDirection value)
public static string Value(this GetLibrarySectionsAllActiveDirection value)
{
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
}
public static GetAllMediaLibraryActiveDirection ToEnum(this string value)
public static GetLibrarySectionsAllActiveDirection ToEnum(this string value)
{
foreach(var field in typeof(GetAllMediaLibraryActiveDirection).GetFields())
foreach(var field in typeof(GetLibrarySectionsAllActiveDirection).GetFields())
{
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
if (attributes.Length == 0)
@@ -50,14 +50,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
var enumVal = field.GetValue(null);
if (enumVal is GetAllMediaLibraryActiveDirection)
if (enumVal is GetLibrarySectionsAllActiveDirection)
{
return (GetAllMediaLibraryActiveDirection)enumVal;
return (GetLibrarySectionsAllActiveDirection)enumVal;
}
}
}
throw new Exception($"Unknown value {value} for enum GetAllMediaLibraryActiveDirection");
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllActiveDirection");
}
}

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryCollection
public class GetLibrarySectionsAllCollection
{
/// <summary>

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryCountry
public class GetLibrarySectionsAllCountry
{
/// <summary>

View File

@@ -20,7 +20,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public enum GetAllMediaLibraryDefaultDirection
public enum GetLibrarySectionsAllDefaultDirection
{
[JsonProperty("asc")]
Ascending,
@@ -28,16 +28,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Descending,
}
public static class GetAllMediaLibraryDefaultDirectionExtension
public static class GetLibrarySectionsAllDefaultDirectionExtension
{
public static string Value(this GetAllMediaLibraryDefaultDirection value)
public static string Value(this GetLibrarySectionsAllDefaultDirection value)
{
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
}
public static GetAllMediaLibraryDefaultDirection ToEnum(this string value)
public static GetLibrarySectionsAllDefaultDirection ToEnum(this string value)
{
foreach(var field in typeof(GetAllMediaLibraryDefaultDirection).GetFields())
foreach(var field in typeof(GetLibrarySectionsAllDefaultDirection).GetFields())
{
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
if (attributes.Length == 0)
@@ -50,14 +50,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
var enumVal = field.GetValue(null);
if (enumVal is GetAllMediaLibraryDefaultDirection)
if (enumVal is GetLibrarySectionsAllDefaultDirection)
{
return (GetAllMediaLibraryDefaultDirection)enumVal;
return (GetLibrarySectionsAllDefaultDirection)enumVal;
}
}
}
throw new Exception($"Unknown value {value} for enum GetAllMediaLibraryDefaultDirection");
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllDefaultDirection");
}
}

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryDirector
public class GetLibrarySectionsAllDirector
{
/// <summary>

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryField
public class GetLibrarySectionsAllField
{
[JsonProperty("key")]

View File

@@ -14,13 +14,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetAllMediaLibraryFieldType
public class GetLibrarySectionsAllFieldType
{
[JsonProperty("type")]
public string Type { get; set; } = default!;
[JsonProperty("Operator")]
public List<GetAllMediaLibraryOperator> Operator { get; set; } = default!;
public List<GetLibrarySectionsAllOperator> Operator { get; set; } = default!;
}
}

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryFilter
public class GetLibrarySectionsAllFilter
{
[JsonProperty("filter")]

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryGenre
public class GetLibrarySectionsAllGenre
{
/// <summary>

View File

@@ -12,17 +12,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryGuids
public class GetLibrarySectionsAllGuids
{
/// <summary>
/// The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337<br/>
/// The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public string? Id { get; set; }
public string Id { get; set; } = default!;
}
}

View File

@@ -16,7 +16,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// <summary>
/// Indicates if the part has a thumbnail.
/// </summary>
public enum GetAllMediaLibraryHasThumbnail
public enum GetLibrarySectionsAllHasThumbnail
{
[JsonProperty("0")]
False,
@@ -24,16 +24,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
True,
}
public static class GetAllMediaLibraryHasThumbnailExtension
public static class GetLibrarySectionsAllHasThumbnailExtension
{
public static string Value(this GetAllMediaLibraryHasThumbnail value)
public static string Value(this GetLibrarySectionsAllHasThumbnail value)
{
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
}
public static GetAllMediaLibraryHasThumbnail ToEnum(this string value)
public static GetLibrarySectionsAllHasThumbnail ToEnum(this string value)
{
foreach(var field in typeof(GetAllMediaLibraryHasThumbnail).GetFields())
foreach(var field in typeof(GetLibrarySectionsAllHasThumbnail).GetFields())
{
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
if (attributes.Length == 0)
@@ -46,14 +46,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
var enumVal = field.GetValue(null);
if (enumVal is GetAllMediaLibraryHasThumbnail)
if (enumVal is GetLibrarySectionsAllHasThumbnail)
{
return (GetAllMediaLibraryHasThumbnail)enumVal;
return (GetLibrarySectionsAllHasThumbnail)enumVal;
}
}
}
throw new Exception($"Unknown value {value} for enum GetAllMediaLibraryHasThumbnail");
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllHasThumbnail");
}
}

View File

@@ -13,14 +13,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryImage
public class GetLibrarySectionsAllImage
{
[JsonProperty("alt")]
public string Alt { get; set; } = default!;
[JsonProperty("type")]
public GetAllMediaLibraryLibraryResponseType Type { get; set; } = default!;
public GetLibrarySectionsAllLibraryResponseType Type { get; set; } = default!;
[JsonProperty("url")]
public string Url { get; set; } = default!;

View File

@@ -19,25 +19,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Reflection;
public class GetAllMediaLibraryLibraryOptimizedForStreamingType
public class GetLibrarySectionsAllLibraryOptimizedForStreamingType
{
private GetAllMediaLibraryLibraryOptimizedForStreamingType(string value) { Value = value; }
private GetLibrarySectionsAllLibraryOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetAllMediaLibraryLibraryOptimizedForStreamingType GetAllMediaLibraryOptimizedForStreaming1 { get { return new GetAllMediaLibraryLibraryOptimizedForStreamingType("get-all-media-library_optimizedForStreaming_1"); } }
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType GetLibrarySectionsAllOptimizedForStreaming1 { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("get-library-sections-all_optimizedForStreaming_1"); } }
public static GetAllMediaLibraryLibraryOptimizedForStreamingType Boolean { get { return new GetAllMediaLibraryLibraryOptimizedForStreamingType("boolean"); } }
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType Boolean { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("boolean"); } }
public static GetAllMediaLibraryLibraryOptimizedForStreamingType Null { get { return new GetAllMediaLibraryLibraryOptimizedForStreamingType("null"); } }
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType Null { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
public static implicit operator String(GetAllMediaLibraryLibraryOptimizedForStreamingType v) { return v.Value; }
public static GetAllMediaLibraryLibraryOptimizedForStreamingType FromString(string v) {
public static implicit operator String(GetLibrarySectionsAllLibraryOptimizedForStreamingType v) { return v.Value; }
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType FromString(string v) {
switch(v) {
case "get-all-media-library_optimizedForStreaming_1": return GetAllMediaLibraryOptimizedForStreaming1;
case "get-library-sections-all_optimizedForStreaming_1": return GetLibrarySectionsAllOptimizedForStreaming1;
case "boolean": return Boolean;
case "null": return Null;
default: throw new ArgumentException("Invalid value for GetAllMediaLibraryLibraryOptimizedForStreamingType");
default: throw new ArgumentException("Invalid value for GetLibrarySectionsAllLibraryOptimizedForStreamingType");
}
}
public override bool Equals(object? obj)
@@ -46,7 +46,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
return false;
}
return Value.Equals(((GetAllMediaLibraryLibraryOptimizedForStreamingType)obj).Value);
return Value.Equals(((GetLibrarySectionsAllLibraryOptimizedForStreamingType)obj).Value);
}
public override int GetHashCode()
@@ -59,46 +59,46 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// <summary>
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetAllMediaLibraryLibraryOptimizedForStreaming.GetAllMediaLibraryLibraryOptimizedForStreamingConverter))]
public class GetAllMediaLibraryLibraryOptimizedForStreaming {
public GetAllMediaLibraryLibraryOptimizedForStreaming(GetAllMediaLibraryLibraryOptimizedForStreamingType type) {
[JsonConverter(typeof(GetLibrarySectionsAllLibraryOptimizedForStreaming.GetLibrarySectionsAllLibraryOptimizedForStreamingConverter))]
public class GetLibrarySectionsAllLibraryOptimizedForStreaming {
public GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType type) {
Type = type;
}
[SpeakeasyMetadata("form:explode=true")]
public GetAllMediaLibraryOptimizedForStreaming1? GetAllMediaLibraryOptimizedForStreaming1 { get; set; }
public GetLibrarySectionsAllOptimizedForStreaming1? GetLibrarySectionsAllOptimizedForStreaming1 { get; set; }
[SpeakeasyMetadata("form:explode=true")]
public bool? Boolean { get; set; }
public GetAllMediaLibraryLibraryOptimizedForStreamingType Type { get; set; }
public GetLibrarySectionsAllLibraryOptimizedForStreamingType Type { get; set; }
public static GetAllMediaLibraryLibraryOptimizedForStreaming CreateGetAllMediaLibraryOptimizedForStreaming1(GetAllMediaLibraryOptimizedForStreaming1 getAllMediaLibraryOptimizedForStreaming1) {
GetAllMediaLibraryLibraryOptimizedForStreamingType typ = GetAllMediaLibraryLibraryOptimizedForStreamingType.GetAllMediaLibraryOptimizedForStreaming1;
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreaming1(GetLibrarySectionsAllOptimizedForStreaming1 getLibrarySectionsAllOptimizedForStreaming1) {
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1;
GetAllMediaLibraryLibraryOptimizedForStreaming res = new GetAllMediaLibraryLibraryOptimizedForStreaming(typ);
res.GetAllMediaLibraryOptimizedForStreaming1 = getAllMediaLibraryOptimizedForStreaming1;
GetLibrarySectionsAllLibraryOptimizedForStreaming res = new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
res.GetLibrarySectionsAllOptimizedForStreaming1 = getLibrarySectionsAllOptimizedForStreaming1;
return res;
}
public static GetAllMediaLibraryLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
GetAllMediaLibraryLibraryOptimizedForStreamingType typ = GetAllMediaLibraryLibraryOptimizedForStreamingType.Boolean;
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.Boolean;
GetAllMediaLibraryLibraryOptimizedForStreaming res = new GetAllMediaLibraryLibraryOptimizedForStreaming(typ);
GetLibrarySectionsAllLibraryOptimizedForStreaming res = new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
res.Boolean = boolean;
return res;
}
public static GetAllMediaLibraryLibraryOptimizedForStreaming CreateNull() {
GetAllMediaLibraryLibraryOptimizedForStreamingType typ = GetAllMediaLibraryLibraryOptimizedForStreamingType.Null;
return new GetAllMediaLibraryLibraryOptimizedForStreaming(typ);
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateNull() {
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.Null;
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
}
public class GetAllMediaLibraryLibraryOptimizedForStreamingConverter : JsonConverter
public class GetLibrarySectionsAllLibraryOptimizedForStreamingConverter : JsonConverter
{
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetAllMediaLibraryLibraryOptimizedForStreaming);
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetLibrarySectionsAllLibraryOptimizedForStreaming);
public override bool CanRead => true;
@@ -114,14 +114,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
try
{
return new GetAllMediaLibraryLibraryOptimizedForStreaming(GetAllMediaLibraryLibraryOptimizedForStreamingType.GetAllMediaLibraryOptimizedForStreaming1)
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1)
{
GetAllMediaLibraryOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetAllMediaLibraryOptimizedForStreaming1>(json)
GetLibrarySectionsAllOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetLibrarySectionsAllOptimizedForStreaming1>(json)
};
}
catch (ResponseBodyDeserializer.MissingMemberException)
{
fallbackCandidates.Add((typeof(GetAllMediaLibraryOptimizedForStreaming1), new GetAllMediaLibraryLibraryOptimizedForStreaming(GetAllMediaLibraryLibraryOptimizedForStreamingType.GetAllMediaLibraryOptimizedForStreaming1), "GetAllMediaLibraryOptimizedForStreaming1"));
fallbackCandidates.Add((typeof(GetLibrarySectionsAllOptimizedForStreaming1), new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1), "GetLibrarySectionsAllOptimizedForStreaming1"));
}
catch (ResponseBodyDeserializer.DeserializationException)
{
@@ -135,7 +135,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
try
{
var converted = Convert.ToBoolean(json);
return new GetAllMediaLibraryLibraryOptimizedForStreaming(GetAllMediaLibraryLibraryOptimizedForStreamingType.Boolean)
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.Boolean)
{
Boolean = converted
};
@@ -174,15 +174,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetAllMediaLibraryLibraryOptimizedForStreaming res = (GetAllMediaLibraryLibraryOptimizedForStreaming)value;
if (GetAllMediaLibraryLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetAllMediaLibraryLibraryOptimizedForStreamingType.Null))
GetLibrarySectionsAllLibraryOptimizedForStreaming res = (GetLibrarySectionsAllLibraryOptimizedForStreaming)value;
if (GetLibrarySectionsAllLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetLibrarySectionsAllLibraryOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetAllMediaLibraryOptimizedForStreaming1 != null)
if (res.GetLibrarySectionsAllOptimizedForStreaming1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetAllMediaLibraryOptimizedForStreaming1));
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibrarySectionsAllOptimizedForStreaming1));
return;
}
if (res.Boolean != null)

View File

@@ -13,7 +13,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using Newtonsoft.Json;
using System;
public enum GetAllMediaLibraryLibraryResponseType
public enum GetLibrarySectionsAllLibraryResponseType
{
[JsonProperty("coverPoster")]
CoverPoster,
@@ -25,16 +25,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
ClearLogo,
}
public static class GetAllMediaLibraryLibraryResponseTypeExtension
public static class GetLibrarySectionsAllLibraryResponseTypeExtension
{
public static string Value(this GetAllMediaLibraryLibraryResponseType value)
public static string Value(this GetLibrarySectionsAllLibraryResponseType value)
{
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
}
public static GetAllMediaLibraryLibraryResponseType ToEnum(this string value)
public static GetLibrarySectionsAllLibraryResponseType ToEnum(this string value)
{
foreach(var field in typeof(GetAllMediaLibraryLibraryResponseType).GetFields())
foreach(var field in typeof(GetLibrarySectionsAllLibraryResponseType).GetFields())
{
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
if (attributes.Length == 0)
@@ -47,14 +47,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
var enumVal = field.GetValue(null);
if (enumVal is GetAllMediaLibraryLibraryResponseType)
if (enumVal is GetLibrarySectionsAllLibraryResponseType)
{
return (GetAllMediaLibraryLibraryResponseType)enumVal;
return (GetLibrarySectionsAllLibraryResponseType)enumVal;
}
}
}
throw new Exception($"Unknown value {value} for enum GetAllMediaLibraryLibraryResponseType");
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllLibraryResponseType");
}
}

View File

@@ -14,13 +14,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System;
/// <summary>
/// The type of media content<br/>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
public enum GetAllMediaLibraryLibraryType
public enum GetLibrarySectionsAllLibraryType
{
[JsonProperty("movie")]
Movie,
@@ -34,18 +34,26 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Artist,
[JsonProperty("album")]
Album,
[JsonProperty("track")]
Track,
[JsonProperty("photoalbum")]
PhotoAlbum,
[JsonProperty("photo")]
Photo,
[JsonProperty("collection")]
Collection,
}
public static class GetAllMediaLibraryLibraryTypeExtension
public static class GetLibrarySectionsAllLibraryTypeExtension
{
public static string Value(this GetAllMediaLibraryLibraryType value)
public static string Value(this GetLibrarySectionsAllLibraryType value)
{
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
}
public static GetAllMediaLibraryLibraryType ToEnum(this string value)
public static GetLibrarySectionsAllLibraryType ToEnum(this string value)
{
foreach(var field in typeof(GetAllMediaLibraryLibraryType).GetFields())
foreach(var field in typeof(GetLibrarySectionsAllLibraryType).GetFields())
{
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
if (attributes.Length == 0)
@@ -58,14 +66,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
var enumVal = field.GetValue(null);
if (enumVal is GetAllMediaLibraryLibraryType)
if (enumVal is GetLibrarySectionsAllLibraryType)
{
return (GetAllMediaLibraryLibraryType)enumVal;
return (GetLibrarySectionsAllLibraryType)enumVal;
}
}
}
throw new Exception($"Unknown value {value} for enum GetAllMediaLibraryLibraryType");
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllLibraryType");
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetAllMediaLibraryMedia
public class GetLibrarySectionsAllMedia
{
/// <summary>
@@ -119,7 +119,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonProperty("optimizedForStreaming")]
public GetAllMediaLibraryOptimizedForStreaming? OptimizedForStreaming { get; set; }
public GetLibrarySectionsAllOptimizedForStreaming? OptimizedForStreaming { get; set; }
[JsonProperty("has64bitOffsets")]
public bool? Has64bitOffsets { get; set; }
@@ -128,6 +128,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// An array of parts for this media item.
/// </summary>
[JsonProperty("Part")]
public List<GetAllMediaLibraryPart>? Part { get; set; }
public List<GetLibrarySectionsAllPart>? Part { get; set; }
}
}

View File

@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetAllMediaLibraryMediaContainer
public class GetLibrarySectionsAllMediaContainer
{
/// <summary>
@@ -127,12 +127,12 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[JsonProperty("Meta")]
public GetAllMediaLibraryMeta? Meta { get; set; }
public GetLibrarySectionsAllMeta? Meta { get; set; }
/// <summary>
/// An array of metadata items.
/// </summary>
[JsonProperty("Metadata")]
public List<GetAllMediaLibraryMetadata>? Metadata { get; set; }
public List<GetLibrarySectionsAllMetadata>? Metadata { get; set; }
}
}

View File

@@ -21,13 +21,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public class GetAllMediaLibraryMeta
public class GetLibrarySectionsAllMeta
{
[JsonProperty("Type")]
public List<GetAllMediaLibraryType>? Type { get; set; }
public List<GetLibrarySectionsAllType>? Type { get; set; }
[JsonProperty("FieldType")]
public List<GetAllMediaLibraryFieldType>? FieldType { get; set; }
public List<GetLibrarySectionsAllFieldType>? FieldType { get; set; }
}
}

View File

@@ -22,7 +22,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public class GetAllMediaLibraryMetadata
public class GetLibrarySectionsAllMetadata
{
/// <summary>
@@ -56,7 +56,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string? Studio { get; set; }
[JsonProperty("type")]
public GetAllMediaLibraryLibraryType Type { get; set; } = default!;
public GetLibrarySectionsAllLibraryType Type { get; set; } = default!;
/// <summary>
/// The title of the media item.
@@ -344,33 +344,33 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public float? UserRating { get; set; }
[JsonProperty("Image")]
public List<GetAllMediaLibraryImage>? Image { get; set; }
public List<GetLibrarySectionsAllImage>? Image { get; set; }
[JsonProperty("UltraBlurColors")]
public GetAllMediaLibraryUltraBlurColors? UltraBlurColors { get; set; }
[JsonProperty("Media")]
public List<GetAllMediaLibraryMedia>? Media { get; set; }
[JsonProperty("Genre")]
public List<GetAllMediaLibraryGenre>? Genre { get; set; }
[JsonProperty("Country")]
public List<GetAllMediaLibraryCountry>? Country { get; set; }
[JsonProperty("Director")]
public List<GetAllMediaLibraryDirector>? Director { get; set; }
[JsonProperty("Writer")]
public List<GetAllMediaLibraryWriter>? Writer { get; set; }
[JsonProperty("Role")]
public List<GetAllMediaLibraryRole>? Role { get; set; }
public GetLibrarySectionsAllUltraBlurColors? UltraBlurColors { get; set; }
[JsonProperty("Guid")]
public List<GetAllMediaLibraryGuids>? Guids { get; set; }
public List<GetLibrarySectionsAllGuids>? Guids { get; set; }
[JsonProperty("Media")]
public List<GetLibrarySectionsAllMedia>? Media { get; set; }
[JsonProperty("Genre")]
public List<GetLibrarySectionsAllGenre>? Genre { get; set; }
[JsonProperty("Country")]
public List<GetLibrarySectionsAllCountry>? Country { get; set; }
[JsonProperty("Director")]
public List<GetLibrarySectionsAllDirector>? Director { get; set; }
[JsonProperty("Writer")]
public List<GetLibrarySectionsAllWriter>? Writer { get; set; }
[JsonProperty("Role")]
public List<GetLibrarySectionsAllRole>? Role { get; set; }
[JsonProperty("Collection")]
public List<GetAllMediaLibraryCollection>? Collection { get; set; }
public List<GetLibrarySectionsAllCollection>? Collection { get; set; }
}
}

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryOperator
public class GetLibrarySectionsAllOperator
{
[JsonProperty("key")]

View File

@@ -19,25 +19,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Reflection;
public class GetAllMediaLibraryOptimizedForStreamingType
public class GetLibrarySectionsAllOptimizedForStreamingType
{
private GetAllMediaLibraryOptimizedForStreamingType(string value) { Value = value; }
private GetLibrarySectionsAllOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetAllMediaLibraryOptimizedForStreamingType OptimizedForStreaming1 { get { return new GetAllMediaLibraryOptimizedForStreamingType("optimizedForStreaming_1"); } }
public static GetLibrarySectionsAllOptimizedForStreamingType OptimizedForStreaming1 { get { return new GetLibrarySectionsAllOptimizedForStreamingType("optimizedForStreaming_1"); } }
public static GetAllMediaLibraryOptimizedForStreamingType Boolean { get { return new GetAllMediaLibraryOptimizedForStreamingType("boolean"); } }
public static GetLibrarySectionsAllOptimizedForStreamingType Boolean { get { return new GetLibrarySectionsAllOptimizedForStreamingType("boolean"); } }
public static GetAllMediaLibraryOptimizedForStreamingType Null { get { return new GetAllMediaLibraryOptimizedForStreamingType("null"); } }
public static GetLibrarySectionsAllOptimizedForStreamingType Null { get { return new GetLibrarySectionsAllOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
public static implicit operator String(GetAllMediaLibraryOptimizedForStreamingType v) { return v.Value; }
public static GetAllMediaLibraryOptimizedForStreamingType FromString(string v) {
public static implicit operator String(GetLibrarySectionsAllOptimizedForStreamingType v) { return v.Value; }
public static GetLibrarySectionsAllOptimizedForStreamingType FromString(string v) {
switch(v) {
case "optimizedForStreaming_1": return OptimizedForStreaming1;
case "boolean": return Boolean;
case "null": return Null;
default: throw new ArgumentException("Invalid value for GetAllMediaLibraryOptimizedForStreamingType");
default: throw new ArgumentException("Invalid value for GetLibrarySectionsAllOptimizedForStreamingType");
}
}
public override bool Equals(object? obj)
@@ -46,7 +46,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
return false;
}
return Value.Equals(((GetAllMediaLibraryOptimizedForStreamingType)obj).Value);
return Value.Equals(((GetLibrarySectionsAllOptimizedForStreamingType)obj).Value);
}
public override int GetHashCode()
@@ -59,9 +59,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// <summary>
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetAllMediaLibraryOptimizedForStreaming.GetAllMediaLibraryOptimizedForStreamingConverter))]
public class GetAllMediaLibraryOptimizedForStreaming {
public GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType type) {
[JsonConverter(typeof(GetLibrarySectionsAllOptimizedForStreaming.GetLibrarySectionsAllOptimizedForStreamingConverter))]
public class GetLibrarySectionsAllOptimizedForStreaming {
public GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType type) {
Type = type;
}
@@ -71,34 +71,34 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
[SpeakeasyMetadata("form:explode=true")]
public bool? Boolean { get; set; }
public GetAllMediaLibraryOptimizedForStreamingType Type { get; set; }
public GetLibrarySectionsAllOptimizedForStreamingType Type { get; set; }
public static GetAllMediaLibraryOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1) {
GetAllMediaLibraryOptimizedForStreamingType typ = GetAllMediaLibraryOptimizedForStreamingType.OptimizedForStreaming1;
public static GetLibrarySectionsAllOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1) {
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.OptimizedForStreaming1;
GetAllMediaLibraryOptimizedForStreaming res = new GetAllMediaLibraryOptimizedForStreaming(typ);
GetLibrarySectionsAllOptimizedForStreaming res = new GetLibrarySectionsAllOptimizedForStreaming(typ);
res.OptimizedForStreaming1 = optimizedForStreaming1;
return res;
}
public static GetAllMediaLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
GetAllMediaLibraryOptimizedForStreamingType typ = GetAllMediaLibraryOptimizedForStreamingType.Boolean;
public static GetLibrarySectionsAllOptimizedForStreaming CreateBoolean(bool boolean) {
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.Boolean;
GetAllMediaLibraryOptimizedForStreaming res = new GetAllMediaLibraryOptimizedForStreaming(typ);
GetLibrarySectionsAllOptimizedForStreaming res = new GetLibrarySectionsAllOptimizedForStreaming(typ);
res.Boolean = boolean;
return res;
}
public static GetAllMediaLibraryOptimizedForStreaming CreateNull() {
GetAllMediaLibraryOptimizedForStreamingType typ = GetAllMediaLibraryOptimizedForStreamingType.Null;
return new GetAllMediaLibraryOptimizedForStreaming(typ);
public static GetLibrarySectionsAllOptimizedForStreaming CreateNull() {
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.Null;
return new GetLibrarySectionsAllOptimizedForStreaming(typ);
}
public class GetAllMediaLibraryOptimizedForStreamingConverter : JsonConverter
public class GetLibrarySectionsAllOptimizedForStreamingConverter : JsonConverter
{
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetAllMediaLibraryOptimizedForStreaming);
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetLibrarySectionsAllOptimizedForStreaming);
public override bool CanRead => true;
@@ -114,14 +114,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
try
{
return new GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType.OptimizedForStreaming1)
return new GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType.OptimizedForStreaming1)
{
OptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<OptimizedForStreaming1>(json)
};
}
catch (ResponseBodyDeserializer.MissingMemberException)
{
fallbackCandidates.Add((typeof(OptimizedForStreaming1), new GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType.OptimizedForStreaming1), "OptimizedForStreaming1"));
fallbackCandidates.Add((typeof(OptimizedForStreaming1), new GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType.OptimizedForStreaming1), "OptimizedForStreaming1"));
}
catch (ResponseBodyDeserializer.DeserializationException)
{
@@ -135,7 +135,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
try
{
var converted = Convert.ToBoolean(json);
return new GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType.Boolean)
return new GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType.Boolean)
{
Boolean = converted
};
@@ -174,8 +174,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetAllMediaLibraryOptimizedForStreaming res = (GetAllMediaLibraryOptimizedForStreaming)value;
if (GetAllMediaLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetAllMediaLibraryOptimizedForStreamingType.Null))
GetLibrarySectionsAllOptimizedForStreaming res = (GetLibrarySectionsAllOptimizedForStreaming)value;
if (GetLibrarySectionsAllOptimizedForStreamingType.FromString(res.Type).Equals(GetLibrarySectionsAllOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;

View File

@@ -11,7 +11,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
using LukeHagar.PlexAPI.SDK.Utils;
public enum GetAllMediaLibraryOptimizedForStreaming1
public enum GetLibrarySectionsAllOptimizedForStreaming1
{
Zero = 0,
One = 1,

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetAllMediaLibraryPart
public class GetLibrarySectionsAllPart
{
/// <summary>
@@ -91,15 +91,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonProperty("optimizedForStreaming")]
public GetAllMediaLibraryLibraryOptimizedForStreaming? OptimizedForStreaming { get; set; }
public GetLibrarySectionsAllLibraryOptimizedForStreaming? OptimizedForStreaming { get; set; }
[JsonProperty("hasThumbnail")]
public GetAllMediaLibraryHasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetAllMediaLibraryHasThumbnail.False;
public GetLibrarySectionsAllHasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibrarySectionsAllHasThumbnail.False;
/// <summary>
/// An array of streams for this part.
/// </summary>
[JsonProperty("Stream")]
public List<GetAllMediaLibraryStream>? Stream { get; set; }
public List<GetLibrarySectionsAllStream>? Stream { get; set; }
}
}

View File

@@ -18,7 +18,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public enum GetAllMediaLibraryQueryParamIncludeMeta
public enum GetLibrarySectionsAllQueryParamIncludeMeta
{
Disable = 0,
Enable = 1,

View File

@@ -23,15 +23,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public enum GetAllMediaLibraryQueryParamType
public enum GetLibrarySectionsAllQueryParamType
{
Movie = 1,
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Models.Requests;
using LukeHagar.PlexAPI.SDK.Utils;
public class GetAllMediaLibraryRequest
public class GetLibrarySectionsAllRequest
{
/// <summary>
@@ -39,7 +39,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
public GetAllMediaLibraryQueryParamType Type { get; set; } = default!;
public GetLibrarySectionsAllQueryParamType Type { get; set; } = default!;
/// <summary>
/// Adds the Meta object to the response<br/>
@@ -49,7 +49,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta")]
public GetAllMediaLibraryQueryParamIncludeMeta? IncludeMeta { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetAllMediaLibraryQueryParamIncludeMeta.Disable;
public GetLibrarySectionsAllQueryParamIncludeMeta? IncludeMeta { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibrarySectionsAllQueryParamIncludeMeta.Disable;
/// <summary>
/// Adds the Guid object to the response<br/>

View File

@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System;
using System.Net.Http;
public class GetAllMediaLibraryResponse
public class GetLibrarySectionsAllResponse
{
/// <summary>
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// <summary>
/// Successful response containing media container data.
/// </summary>
public GetAllMediaLibraryResponseBody? Object { get; set; }
public GetLibrarySectionsAllResponseBody? Object { get; set; }
}
}

View File

@@ -16,10 +16,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// <summary>
/// Successful response containing media container data.
/// </summary>
public class GetAllMediaLibraryResponseBody
public class GetLibrarySectionsAllResponseBody
{
[JsonProperty("MediaContainer")]
public GetAllMediaLibraryMediaContainer? MediaContainer { get; set; }
public GetLibrarySectionsAllMediaContainer? MediaContainer { get; set; }
}
}

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryRole
public class GetLibrarySectionsAllRole
{
/// <summary>

View File

@@ -13,7 +13,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibrarySort
public class GetLibrarySectionsAllSort
{
[JsonProperty("default")]
@@ -30,7 +30,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[JsonProperty("activeDirection")]
public GetAllMediaLibraryActiveDirection? ActiveDirection { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetAllMediaLibraryActiveDirection.Ascending;
public GetLibrarySectionsAllActiveDirection? ActiveDirection { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibrarySectionsAllActiveDirection.Ascending;
/// <summary>
/// The direction of the sort. Can be either `asc` or `desc`.<br/>
@@ -40,7 +40,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[JsonProperty("defaultDirection")]
public GetAllMediaLibraryDefaultDirection? DefaultDirection { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetAllMediaLibraryDefaultDirection.Ascending;
public GetLibrarySectionsAllDefaultDirection? DefaultDirection { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibrarySectionsAllDefaultDirection.Ascending;
[JsonProperty("descKey")]
public string? DescKey { get; set; }

View File

@@ -13,7 +13,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryStream
public class GetLibrarySectionsAllStream
{
/// <summary>
@@ -33,7 +33,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[JsonProperty("streamType")]
public GetAllMediaLibraryStreamType StreamType { get; set; } = default!;
public GetLibrarySectionsAllStreamType StreamType { get; set; } = default!;
/// <summary>
/// Format of the stream (e.g., srt).

View File

@@ -21,7 +21,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public enum GetAllMediaLibraryStreamType
public enum GetLibrarySectionsAllStreamType
{
Video = 1,
Audio = 2,

View File

@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetAllMediaLibraryType
public class GetLibrarySectionsAllType
{
[JsonProperty("key")]
@@ -33,12 +33,12 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool Active { get; set; } = default!;
[JsonProperty("Filter")]
public List<GetAllMediaLibraryFilter>? Filter { get; set; }
public List<GetLibrarySectionsAllFilter>? Filter { get; set; }
[JsonProperty("Sort")]
public List<GetAllMediaLibrarySort>? Sort { get; set; }
public List<GetLibrarySectionsAllSort>? Sort { get; set; }
[JsonProperty("Field")]
public List<GetAllMediaLibraryField>? Field { get; set; }
public List<GetLibrarySectionsAllField>? Field { get; set; }
}
}

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryUltraBlurColors
public class GetLibrarySectionsAllUltraBlurColors
{
[JsonProperty("topLeft")]

View File

@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
public class GetAllMediaLibraryWriter
public class GetLibrarySectionsAllWriter
{
/// <summary>

View File

@@ -18,6 +18,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class GetMediaMetaDataCountry
{
/// <summary>
/// The unique identifier for the country.<br/>
///
/// <remarks>
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public int Id { get; set; } = default!;
@@ -28,6 +36,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Tag { get; set; } = default!;
[JsonProperty("filter")]
public string? Filter { get; set; }
public string Filter { get; set; } = default!;
}
}

View File

@@ -34,13 +34,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Filter { get; set; } = default!;
/// <summary>
/// A unique key associated with the director&apos;s tag, used for internal identification.
/// A unique 24-character hexadecimal key associated with the director&apos;s tag, used for internal identification.
/// </summary>
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
public string TagKey { get; set; } = default!;
/// <summary>
/// The URL of the thumbnail image for the director.
/// The absolute URL of the thumbnail image for the director.
/// </summary>
[JsonProperty("thumb")]
public string? Thumb { get; set; }

View File

@@ -18,8 +18,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class GetMediaMetaDataGenre
{
/// <summary>
/// The unique identifier for the genre.<br/>
///
/// <remarks>
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public long Id { get; set; } = default!;
public int Id { get; set; } = default!;
/// <summary>
/// The genre name of this media-item<br/>

View File

@@ -16,7 +16,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
/// <summary>
/// The GUID value.
/// The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public string Id { get; set; } = default!;

View File

@@ -367,6 +367,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
[JsonProperty("librarySectionKey")]
public string LibrarySectionKey { get; set; } = default!;
[JsonProperty("Guid")]
public List<GetMediaMetaDataGuids>? Guids { get; set; }
[JsonProperty("Media")]
public List<GetMediaMetaDataMedia>? Media { get; set; }
@@ -388,9 +391,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
[JsonProperty("Role")]
public List<GetMediaMetaDataRole>? Role { get; set; }
[JsonProperty("Guid")]
public List<GetMediaMetaDataGuids>? Guids { get; set; }
[JsonProperty("Rating")]
public List<Ratings>? Ratings { get; set; }

View File

@@ -15,10 +15,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
/// <summary>
/// the id of the library item to return the children of.
/// The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
/// </summary>
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey")]
public long RatingKey { get; set; } = default!;
public string RatingKey { get; set; } = default!;
/// <summary>
/// Include concerts data if set to true.

View File

@@ -16,10 +16,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
/// <summary>
/// Unique identifier for the actor or role.
/// The unique identifier for the role.<br/>
///
/// <remarks>
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public long Id { get; set; } = default!;
public int Id { get; set; } = default!;
/// <summary>
/// The display tag for the actor (typically the actor&apos;s name).
@@ -40,13 +45,18 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Filter { get; set; } = default!;
/// <summary>
/// A unique key associated with the actor&apos;s tag, used for internal identification.
/// A 24-character hexadecimal unique key associated with the actor&apos;s tag, used for internal identification.<br/>
///
/// <remarks>
/// NOTE: This is globally unique across all Plex Servers.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
public string TagKey { get; set; } = default!;
/// <summary>
/// The URL of the thumbnail image for the actor.
/// The absolute URL of the thumbnail image for the actor.
/// </summary>
[JsonProperty("thumb")]
public string? Thumb { get; set; }

View File

@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System;
/// <summary>
/// The type of media content<br/>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///
/// <remarks>
///
@@ -34,6 +34,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Artist,
[JsonProperty("album")]
Album,
[JsonProperty("track")]
Track,
[JsonProperty("photoalbum")]
PhotoAlbum,
[JsonProperty("photo")]
Photo,
[JsonProperty("collection")]
Collection,
}
public static class GetMediaMetaDataTypeExtension

View File

@@ -34,13 +34,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Filter { get; set; } = default!;
/// <summary>
/// The URL of the thumbnail image for the writer.
/// The absolute URL of the thumbnail image for the writer.
/// </summary>
[JsonProperty("thumb")]
public string? Thumb { get; set; }
/// <summary>
/// A unique key associated with the writers tag, used for internal identification.
/// A 24-character hexadecimal unique key associated with the writers tag, used for internal identification.
/// </summary>
[JsonProperty("tagKey")]
public string? TagKey { get; set; }

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System;
/// <summary>
/// The type of media content<br/>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///
/// <remarks>
///
@@ -34,6 +34,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Artist,
[JsonProperty("album")]
Album,
[JsonProperty("track")]
Track,
[JsonProperty("photoalbum")]
PhotoAlbum,
[JsonProperty("photo")]
Photo,
[JsonProperty("collection")]
Collection,
}
public static class GetRecentlyAddedHubsTypeExtension

View File

@@ -391,6 +391,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
[JsonProperty("UltraBlurColors")]
public UltraBlurColors? UltraBlurColors { get; set; }
[JsonProperty("Guid")]
public List<Guids>? Guids { get; set; }
[JsonProperty("Media")]
public List<Models.Requests.Media>? Media { get; set; }
@@ -421,9 +424,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
[JsonProperty("Location")]
public List<Location>? Location { get; set; }
[JsonProperty("Guid")]
public List<Guids>? Guids { get; set; }
[JsonProperty("Collection")]
public List<Collection>? Collection { get; set; }
}

View File

@@ -51,7 +51,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string? LibrarySectionKey { get; set; }
/// <summary>
/// The type of media content<br/>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///
/// <remarks>
///

View File

@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System;
/// <summary>
/// The type of media content<br/>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///
/// <remarks>
///
@@ -34,6 +34,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
Artist,
[JsonProperty("album")]
Album,
[JsonProperty("track")]
Track,
[JsonProperty("photoalbum")]
PhotoAlbum,
[JsonProperty("photo")]
Photo,
[JsonProperty("collection")]
Collection,
}
public static class GetSearchAllLibrariesTypeExtension

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -17,20 +17,35 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class GetTopWatchedContentMediaContainer
{
/// <summary>
/// Number of media items returned in this response.
/// </summary>
[JsonProperty("size")]
public int? Size { get; set; }
public int Size { get; set; } = default!;
/// <summary>
/// Indicates whether syncing is allowed.
/// </summary>
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
public bool AllowSync { get; set; } = default!;
/// <summary>
/// An plugin identifier for the media container.
/// </summary>
[JsonProperty("identifier")]
public string? Identifier { get; set; }
public string Identifier { get; set; } = default!;
/// <summary>
/// The prefix used for media tag resource paths.
/// </summary>
[JsonProperty("mediaTagPrefix")]
public string? MediaTagPrefix { get; set; }
public string MediaTagPrefix { get; set; } = default!;
/// <summary>
/// The version number for media tags.
/// </summary>
[JsonProperty("mediaTagVersion")]
public int? MediaTagVersion { get; set; }
public long MediaTagVersion { get; set; } = default!;
[JsonProperty("Metadata")]
public List<GetTopWatchedContentMetadata>? Metadata { get; set; }

View File

@@ -0,0 +1,27 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
using LukeHagar.PlexAPI.SDK.Utils;
/// <summary>
/// Adds the Guid object to the response<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
public enum GetTopWatchedContentQueryParamIncludeGuids
{
Disable = 0,
Enable = 1,
}
}

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -15,16 +15,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class GetTopWatchedContentRequest
{
/// <summary>
/// Adds the Guids object to the response<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids")]
public long? IncludeGuids { get; set; }
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///
@@ -39,5 +29,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
public GetTopWatchedContentQueryParamType Type { get; set; } = default!;
/// <summary>
/// Adds the Guid object to the response<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids")]
public GetTopWatchedContentQueryParamIncludeGuids? IncludeGuids { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetTopWatchedContentQueryParamIncludeGuids.Disable;
}
}

View File

@@ -16,13 +16,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
/// <summary>
/// The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337<br/>
/// The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public string? Id { get; set; }
public string Id { get; set; } = default!;
}
}

View File

@@ -34,13 +34,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Tag { get; set; } = default!;
/// <summary>
/// A unique key associated with the producer&apos;s tag, used for internal identification.
/// A 24-character hexadecimal unique key associated with the producer&apos;s tag, used for internal identification.<br/>
///
/// <remarks>
///
/// </remarks>
/// </summary>
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
public string TagKey { get; set; } = default!;
/// <summary>
/// The URL of the thumbnail image for the actor.
/// The absolute URL of the thumbnail image for the producer.
/// </summary>
[JsonProperty("thumb")]
public string? Thumb { get; set; }

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -18,11 +18,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public class Rating
{
/// <summary>
/// The URL for the rating image, for example from IMDb.
/// </summary>
[JsonProperty("image")]
public string Image { get; set; } = default!;
[JsonProperty("value")]
public double Value { get; set; } = default!;
public float Value { get; set; } = default!;
[JsonProperty("type")]
public string Type { get; set; } = default!;

View File

@@ -16,10 +16,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
/// <summary>
/// Unique identifier for the actor or role.
/// The unique identifier for the role.<br/>
///
/// <remarks>
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("id")]
public long Id { get; set; } = default!;
public int Id { get; set; } = default!;
/// <summary>
/// The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
@@ -34,10 +39,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Tag { get; set; } = default!;
/// <summary>
/// A unique key associated with the actor&apos;s tag, used for internal identification.
/// A 24-character hexadecimal unique key associated with the actor&apos;s tag, used for internal identification.<br/>
///
/// <remarks>
/// NOTE: This is globally unique across all Plex Servers.<br/>
///
/// </remarks>
/// </summary>
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
public string TagKey { get; set; } = default!;
/// <summary>
/// The role played by the actor in the media item.
@@ -46,7 +56,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string? RoleValue { get; set; }
/// <summary>
/// The URL of the thumbnail image for the actor.
/// The absolute URL of the thumbnail image for the actor.
/// </summary>
[JsonProperty("thumb")]
public string? Thumb { get; set; }

View File

@@ -19,7 +19,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
[JsonProperty("id")]
public long Id { get; set; } = default!;
public int Id { get; set; } = default!;
[JsonProperty("filter")]
public string Filter { get; set; } = default!;

View File

@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
TvShow = 2,
Season = 3,
Episode = 4,
Audio = 8,
Album = 9,
Track = 10,
Artist = 5,
Album = 6,
Track = 7,
PhotoAlbum = 8,
Photo = 9,
}
}

View File

@@ -34,9 +34,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public string Tag { get; set; } = default!;
/// <summary>
/// A unique key associated with the writers tag, used for internal identification.
/// A 24-character hexadecimal unique key associated with the writers tag, used for internal identification.
/// </summary>
[JsonProperty("tagKey")]
public string? TagKey { get; set; }
/// <summary>
/// The absolute URL of the thumbnail image for the writer.
/// </summary>
[JsonProperty("thumb")]
public string? Thumb { get; set; }
}
}