ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.397.2

This commit is contained in:
speakeasybot
2024-09-16 18:44:33 +00:00
parent c0dafdc561
commit 6b54deac02
919 changed files with 16195 additions and 6963 deletions

View File

@@ -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
}