mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-09 12:37:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.377.3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -63,11 +63,7 @@ namespace PlexAPI
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Plex-API: A Plex Media Server API Map
|
||||
///
|
||||
/// <remarks>
|
||||
/// An Open API Spec for interacting with Plex.tv and Plex Servers
|
||||
/// </remarks>
|
||||
/// Plex-API: An Open API Spec for interacting with Plex.tv
|
||||
/// </summary>
|
||||
public interface IPlexAPISDK
|
||||
{
|
||||
@@ -217,6 +213,15 @@ namespace PlexAPI
|
||||
/// </summary>
|
||||
public IUpdater Updater { get; }
|
||||
|
||||
/// <summary>
|
||||
/// API Calls that perform operations with Plex Media Server Users<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public IUser User { get; }
|
||||
|
||||
/// <summary>
|
||||
/// API Calls that perform operations with Plex Media Server Watchlists<br/>
|
||||
///
|
||||
@@ -265,25 +270,21 @@ namespace PlexAPI
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Plex-API: A Plex Media Server API Map
|
||||
///
|
||||
/// <remarks>
|
||||
/// An Open API Spec for interacting with Plex.tv and Plex Servers
|
||||
/// </remarks>
|
||||
/// Plex-API: An Open API Spec for interacting with Plex.tv
|
||||
/// </summary>
|
||||
public class PlexAPISDK: IPlexAPISDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.3.0";
|
||||
private const string _sdkGenVersion = "2.354.2";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.354.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private int _serverIndex = 0;
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<Security>? _securitySource;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
public IServer Server { get; private set; }
|
||||
public IMedia Media { get; private set; }
|
||||
public IVideo Video { get; private set; }
|
||||
@@ -299,6 +300,7 @@ namespace PlexAPI
|
||||
public IStatistics Statistics { get; private set; }
|
||||
public ISessions Sessions { get; private set; }
|
||||
public IUpdater Updater { get; private set; }
|
||||
public IUser User { get; private set; }
|
||||
public IWatchlist Watchlist { get; private set; }
|
||||
|
||||
public PlexAPISDK(string? accessToken = null, Func<string>? accessTokenSource = null, string? xPlexClientIdentifier = null, int? serverIndex = null, ServerProtocol? protocol = null, string? ip = null, string? port = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null)
|
||||
@@ -334,15 +336,11 @@ namespace PlexAPI
|
||||
|
||||
if(accessTokenSource != null)
|
||||
{
|
||||
_securitySource = () => new Security() { AccessToken = accessTokenSource() };
|
||||
_securitySource = () => new PlexAPI.Models.Components.Security() { AccessToken = accessTokenSource() };
|
||||
}
|
||||
else if(accessToken != null)
|
||||
{
|
||||
_securitySource = () => new Security() { AccessToken = accessToken };
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("accessToken and accessTokenSource cannot both be null");
|
||||
_securitySource = () => new PlexAPI.Models.Components.Security() { AccessToken = accessToken };
|
||||
}
|
||||
|
||||
SDKConfiguration = new SDKConfig()
|
||||
@@ -402,6 +400,9 @@ namespace PlexAPI
|
||||
Updater = new Updater(_client, _securitySource, _serverUrl, SDKConfiguration);
|
||||
|
||||
|
||||
User = new User(_client, _securitySource, _serverUrl, SDKConfiguration);
|
||||
|
||||
|
||||
Watchlist = new Watchlist(_client, _securitySource, _serverUrl, SDKConfiguration);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user