ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.598.0

This commit is contained in:
speakeasybot
2025-08-06 00:28:40 +00:00
parent 4197184f92
commit d970db3b6f
128 changed files with 3498 additions and 1576 deletions

View File

@@ -10,7 +10,12 @@
namespace LukeHagar.PlexAPI.SDK.Models.Requests
{
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// An integer log level to write to the PMS log with.<br/>
///
@@ -23,13 +28,65 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
///
/// </remarks>
/// </summary>
public enum Level
[JsonConverter(typeof(OpenEnumConverter))]
public class Level : IEquatable<Level>
{
Zero = 0,
One = 1,
Two = 2,
Three = 3,
Four = 4,
public static readonly Level Zero = new Level(0);
public static readonly Level One = new Level(1);
public static readonly Level Two = new Level(2);
public static readonly Level Three = new Level(3);
public static readonly Level Four = new Level(4);
private static readonly Dictionary <long, Level> _knownValues =
new Dictionary <long, Level> ()
{
[0] = Zero,
[1] = One,
[2] = Two,
[3] = Three,
[4] = Four
};
private static readonly ConcurrentDictionary<long, Level> _values =
new ConcurrentDictionary<long, Level>(_knownValues);
private Level(long value)
{
Value = value;
}
public long Value { get; }
public static Level Of(long value)
{
return _values.GetOrAdd(value, _ => new Level(value));
}
public static implicit operator Level(long value) => Of(value);
public static implicit operator long(Level level) => level.Value;
public static Level[] Values()
{
return _values.Values.ToArray();
}
public override string ToString() => Value.ToString();
public bool IsKnown()
{
return _knownValues.ContainsKey(Value);
}
public override bool Equals(object? obj) => Equals(obj as Level);
public bool Equals(Level? other)
{
if (ReferenceEquals(this, other)) return true;
if (other is null) return false;
return string.Equals(Value, other.Value);
}
public override int GetHashCode() => Value.GetHashCode();
}
}