mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-09 12:47:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.397.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
import Foundation
|
||||
#if os(Linux)
|
||||
@@ -28,7 +28,9 @@ import FoundationNetworking
|
||||
/// ```swift
|
||||
/// let response: Response<Operations.GetResizedPhotoResponse> = ... // Response from API call
|
||||
/// switch response.data {
|
||||
/// case .object(let object):
|
||||
/// case .badRequest(let badRequest):
|
||||
/// // Handle response
|
||||
/// case .unauthorized(let unauthorized):
|
||||
/// // Handle response
|
||||
/// case .empty:
|
||||
/// // Handle empty response
|
||||
@@ -70,13 +72,13 @@ import FoundationNetworking
|
||||
/// - ``hubs``
|
||||
/// - ``search``
|
||||
/// - ``library``
|
||||
/// - ``watchlist``
|
||||
/// - ``log``
|
||||
/// - ``playlists``
|
||||
/// - ``authentication``
|
||||
/// - ``statistics``
|
||||
/// - ``sessions``
|
||||
/// - ``updater``
|
||||
/// - ``watchlist``
|
||||
///
|
||||
public final class Client {
|
||||
internal struct APIResponse {
|
||||
@@ -90,12 +92,12 @@ public final class Client {
|
||||
// Underscore-prefix properties so these do not potentially conflict with any operation namespaces.
|
||||
private lazy var _session = URLSession(configuration: .default)
|
||||
private var _globalParameters: GlobalParameters?
|
||||
private var _security: Shared.Security
|
||||
private var _security: Shared.Security?
|
||||
|
||||
private var _selectedServer: GlobalServers?
|
||||
|
||||
/// Creates an API client object with the specified parameters.
|
||||
public init(globalParameters: GlobalParameters? = nil, security: Shared.Security) {
|
||||
public init(globalParameters: GlobalParameters? = nil, security: Shared.Security? = nil) {
|
||||
self._globalParameters = globalParameters
|
||||
self._security = security
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user