mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 20:47:49 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc02ecef34 | ||
|
|
55b5c2b3dd | ||
|
|
67a53e72d5 | ||
|
|
9ccab7b22d | ||
|
|
eb2f6e54a2 | ||
|
|
4b798cbb85 | ||
|
|
a89870d526 | ||
|
|
01b116a71c | ||
|
|
9831457f45 | ||
|
|
653b23dab6 | ||
|
|
86c36c72b7 | ||
|
|
3e00ddc6b1 | ||
|
|
d976a079a9 | ||
|
|
b10d5f7023 | ||
|
|
c431cee288 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
.DS_Store
|
||||||
|
**/.speakeasy/temp/
|
||||||
|
**/.speakeasy/logs/
|
||||||
obj/
|
obj/
|
||||||
bin/
|
bin/
|
||||||
debug/
|
debug/
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -4,16 +4,20 @@ generation:
|
|||||||
maintainOpenAPIOrder: true
|
maintainOpenAPIOrder: true
|
||||||
usageSnippets:
|
usageSnippets:
|
||||||
optionalPropertyRendering: withExample
|
optionalPropertyRendering: withExample
|
||||||
|
sdkInitStyle: constructor
|
||||||
useClassNamesForArrayFields: true
|
useClassNamesForArrayFields: true
|
||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: true
|
nameResolutionDec2023: true
|
||||||
|
nameResolutionFeb2025: false
|
||||||
parameterOrderingFeb2024: true
|
parameterOrderingFeb2024: true
|
||||||
requestResponseComponentNamesFeb2024: true
|
requestResponseComponentNamesFeb2024: true
|
||||||
|
securityFeb2025: false
|
||||||
|
sharedErrorComponentsApr2025: false
|
||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
csharp:
|
csharp:
|
||||||
version: 0.13.3
|
version: 0.15.0
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.476.1
|
speakeasyVersion: 1.555.2
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -16,19 +16,19 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:e73707dfae50d22dab2166b1661938446b9831bcee252ecd696a1172dfd6ae2c
|
sourceRevisionDigest: sha256:78d07ad78ff60d0e9918696208d8c68a562e170d4e9c431797c02995fb8816d0
|
||||||
sourceBlobDigest: sha256:e06caa091ad527fd21714fc0d43e7ea385e181fbad8c4f60296457a89a23c696
|
sourceBlobDigest: sha256:d38dd2a36c1b2fd73409267f7b30c2d5d45d709616141803ea01db424ec68ae4
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1737937314
|
- speakeasy-sdk-regen-1748996711
|
||||||
targets:
|
targets:
|
||||||
plexcsharp:
|
plexcsharp:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:e73707dfae50d22dab2166b1661938446b9831bcee252ecd696a1172dfd6ae2c
|
sourceRevisionDigest: sha256:78d07ad78ff60d0e9918696208d8c68a562e170d4e9c431797c02995fb8816d0
|
||||||
sourceBlobDigest: sha256:e06caa091ad527fd21714fc0d43e7ea385e181fbad8c4f60296457a89a23c696
|
sourceBlobDigest: sha256:d38dd2a36c1b2fd73409267f7b30c2d5d45d709616141803ea01db424ec68ae4
|
||||||
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
||||||
codeSamplesRevisionDigest: sha256:5e0af91c57fa956696c40bd25f45ae6bca5f5c20cd930411928095eb7daea754
|
codeSamplesRevisionDigest: sha256:5609267a659a1b1fdebdd8516758904fc983fb919b5b5a8bbd0044567e8bfa0f
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
@@ -47,3 +47,5 @@ workflow:
|
|||||||
output: codeSamples.yaml
|
output: codeSamples.yaml
|
||||||
registry:
|
registry:
|
||||||
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-csharp-plexcsharp
|
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-csharp-plexcsharp
|
||||||
|
labelOverride:
|
||||||
|
fixedValue: PlexCSharp
|
||||||
|
|||||||
@@ -15,3 +15,5 @@ targets:
|
|||||||
output: codeSamples.yaml
|
output: codeSamples.yaml
|
||||||
registry:
|
registry:
|
||||||
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-csharp-plexcsharp
|
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-csharp-plexcsharp
|
||||||
|
labelOverride:
|
||||||
|
fixedValue: PlexCSharp
|
||||||
|
|||||||
@@ -74,19 +74,12 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.13.3";
|
private const string _sdkVersion = "0.15.0";
|
||||||
private const string _sdkGenVersion = "2.495.1";
|
private const string _sdkGenVersion = "2.620.2";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.13.3 2.495.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
|
||||||
private string _serverUrl = "";
|
|
||||||
private ISpeakeasyHttpClient _client;
|
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
|
||||||
|
|
||||||
public Activities(ISpeakeasyHttpClient client, Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? securitySource, string serverUrl, SDKConfig config)
|
public Activities(SDKConfig config)
|
||||||
{
|
{
|
||||||
_client = client;
|
|
||||||
_securitySource = securitySource;
|
|
||||||
_serverUrl = serverUrl;
|
|
||||||
SDKConfiguration = config;
|
SDKConfiguration = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,21 +90,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/activities";
|
var urlString = baseUrl + "/activities";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("getServerActivities", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getServerActivities", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -201,21 +194,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/activities/{activityUUID}", request);
|
var urlString = URLBuilder.Build(baseUrl, "/activities/{activityUUID}", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("cancelServerActivities", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "cancelServerActivities", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
|||||||
@@ -95,19 +95,12 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
};
|
};
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.13.3";
|
private const string _sdkVersion = "0.15.0";
|
||||||
private const string _sdkGenVersion = "2.495.1";
|
private const string _sdkGenVersion = "2.620.2";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.13.3 2.495.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
|
||||||
private string _serverUrl = "";
|
|
||||||
private ISpeakeasyHttpClient _client;
|
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
|
||||||
|
|
||||||
public Authentication(ISpeakeasyHttpClient client, Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? securitySource, string serverUrl, SDKConfig config)
|
public Authentication(SDKConfig config)
|
||||||
{
|
{
|
||||||
_client = client;
|
|
||||||
_securitySource = securitySource;
|
|
||||||
_serverUrl = serverUrl;
|
|
||||||
SDKConfiguration = config;
|
SDKConfiguration = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,21 +115,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/security/token", request);
|
var urlString = URLBuilder.Build(baseUrl, "/security/token", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("getTransientToken", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getTransientToken", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -218,21 +211,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/security/resources", request);
|
var urlString = URLBuilder.Build(baseUrl, "/security/resources", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("getSourceConnectionInformation", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getSourceConnectionInformation", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -316,21 +309,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/user";
|
var urlString = baseUrl + "/user";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("getTokenDetails", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getTokenDetails", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -422,7 +415,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/users/signin";
|
var urlString = baseUrl + "/users/signin";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
|
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
|
||||||
|
|
||||||
var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "form", false, true);
|
var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "form", false, true);
|
||||||
@@ -431,14 +424,14 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
httpRequest.Content = serializedBody;
|
httpRequest.Content = serializedBody;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("post-users-sign-in-data", null, null);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "post-users-sign-in-data", new List<string> { }, null);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
|||||||
@@ -101,19 +101,12 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.13.3";
|
private const string _sdkVersion = "0.15.0";
|
||||||
private const string _sdkGenVersion = "2.495.1";
|
private const string _sdkGenVersion = "2.620.2";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.13.3 2.495.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
|
||||||
private string _serverUrl = "";
|
|
||||||
private ISpeakeasyHttpClient _client;
|
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
|
||||||
|
|
||||||
public Butler(ISpeakeasyHttpClient client, Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? securitySource, string serverUrl, SDKConfig config)
|
public Butler(SDKConfig config)
|
||||||
{
|
{
|
||||||
_client = client;
|
|
||||||
_securitySource = securitySource;
|
|
||||||
_serverUrl = serverUrl;
|
|
||||||
SDKConfiguration = config;
|
SDKConfiguration = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,21 +117,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/butler";
|
var urlString = baseUrl + "/butler";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("getButlerTasks", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getButlerTasks", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -225,21 +218,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/butler";
|
var urlString = baseUrl + "/butler";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("startAllTasks", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "startAllTasks", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -318,21 +311,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/butler";
|
var urlString = baseUrl + "/butler";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("stopAllTasks", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "stopAllTasks", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -414,21 +407,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/butler/{taskName}", request);
|
var urlString = URLBuilder.Build(baseUrl, "/butler/{taskName}", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("startTask", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "startTask", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -510,21 +503,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/butler/{taskName}", request);
|
var urlString = URLBuilder.Build(baseUrl, "/butler/{taskName}", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("stopTask", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "stopTask", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
|||||||
@@ -17,34 +17,47 @@ namespace LukeHagar.PlexAPI.SDK.Hooks
|
|||||||
|
|
||||||
public class HookContext
|
public class HookContext
|
||||||
{
|
{
|
||||||
|
public SDKConfig SDKConfiguration { get; set; }
|
||||||
|
public string BaseURL { get; set; } = "";
|
||||||
public string OperationID { get; set; }
|
public string OperationID { get; set; }
|
||||||
public List<string>? Oauth2Scopes { get; set; }
|
public List<string>? Oauth2Scopes { get; set; }
|
||||||
public Func<object>? SecuritySource { get; set; }
|
public Func<object>? SecuritySource { get; set; }
|
||||||
|
|
||||||
public HookContext(string operationID, List<string>? oauth2Scopes, Func<object>? securitySource)
|
public HookContext(SDKConfig config, string baseURL, string operationID, List<string>? oauth2Scopes, Func<object>? securitySource)
|
||||||
{
|
{
|
||||||
|
SDKConfiguration = config;
|
||||||
|
BaseURL = baseURL;
|
||||||
OperationID = operationID;
|
OperationID = operationID;
|
||||||
Oauth2Scopes = oauth2Scopes;
|
Oauth2Scopes = oauth2Scopes;
|
||||||
SecuritySource = securitySource;
|
SecuritySource = securitySource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public HookContext(HookContext hookCtx)
|
||||||
|
{
|
||||||
|
SDKConfiguration = hookCtx.SDKConfiguration;
|
||||||
|
BaseURL = hookCtx.BaseURL;
|
||||||
|
OperationID = hookCtx.OperationID;
|
||||||
|
Oauth2Scopes = hookCtx.Oauth2Scopes;
|
||||||
|
SecuritySource = hookCtx.SecuritySource;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BeforeRequestContext : HookContext
|
public class BeforeRequestContext : HookContext
|
||||||
{
|
{
|
||||||
public BeforeRequestContext(HookContext hookCtx)
|
public BeforeRequestContext(HookContext hookCtx)
|
||||||
: base(hookCtx.OperationID, hookCtx.Oauth2Scopes, hookCtx.SecuritySource) { }
|
: base(hookCtx) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AfterSuccessContext : HookContext
|
public class AfterSuccessContext : HookContext
|
||||||
{
|
{
|
||||||
public AfterSuccessContext(HookContext hookCtx)
|
public AfterSuccessContext(HookContext hookCtx)
|
||||||
: base(hookCtx.OperationID, hookCtx.Oauth2Scopes, hookCtx.SecuritySource) { }
|
: base(hookCtx) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AfterErrorContext : HookContext
|
public class AfterErrorContext : HookContext
|
||||||
{
|
{
|
||||||
public AfterErrorContext(HookContext hookCtx)
|
public AfterErrorContext(HookContext hookCtx)
|
||||||
: base(hookCtx.OperationID, hookCtx.Oauth2Scopes, hookCtx.SecuritySource) { }
|
: base(hookCtx) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace LukeHagar.PlexAPI.SDK.Hooks
|
|||||||
{
|
{
|
||||||
this.afterErrorHooks.Add(hook);
|
this.afterErrorHooks.Add(hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
public (string, ISpeakeasyHttpClient) SDKInit(string baseUrl, ISpeakeasyHttpClient client)
|
public (string, ISpeakeasyHttpClient) SDKInit(string baseUrl, ISpeakeasyHttpClient client)
|
||||||
{
|
{
|
||||||
var urlAndClient = (baseUrl, client);
|
var urlAndClient = (baseUrl, client);
|
||||||
@@ -68,7 +68,7 @@ namespace LukeHagar.PlexAPI.SDK.Hooks
|
|||||||
}
|
}
|
||||||
return urlAndClient;
|
return urlAndClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<HttpRequestMessage> BeforeRequestAsync(BeforeRequestContext hookCtx, HttpRequestMessage request)
|
public async Task<HttpRequestMessage> BeforeRequestAsync(BeforeRequestContext hookCtx, HttpRequestMessage request)
|
||||||
{
|
{
|
||||||
foreach (var hook in this.beforeRequestHooks)
|
foreach (var hook in this.beforeRequestHooks)
|
||||||
|
|||||||
@@ -73,19 +73,12 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.13.3";
|
private const string _sdkVersion = "0.15.0";
|
||||||
private const string _sdkGenVersion = "2.495.1";
|
private const string _sdkGenVersion = "2.620.2";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.13.3 2.495.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
|
||||||
private string _serverUrl = "";
|
|
||||||
private ISpeakeasyHttpClient _client;
|
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
|
||||||
|
|
||||||
public Hubs(ISpeakeasyHttpClient client, Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? securitySource, string serverUrl, SDKConfig config)
|
public Hubs(SDKConfig config)
|
||||||
{
|
{
|
||||||
_client = client;
|
|
||||||
_securitySource = securitySource;
|
|
||||||
_serverUrl = serverUrl;
|
|
||||||
SDKConfiguration = config;
|
SDKConfiguration = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,21 +93,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/hubs", request);
|
var urlString = URLBuilder.Build(baseUrl, "/hubs", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("getGlobalHubs", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getGlobalHubs", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -200,21 +193,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/hubs/home/recentlyAdded", request);
|
var urlString = URLBuilder.Build(baseUrl, "/hubs/home/recentlyAdded", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("get-recently-added", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "get-recently-added", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -284,21 +277,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/hubs/sections/{sectionId}", request);
|
var urlString = URLBuilder.Build(baseUrl, "/hubs/sections/{sectionId}", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("getLibraryHubs", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getLibraryHubs", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -46,13 +46,13 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
/// Logging a multi-line message
|
/// Logging a multi-line message
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This endpoint allows for the batch addition of log entries to the main Plex Media Server log. <br/>
|
/// This endpoint allows for the batch addition of log entries to the main Plex Media Server log.<br/>
|
||||||
/// It accepts a text/plain request body, where each line represents a distinct log entry. <br/>
|
/// It accepts a text/plain request body, where each line represents a distinct log entry.<br/>
|
||||||
/// Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'. <br/>
|
/// Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'.<br/>
|
||||||
/// <br/>
|
/// <br/>
|
||||||
/// Log entries are separated by a newline character (`\n`). <br/>
|
/// Log entries are separated by a newline character (`\n`).<br/>
|
||||||
/// Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters. <br/>
|
/// Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters.<br/>
|
||||||
/// This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests. <br/>
|
/// This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests.<br/>
|
||||||
/// <br/>
|
/// <br/>
|
||||||
/// The 'level' parameter specifies the log entry's severity or importance, with the following integer values:<br/>
|
/// The 'level' parameter specifies the log entry's severity or importance, with the following integer values:<br/>
|
||||||
/// - `0`: Error - Critical issues that require immediate attention.<br/>
|
/// - `0`: Error - Critical issues that require immediate attention.<br/>
|
||||||
@@ -94,19 +94,12 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.13.3";
|
private const string _sdkVersion = "0.15.0";
|
||||||
private const string _sdkGenVersion = "2.495.1";
|
private const string _sdkGenVersion = "2.620.2";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.13.3 2.495.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
|
||||||
private string _serverUrl = "";
|
|
||||||
private ISpeakeasyHttpClient _client;
|
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
|
||||||
|
|
||||||
public Log(ISpeakeasyHttpClient client, Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? securitySource, string serverUrl, SDKConfig config)
|
public Log(SDKConfig config)
|
||||||
{
|
{
|
||||||
_client = client;
|
|
||||||
_securitySource = securitySource;
|
|
||||||
_serverUrl = serverUrl;
|
|
||||||
SDKConfiguration = config;
|
SDKConfiguration = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,21 +115,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/log", request);
|
var urlString = URLBuilder.Build(baseUrl, "/log", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("logLine", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "logLine", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -215,7 +208,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/log";
|
var urlString = baseUrl + "/log";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
var serializedBody = RequestBodySerializer.Serialize(request, "Request", "string", false, false);
|
var serializedBody = RequestBodySerializer.Serialize(request, "Request", "string", false, false);
|
||||||
if (serializedBody != null)
|
if (serializedBody != null)
|
||||||
@@ -223,19 +216,19 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
httpRequest.Content = serializedBody;
|
httpRequest.Content = serializedBody;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("logMultiLine", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "logMultiLine", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -314,21 +307,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = baseUrl + "/log/networked";
|
var urlString = baseUrl + "/log/networked";
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("enablePaperTrail", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "enablePaperTrail", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 403 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 403 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>true</IsPackable>
|
<IsPackable>true</IsPackable>
|
||||||
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
||||||
<Version>0.13.3</Version>
|
<Version>0.15.0</Version>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Authors>LukeHagar</Authors>
|
<Authors>LukeHagar</Authors>
|
||||||
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
||||||
|
|||||||
@@ -90,19 +90,12 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.13.3";
|
private const string _sdkVersion = "0.15.0";
|
||||||
private const string _sdkGenVersion = "2.495.1";
|
private const string _sdkGenVersion = "2.620.2";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.13.3 2.495.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
|
||||||
private string _serverUrl = "";
|
|
||||||
private ISpeakeasyHttpClient _client;
|
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
|
||||||
|
|
||||||
public Media(ISpeakeasyHttpClient client, Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? securitySource, string serverUrl, SDKConfig config)
|
public Media(SDKConfig config)
|
||||||
{
|
{
|
||||||
_client = client;
|
|
||||||
_securitySource = securitySource;
|
|
||||||
_serverUrl = serverUrl;
|
|
||||||
SDKConfiguration = config;
|
SDKConfiguration = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,21 +109,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/:/scrobble", request);
|
var urlString = URLBuilder.Build(baseUrl, "/:/scrobble", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("markPlayed", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "markPlayed", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -212,21 +205,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/:/unscrobble", request);
|
var urlString = URLBuilder.Build(baseUrl, "/:/unscrobble", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("markUnplayed", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "markUnplayed", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -310,21 +303,21 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/:/progress", request);
|
var urlString = URLBuilder.Build(baseUrl, "/:/progress", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("updatePlayProgress", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "updatePlayProgress", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -402,22 +395,22 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/library/metadata/{ratingKey}/banner", request);
|
var urlString = URLBuilder.Build(baseUrl, "/library/metadata/{ratingKey}/banner", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
|
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("get-banner-image", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "get-banner-image", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
@@ -502,22 +495,22 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
var urlString = URLBuilder.Build(baseUrl, "/library/metadata/{ratingKey}/thumb", request);
|
var urlString = URLBuilder.Build(baseUrl, "/library/metadata/{ratingKey}/thumb", request);
|
||||||
|
|
||||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
|
||||||
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
|
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
|
||||||
|
|
||||||
if (_securitySource != null)
|
if (SDKConfiguration.SecuritySource != null)
|
||||||
{
|
{
|
||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("get-thumb-image", null, _securitySource);
|
var hookCtx = new HookContext(SDKConfiguration, baseUrl, "get-thumb-image", new List<string> { }, SDKConfiguration.SecuritySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
HttpResponseMessage httpResponse;
|
HttpResponseMessage httpResponse;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await SDKConfiguration.Client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetMetaDataByRatingKeyBadRequest : Exception
|
public class GetActorsLibraryBadRequest : Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMetaDataByRatingKeyErrors>? Errors { get; set; }
|
public List<GetActorsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetOnDeckLibraryErrors
|
public class GetActorsLibraryErrors
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyLibraryErrors
|
public class GetActorsLibraryLibraryErrors
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
@@ -19,11 +19,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetMetaDataByRatingKeyUnauthorized : Exception
|
public class GetActorsLibraryUnauthorized : Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMetaDataByRatingKeyLibraryErrors>? Errors { get; set; }
|
public List<GetActorsLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetCountriesLibraryBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetCountriesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyErrors
|
public class GetCountriesLibraryErrors
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
@@ -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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetCountriesLibraryUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetCountriesLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetGenresLibraryBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetGenresLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetGenresLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetGenresLibraryLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetGenresLibraryUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetGenresLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetLibrarySectionsAllBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetLibrarySectionsAllErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetLibrarySectionsAllUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetLibrarySectionsAllLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetMediaMetaDataBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetMediaMetaDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
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 GetMediaMetaDataUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetMediaMetaDataLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,11 +19,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetOnDeckBadRequest : Exception
|
public class GetUsersBadRequest : Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetOnDeckErrors>? Errors { get; set; }
|
public List<GetUsersErrors>? Errors { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetOnDeckErrors
|
public class GetUsersErrors
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
@@ -19,11 +19,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetOnDeckUnauthorized : Exception
|
public class GetUsersUnauthorized : Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetOnDeckLibraryErrors>? Errors { get; set; }
|
public List<GetUsersUsersErrors>? Errors { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
27
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersUsersErrors.cs
Normal file
27
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersUsersErrors.cs
Normal 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.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetUsersUsersErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllLibraries.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllLibraries.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// Indicates if the user has access to all libraries.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllLibraries
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowCameraUpload.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowCameraUpload.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// Indicates if the user is allowed to upload from a camera.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowCameraUpload
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowChannels.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowChannels.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// Indicates if the user has access to channels.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowChannels
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSubtitleAdmin.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSubtitleAdmin.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// Indicates if the user can manage subtitles.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowSubtitleAdmin
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSync.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSync.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// Indicates if the user is allowed to sync media.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowSync
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowTuners.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowTuners.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// Indicates if the user is allowed to use tuners.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowTuners
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -12,22 +12,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyDirector
|
/// <summary>
|
||||||
|
/// Attributes associated with the marker.
|
||||||
|
/// </summary>
|
||||||
|
public class Attributes
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The identifier for the attributes.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public int? Id { get; set; }
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("filter")]
|
/// <summary>
|
||||||
public string? Filter { get; set; }
|
/// The version number of the marker attributes.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("version")]
|
||||||
public string? Tag { get; set; }
|
public long? Version { get; set; }
|
||||||
|
|
||||||
[JsonProperty("tagKey")]
|
|
||||||
public string? TagKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
|
||||||
public string? Thumb { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,25 +12,28 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyRole
|
/// <summary>
|
||||||
|
/// The thumbnail for the chapter
|
||||||
|
/// </summary>
|
||||||
|
public class Chapter
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public int? Id { get; set; }
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("filter")]
|
[JsonProperty("filter")]
|
||||||
public string? Filter { get; set; }
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("index")]
|
||||||
public string? Tag { get; set; }
|
public long Index { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("tagKey")]
|
[JsonProperty("startTimeOffset")]
|
||||||
public string? TagKey { get; set; }
|
public long StartTimeOffset { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("role")]
|
[JsonProperty("endTimeOffset")]
|
||||||
public string? Role { get; set; }
|
public long EndTimeOffset { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
[JsonProperty("thumb")]
|
||||||
public string? Thumb { get; set; }
|
public string Thumb { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Collection
|
public class Collection
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The user-made collection this media item belongs to
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,10 +12,30 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter query string for country media items.
|
||||||
|
/// </summary>
|
||||||
public class Country
|
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!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The country of origin of this media item
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,34 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Director
|
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")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A unique 24-character hexadecimal key associated with the director'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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
24
LukeHagar/PlexAPI/SDK/Models/Requests/Extras.cs
Normal file
24
LukeHagar/PlexAPI/SDK/Models/Requests/Extras.cs
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class Extras
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The size of the extras.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public long? Size { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,10 +12,34 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter query string for similar items.
|
||||||
|
/// </summary>
|
||||||
public class Genre
|
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 int Id { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The genre name of this media-item<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetActorsLibraryDirectory
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A fast lookup key for the actor relative url.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("fastKey")]
|
||||||
|
public string FastKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the actor.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A unique key representing the actor.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The name of the actor.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetActorsLibraryMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of media items returned in this response.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public int Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the background artwork of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An plugin identifier for the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The prefix used for media tag resource paths.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The version number for media tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Specifies whether caching is disabled.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("nocache")]
|
||||||
|
public bool Nocache { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The primary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title1")]
|
||||||
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The secondary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title2")]
|
||||||
|
public string Title2 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Identifier for the view group layout.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewGroup")]
|
||||||
|
public string ViewGroup { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Identifier for the view mode.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewMode")]
|
||||||
|
public string ViewMode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of actor entries for media items.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Directory")]
|
||||||
|
public List<GetActorsLibraryDirectory>? Directory { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public enum GetActorsLibraryQueryParamType
|
||||||
|
{
|
||||||
|
Movie = 1,
|
||||||
|
TvShow = 2,
|
||||||
|
Season = 3,
|
||||||
|
Episode = 4,
|
||||||
|
Artist = 5,
|
||||||
|
Album = 6,
|
||||||
|
Track = 7,
|
||||||
|
PhotoAlbum = 8,
|
||||||
|
Photo = 9,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
public class GetActorsLibraryRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique key of the Plex library. <br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Note: This is unique in the context of the Plex server.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
||||||
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
|
public GetActorsLibraryQueryParamType Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using System;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
public class GetActorsLibraryResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response content type for this operation
|
||||||
|
/// </summary>
|
||||||
|
public string? ContentType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response status code for this operation
|
||||||
|
/// </summary>
|
||||||
|
public int StatusCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public GetActorsLibraryResponseBody? Object { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public class GetActorsLibraryResponseBody
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("MediaContainer")]
|
||||||
|
public GetActorsLibraryMediaContainer? MediaContainer { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,42 +17,78 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class GetAllLibrariesDirectory
|
public class GetAllLibrariesDirectory
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("allowSync")]
|
[JsonProperty("allowSync")]
|
||||||
public bool AllowSync { get; set; } = default!;
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the background artwork of the media container.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("art")]
|
[JsonProperty("art")]
|
||||||
public string Art { get; set; } = default!;
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The relative path to the composite media item.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("composite")]
|
[JsonProperty("composite")]
|
||||||
public string Composite { get; set; } = default!;
|
public string Composite { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// UNKNOWN
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("filters")]
|
[JsonProperty("filters")]
|
||||||
public bool Filters { get; set; } = default!;
|
public bool Filters { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether the library is currently being refreshed or updated
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("refreshing")]
|
[JsonProperty("refreshing")]
|
||||||
public bool Refreshing { get; set; } = default!;
|
public bool Refreshing { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the media container.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("thumb")]
|
[JsonProperty("thumb")]
|
||||||
public string Thumb { get; set; } = default!;
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The library key representing the unique identifier
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("key")]
|
[JsonProperty("key")]
|
||||||
public string Key { get; set; } = default!;
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; } = default!;
|
public GetAllLibrariesType Type { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the library
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("title")]
|
[JsonProperty("title")]
|
||||||
public string Title { get; set; } = default!;
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The Plex agent used to match and retrieve media metadata.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("agent")]
|
[JsonProperty("agent")]
|
||||||
public string Agent { get; set; } = default!;
|
public string Agent { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// UNKNOWN
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("scanner")]
|
[JsonProperty("scanner")]
|
||||||
public string Scanner { get; set; } = default!;
|
public string Scanner { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The Plex library language that has been set
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("language")]
|
[JsonProperty("language")]
|
||||||
public string Language { get; set; } = default!;
|
public string Language { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The universally unique identifier for the library.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("uuid")]
|
[JsonProperty("uuid")]
|
||||||
public string Uuid { get; set; } = default!;
|
public string Uuid { get; set; } = default!;
|
||||||
|
|
||||||
@@ -62,11 +98,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("updatedAt")]
|
[JsonProperty("updatedAt")]
|
||||||
public long UpdatedAt { get; set; } = default!;
|
public long UpdatedAt { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Unix epoch datetime in seconds
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("createdAt")]
|
[JsonProperty("createdAt")]
|
||||||
public long CreatedAt { get; set; } = default!;
|
public long? CreatedAt { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unix epoch datetime in seconds
|
/// Unix epoch datetime in seconds
|
||||||
@@ -74,20 +107,34 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("scannedAt")]
|
[JsonProperty("scannedAt")]
|
||||||
public long ScannedAt { get; set; } = default!;
|
public long ScannedAt { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// UNKNOWN
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("content")]
|
[JsonProperty("content")]
|
||||||
public bool Content { get; set; } = default!;
|
public bool Content { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// UNKNOWN
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("directory")]
|
[JsonProperty("directory")]
|
||||||
public bool Directory { get; set; } = default!;
|
public bool Directory { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unix epoch datetime in seconds
|
/// Timestamp (in seconds) representing the last time the content was modified.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// NOTE: Some Plex server have some absurd values for this field, like 8457612157633039800 so it should be int64<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("contentChangedAt")]
|
[JsonProperty("contentChangedAt")]
|
||||||
public long ContentChangedAt { get; set; } = default!;
|
public long ContentChangedAt { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The Plex library visibility setting
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("hidden")]
|
[JsonProperty("hidden")]
|
||||||
public int Hidden { get; set; } = default!;
|
public Hidden? Hidden { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.Hidden.Visible;
|
||||||
|
|
||||||
[JsonProperty("Location")]
|
[JsonProperty("Location")]
|
||||||
public List<GetAllLibrariesLocation> Location { get; set; } = default!;
|
public List<GetAllLibrariesLocation> Location { get; set; } = default!;
|
||||||
|
|||||||
@@ -15,9 +15,15 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class GetAllLibrariesLocation
|
public class GetAllLibrariesLocation
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The ID of the location.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public int Id { get; set; } = default!;
|
public int Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The path to the media item.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("path")]
|
[JsonProperty("path")]
|
||||||
public string Path { get; set; } = default!;
|
public string Path { get; set; } = default!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class GetAllLibrariesMediaContainer
|
public class GetAllLibrariesMediaContainer
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of media items returned in this response.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("size")]
|
[JsonProperty("size")]
|
||||||
public int Size { get; set; } = default!;
|
public int Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("allowSync")]
|
[JsonProperty("allowSync")]
|
||||||
public bool AllowSync { get; set; } = default!;
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The primary title of the media container.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("title1")]
|
[JsonProperty("title1")]
|
||||||
public string Title1 { get; set; } = default!;
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("Directory")]
|
[JsonProperty("Directory")]
|
||||||
public List<GetAllLibrariesDirectory> Directory { get; set; } = default!;
|
public List<GetAllLibrariesDirectory>? Directory { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("MediaContainer")]
|
[JsonProperty("MediaContainer")]
|
||||||
public GetAllLibrariesMediaContainer MediaContainer { get; set; } = default!;
|
public GetAllLibrariesMediaContainer? MediaContainer { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
76
LukeHagar/PlexAPI/SDK/Models/Requests/GetAllLibrariesType.cs
Normal file
76
LukeHagar/PlexAPI/SDK/Models/Requests/GetAllLibrariesType.cs
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The library type
|
||||||
|
/// </summary>
|
||||||
|
public enum GetAllLibrariesType
|
||||||
|
{
|
||||||
|
[JsonProperty("movie")]
|
||||||
|
Movie,
|
||||||
|
[JsonProperty("show")]
|
||||||
|
TvShow,
|
||||||
|
[JsonProperty("season")]
|
||||||
|
Season,
|
||||||
|
[JsonProperty("episode")]
|
||||||
|
Episode,
|
||||||
|
[JsonProperty("artist")]
|
||||||
|
Artist,
|
||||||
|
[JsonProperty("album")]
|
||||||
|
Album,
|
||||||
|
[JsonProperty("track")]
|
||||||
|
Track,
|
||||||
|
[JsonProperty("photoalbum")]
|
||||||
|
PhotoAlbum,
|
||||||
|
[JsonProperty("photo")]
|
||||||
|
Photo,
|
||||||
|
[JsonProperty("collection")]
|
||||||
|
Collection,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GetAllLibrariesTypeExtension
|
||||||
|
{
|
||||||
|
public static string Value(this GetAllLibrariesType value)
|
||||||
|
{
|
||||||
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetAllLibrariesType ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(GetAllLibrariesType).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is GetAllLibrariesType)
|
||||||
|
{
|
||||||
|
return (GetAllLibrariesType)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum GetAllLibrariesType");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryDirectory
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("fastKey")]
|
||||||
|
public string FastKey { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of media items returned in this response.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public int Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the background artwork of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The content type or mode.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("content")]
|
||||||
|
public string Content { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An plugin identifier for the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The prefix used for media tag resource paths.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The version number for media tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Specifies whether caching is disabled.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("nocache")]
|
||||||
|
public bool Nocache { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The primary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title1")]
|
||||||
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The secondary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title2")]
|
||||||
|
public string Title2 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Identifier for the view group layout.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewGroup")]
|
||||||
|
public string ViewGroup { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("Directory")]
|
||||||
|
public List<GetCountriesLibraryDirectory>? Directory { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public enum GetCountriesLibraryQueryParamType
|
||||||
|
{
|
||||||
|
Movie = 1,
|
||||||
|
TvShow = 2,
|
||||||
|
Season = 3,
|
||||||
|
Episode = 4,
|
||||||
|
Artist = 5,
|
||||||
|
Album = 6,
|
||||||
|
Track = 7,
|
||||||
|
PhotoAlbum = 8,
|
||||||
|
Photo = 9,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique key of the Plex library. <br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Note: This is unique in the context of the Plex server.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
||||||
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
|
public GetCountriesLibraryQueryParamType Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using System;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response content type for this operation
|
||||||
|
/// </summary>
|
||||||
|
public string? ContentType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response status code for this operation
|
||||||
|
/// </summary>
|
||||||
|
public int StatusCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public GetCountriesLibraryResponseBody? Object { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCountriesLibraryResponseBody
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("MediaContainer")]
|
||||||
|
public GetCountriesLibraryMediaContainer? MediaContainer { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetGenresLibraryDirectory
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("fastKey")]
|
||||||
|
public string FastKey { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetGenresLibraryMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of media items returned in this response.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public int Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the background artwork of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The content type or mode.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("content")]
|
||||||
|
public string Content { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An plugin identifier for the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The prefix used for media tag resource paths.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The version number for media tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Specifies whether caching is disabled.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("nocache")]
|
||||||
|
public bool Nocache { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The primary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title1")]
|
||||||
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The secondary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title2")]
|
||||||
|
public string Title2 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Identifier for the view group layout.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewGroup")]
|
||||||
|
public string ViewGroup { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("Directory")]
|
||||||
|
public List<GetGenresLibraryDirectory>? Directory { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public enum GetGenresLibraryQueryParamType
|
||||||
|
{
|
||||||
|
Movie = 1,
|
||||||
|
TvShow = 2,
|
||||||
|
Season = 3,
|
||||||
|
Episode = 4,
|
||||||
|
Artist = 5,
|
||||||
|
Album = 6,
|
||||||
|
Track = 7,
|
||||||
|
PhotoAlbum = 8,
|
||||||
|
Photo = 9,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
public class GetGenresLibraryRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique key of the Plex library. <br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Note: This is unique in the context of the Plex server.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
||||||
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
|
public GetGenresLibraryQueryParamType Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using System;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
public class GetGenresLibraryResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response content type for this operation
|
||||||
|
/// </summary>
|
||||||
|
public string? ContentType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response status code for this operation
|
||||||
|
/// </summary>
|
||||||
|
public int StatusCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public GetGenresLibraryResponseBody? Object { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGenresLibraryResponseBody
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("MediaContainer")]
|
||||||
|
public GetGenresLibraryMediaContainer? MediaContainer { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,6 +15,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class GetLibraryDetailsRequest
|
public class GetLibraryDetailsRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether or not to include details for a section (types, filters, and sorts).<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeDetails")]
|
||||||
|
public IncludeDetails? IncludeDetails { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeDetails.Zero;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The unique key of the Plex library. <br/>
|
/// The unique key of the Plex library. <br/>
|
||||||
///
|
///
|
||||||
@@ -25,16 +36,5 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
||||||
public int SectionKey { get; set; } = default!;
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Whether or not to include details for a section (types, filters, and sorts). <br/>
|
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
/// Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeDetails")]
|
|
||||||
public IncludeDetails? IncludeDetails { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeDetails.Zero;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,5 +29,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; } = default!;
|
public string Type { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("advanced")]
|
||||||
|
public bool? Advanced { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
||||||
///
|
///
|
||||||
@@ -30,6 +30,18 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
Season,
|
Season,
|
||||||
[JsonProperty("episode")]
|
[JsonProperty("episode")]
|
||||||
Episode,
|
Episode,
|
||||||
|
[JsonProperty("artist")]
|
||||||
|
Artist,
|
||||||
|
[JsonProperty("album")]
|
||||||
|
Album,
|
||||||
|
[JsonProperty("track")]
|
||||||
|
Track,
|
||||||
|
[JsonProperty("photoalbum")]
|
||||||
|
PhotoAlbum,
|
||||||
|
[JsonProperty("photo")]
|
||||||
|
Photo,
|
||||||
|
[JsonProperty("collection")]
|
||||||
|
Collection,
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GetLibraryItemsLibraryTypeExtension
|
public static class GetLibraryItemsLibraryTypeExtension
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public string? LibrarySectionKey { get; set; }
|
public string? LibrarySectionKey { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
||||||
///
|
///
|
||||||
@@ -91,19 +91,19 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("flattenSeasons")]
|
[JsonProperty("flattenSeasons")]
|
||||||
public GetLibraryItemsFlattenSeasons? FlattenSeasons { get; set; }
|
public FlattenSeasons? FlattenSeasons { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("episodeSort")]
|
[JsonProperty("episodeSort")]
|
||||||
public GetLibraryItemsEpisodeSort? EpisodeSort { get; set; }
|
public EpisodeSort? EpisodeSort { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("enableCreditsMarkerGeneration")]
|
[JsonProperty("enableCreditsMarkerGeneration")]
|
||||||
public GetLibraryItemsEnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
public EnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show.<br/>
|
/// Setting that indicates the episode ordering for the show.<br/>
|
||||||
@@ -118,7 +118,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("showOrdering")]
|
[JsonProperty("showOrdering")]
|
||||||
public GetLibraryItemsShowOrdering? ShowOrdering { get; set; }
|
public ShowOrdering? ShowOrdering { get; set; }
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
[JsonProperty("thumb")]
|
||||||
public string? Thumb { get; set; }
|
public string? Thumb { get; set; }
|
||||||
@@ -225,13 +225,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("Guid")]
|
[JsonProperty("Guid")]
|
||||||
public List<GetLibraryItemsMediaGuid>? MediaGuid { get; set; }
|
public List<MediaGuid>? MediaGuid { get; set; }
|
||||||
|
|
||||||
[JsonProperty("UltraBlurColors")]
|
[JsonProperty("UltraBlurColors")]
|
||||||
public GetLibraryItemsUltraBlurColors? UltraBlurColors { get; set; }
|
public GetLibraryItemsUltraBlurColors? UltraBlurColors { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Rating")]
|
[JsonProperty("Rating")]
|
||||||
public List<GetLibraryItemsMetaDataRating>? MetaDataRating { get; set; }
|
public List<MetaDataRating>? MetaDataRating { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Image")]
|
[JsonProperty("Image")]
|
||||||
public List<GetLibraryItemsImage>? Image { get; set; }
|
public List<GetLibraryItemsImage>? Image { get; set; }
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
@@ -29,9 +29,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
TvShow = 2,
|
TvShow = 2,
|
||||||
Season = 3,
|
Season = 3,
|
||||||
Episode = 4,
|
Episode = 4,
|
||||||
Audio = 8,
|
Artist = 5,
|
||||||
Album = 9,
|
Album = 6,
|
||||||
Track = 10,
|
Track = 7,
|
||||||
|
PhotoAlbum = 8,
|
||||||
|
Photo = 9,
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public IncludeGuids? IncludeGuids { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeGuids.Disable;
|
public IncludeGuids? IncludeGuids { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeGuids.Disable;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
@@ -44,7 +44,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
public GetLibraryItemsQueryParamType? Type { get; set; }
|
public GetLibraryItemsQueryParamType Type { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The unique key of the Plex library. <br/>
|
/// The unique key of the Plex library. <br/>
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; } = default!;
|
public string Type { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("subtype")]
|
||||||
|
public string? Subtype { get; set; }
|
||||||
|
|
||||||
[JsonProperty("title")]
|
[JsonProperty("title")]
|
||||||
public string Title { get; set; } = default!;
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
|||||||
@@ -14,26 +14,30 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
/// The direction of the sort. Can be either `asc` or `desc`.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum GetLibraryItemsEnableCreditsMarkerGeneration
|
public enum GetLibrarySectionsAllActiveDirection
|
||||||
{
|
{
|
||||||
[JsonProperty("-1")]
|
[JsonProperty("asc")]
|
||||||
LibraryDefault,
|
Ascending,
|
||||||
[JsonProperty("0")]
|
[JsonProperty("desc")]
|
||||||
Disabled,
|
Descending,
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GetLibraryItemsEnableCreditsMarkerGenerationExtension
|
public static class GetLibrarySectionsAllActiveDirectionExtension
|
||||||
{
|
{
|
||||||
public static string Value(this GetLibraryItemsEnableCreditsMarkerGeneration value)
|
public static string Value(this GetLibrarySectionsAllActiveDirection value)
|
||||||
{
|
{
|
||||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GetLibraryItemsEnableCreditsMarkerGeneration ToEnum(this string value)
|
public static GetLibrarySectionsAllActiveDirection ToEnum(this string value)
|
||||||
{
|
{
|
||||||
foreach(var field in typeof(GetLibraryItemsEnableCreditsMarkerGeneration).GetFields())
|
foreach(var field in typeof(GetLibrarySectionsAllActiveDirection).GetFields())
|
||||||
{
|
{
|
||||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
if (attributes.Length == 0)
|
if (attributes.Length == 0)
|
||||||
@@ -46,14 +50,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
var enumVal = field.GetValue(null);
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
if (enumVal is GetLibraryItemsEnableCreditsMarkerGeneration)
|
if (enumVal is GetLibrarySectionsAllActiveDirection)
|
||||||
{
|
{
|
||||||
return (GetLibraryItemsEnableCreditsMarkerGeneration)enumVal;
|
return (GetLibrarySectionsAllActiveDirection)enumVal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsEnableCreditsMarkerGeneration");
|
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllActiveDirection");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12,16 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyGenre
|
public class GetLibrarySectionsAllCollection
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("id")]
|
/// <summary>
|
||||||
public int? Id { get; set; }
|
/// The user-made collection this media item belongs to
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("filter")]
|
|
||||||
public string? Filter { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,16 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyCountry
|
public class GetLibrarySectionsAllCountry
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("id")]
|
/// <summary>
|
||||||
public int? Id { get; set; }
|
/// The country of origin of this media item
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("filter")]
|
|
||||||
public string? Filter { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,41 +14,30 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show.<br/>
|
/// The direction of the sort. Can be either `asc` or `desc`.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// None = Library default,<br/>
|
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
|
||||||
/// aired = TheTVDB (Aired),<br/>
|
|
||||||
/// dvd = TheTVDB (DVD),<br/>
|
|
||||||
/// absolute = TheTVDB (Absolute)).<br/>
|
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum GetLibraryItemsShowOrdering
|
public enum GetLibrarySectionsAllDefaultDirection
|
||||||
{
|
{
|
||||||
[JsonProperty("None")]
|
[JsonProperty("asc")]
|
||||||
None,
|
Ascending,
|
||||||
[JsonProperty("tmdbAiring")]
|
[JsonProperty("desc")]
|
||||||
TmdbAiring,
|
Descending,
|
||||||
[JsonProperty("aired")]
|
|
||||||
TvdbAired,
|
|
||||||
[JsonProperty("dvd")]
|
|
||||||
TvdbDvd,
|
|
||||||
[JsonProperty("absolute")]
|
|
||||||
TvdbAbsolute,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GetLibraryItemsShowOrderingExtension
|
public static class GetLibrarySectionsAllDefaultDirectionExtension
|
||||||
{
|
{
|
||||||
public static string Value(this GetLibraryItemsShowOrdering value)
|
public static string Value(this GetLibrarySectionsAllDefaultDirection value)
|
||||||
{
|
{
|
||||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GetLibraryItemsShowOrdering ToEnum(this string value)
|
public static GetLibrarySectionsAllDefaultDirection ToEnum(this string value)
|
||||||
{
|
{
|
||||||
foreach(var field in typeof(GetLibraryItemsShowOrdering).GetFields())
|
foreach(var field in typeof(GetLibrarySectionsAllDefaultDirection).GetFields())
|
||||||
{
|
{
|
||||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
if (attributes.Length == 0)
|
if (attributes.Length == 0)
|
||||||
@@ -61,14 +50,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
var enumVal = field.GetValue(null);
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
if (enumVal is GetLibraryItemsShowOrdering)
|
if (enumVal is GetLibrarySectionsAllDefaultDirection)
|
||||||
{
|
{
|
||||||
return (GetLibraryItemsShowOrdering)enumVal;
|
return (GetLibrarySectionsAllDefaultDirection)enumVal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsShowOrdering");
|
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllDefaultDirection");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllDirector
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The role of Director
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tag")]
|
||||||
|
public string Tag { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllField
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("subType")]
|
||||||
|
public string? SubType { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllFieldType
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("Operator")]
|
||||||
|
public List<GetLibrarySectionsAllOperator> Operator { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllFilter
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("filterType")]
|
||||||
|
public string FilterType { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("advanced")]
|
||||||
|
public bool? Advanced { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllGenre
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The genre name of this media-item<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tag")]
|
||||||
|
public string Tag { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,14 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetLibraryItemsMediaGuid
|
public class GetLibrarySectionsAllGuids
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Can be one of the following formats:<br/>
|
/// The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/>
|
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -14,28 +14,26 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
/// Indicates if the part has a thumbnail.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum GetLibraryItemsFlattenSeasons
|
public enum GetLibrarySectionsAllHasThumbnail
|
||||||
{
|
{
|
||||||
[JsonProperty("-1")]
|
|
||||||
LibraryDefault,
|
|
||||||
[JsonProperty("0")]
|
[JsonProperty("0")]
|
||||||
Hide,
|
False,
|
||||||
[JsonProperty("1")]
|
[JsonProperty("1")]
|
||||||
Show,
|
True,
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GetLibraryItemsFlattenSeasonsExtension
|
public static class GetLibrarySectionsAllHasThumbnailExtension
|
||||||
{
|
{
|
||||||
public static string Value(this GetLibraryItemsFlattenSeasons value)
|
public static string Value(this GetLibrarySectionsAllHasThumbnail value)
|
||||||
{
|
{
|
||||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GetLibraryItemsFlattenSeasons ToEnum(this string value)
|
public static GetLibrarySectionsAllHasThumbnail ToEnum(this string value)
|
||||||
{
|
{
|
||||||
foreach(var field in typeof(GetLibraryItemsFlattenSeasons).GetFields())
|
foreach(var field in typeof(GetLibrarySectionsAllHasThumbnail).GetFields())
|
||||||
{
|
{
|
||||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
if (attributes.Length == 0)
|
if (attributes.Length == 0)
|
||||||
@@ -48,14 +46,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
var enumVal = field.GetValue(null);
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
if (enumVal is GetLibraryItemsFlattenSeasons)
|
if (enumVal is GetLibrarySectionsAllHasThumbnail)
|
||||||
{
|
{
|
||||||
return (GetLibraryItemsFlattenSeasons)enumVal;
|
return (GetLibrarySectionsAllHasThumbnail)enumVal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsFlattenSeasons");
|
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllHasThumbnail");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllImage
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("alt")]
|
||||||
|
public string Alt { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public GetLibrarySectionsAllLibraryResponseType Type { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("url")]
|
||||||
|
public string Url { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Numerics;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllLibraryOptimizedForStreamingType
|
||||||
|
{
|
||||||
|
private GetLibrarySectionsAllLibraryOptimizedForStreamingType(string value) { Value = value; }
|
||||||
|
|
||||||
|
public string Value { get; private set; }
|
||||||
|
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType GetLibrarySectionsAllOptimizedForStreaming1 { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("get-library-sections-all_optimizedForStreaming_1"); } }
|
||||||
|
|
||||||
|
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType Boolean { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("boolean"); } }
|
||||||
|
|
||||||
|
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType Null { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("null"); } }
|
||||||
|
|
||||||
|
public override string ToString() { return Value; }
|
||||||
|
public static implicit operator String(GetLibrarySectionsAllLibraryOptimizedForStreamingType v) { return v.Value; }
|
||||||
|
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType FromString(string v) {
|
||||||
|
switch(v) {
|
||||||
|
case "get-library-sections-all_optimizedForStreaming_1": return GetLibrarySectionsAllOptimizedForStreaming1;
|
||||||
|
case "boolean": return Boolean;
|
||||||
|
case "null": return Null;
|
||||||
|
default: throw new ArgumentException("Invalid value for GetLibrarySectionsAllLibraryOptimizedForStreamingType");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public override bool Equals(object? obj)
|
||||||
|
{
|
||||||
|
if (obj == null || GetType() != obj.GetType())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return Value.Equals(((GetLibrarySectionsAllLibraryOptimizedForStreamingType)obj).Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
return Value.GetHashCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||||
|
/// </summary>
|
||||||
|
[JsonConverter(typeof(GetLibrarySectionsAllLibraryOptimizedForStreaming.GetLibrarySectionsAllLibraryOptimizedForStreamingConverter))]
|
||||||
|
public class GetLibrarySectionsAllLibraryOptimizedForStreaming {
|
||||||
|
public GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType type) {
|
||||||
|
Type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
|
public GetLibrarySectionsAllOptimizedForStreaming1? GetLibrarySectionsAllOptimizedForStreaming1 { get; set; }
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
|
public bool? Boolean { get; set; }
|
||||||
|
|
||||||
|
public GetLibrarySectionsAllLibraryOptimizedForStreamingType Type { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreaming1(GetLibrarySectionsAllOptimizedForStreaming1 getLibrarySectionsAllOptimizedForStreaming1) {
|
||||||
|
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1;
|
||||||
|
|
||||||
|
GetLibrarySectionsAllLibraryOptimizedForStreaming res = new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
|
||||||
|
res.GetLibrarySectionsAllOptimizedForStreaming1 = getLibrarySectionsAllOptimizedForStreaming1;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
|
||||||
|
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.Boolean;
|
||||||
|
|
||||||
|
GetLibrarySectionsAllLibraryOptimizedForStreaming res = new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
|
||||||
|
res.Boolean = boolean;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateNull() {
|
||||||
|
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.Null;
|
||||||
|
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllLibraryOptimizedForStreamingConverter : JsonConverter
|
||||||
|
{
|
||||||
|
|
||||||
|
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetLibrarySectionsAllLibraryOptimizedForStreaming);
|
||||||
|
|
||||||
|
public override bool CanRead => true;
|
||||||
|
|
||||||
|
public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer)
|
||||||
|
{
|
||||||
|
var json = JRaw.Create(reader).ToString();
|
||||||
|
if (json == "null")
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
var fallbackCandidates = new List<(System.Type, object, string)>();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1)
|
||||||
|
{
|
||||||
|
GetLibrarySectionsAllOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetLibrarySectionsAllOptimizedForStreaming1>(json)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||||
|
{
|
||||||
|
fallbackCandidates.Add((typeof(GetLibrarySectionsAllOptimizedForStreaming1), new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1), "GetLibrarySectionsAllOptimizedForStreaming1"));
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
|
{
|
||||||
|
// try next option
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var converted = Convert.ToBoolean(json);
|
||||||
|
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.Boolean)
|
||||||
|
{
|
||||||
|
Boolean = converted
|
||||||
|
};
|
||||||
|
}
|
||||||
|
catch (System.FormatException)
|
||||||
|
{
|
||||||
|
// try next option
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fallbackCandidates.Count > 0)
|
||||||
|
{
|
||||||
|
fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json));
|
||||||
|
foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json);
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
|
{
|
||||||
|
// try next fallback option
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new InvalidOperationException("Could not deserialize into any supported types.");
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||||
|
{
|
||||||
|
if (value == null) {
|
||||||
|
writer.WriteRawValue("null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
GetLibrarySectionsAllLibraryOptimizedForStreaming res = (GetLibrarySectionsAllLibraryOptimizedForStreaming)value;
|
||||||
|
if (GetLibrarySectionsAllLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetLibrarySectionsAllLibraryOptimizedForStreamingType.Null))
|
||||||
|
{
|
||||||
|
writer.WriteRawValue("null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (res.GetLibrarySectionsAllOptimizedForStreaming1 != null)
|
||||||
|
{
|
||||||
|
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibrarySectionsAllOptimizedForStreaming1));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (res.Boolean != null)
|
||||||
|
{
|
||||||
|
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
public enum GetLibrarySectionsAllLibraryResponseType
|
||||||
|
{
|
||||||
|
[JsonProperty("coverPoster")]
|
||||||
|
CoverPoster,
|
||||||
|
[JsonProperty("background")]
|
||||||
|
Background,
|
||||||
|
[JsonProperty("snapshot")]
|
||||||
|
Snapshot,
|
||||||
|
[JsonProperty("clearLogo")]
|
||||||
|
ClearLogo,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GetLibrarySectionsAllLibraryResponseTypeExtension
|
||||||
|
{
|
||||||
|
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 GetLibrarySectionsAllLibraryResponseType ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(GetLibrarySectionsAllLibraryResponseType).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is GetLibrarySectionsAllLibraryResponseType)
|
||||||
|
{
|
||||||
|
return (GetLibrarySectionsAllLibraryResponseType)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllLibraryResponseType");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public enum GetLibrarySectionsAllLibraryType
|
||||||
|
{
|
||||||
|
[JsonProperty("movie")]
|
||||||
|
Movie,
|
||||||
|
[JsonProperty("show")]
|
||||||
|
TvShow,
|
||||||
|
[JsonProperty("season")]
|
||||||
|
Season,
|
||||||
|
[JsonProperty("episode")]
|
||||||
|
Episode,
|
||||||
|
[JsonProperty("artist")]
|
||||||
|
Artist,
|
||||||
|
[JsonProperty("album")]
|
||||||
|
Album,
|
||||||
|
[JsonProperty("track")]
|
||||||
|
Track,
|
||||||
|
[JsonProperty("photoalbum")]
|
||||||
|
PhotoAlbum,
|
||||||
|
[JsonProperty("photo")]
|
||||||
|
Photo,
|
||||||
|
[JsonProperty("collection")]
|
||||||
|
Collection,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GetLibrarySectionsAllLibraryTypeExtension
|
||||||
|
{
|
||||||
|
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 GetLibrarySectionsAllLibraryType ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(GetLibrarySectionsAllLibraryType).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is GetLibrarySectionsAllLibraryType)
|
||||||
|
{
|
||||||
|
return (GetLibrarySectionsAllLibraryType)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum GetLibrarySectionsAllLibraryType");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Components;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllMedia
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unique media identifier.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Duration of the media in milliseconds.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("duration")]
|
||||||
|
public int? Duration { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bitrate in bits per second.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("bitrate")]
|
||||||
|
public int? Bitrate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video width in pixels.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("width")]
|
||||||
|
public int? Width { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video height in pixels.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("height")]
|
||||||
|
public int? Height { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Aspect ratio of the video.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("aspectRatio")]
|
||||||
|
public float? AspectRatio { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of audio channels.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audioChannels")]
|
||||||
|
public int? AudioChannels { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("displayOffset")]
|
||||||
|
public int? DisplayOffset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Audio codec used.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audioCodec")]
|
||||||
|
public string? AudioCodec { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video codec used.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoCodec")]
|
||||||
|
public string? VideoCodec { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video resolution (e.g., 4k).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoResolution")]
|
||||||
|
public string? VideoResolution { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// File container type.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("container")]
|
||||||
|
public string? Container { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Frame rate of the video. Values found include NTSC, PAL, 24p<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoFrameRate")]
|
||||||
|
public string? VideoFrameRate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video profile (e.g., main 10).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoProfile")]
|
||||||
|
public string? VideoProfile { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether voice activity is detected.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("hasVoiceActivity")]
|
||||||
|
public bool? HasVoiceActivity { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audioProfile")]
|
||||||
|
public string? AudioProfile { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("optimizedForStreaming")]
|
||||||
|
public GetLibrarySectionsAllOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("has64bitOffsets")]
|
||||||
|
public bool? Has64bitOffsets { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of parts for this media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Part")]
|
||||||
|
public List<GetLibrarySectionsAllPart>? Part { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,138 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetLibrarySectionsAllMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of media items returned in this response.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public int Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Total number of media items in the library.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("totalSize")]
|
||||||
|
public int TotalSize { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Offset value for pagination.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("offset")]
|
||||||
|
public long Offset { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the background artwork of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The content type or mode.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("content")]
|
||||||
|
public string Content { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An plugin identifier for the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique identifier for the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionID")]
|
||||||
|
public long LibrarySectionID { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionTitle")]
|
||||||
|
public string LibrarySectionTitle { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The universally unique identifier for the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionUUID")]
|
||||||
|
public string? LibrarySectionUUID { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The prefix used for media tag resource paths.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The version number for media tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Specifies whether caching is disabled.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("nocache")]
|
||||||
|
public bool Nocache { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The primary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title1")]
|
||||||
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The secondary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title2")]
|
||||||
|
public string Title2 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Identifier for the view group layout.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewGroup")]
|
||||||
|
public string ViewGroup { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Meta")]
|
||||||
|
public GetLibrarySectionsAllMeta? Meta { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of metadata items.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Metadata")]
|
||||||
|
public List<GetLibrarySectionsAllMetadata>? Metadata { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibrarySectionsAllMeta
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("Type")]
|
||||||
|
public List<GetLibrarySectionsAllType>? Type { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("FieldType")]
|
||||||
|
public List<GetLibrarySectionsAllFieldType>? FieldType { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user