ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.147.0

This commit is contained in:
speakeasybot
2024-01-18 23:37:25 +00:00
parent 68456f1a6a
commit a2574b38a7
31 changed files with 315 additions and 65 deletions

View File

@@ -1,20 +1,20 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9 id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9
management: management:
docChecksum: 34d22936f2456c2c461abdfc773e3fc4 docChecksum: 45c73686e6dbe8c29b7e2857b6194ccf
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: internal speakeasyVersion: internal
generationVersion: 2.228.1 generationVersion: 2.237.2
releaseVersion: 0.1.1 releaseVersion: 0.1.2
configChecksum: 6b9442beea2ea4ba03da6cae25bbe997 configChecksum: 507f77da627cd2f7f1d5a580b89775fa
repoURL: https://github.com/LukeHagar/plexcsharp.git repoURL: https://github.com/LukeHagar/plexcsharp.git
repoSubDirectory: . repoSubDirectory: .
published: true published: true
features: features:
csharp: csharp:
core: 3.3.0 core: 3.3.1
flattening: 2.81.1 flattening: 2.81.1
globalSecurity: 2.81.2 globalSecurity: 2.81.3
globalServerURLs: 2.82.2 globalServerURLs: 2.82.2
nameOverrides: 2.81.1 nameOverrides: 2.81.1
generatedFiles: generatedFiles:
@@ -185,6 +185,10 @@ generatedFiles:
- PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs - PlexAPI/Models/Requests/GetRecentlyAddedResponseBody.cs
- PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs - PlexAPI/Models/Requests/GetRecentlyAddedResponse.cs
- PlexAPI/Models/Requests/GetLibrariesErrors.cs - PlexAPI/Models/Requests/GetLibrariesErrors.cs
- PlexAPI/Models/Requests/GetLibrariesLibraryResponseBody.cs
- PlexAPI/Models/Requests/Location.cs
- PlexAPI/Models/Requests/GetLibrariesDirectory.cs
- PlexAPI/Models/Requests/GetLibrariesMediaContainer.cs
- PlexAPI/Models/Requests/GetLibrariesResponseBody.cs - PlexAPI/Models/Requests/GetLibrariesResponseBody.cs
- PlexAPI/Models/Requests/GetLibrariesResponse.cs - PlexAPI/Models/Requests/GetLibrariesResponse.cs
- PlexAPI/Models/Requests/IncludeDetails.cs - PlexAPI/Models/Requests/IncludeDetails.cs
@@ -471,6 +475,10 @@ generatedFiles:
- docs/Models/Requests/GetRecentlyAddedResponseBody.md - docs/Models/Requests/GetRecentlyAddedResponseBody.md
- docs/Models/Requests/GetRecentlyAddedResponse.md - docs/Models/Requests/GetRecentlyAddedResponse.md
- docs/Models/Requests/GetLibrariesErrors.md - docs/Models/Requests/GetLibrariesErrors.md
- docs/Models/Requests/GetLibrariesLibraryResponseBody.md
- docs/Models/Requests/Location.md
- docs/Models/Requests/GetLibrariesDirectory.md
- docs/Models/Requests/GetLibrariesMediaContainer.md
- docs/Models/Requests/GetLibrariesResponseBody.md - docs/Models/Requests/GetLibrariesResponseBody.md
- docs/Models/Requests/GetLibrariesResponse.md - docs/Models/Requests/GetLibrariesResponse.md
- docs/Models/Requests/IncludeDetails.md - docs/Models/Requests/IncludeDetails.md

View File

@@ -70,10 +70,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -97,10 +97,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -59,10 +59,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -181,10 +181,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;
@@ -314,7 +314,16 @@ namespace PlexAPI
RawResponse = httpResponse RawResponse = httpResponse
}; };
if((response.StatusCode == 200) || (response.StatusCode == 400)) if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.TwoHundredApplicationJsonObject = JsonConvert.DeserializeObject<GetLibrariesResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
return response;
}
if((response.StatusCode == 400))
{ {
return response; return response;
@@ -323,7 +332,7 @@ namespace PlexAPI
{ {
if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{ {
response.Object = JsonConvert.DeserializeObject<GetLibrariesResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); response.FourHundredAndOneApplicationJsonObject = JsonConvert.DeserializeObject<GetLibrariesLibraryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
} }
return response; return response;

View File

@@ -70,10 +70,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -68,10 +68,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -0,0 +1,82 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetLibrariesDirectory
{
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
[JsonProperty("art")]
public string? Art { get; set; }
[JsonProperty("composite")]
public string? Composite { get; set; }
[JsonProperty("filters")]
public bool? Filters { get; set; }
[JsonProperty("refreshing")]
public bool? Refreshing { get; set; }
[JsonProperty("thumb")]
public string? Thumb { get; set; }
[JsonProperty("key")]
public string? Key { get; set; }
[JsonProperty("type")]
public string? Type { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("agent")]
public string? Agent { get; set; }
[JsonProperty("scanner")]
public string? Scanner { get; set; }
[JsonProperty("language")]
public string? Language { get; set; }
[JsonProperty("uuid")]
public string? Uuid { get; set; }
[JsonProperty("updatedAt")]
public int? UpdatedAt { get; set; }
[JsonProperty("createdAt")]
public int? CreatedAt { get; set; }
[JsonProperty("scannedAt")]
public int? ScannedAt { get; set; }
[JsonProperty("content")]
public bool? Content { get; set; }
[JsonProperty("directory")]
public bool? Directory { get; set; }
[JsonProperty("contentChangedAt")]
public int? ContentChangedAt { get; set; }
[JsonProperty("hidden")]
public int? Hidden { get; set; }
[JsonProperty("Location")]
public List<Location>? Location { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public class GetLibrariesLibraryResponseBody
{
[JsonProperty("errors")]
public List<GetLibrariesErrors>? Errors { get; set; }
}
}

View File

@@ -0,0 +1,31 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 PlexAPI.Models.Requests
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class GetLibrariesMediaContainer
{
[JsonProperty("size")]
public int? Size { get; set; }
[JsonProperty("allowSync")]
public bool? AllowSync { get; set; }
[JsonProperty("title1")]
public string? Title1 { get; set; }
[JsonProperty("Directory")]
public List<GetLibrariesDirectory>? Directory { get; set; }
}
}

View File

@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
/// </summary> /// </summary>
public HttpResponseMessage RawResponse { get; set; } = default!; public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// The libraries available on the Server
/// </summary>
public GetLibrariesResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <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 GetLibrariesResponseBody? Object { get; set; } public GetLibrariesLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
} }
} }

View File

@@ -11,15 +11,14 @@
namespace PlexAPI.Models.Requests namespace PlexAPI.Models.Requests
{ {
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections.Generic;
/// <summary> /// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query. /// The libraries available on the Server
/// </summary> /// </summary>
public class GetLibrariesResponseBody public class GetLibrariesResponseBody
{ {
[JsonProperty("errors")] [JsonProperty("MediaContainer")]
public List<GetLibrariesErrors>? Errors { get; set; } public GetLibrariesMediaContainer? MediaContainer { get; set; }
} }
} }

View File

@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 PlexAPI.Models.Requests
{
using Newtonsoft.Json;
public class Location
{
[JsonProperty("id")]
public int? Id { get; set; }
[JsonProperty("path")]
public string? Path { get; set; }
}
}

View File

@@ -142,10 +142,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<IsPackable>true</IsPackable> <IsPackable>true</IsPackable>
<PackageId>Plex-API</PackageId> <PackageId>Plex-API</PackageId>
<Version>0.1.1</Version> <Version>0.1.2</Version>
<Authors>LukeHagar</Authors> <Authors>LukeHagar</Authors>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>

View File

@@ -235,10 +235,10 @@ namespace PlexAPI
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -83,10 +83,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -61,10 +61,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -114,10 +114,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -76,10 +76,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -70,10 +70,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -165,10 +165,10 @@ namespace PlexAPI.Utils
} }
break; break;
case "openIdConnect": case "openIdConnect":
client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); client.AddHeader(valueMetadata.Name, Utilities.PrefixBearer(Utilities.ValueToString(value)));
break; break;
case "oauth2": case "oauth2":
client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); client.AddHeader(valueMetadata.Name, Utilities.PrefixBearer(Utilities.ValueToString(value)));
break; break;
case "http": case "http":
switch (schemeMetadata.SubType) switch (schemeMetadata.SubType)

View File

@@ -58,10 +58,10 @@ namespace PlexAPI
{ {
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.1.1"; private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.228.1"; private const string _sdkGenVersion = "2.237.2";
private const string _openapiDocVersion = "0.0.3"; private const string _openapiDocVersion = "0.0.3";
private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.228.1 0.0.3 Plex-API"; private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.237.2 0.0.3 Plex-API";
private string _serverUrl = ""; private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient; private ISpeakeasyHttpClient _securityClient;

View File

@@ -23,3 +23,11 @@ Based on:
- Speakeasy CLI 1.133.1 (2.228.1) https://github.com/speakeasy-api/speakeasy - Speakeasy CLI 1.133.1 (2.228.1) https://github.com/speakeasy-api/speakeasy
### Generated ### Generated
- [csharp v0.1.1] . - [csharp v0.1.1] .
## 2024-01-18 23:37:14
### Changes
Based on:
- OpenAPI Doc 0.0.3
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v0.1.2] .

View File

@@ -0,0 +1,28 @@
# GetLibrariesDirectory
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
| `AllowSync` | *bool* | :heavy_minus_sign: | N/A | true |
| `Art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg |
| `Composite` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 |
| `Filters` | *bool* | :heavy_minus_sign: | N/A | true |
| `Refreshing` | *bool* | :heavy_minus_sign: | N/A | false |
| `Thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png |
| `Key` | *string* | :heavy_minus_sign: | N/A | 1 |
| `Type` | *string* | :heavy_minus_sign: | N/A | movie |
| `Title` | *string* | :heavy_minus_sign: | N/A | Movies |
| `Agent` | *string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie |
| `Scanner` | *string* | :heavy_minus_sign: | N/A | Plex Movie |
| `Language` | *string* | :heavy_minus_sign: | N/A | en-US |
| `Uuid` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
| `UpdatedAt` | *int* | :heavy_minus_sign: | N/A | 1705615634 |
| `CreatedAt` | *int* | :heavy_minus_sign: | N/A | 1654131312 |
| `ScannedAt` | *int* | :heavy_minus_sign: | N/A | 1705615584 |
| `Content` | *bool* | :heavy_minus_sign: | N/A | true |
| `Directory` | *bool* | :heavy_minus_sign: | N/A | true |
| `ContentChangedAt` | *int* | :heavy_minus_sign: | N/A | 3192854 |
| `Hidden` | *int* | :heavy_minus_sign: | N/A | 0 |
| `Location` | List<[Location](../../Models/Requests/Location.md)> | :heavy_minus_sign: | N/A | [{"id":1,"path":"/movies"}] |

View File

@@ -0,0 +1,10 @@
# GetLibrariesLibraryResponseBody
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
## Fields
| Field | Type | Required | Description |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `Errors` | List<[GetLibrariesErrors](../../Models/Requests/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A |

View File

@@ -0,0 +1,11 @@
# GetLibrariesMediaContainer
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Size` | *int* | :heavy_minus_sign: | N/A | 5 |
| `AllowSync` | *bool* | :heavy_minus_sign: | N/A | false |
| `Title1` | *string* | :heavy_minus_sign: | N/A | Plex Library |
| `Directory` | List<[GetLibrariesDirectory](../../Models/Requests/GetLibrariesDirectory.md)> | :heavy_minus_sign: | N/A | [{"Location":[{"id":1,"path":"/movies"}],"agent":"tv.plex.agents.movie","allowSync":true,"art":"/:/resources/movie-fanart.jpg","composite":"/library/sections/1/composite/1705615584","content":true,"contentChangedAt":3192854,"createdAt":1654131312,"directory":true,"filters":true,"hidden":0,"key":"1","language":"en-US","refreshing":false,"scannedAt":1705615584,"scanner":"Plex Movie","thumb":"/:/resources/movie.png","title":"Movies","type":"movie","updatedAt":1705615634,"uuid":"322a231a-b7f7-49f5-920f-14c61199cd30"}] |

View File

@@ -8,4 +8,5 @@
| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `Object` | [GetLibrariesResponseBody](../../Models/Requests/GetLibrariesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | | `TwoHundredApplicationJsonObject` | [GetLibrariesResponseBody](../../Models/Requests/GetLibrariesResponseBody.md) | :heavy_minus_sign: | The libraries available on the Server |
| `FourHundredAndOneApplicationJsonObject` | [GetLibrariesLibraryResponseBody](../../Models/Requests/GetLibrariesLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. |

View File

@@ -1,10 +1,10 @@
# GetLibrariesResponseBody # GetLibrariesResponseBody
Unauthorized - Returned if the X-Plex-Token is missing from the header or query. The libraries available on the Server
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `Errors` | List<[GetLibrariesErrors](../../Models/Requests/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | | `MediaContainer` | [GetLibrariesMediaContainer](../../Models/Requests/GetLibrariesMediaContainer.md) | :heavy_minus_sign: | N/A |

View File

@@ -0,0 +1,9 @@
# Location
## Fields
| Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| `Id` | *int* | :heavy_minus_sign: | N/A | 1 |
| `Path` | *string* | :heavy_minus_sign: | N/A | /movies |

View File

@@ -8,7 +8,7 @@ generation:
fixes: fixes:
nameResolutionDec2023: false nameResolutionDec2023: false
csharp: csharp:
version: 0.1.1 version: 0.1.2
author: LukeHagar author: LukeHagar
dotnetVersion: net5.0 dotnetVersion: net5.0
imports: imports: