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

@@ -70,10 +70,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -97,10 +97,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -59,10 +59,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -181,10 +181,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
@@ -314,7 +314,16 @@ namespace PlexAPI
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;
@@ -323,7 +332,7 @@ namespace PlexAPI
{
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;

View File

@@ -70,10 +70,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -68,10 +68,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
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>
public HttpResponseMessage RawResponse { get; set; } = default!;
/// <summary>
/// The libraries available on the Server
/// </summary>
public GetLibrariesResponseBody? TwoHundredApplicationJsonObject { get; set; }
/// <summary>
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
/// </summary>
public GetLibrariesResponseBody? Object { get; set; }
public GetLibrariesLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
}
}

View File

@@ -11,15 +11,14 @@
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.
/// The libraries available on the Server
/// </summary>
public class GetLibrariesResponseBody
{
[JsonProperty("errors")]
public List<GetLibrariesErrors>? Errors { get; set; }
[JsonProperty("MediaContainer")]
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; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

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

View File

@@ -235,10 +235,10 @@ namespace PlexAPI
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -83,10 +83,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -61,10 +61,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -114,10 +114,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -76,10 +76,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

@@ -70,10 +70,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;

View File

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

View File

@@ -58,10 +58,10 @@ namespace PlexAPI
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.1.1";
private const string _sdkGenVersion = "2.228.1";
private const string _sdkVersion = "0.1.2";
private const string _sdkGenVersion = "2.237.2";
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 ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;